From 211d2fb3f30f599ee1d99fd1522efbeeb995170a Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Sat, 14 Sep 2024 17:11:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=AC=E5=85=B1=E7=9A=84?= =?UTF-8?q?=E7=9F=A9=E5=BD=A2=E7=BB=98=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../draw-app/CCTVDrawProperties.vue | 5 + .../draw-app/FireAlarmDrawProperties.vue | 5 + .../draw-app/properties/RectProperty.vue | 78 ++++ src/drawApp/commonApp.ts | 13 +- src/drawApp/graphics/RectInteraction.ts | 75 ++++ src/graphics/rect/Rect.ts | 99 +++++ src/graphics/rect/RectDrawAssistant.ts | 112 ++++++ src/layouts/CCTVDrawLayout.vue | 8 +- src/layouts/FireAlarmDrawLayout.vue | 3 +- src/protos/cctv_graphic_data.ts | 25 +- src/protos/fire_alarm_graphic_data.ts | 25 +- src/protos/iscs_graphic_data.ts | 376 +++++++++++------- 12 files changed, 677 insertions(+), 147 deletions(-) create mode 100644 src/components/draw-app/properties/RectProperty.vue create mode 100644 src/drawApp/graphics/RectInteraction.ts create mode 100644 src/graphics/rect/Rect.ts create mode 100644 src/graphics/rect/RectDrawAssistant.ts diff --git a/src/components/draw-app/CCTVDrawProperties.vue b/src/components/draw-app/CCTVDrawProperties.vue index a569e69..e4744e5 100644 --- a/src/components/draw-app/CCTVDrawProperties.vue +++ b/src/components/draw-app/CCTVDrawProperties.vue @@ -26,6 +26,9 @@ + @@ -45,6 +48,8 @@ import IscsTextProperty from './properties/IscsTextProperty.vue'; import { TextContent } from 'src/graphics/textContent/TextContent'; import cctvButtonProperty from './properties/CCTV/CCTVButtonProperty.vue'; import { CCTVButton } from 'src/graphics/CCTV/cctvButton/CCTVButton'; +import RectProperty from './properties/RectProperty.vue'; +import { Rect } from 'src/graphics/rect/Rect'; const drawStore = useDrawStore(); diff --git a/src/components/draw-app/FireAlarmDrawProperties.vue b/src/components/draw-app/FireAlarmDrawProperties.vue index 7a249d8..9ca8103 100644 --- a/src/components/draw-app/FireAlarmDrawProperties.vue +++ b/src/components/draw-app/FireAlarmDrawProperties.vue @@ -26,6 +26,9 @@ +