diff --git a/app/components/p8p_svg.js b/app/components/p8p_svg.js index 602d9d9..1a76633 100644 --- a/app/components/p8p_svg.js +++ b/app/components/p8p_svg.js @@ -70,7 +70,6 @@ const P8PSVG = ({ data, items, onClick, style }) => { //При обновлении данных useEffect(() => { - console.log(items); loadSVG(); // eslint-disable-next-line react-hooks/exhaustive-deps }, [data, items]); diff --git a/app/panels/samples/svg.js b/app/panels/samples/svg.js index 04460d3..142fef5 100644 --- a/app/panels/samples/svg.js +++ b/app/panels/samples/svg.js @@ -17,13 +17,13 @@ import { P8PSVG } from "../../components/p8p_svg"; //Интерактивные //--------- //Адрес тестового изображения -const SAMPLE_URL = "http://localhost:8080/P8WebClient/Modules/p8-panels/img/sample.svg"; +const SAMPLE_URL = "img/sample.svg"; //Стили const STYLES = { CONTAINER: { textAlign: "center", paddingTop: "20px" }, TITLE: { paddingBottom: "15px" }, - SVG: { width: "95vw", height: "60vw", display: "flex", justifyContent: "center" } + SVG: { width: "95vw", height: "30vw", display: "flex", justifyContent: "center" } }; //-----------