From 4e1cb3cf89ac75deb2796be0dad1205ce3f58eea Mon Sep 17 00:00:00 2001 From: Mikhail Chechnev Date: Thu, 9 May 2024 20:50:43 +0300 Subject: [PATCH] =?UTF-8?q?WEB=20APP:=20P8PSVG=20-=20=D1=83=D0=B4=D0=B0?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=BB=D0=B8=D1=88=D0=BD=D1=8F=D1=8F?= =?UTF-8?q?=20=D0=BA=D0=BE=D0=BD=D1=81=D0=BE=D0=BB=D1=8C=D0=BD=D0=B0=D1=8F?= =?UTF-8?q?=20=D0=B2=D1=8B=D0=B4=D0=B0=D1=87=D0=B0,=20=D0=B4=D0=BE=D1=80?= =?UTF-8?q?=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=BD=20=D0=BF=D1=80=D0=B8=D0=BC?= =?UTF-8?q?=D0=B5=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/p8p_svg.js | 1 - app/panels/samples/svg.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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" } }; //-----------