@zhangqingcq/vgce 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -22
- package/dist/style.css +1 -1
- package/dist/vgce.js +406 -299
- package/dist/vgce.umd.cjs +4 -4
- package/package.json +1 -1
- package/src/assets/svgs/text-box.svg +1 -0
- package/src/components/svg-editor/center-panel.vue +146 -147
- package/src/components/svg-editor/index.vue +5 -1
- package/src/components/svg-viewer.vue +68 -69
- package/src/config/files/text-box.vue +72 -0
- package/src/config/index.ts +5 -3
- package/src/config/svg/animation/index.ts +3 -2
- package/src/config/svg/animation/thermometer.ts +2 -1
- package/src/config/svg/custom/clock-a.ts +2 -1
- package/src/config/svg/custom/index.ts +6 -5
- package/src/config/svg/custom/light.ts +2 -1
- package/src/config/svg/custom/svg-text.ts +2 -1
- package/src/config/svg/custom/switch-r.ts +2 -1
- package/src/config/svg/index.ts +6 -10
- package/src/config/svg/stateful/alert-light.ts +2 -1
- package/src/config/svg/stateful/index.ts +3 -2
- package/src/config/svg/stateless/bot-2.ts +2 -1
- package/src/config/svg/stateless/bot-9.ts +2 -1
- package/src/config/svg/stateless/hamburger.ts +2 -1
- package/src/config/svg/stateless/hotpot.ts +2 -1
- package/src/config/svg/stateless/index.ts +6 -5
- package/src/config/vue/component/button.ts +2 -1
- package/src/config/vue/component/common-table.ts +2 -1
- package/src/config/vue/component/index.ts +9 -7
- package/src/config/vue/component/now-time.ts +2 -1
- package/src/config/vue/component/progress.ts +2 -1
- package/src/config/vue/component/tag.ts +2 -1
- package/src/config/vue/component/text-box.ts +66 -0
- package/src/config/vue/echarts/index.ts +3 -2
- package/src/config/vue/echarts/pie-charts.ts +2 -1
- package/src/config/vue/index.ts +4 -3
- package/src/views/EditorS.vue +21 -21
- package/src/views/Preview.vue +38 -38
package/dist/vgce.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, watch, openBlock, createBlock, unref, createElementBlock, createElementVNode, nextTick, normalizeStyle as normalizeStyle$1, toDisplayString, ref, watchEffect, normalizeProps, guardReactiveProps, withCtx, Fragment, renderList, mergeProps, computed, onMounted, onUnmounted, provide, reactive, getCurrentInstance, createVNode as createVNode$1, normalizeClass, isRef, pushScopeId, popScopeId, useCssVars, withDirectives, vShow, createCommentVNode, resolveDynamicComponent, createTextVNode, h, markRaw, capitalize, getCurrentScope, onScopeDispose, warn as warn$1, inject, shallowRef, onBeforeUnmount, onBeforeMount,
|
1
|
+
import { defineComponent, watch, openBlock, createBlock, unref, createElementBlock, createElementVNode, nextTick, normalizeStyle as normalizeStyle$1, toDisplayString, ref, watchEffect, normalizeProps, guardReactiveProps, withCtx, Fragment, renderList, mergeProps, computed, onMounted, onUnmounted, provide, reactive, getCurrentInstance, createVNode as createVNode$1, normalizeClass, isRef, pushScopeId, popScopeId, useCssVars, withDirectives, vShow, createCommentVNode, renderSlot, resolveDynamicComponent, createTextVNode, h, markRaw, capitalize, getCurrentScope, onScopeDispose, warn as warn$1, inject, shallowRef, onBeforeUnmount, onBeforeMount, toRef, toRefs, onUpdated, useSlots, TransitionGroup, useAttrs as useAttrs$1, withModifiers, Transition, cloneVNode, Text, Comment, Teleport, readonly, onDeactivated, toRaw, triggerRef, resolveComponent, resolveDirective, withKeys, vModelText, createSlots } from "vue";
|
2
2
|
import { ElProgress, ElTable, ElTableColumn, ElButton, ElTag as ElTag$1, ElMessage, ElIcon as ElIcon$1, ElDivider, ElDialog, ElScrollbar as ElScrollbar$1, ElCollapse, ElCollapseItem, ElFormItem as ElFormItem$1, ElTooltip as ElTooltip$1, ElSelect as ElSelect$1, ElOption as ElOption$1, ElInputNumber, ElInput as ElInput$1, ElColorPicker, ElSwitch, ElDrawer, ElTabs, ElTabPane, ElTree, ElForm, ElContainer, ElHeader, ElAside, ElMain, ElUpload, ElMessageBox } from "element-plus";
|
3
3
|
import "animate.css";
|
4
4
|
import VChart, { THEME_KEY } from "vue-echarts";
|
@@ -212,7 +212,7 @@ if (typeof window < "u") {
|
|
212
212
|
}
|
213
213
|
const main = "", index$2 = "";
|
214
214
|
var ELineBindAnchors = /* @__PURE__ */ ((r) => (r.TopCenter = "TopCenter", r.Left = "Left", r.Right = "Right", r.BottomCenter = "BottomCenter", r))(ELineBindAnchors || {}), EConfigAnimationsType = /* @__PURE__ */ ((r) => (r.None = "None", r.Electricity = "Electricity", r.WaterDrop = "WaterDrop", r.Track = "Track", r))(EConfigAnimationsType || {}), EConfigItemPropsType = /* @__PURE__ */ ((r) => (r.Input = "Input", r.Textarea = "Textarea", r.Color = "Color", r.InputNumber = "InputNumber", r.Switch = "Switch", r.JsonEdit = "JsonEdit", r.Select = "Select", r))(EConfigItemPropsType || {}), EDoneJsonType = /* @__PURE__ */ ((r) => (r.File = "File", r.StraightLine = "StraightLine", r.ConnectionLine = "ConnectionLine", r.CustomSvg = "CustomSvg", r.Vue = "Vue", r))(EDoneJsonType || {}), EEventType = /* @__PURE__ */ ((r) => (r.Click = "Click", r.Change = "Change", r.Null = "", r))(EEventType || {}), EEventAction = /* @__PURE__ */ ((r) => (r.ChangeAttr = "ChangeAttr", r.JavaScript = "JavaScript", r.Null = "", r))(EEventAction || {}), EConditionType = /* @__PURE__ */ ((r) => (r.None = "None", r.Relation = "Relation", r))(EConditionType || {}), EGlobalStoreIntention = /* @__PURE__ */ ((r) => (r.None = "None", r.Create = "Create", r.Move = "Move", r.GroupMove = "GroupMove", r.MoveCanvas = "MoveCanvas", r.Select = "Select", r.Zoom = "Zoom", r.Rotate = "Rotate", r.Connection = "Connection", r.SetConnectionLineNode = "SetConnectionLineNode", r.ContextMenu = "ContextMenu", r.SelectArea = "SelectArea", r))(EGlobalStoreIntention || {}), EMouseInfoState = /* @__PURE__ */ ((r) => (r.Down = "Down", r.Up = "Up", r))(EMouseInfoState || {}), EScaleInfoType = /* @__PURE__ */ ((r) => (r.None = "", r.TopLeft = "TopLeft", r.TopCenter = "TopCenter", r.TopRight = "TopRight", r.Left = "Left", r.Right = "Right", r.BottomLeft = "BottomLeft", r.BottomCenter = "BottomCenter", r.BottomRight = "BottomRight", r))(EScaleInfoType || {});
|
215
|
-
const
|
215
|
+
const t$p = {
|
216
216
|
name: "alert-light",
|
217
217
|
title: "警示灯",
|
218
218
|
type: EDoneJsonType.File,
|
@@ -241,11 +241,11 @@ const svg_alert_light = {
|
|
241
241
|
repeat: "infinite"
|
242
242
|
},
|
243
243
|
events: []
|
244
|
-
},
|
244
|
+
}, t$o = {
|
245
245
|
groupType: "stateful",
|
246
246
|
title: "状态SVG",
|
247
|
-
list: [
|
248
|
-
},
|
247
|
+
list: [t$p]
|
248
|
+
}, t$n = {
|
249
249
|
name: "bot-2",
|
250
250
|
title: "2号机",
|
251
251
|
type: EDoneJsonType.File,
|
@@ -274,7 +274,7 @@ const svg_alert_light = {
|
|
274
274
|
repeat: "infinite"
|
275
275
|
},
|
276
276
|
events: []
|
277
|
-
},
|
277
|
+
}, t$m = {
|
278
278
|
name: "bot-9",
|
279
279
|
title: "9号机",
|
280
280
|
type: EDoneJsonType.File,
|
@@ -292,7 +292,7 @@ const svg_alert_light = {
|
|
292
292
|
repeat: "infinite"
|
293
293
|
},
|
294
294
|
events: []
|
295
|
-
},
|
295
|
+
}, t$l = {
|
296
296
|
name: "hotpot",
|
297
297
|
title: "火锅",
|
298
298
|
type: EDoneJsonType.File,
|
@@ -310,7 +310,7 @@ const svg_alert_light = {
|
|
310
310
|
repeat: "infinite"
|
311
311
|
},
|
312
312
|
events: []
|
313
|
-
},
|
313
|
+
}, t$k = {
|
314
314
|
name: "hamburger",
|
315
315
|
title: "汉堡",
|
316
316
|
type: EDoneJsonType.File,
|
@@ -328,11 +328,11 @@ const svg_alert_light = {
|
|
328
328
|
repeat: "infinite"
|
329
329
|
},
|
330
330
|
events: []
|
331
|
-
},
|
331
|
+
}, t$j = {
|
332
332
|
groupType: "stateless",
|
333
333
|
title: "静态SVG",
|
334
|
-
list: [
|
335
|
-
},
|
334
|
+
list: [t$k, t$l, t$n, t$m]
|
335
|
+
}, t$i = {
|
336
336
|
name: "thermometer",
|
337
337
|
title: "温度计",
|
338
338
|
type: EDoneJsonType.File,
|
@@ -350,11 +350,11 @@ const svg_alert_light = {
|
|
350
350
|
repeat: "infinite"
|
351
351
|
},
|
352
352
|
events: []
|
353
|
-
},
|
353
|
+
}, t$h = {
|
354
354
|
groupType: "have_animation",
|
355
355
|
title: "动画SVG",
|
356
|
-
list: [
|
357
|
-
},
|
356
|
+
list: [t$i]
|
357
|
+
}, t$g = {
|
358
358
|
name: "svg-text",
|
359
359
|
title: "文字",
|
360
360
|
tag: "svg-text",
|
@@ -433,7 +433,7 @@ const svg_alert_light = {
|
|
433
433
|
repeat: "infinite"
|
434
434
|
},
|
435
435
|
events: []
|
436
|
-
},
|
436
|
+
}, t$f = {
|
437
437
|
name: "switch-r",
|
438
438
|
title: "开关",
|
439
439
|
tag: "switch-r",
|
@@ -458,7 +458,7 @@ const svg_alert_light = {
|
|
458
458
|
repeat: "infinite"
|
459
459
|
},
|
460
460
|
events: []
|
461
|
-
},
|
461
|
+
}, t$e = {
|
462
462
|
name: "light",
|
463
463
|
tag: "light-a",
|
464
464
|
title: "灯",
|
@@ -493,7 +493,7 @@ const svg_alert_light = {
|
|
493
493
|
repeat: "infinite"
|
494
494
|
},
|
495
495
|
events: []
|
496
|
-
},
|
496
|
+
}, t$d = {
|
497
497
|
name: "clock-a",
|
498
498
|
title: "时钟",
|
499
499
|
tag: "clock-a",
|
@@ -553,16 +553,11 @@ const svg_alert_light = {
|
|
553
553
|
repeat: "infinite"
|
554
554
|
},
|
555
555
|
events: []
|
556
|
-
},
|
556
|
+
}, t$c = {
|
557
557
|
groupType: "custom_svg_group",
|
558
558
|
title: "SVG组件",
|
559
|
-
list: [
|
560
|
-
},
|
561
|
-
stateless_group,
|
562
|
-
stateful_group,
|
563
|
-
animation_group,
|
564
|
-
custom_svg_group
|
565
|
-
]), el_button = {
|
559
|
+
list: [t$g, t$f, t$e, t$d]
|
560
|
+
}, t$b = Object.seal([t$j, t$o, t$h, t$c]), t$a = {
|
566
561
|
name: "el-button",
|
567
562
|
tag: "el-button",
|
568
563
|
title: "按钮",
|
@@ -615,7 +610,7 @@ const svg_alert_light = {
|
|
615
610
|
repeat: "infinite"
|
616
611
|
},
|
617
612
|
events: []
|
618
|
-
},
|
613
|
+
}, t$9 = {
|
619
614
|
name: "common-table",
|
620
615
|
title: "通用表格",
|
621
616
|
tag: "common-table",
|
@@ -740,7 +735,7 @@ const svg_alert_light = {
|
|
740
735
|
repeat: "infinite"
|
741
736
|
},
|
742
737
|
events: []
|
743
|
-
},
|
738
|
+
}, t$8 = {
|
744
739
|
name: "now-time",
|
745
740
|
title: "当前时间",
|
746
741
|
tag: "now-time",
|
@@ -799,7 +794,7 @@ const svg_alert_light = {
|
|
799
794
|
repeat: "infinite"
|
800
795
|
},
|
801
796
|
events: []
|
802
|
-
},
|
797
|
+
}, t$7 = {
|
803
798
|
name: "el-tag",
|
804
799
|
tag: "el-tag",
|
805
800
|
title: "标签",
|
@@ -841,7 +836,7 @@ const svg_alert_light = {
|
|
841
836
|
repeat: "infinite"
|
842
837
|
},
|
843
838
|
events: []
|
844
|
-
},
|
839
|
+
}, t$6 = {
|
845
840
|
name: "progress-a",
|
846
841
|
tag: "progress-a",
|
847
842
|
title: "进度条",
|
@@ -866,11 +861,71 @@ const svg_alert_light = {
|
|
866
861
|
repeat: "infinite"
|
867
862
|
},
|
868
863
|
events: []
|
869
|
-
},
|
864
|
+
}, t$5 = {
|
865
|
+
name: "text-box",
|
866
|
+
title: "文字背景框",
|
867
|
+
tag: "text-box",
|
868
|
+
type: EDoneJsonType.Vue,
|
869
|
+
config: {
|
870
|
+
can_zoom: !1,
|
871
|
+
have_anchor: !1,
|
872
|
+
actual_rect: !0
|
873
|
+
},
|
874
|
+
display: !0,
|
875
|
+
props: {
|
876
|
+
width: {
|
877
|
+
title: "宽度",
|
878
|
+
type: EConfigItemPropsType.InputNumber,
|
879
|
+
val: 250
|
880
|
+
},
|
881
|
+
height: {
|
882
|
+
title: "高度",
|
883
|
+
type: EConfigItemPropsType.InputNumber,
|
884
|
+
val: 150
|
885
|
+
},
|
886
|
+
bgColor: {
|
887
|
+
title: "背景颜色",
|
888
|
+
type: EConfigItemPropsType.Color,
|
889
|
+
val: "#000000"
|
890
|
+
},
|
891
|
+
bgOpacity: {
|
892
|
+
title: "背景透明度(%)",
|
893
|
+
type: EConfigItemPropsType.InputNumber,
|
894
|
+
val: 1
|
895
|
+
},
|
896
|
+
borderColor: {
|
897
|
+
title: "边框颜色",
|
898
|
+
type: EConfigItemPropsType.Color,
|
899
|
+
val: "#cccccc"
|
900
|
+
},
|
901
|
+
borderWidth: {
|
902
|
+
title: "边框宽度",
|
903
|
+
type: EConfigItemPropsType.InputNumber,
|
904
|
+
val: 1
|
905
|
+
},
|
906
|
+
borderRadius: {
|
907
|
+
title: "边框圆角",
|
908
|
+
type: EConfigItemPropsType.InputNumber,
|
909
|
+
val: 5
|
910
|
+
},
|
911
|
+
borderOpacity: {
|
912
|
+
title: "边框透明度(%)",
|
913
|
+
type: EConfigItemPropsType.InputNumber,
|
914
|
+
val: 100
|
915
|
+
}
|
916
|
+
},
|
917
|
+
common_animations: {
|
918
|
+
val: "",
|
919
|
+
delay: "delay-0s",
|
920
|
+
speed: "slow",
|
921
|
+
repeat: "infinite"
|
922
|
+
},
|
923
|
+
events: []
|
924
|
+
}, t$4 = {
|
870
925
|
groupType: "custom-vue",
|
871
926
|
title: "VUE组件",
|
872
|
-
list: [
|
873
|
-
},
|
927
|
+
list: [t$a, t$6, t$9, t$8, t$7, t$5]
|
928
|
+
}, t$3 = {
|
874
929
|
name: "pie-charts",
|
875
930
|
tag: "pie-charts",
|
876
931
|
title: "饼图",
|
@@ -926,11 +981,11 @@ const svg_alert_light = {
|
|
926
981
|
repeat: "infinite"
|
927
982
|
},
|
928
983
|
events: []
|
929
|
-
},
|
984
|
+
}, t$2 = {
|
930
985
|
groupType: "echarts",
|
931
986
|
title: "图表",
|
932
|
-
list: [
|
933
|
-
},
|
987
|
+
list: [t$3]
|
988
|
+
}, t$1 = Object.seal([t$4, t$2]), _sfc_main$M = /* @__PURE__ */ defineComponent({
|
934
989
|
__name: "progress",
|
935
990
|
props: {
|
936
991
|
percentage: { default: 10 }
|
@@ -986,11 +1041,11 @@ const svg_alert_light = {
|
|
986
1041
|
fill: "#5ad562",
|
987
1042
|
"p-id": "1530",
|
988
1043
|
"data-spm-anchor-id": "a313x.manage_type_myprojects.0.i1.1adc3a81uCnBP5"
|
989
|
-
}, null, -1), _hoisted_6$
|
1044
|
+
}, null, -1), _hoisted_6$8 = [
|
990
1045
|
_hoisted_3$f,
|
991
1046
|
_hoisted_4$b,
|
992
1047
|
_hoisted_5$9
|
993
|
-
], _hoisted_7$
|
1048
|
+
], _hoisted_7$8 = ["id"], _hoisted_8$7 = /* @__PURE__ */ createElementVNode("path", {
|
994
1049
|
d: "M747.52 238.933333 H276.48 C122.88 238.933333 0 361.813333 0 512 s122.88 273.066667 276.48 273.066667 H750.933333 c150.186667 0 276.48-122.88 276.48-273.066667 s-126.293333-273.066667-279.893333-273.066667z",
|
995
1050
|
fill: "white",
|
996
1051
|
"fill-opacity": ".01",
|
@@ -1016,7 +1071,7 @@ const svg_alert_light = {
|
|
1016
1071
|
_hoisted_9$7,
|
1017
1072
|
_hoisted_10$6,
|
1018
1073
|
_hoisted_11$5
|
1019
|
-
], _hoisted_13$4 = ["xlink:href"], _sfc_main$
|
1074
|
+
], _hoisted_13$4 = ["xlink:href"], _sfc_main$L = /* @__PURE__ */ defineComponent({
|
1020
1075
|
__name: "switch-r",
|
1021
1076
|
props: {
|
1022
1077
|
id: {
|
@@ -1042,11 +1097,11 @@ const svg_alert_light = {
|
|
1042
1097
|
createElementVNode("symbol", {
|
1043
1098
|
viewBox: "0 0 1027 1024",
|
1044
1099
|
id: `${i.id}switch-demo-open`
|
1045
|
-
}, _hoisted_6$
|
1100
|
+
}, _hoisted_6$8, 8, _hoisted_2$i),
|
1046
1101
|
createElementVNode("symbol", {
|
1047
1102
|
viewBox: "0 0 1027 1024",
|
1048
1103
|
id: `${i.id}switch-demo-close`
|
1049
|
-
}, _hoisted_12$5, 8, _hoisted_7$
|
1104
|
+
}, _hoisted_12$5, 8, _hoisted_7$8),
|
1050
1105
|
createElementVNode("use", {
|
1051
1106
|
"xlink:href": `#${i.id}switch-demo-${i.isOpen ? "open" : "close"}`,
|
1052
1107
|
width: "100",
|
@@ -1054,7 +1109,7 @@ const svg_alert_light = {
|
|
1054
1109
|
}, null, 8, _hoisted_13$4)
|
1055
1110
|
], 8, _hoisted_1$m));
|
1056
1111
|
}
|
1057
|
-
}), _sfc_main$
|
1112
|
+
}), _sfc_main$K = /* @__PURE__ */ defineComponent({
|
1058
1113
|
__name: "svg-text",
|
1059
1114
|
props: {
|
1060
1115
|
text: {},
|
@@ -1076,7 +1131,7 @@ const svg_alert_light = {
|
|
1076
1131
|
style: normalizeStyle$1({ "font-weight": i.bold ? "bold" : "normal" })
|
1077
1132
|
}, toDisplayString(i.text), 5));
|
1078
1133
|
}
|
1079
|
-
}), _sfc_main$
|
1134
|
+
}), _sfc_main$J = /* @__PURE__ */ defineComponent({
|
1080
1135
|
__name: "common-table",
|
1081
1136
|
props: {
|
1082
1137
|
colConfig: { default: () => [] },
|
@@ -1104,7 +1159,7 @@ const svg_alert_light = {
|
|
1104
1159
|
_: 1
|
1105
1160
|
}, 16));
|
1106
1161
|
}
|
1107
|
-
}), _hoisted_1$l = { class: "flex mt-5px" }, _sfc_main$
|
1162
|
+
}), _hoisted_1$l = { class: "flex mt-5px" }, _sfc_main$I = /* @__PURE__ */ defineComponent({
|
1108
1163
|
__name: "now-time",
|
1109
1164
|
props: {
|
1110
1165
|
width: {},
|
@@ -1157,7 +1212,7 @@ const svg_alert_light = {
|
|
1157
1212
|
for (const [o, a] of n)
|
1158
1213
|
i[o] = a;
|
1159
1214
|
return i;
|
1160
|
-
}, NowTime = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
1215
|
+
}, NowTime = /* @__PURE__ */ _export_sfc$1(_sfc_main$I, [["__scopeId", "data-v-82ca3b84"]]);
|
1161
1216
|
/*! *****************************************************************************
|
1162
1217
|
Copyright (c) Microsoft Corporation.
|
1163
1218
|
|
@@ -19065,7 +19120,7 @@ function install$1(r) {
|
|
19065
19120
|
function install(r) {
|
19066
19121
|
use(install$2), use(install$1);
|
19067
19122
|
}
|
19068
|
-
const _sfc_main$
|
19123
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
19069
19124
|
__name: "pie-charts",
|
19070
19125
|
props: {
|
19071
19126
|
title: {
|
@@ -19122,10 +19177,10 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
19122
19177
|
autoresize: ""
|
19123
19178
|
}, null, 8, ["option"]));
|
19124
19179
|
}
|
19125
|
-
}), pieCharts_vue_vue_type_style_index_0_scoped_fec2cbf2_lang = "", PieCharts = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
19180
|
+
}), pieCharts_vue_vue_type_style_index_0_scoped_fec2cbf2_lang = "", PieCharts = /* @__PURE__ */ _export_sfc$1(_sfc_main$H, [["__scopeId", "data-v-fec2cbf2"]]), _hoisted_1$k = ["id"], _hoisted_2$h = ["id"], _hoisted_3$e = ["fill"], _hoisted_4$a = ["fill"], _hoisted_5$8 = ["fill"], _hoisted_6$7 = /* @__PURE__ */ createElementVNode("path", {
|
19126
19181
|
d: "M375.466667 709.214815l-25.6 137.481481c0 2.844444 1.896296 5.688889 7.585185 10.42963l65.422222 54.992593c5.688889 4.740741 15.17037 8.533333 23.703704 10.429629l36.029629-193.422222-107.14074-19.911111z",
|
19127
19182
|
fill: "#2D4375"
|
19128
|
-
}, null, -1), _hoisted_7$
|
19183
|
+
}, null, -1), _hoisted_7$7 = /* @__PURE__ */ createElementVNode("path", {
|
19129
19184
|
d: "M482.607407 729.125926l-36.029629 193.422222c9.481481 1.896296 18.014815 1.896296 25.6-0.948148l80.592592-27.496296c6.637037-1.896296 10.42963-4.740741 11.377778-6.637037L589.748148 749.037037l-107.140741-19.911111z",
|
19130
19185
|
fill: "#1E2D4F"
|
19131
19186
|
}, null, -1), _hoisted_8$6 = ["fill-opacity"], _hoisted_9$6 = ["fill-opacity"], _hoisted_10$5 = ["fill-opacity"], _hoisted_11$4 = /* @__PURE__ */ createElementVNode("path", {
|
@@ -19137,7 +19192,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
19137
19192
|
}, null, -1), _hoisted_13$3 = /* @__PURE__ */ createElementVNode("path", {
|
19138
19193
|
d: "M570.785185 848.592593l-107.140741-19.911112-4.74074 27.496297 107.14074 19.911111c7.585185 1.896296 15.17037-3.792593 16.118519-11.377778 1.896296-7.585185-2.844444-15.17037-11.377778-16.118518z",
|
19139
19194
|
fill: "#CEEFF6"
|
19140
|
-
}, null, -1), _hoisted_14$3 = ["xlink:href", "width", "height"], _sfc_main$
|
19195
|
+
}, null, -1), _hoisted_14$3 = ["xlink:href", "width", "height"], _sfc_main$G = /* @__PURE__ */ defineComponent({
|
19141
19196
|
__name: "light-a",
|
19142
19197
|
props: {
|
19143
19198
|
id: { default: "" },
|
@@ -19173,8 +19228,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
19173
19228
|
d: "M467.437037 806.874074c-7.585185-0.948148-12.325926-7.585185-14.222222-14.222222l-38.874074-256c-0.948148-5.688889 0.948148-11.377778 4.74074-15.170371 3.792593-3.792593 9.481481-5.688889 15.170371-4.74074l167.822222 31.288889c5.688889 0.948148 10.42963 4.740741 12.325926 9.481481 1.896296 4.740741 1.896296 11.377778-0.948148 16.118519L486.4 798.340741c-3.792593 6.637037-11.377778 10.42963-18.962963 8.533333z m-14.222222-251.259259l27.496296 182.992592L572.681481 578.37037l-119.466666-22.755555z",
|
19174
19229
|
fill: i.isOpen ? "#F12A3F" : "#666666"
|
19175
19230
|
}, null, 8, _hoisted_5$8),
|
19176
|
-
_hoisted_6$
|
19177
|
-
_hoisted_7$
|
19231
|
+
_hoisted_6$7,
|
19232
|
+
_hoisted_7$7,
|
19178
19233
|
createElementVNode("path", {
|
19179
19234
|
d: "M612.503704 217.125926c-3.792593 18.014815-20.859259 29.392593-38.874074 26.548148-18.014815-3.792593-30.340741-20.859259-26.548149-38.874074l18.962963-100.503704c3.792593-18.014815 20.859259-29.392593 38.874075-26.548148 18.014815 3.792593 30.340741 20.859259 26.548148 38.874074l-18.962963 100.503704z",
|
19180
19235
|
fill: "#FDB813",
|
@@ -19201,7 +19256,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
19201
19256
|
}, null, 8, _hoisted_14$3)
|
19202
19257
|
], 8, _hoisted_1$k));
|
19203
19258
|
}
|
19204
|
-
}), _hoisted_1$j = ["id"], _hoisted_2$g = ["id"], _hoisted_3$d = ["fill"], _hoisted_4$9 = ["fill"], _hoisted_5$7 = ["fill"], _hoisted_6$
|
19259
|
+
}), _hoisted_1$j = ["id"], _hoisted_2$g = ["id"], _hoisted_3$d = ["fill"], _hoisted_4$9 = ["fill"], _hoisted_5$7 = ["fill"], _hoisted_6$6 = ["from", "to"], _hoisted_7$6 = ["fill"], _hoisted_8$5 = ["from", "to"], _hoisted_9$5 = ["fill"], _hoisted_10$4 = ["fill"], _hoisted_11$3 = ["fill"], _hoisted_12$3 = ["from", "to"], _hoisted_13$2 = ["fill"], _hoisted_14$2 = ["xlink:href"], _sfc_main$F = /* @__PURE__ */ defineComponent({
|
19205
19260
|
__name: "clock-a",
|
19206
19261
|
props: {
|
19207
19262
|
id: { default: "" },
|
@@ -19243,7 +19298,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
19243
19298
|
to: `${405 + unref(a) * 6} 512.3 506.3`,
|
19244
19299
|
dur: "3600s",
|
19245
19300
|
repeatCount: "indefinite"
|
19246
|
-
}, null, 8, _hoisted_6$
|
19301
|
+
}, null, 8, _hoisted_6$6)
|
19247
19302
|
], 8, _hoisted_5$7),
|
19248
19303
|
createElementVNode("path", {
|
19249
19304
|
d: "M512.3 523.8c-4.5 0-9-1.7-12.4-5.1-6.8-6.8-6.8-17.9 0-24.8l130.8-130.8c6.8-6.8 17.9-6.8 24.8 0 6.8 6.8 6.8 17.9 0 24.8L524.7 518.7c-3.5 3.4-7.9 5.1-12.4 5.1z",
|
@@ -19258,7 +19313,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
19258
19313
|
dur: "43200s",
|
19259
19314
|
repeatCount: "indefinite"
|
19260
19315
|
}, null, 8, _hoisted_8$5)
|
19261
|
-
], 8, _hoisted_7$
|
19316
|
+
], 8, _hoisted_7$6),
|
19262
19317
|
createElementVNode("path", {
|
19263
19318
|
d: "M512.3 506.3m-47.5 0a47.5 47.5 0 1 0 95 0 47.5 47.5 0 1 0-95 0Z",
|
19264
19319
|
fill: n.circleColor
|
@@ -19293,18 +19348,59 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
19293
19348
|
}, null, 8, _hoisted_14$2)
|
19294
19349
|
], 8, _hoisted_1$j));
|
19295
19350
|
}
|
19296
|
-
}),
|
19297
|
-
"
|
19351
|
+
}), _sfc_main$E = /* @__PURE__ */ defineComponent({
|
19352
|
+
__name: "text-box",
|
19353
|
+
props: {
|
19354
|
+
width: { default: 250 },
|
19355
|
+
height: { default: 150 },
|
19356
|
+
bgColor: { default: "#ffffff" },
|
19357
|
+
bgOpacity: { default: 50 },
|
19358
|
+
borderColor: { default: "#000000" },
|
19359
|
+
borderWidth: { default: 1 },
|
19360
|
+
borderRadius: { default: 5 },
|
19361
|
+
borderOpacity: { default: 100 }
|
19362
|
+
},
|
19363
|
+
setup(r) {
|
19364
|
+
const n = r, i = computed(() => ({
|
19365
|
+
width: (n.width > 0 ? n.width : 0) + "px",
|
19366
|
+
height: (n.height > 0 ? n.height : 0) + "px",
|
19367
|
+
borderRadius: (n.borderRadius > 0 ? n.borderRadius : 0) + "px"
|
19368
|
+
})), o = computed(() => ({
|
19369
|
+
border: `${n.borderWidth > 0 ? n.borderWidth : 0}px solid ${n.borderColor}`,
|
19370
|
+
borderRadius: (n.borderRadius > 0 ? n.borderRadius : 0) + "px",
|
19371
|
+
opacity: (n.borderOpacity > 0 ? n.borderOpacity < 100 ? n.borderOpacity : 100 : 0) / 100
|
19372
|
+
})), a = computed(() => ({
|
19373
|
+
backgroundColor: n.bgColor,
|
19374
|
+
opacity: (n.bgOpacity > 0 ? n.bgOpacity < 100 ? n.bgOpacity : 100 : 0) / 100,
|
19375
|
+
borderRadius: n.borderRadius + "px"
|
19376
|
+
}));
|
19377
|
+
return (u, c) => (openBlock(), createElementBlock("div", {
|
19378
|
+
class: "outM",
|
19379
|
+
style: normalizeStyle$1(i.value)
|
19380
|
+
}, [
|
19381
|
+
createElementVNode("div", {
|
19382
|
+
class: "wallI",
|
19383
|
+
style: normalizeStyle$1(a.value)
|
19384
|
+
}, null, 4),
|
19385
|
+
createElementVNode("div", {
|
19386
|
+
class: "borderB",
|
19387
|
+
style: normalizeStyle$1(o.value)
|
19388
|
+
}, null, 4)
|
19389
|
+
], 4));
|
19390
|
+
}
|
19391
|
+
}), textBox_vue_vue_type_style_index_0_scoped_4ab181ea_lang = "", TextBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$E, [["__scopeId", "data-v-4ab181ea"]]), vueComp = {
|
19392
|
+
"svg-text": _sfc_main$K,
|
19298
19393
|
"el-button": ElButton,
|
19299
|
-
"progress-a": _sfc_main$
|
19394
|
+
"progress-a": _sfc_main$M,
|
19300
19395
|
"el-tag": ElTag$1,
|
19301
|
-
"common-table": _sfc_main$
|
19396
|
+
"common-table": _sfc_main$J,
|
19302
19397
|
"pie-charts": PieCharts,
|
19303
|
-
"switch-r": _sfc_main$
|
19398
|
+
"switch-r": _sfc_main$L,
|
19304
19399
|
"now-time": NowTime,
|
19305
|
-
"light-a": _sfc_main$
|
19306
|
-
"clock-a": _sfc_main$
|
19307
|
-
|
19400
|
+
"light-a": _sfc_main$G,
|
19401
|
+
"clock-a": _sfc_main$F,
|
19402
|
+
"text-box": TextBox
|
19403
|
+
}, config = [...t$b, ...t$1], useGlobalStore = defineStore("global-store", {
|
19308
19404
|
state: () => ({
|
19309
19405
|
config_center: config,
|
19310
19406
|
intention: EGlobalStoreIntention.None,
|
@@ -20252,7 +20348,7 @@ const _withScopeId$2 = (r) => (pushScopeId("data-v-62907637"), r = r(), popScope
|
|
20252
20348
|
], -1)), _hoisted_4$8 = {
|
20253
20349
|
class: "flex justify-between",
|
20254
20350
|
style: { width: "calc(100% - 440px)" }
|
20255
|
-
}, _hoisted_5$6 = { class: "flex items-center" }, _hoisted_6$
|
20351
|
+
}, _hoisted_5$6 = { class: "flex items-center" }, _hoisted_6$5 = { class: "flex items-center mr-20px" }, _hoisted_7$5 = {
|
20256
20352
|
class: "flex items-center",
|
20257
20353
|
style: { width: "250px" }
|
20258
20354
|
}, _hoisted_8$4 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", {
|
@@ -20270,7 +20366,7 @@ const _withScopeId$2 = (r) => (pushScopeId("data-v-62907637"), r = r(), popScope
|
|
20270
20366
|
class: "el-divider el-divider--horizontal",
|
20271
20367
|
role: "separator",
|
20272
20368
|
style: { "--el-border-style": "solid" }
|
20273
|
-
}, null, -1)), _hoisted_17 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "font-bold mb-10px text-15px guide-title" }, "标尺辅助线", -1)), _hoisted_18 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", null, "在标尺区域按住鼠标左键并拖动即可创建标尺辅助线,将标尺辅助线拖动到标尺区域即可删除标尺辅助线", -1)), _hoisted_19 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", {
|
20369
|
+
}, null, -1)), _hoisted_17$1 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "font-bold mb-10px text-15px guide-title" }, "标尺辅助线", -1)), _hoisted_18$1 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", null, "在标尺区域按住鼠标左键并拖动即可创建标尺辅助线,将标尺辅助线拖动到标尺区域即可删除标尺辅助线", -1)), _hoisted_19 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", {
|
20274
20370
|
class: "el-divider el-divider--horizontal",
|
20275
20371
|
role: "separator",
|
20276
20372
|
style: { "--el-border-style": "solid" }
|
@@ -20438,7 +20534,7 @@ const _withScopeId$2 = (r) => (pushScopeId("data-v-62907637"), r = r(), popScope
|
|
20438
20534
|
_: 1
|
20439
20535
|
})
|
20440
20536
|
]),
|
20441
|
-
createElementVNode("div", _hoisted_6$
|
20537
|
+
createElementVNode("div", _hoisted_6$5, [
|
20442
20538
|
createVNode$1(unref(ElIcon$1), {
|
20443
20539
|
title: "返回",
|
20444
20540
|
class: "bt-Icon",
|
@@ -20476,7 +20572,7 @@ const _withScopeId$2 = (r) => (pushScopeId("data-v-62907637"), r = r(), popScope
|
|
20476
20572
|
})
|
20477
20573
|
])
|
20478
20574
|
]),
|
20479
|
-
createElementVNode("div", _hoisted_7$
|
20575
|
+
createElementVNode("div", _hoisted_7$5, [
|
20480
20576
|
createVNode$1(unref(ElIcon$1), {
|
20481
20577
|
size: 24,
|
20482
20578
|
class: "bt-Icon",
|
@@ -20515,8 +20611,8 @@ const _withScopeId$2 = (r) => (pushScopeId("data-v-62907637"), r = r(), popScope
|
|
20515
20611
|
_hoisted_14$1,
|
20516
20612
|
_hoisted_15$1,
|
20517
20613
|
_hoisted_16$2,
|
20518
|
-
_hoisted_17,
|
20519
|
-
_hoisted_18,
|
20614
|
+
_hoisted_17$1,
|
20615
|
+
_hoisted_18$1,
|
20520
20616
|
_hoisted_19,
|
20521
20617
|
_hoisted_20,
|
20522
20618
|
_hoisted_21,
|
@@ -20716,7 +20812,7 @@ const _withScopeId$2 = (r) => (pushScopeId("data-v-62907637"), r = r(), popScope
|
|
20716
20812
|
is_old_width: !1,
|
20717
20813
|
is_old_height: !0
|
20718
20814
|
};
|
20719
|
-
}, _hoisted_1$f = { style: { "vector-effect": "non-scaling-stroke" } }, _hoisted_2$c = ["fill", "x", "y"], _hoisted_3$b = ["cx", "cy"], _hoisted_4$7 = ["x1", "y1", "x2", "y2"], _hoisted_5$5 = ["fill", "x", "y"], _hoisted_6$
|
20815
|
+
}, _hoisted_1$f = { style: { "vector-effect": "non-scaling-stroke" } }, _hoisted_2$c = ["fill", "x", "y"], _hoisted_3$b = ["cx", "cy"], _hoisted_4$7 = ["x1", "y1", "x2", "y2"], _hoisted_5$5 = ["fill", "x", "y"], _hoisted_6$4 = ["fill", "x", "y"], _hoisted_7$4 = ["fill", "x", "y"], _hoisted_8$3 = ["fill", "x", "y"], _hoisted_9$3 = ["fill", "x", "y"], _hoisted_10$2 = ["fill", "x", "y"], _hoisted_11$1 = ["fill", "x", "y"], _sfc_main$A = /* @__PURE__ */ defineComponent({
|
20720
20816
|
__name: "handle-panel",
|
20721
20817
|
props: {
|
20722
20818
|
itemInfo: {}
|
@@ -20888,7 +20984,7 @@ const _withScopeId$2 = (r) => (pushScopeId("data-v-62907637"), r = r(), popScope
|
|
20888
20984
|
y: n.itemInfo.actual_bound.y - unref(u) - unref(getCoordinateOffset)(n.itemInfo.actual_bound.height, n.itemInfo.scale_y),
|
20889
20985
|
stroke: "rgba(0,0,0,0)",
|
20890
20986
|
onMousedown: _[2] || (_[2] = (b) => p(unref(EScaleInfoType).TopRight, b))
|
20891
|
-
}, null, 44, _hoisted_6$
|
20987
|
+
}, null, 44, _hoisted_6$4), [
|
20892
20988
|
[vShow, unref(d)]
|
20893
20989
|
]),
|
20894
20990
|
withDirectives(createElementVNode("rect", {
|
@@ -20902,7 +20998,7 @@ const _withScopeId$2 = (r) => (pushScopeId("data-v-62907637"), r = r(), popScope
|
|
20902
20998
|
y: n.itemInfo.actual_bound.y - unref(u) + n.itemInfo.actual_bound.height * n.itemInfo.scale_y / 2 - unref(getCoordinateOffset)(n.itemInfo.actual_bound.height, n.itemInfo.scale_y),
|
20903
20999
|
stroke: "rgba(0,0,0,0)",
|
20904
21000
|
onMousedown: _[3] || (_[3] = (b) => p(unref(EScaleInfoType).Left, b))
|
20905
|
-
}, null, 44, _hoisted_7$
|
21001
|
+
}, null, 44, _hoisted_7$4), [
|
20906
21002
|
[vShow, unref(d)]
|
20907
21003
|
]),
|
20908
21004
|
withDirectives(createElementVNode("rect", {
|
@@ -20963,7 +21059,7 @@ const _withScopeId$2 = (r) => (pushScopeId("data-v-62907637"), r = r(), popScope
|
|
20963
21059
|
])
|
20964
21060
|
]));
|
20965
21061
|
}
|
20966
|
-
}), handlePanel_vue_vue_type_style_index_0_scoped_e6622df8_lang = "", HandlePanel = /* @__PURE__ */ _export_sfc$1(_sfc_main$A, [["__scopeId", "data-v-e6622df8"]]), _hoisted_1$e = ["fill"], _hoisted_2$b = ["cx", "cy", "r"], _hoisted_3$a = ["cx", "cy", "r"], _hoisted_4$6 = ["cx", "cy", "r"], _hoisted_5$4 = ["cx", "cy", "r"], _hoisted_6$
|
21062
|
+
}), handlePanel_vue_vue_type_style_index_0_scoped_e6622df8_lang = "", HandlePanel = /* @__PURE__ */ _export_sfc$1(_sfc_main$A, [["__scopeId", "data-v-e6622df8"]]), _hoisted_1$e = ["fill"], _hoisted_2$b = ["cx", "cy", "r"], _hoisted_3$a = ["cx", "cy", "r"], _hoisted_4$6 = ["cx", "cy", "r"], _hoisted_5$4 = ["cx", "cy", "r"], _hoisted_6$3 = ["cx", "cy", "r"], _hoisted_7$3 = ["cx", "cy", "r"], _hoisted_8$2 = ["cx", "cy", "r"], _hoisted_9$2 = ["cx", "cy", "r"], _sfc_main$z = /* @__PURE__ */ defineComponent({
|
20967
21063
|
__name: "connection-panel",
|
20968
21064
|
props: {
|
20969
21065
|
itemInfo: {}
|
@@ -21066,14 +21162,14 @@ const _withScopeId$2 = (r) => (pushScopeId("data-v-62907637"), r = r(), popScope
|
|
21066
21162
|
cy: unref(_),
|
21067
21163
|
r: unref(u),
|
21068
21164
|
"fill-opacity": ".3"
|
21069
|
-
}, null, 8, _hoisted_6$
|
21165
|
+
}, null, 8, _hoisted_6$3),
|
21070
21166
|
createElementVNode("circle", {
|
21071
21167
|
id: "connection_bc",
|
21072
21168
|
cx: unref(g),
|
21073
21169
|
cy: unref(_),
|
21074
21170
|
r: unref(a),
|
21075
21171
|
"pointer-events": "all"
|
21076
|
-
}, null, 8, _hoisted_7$
|
21172
|
+
}, null, 8, _hoisted_7$3)
|
21077
21173
|
], 32),
|
21078
21174
|
createElementVNode("g", {
|
21079
21175
|
onMousedown: T[6] || (T[6] = (L) => S(L, unref(ELineBindAnchors).Left)),
|
@@ -21097,7 +21193,7 @@ const _withScopeId$2 = (r) => (pushScopeId("data-v-62907637"), r = r(), popScope
|
|
21097
21193
|
], 32)
|
21098
21194
|
], 8, _hoisted_1$e));
|
21099
21195
|
}
|
21100
|
-
}), connectionPanel_vue_vue_type_style_index_0_scoped_fb729c7a_lang = "", ConnectionPanel = /* @__PURE__ */ _export_sfc$1(_sfc_main$z, [["__scopeId", "data-v-fb729c7a"]]), _hoisted_1$d = ["d", "stroke-width"], _hoisted_2$a = ["d", "stroke-width"], _hoisted_3$9 = ["id", "d", "stroke", "stroke-width", "stroke-dasharray"], _hoisted_4$5 = ["from", "to", "dur", "repeatCount"], _hoisted_5$3 = ["d", "stroke", "stroke-width", "stroke-dasharray"], _hoisted_6$
|
21196
|
+
}), connectionPanel_vue_vue_type_style_index_0_scoped_fb729c7a_lang = "", ConnectionPanel = /* @__PURE__ */ _export_sfc$1(_sfc_main$z, [["__scopeId", "data-v-fb729c7a"]]), _hoisted_1$d = ["d", "stroke-width"], _hoisted_2$a = ["d", "stroke-width"], _hoisted_3$9 = ["id", "d", "stroke", "stroke-width", "stroke-dasharray"], _hoisted_4$5 = ["from", "to", "dur", "repeatCount"], _hoisted_5$3 = ["d", "stroke", "stroke-width", "stroke-dasharray"], _hoisted_6$2 = ["from", "to", "dur", "repeatCount"], _hoisted_7$2 = ["r", "fill"], _hoisted_8$1 = ["path", "dur", "repeatCount"], _hoisted_9$1 = ["cx", "cy", "r", "stroke-width"], _hoisted_10$1 = ["cx", "cy", "r", "stroke", "onMousedown"], _sfc_main$y = /* @__PURE__ */ defineComponent({
|
21101
21197
|
__name: "connection-line",
|
21102
21198
|
props: {
|
21103
21199
|
itemInfo: {},
|
@@ -21189,7 +21285,7 @@ const _withScopeId$2 = (r) => (pushScopeId("data-v-62907637"), r = r(), popScope
|
|
21189
21285
|
dur: `${n.itemInfo.animations.dur.val}s`,
|
21190
21286
|
repeatCount: n.itemInfo.animations.repeatCount.val,
|
21191
21287
|
fill: "freeze"
|
21192
|
-
}, null, 8, _hoisted_6$
|
21288
|
+
}, null, 8, _hoisted_6$2)
|
21193
21289
|
], 8, _hoisted_5$3)) : ((_ = n.itemInfo.animations) == null ? void 0 : _.type.val) === unref(EConfigAnimationsType).Track ? (openBlock(), createElementBlock("circle", {
|
21194
21290
|
key: 1,
|
21195
21291
|
cx: "0",
|
@@ -21204,7 +21300,7 @@ const _withScopeId$2 = (r) => (pushScopeId("data-v-62907637"), r = r(), popScope
|
|
21204
21300
|
dur: `${n.itemInfo.animations.dur.val}s`,
|
21205
21301
|
repeatCount: n.itemInfo.animations.repeatCount.val
|
21206
21302
|
}, null, 8, _hoisted_8$1)
|
21207
|
-
], 8, _hoisted_7$
|
21303
|
+
], 8, _hoisted_7$2)) : createCommentVNode("", !0),
|
21208
21304
|
createElementVNode("g", null, [
|
21209
21305
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(n.itemInfo.props.point_position.val, (b, A) => {
|
21210
21306
|
var w;
|
@@ -21236,19 +21332,23 @@ const _withScopeId$2 = (r) => (pushScopeId("data-v-62907637"), r = r(), popScope
|
|
21236
21332
|
], 4);
|
21237
21333
|
};
|
21238
21334
|
}
|
21239
|
-
}), _hoisted_1$c = {
|
21335
|
+
}), _hoisted_1$c = { style: { position: "absolute", left: "0", top: "0", bottom: "0", right: "0" } }, _hoisted_2$9 = {
|
21336
|
+
xmlns: "http://www.w3.org/2000/svg",
|
21337
|
+
width: "100%",
|
21338
|
+
height: "100%"
|
21339
|
+
}, _hoisted_3$8 = {
|
21240
21340
|
id: "pattern_grid",
|
21241
21341
|
patternUnits: "userSpaceOnUse",
|
21242
21342
|
x: "0",
|
21243
21343
|
y: "0",
|
21244
21344
|
width: "20",
|
21245
21345
|
height: "20"
|
21246
|
-
},
|
21346
|
+
}, _hoisted_4$4 = ["stroke"], _hoisted_5$2 = ["stroke"], _hoisted_6$1 = ["stroke"], _hoisted_7$1 = ["stroke"], _hoisted_8 = {
|
21247
21347
|
key: 0,
|
21248
21348
|
width: "100%",
|
21249
21349
|
height: "100%",
|
21250
21350
|
fill: "url(#pattern_grid)"
|
21251
|
-
},
|
21351
|
+
}, _hoisted_9 = ["transform"], _hoisted_10 = ["transform"], _hoisted_11 = ["transform", "onMousedown", "onMouseup", "onMouseenter", "onMouseleave", "onContextmenu"], _hoisted_12$1 = ["xlink:href", "width", "height", "id", "transform"], _hoisted_13 = ["id"], _hoisted_14 = ["id", "x1", "y1", "x2", "y2"], _hoisted_15 = ["id"], _hoisted_16$1 = ["x", "y", "height", "width"], _hoisted_17 = ["onClick"], _hoisted_18 = { class: "shortcut" }, _sfc_main$x = /* @__PURE__ */ defineComponent({
|
21252
21352
|
__name: "center-panel",
|
21253
21353
|
props: {
|
21254
21354
|
vueComp: {}
|
@@ -21256,7 +21356,7 @@ const _withScopeId$2 = (r) => (pushScopeId("data-v-62907637"), r = r(), popScope
|
|
21256
21356
|
setup(r, { expose: n }) {
|
21257
21357
|
const i = r;
|
21258
21358
|
useCssVars((Ie) => ({
|
21259
|
-
"
|
21359
|
+
"20fb3c82": unref(v)
|
21260
21360
|
}));
|
21261
21361
|
const o = useGlobalStore(pinia), a = useConfigStore(pinia), u = useSvgEditLayoutStore(pinia), c = useEditPrivateStore(pinia), f = useContextMenuStore(pinia);
|
21262
21362
|
componentsRegister(i.vueComp);
|
@@ -21731,10 +21831,11 @@ const _withScopeId$2 = (r) => (pushScopeId("data-v-62907637"), r = r(), popScope
|
|
21731
21831
|
});
|
21732
21832
|
}), n({ onCanvasMouseUp: re }), (Ie, Pt) => (openBlock(), createElementBlock(Fragment, null, [
|
21733
21833
|
createElementVNode("div", {
|
21734
|
-
class: "canvas",
|
21735
|
-
tabindex: "0",
|
21736
21834
|
ref_key: "canvasRef",
|
21737
21835
|
ref: p,
|
21836
|
+
class: "canvas",
|
21837
|
+
style: normalizeStyle$1({ backgroundColor: unref(a).svg.background_color, position: "relative" }),
|
21838
|
+
tabindex: "0",
|
21738
21839
|
onDrop: x,
|
21739
21840
|
onDragenter: T,
|
21740
21841
|
onDragover: L,
|
@@ -21745,150 +21846,148 @@ const _withScopeId$2 = (r) => (pushScopeId("data-v-62907637"), r = r(), popScope
|
|
21745
21846
|
onKeydown: Ce,
|
21746
21847
|
onMousewheel: Y
|
21747
21848
|
}, [
|
21748
|
-
(
|
21749
|
-
|
21750
|
-
|
21751
|
-
|
21752
|
-
|
21753
|
-
|
21754
|
-
|
21755
|
-
|
21756
|
-
|
21757
|
-
|
21758
|
-
|
21759
|
-
|
21760
|
-
|
21761
|
-
|
21762
|
-
|
21763
|
-
|
21764
|
-
|
21765
|
-
|
21766
|
-
|
21767
|
-
|
21768
|
-
|
21769
|
-
|
21770
|
-
|
21771
|
-
|
21772
|
-
|
21773
|
-
|
21774
|
-
|
21775
|
-
|
21776
|
-
|
21777
|
-
|
21778
|
-
|
21779
|
-
|
21780
|
-
|
21781
|
-
|
21782
|
-
|
21783
|
-
|
21784
|
-
|
21785
|
-
|
21786
|
-
|
21787
|
-
|
21788
|
-
|
21789
|
-
|
21790
|
-
|
21791
|
-
|
21792
|
-
|
21793
|
-
|
21794
|
-
transform: `translate(${xe.x},${xe.y})rotate(0)scale(1)`,
|
21795
|
-
onMousewheel: Pt[0] || (Pt[0] = //@ts-ignore
|
21796
|
-
(...hn) => unref(stopEvent) && unref(stopEvent)(...hn))
|
21797
|
-
}, [
|
21798
|
-
createElementVNode("g", {
|
21799
|
-
class: normalizeClass(`${unref(getCommonClass)(xe)}`)
|
21849
|
+
renderSlot(Ie.$slots, "background", {}, void 0, !0),
|
21850
|
+
createElementVNode("div", _hoisted_1$c, [
|
21851
|
+
(openBlock(), createElementBlock("svg", _hoisted_2$9, [
|
21852
|
+
createElementVNode("defs", null, [
|
21853
|
+
createElementVNode("pattern", _hoisted_3$8, [
|
21854
|
+
createElementVNode("line", {
|
21855
|
+
x1: "0",
|
21856
|
+
y1: "0",
|
21857
|
+
x2: "0",
|
21858
|
+
y2: "20",
|
21859
|
+
stroke: unref(a).svg.grid_color
|
21860
|
+
}, null, 8, _hoisted_4$4),
|
21861
|
+
createElementVNode("line", {
|
21862
|
+
x1: "10",
|
21863
|
+
y1: "0",
|
21864
|
+
x2: "10",
|
21865
|
+
y2: "20",
|
21866
|
+
stroke: unref(a).svg.grid_color
|
21867
|
+
}, null, 8, _hoisted_5$2),
|
21868
|
+
createElementVNode("line", {
|
21869
|
+
x1: "0",
|
21870
|
+
y1: "0",
|
21871
|
+
x2: "20",
|
21872
|
+
y2: "0",
|
21873
|
+
stroke: unref(a).svg.grid_color
|
21874
|
+
}, null, 8, _hoisted_6$1),
|
21875
|
+
createElementVNode("line", {
|
21876
|
+
x1: "0",
|
21877
|
+
y1: "10",
|
21878
|
+
x2: "20",
|
21879
|
+
y2: "10",
|
21880
|
+
stroke: unref(a).svg.grid_color
|
21881
|
+
}, null, 8, _hoisted_7$1)
|
21882
|
+
])
|
21883
|
+
]),
|
21884
|
+
unref(a).svg.grid ? (openBlock(), createElementBlock("rect", _hoisted_8)) : createCommentVNode("", !0),
|
21885
|
+
createElementVNode("g", {
|
21886
|
+
transform: `translate(${unref(u).center_offset.x * unref(a).svg.scale},${unref(u).center_offset.y * unref(a).svg.scale})rotate(0)scale(${unref(a).svg.scale})`
|
21887
|
+
}, [
|
21888
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(o).done_json, (xe, Lt) => {
|
21889
|
+
var _n, In, jt, he, At, kt, Cn, ze, _e, de, Et, Oe, Ve, Dt;
|
21890
|
+
return withDirectives((openBlock(), createElementBlock("g", {
|
21891
|
+
key: xe.id,
|
21892
|
+
transform: `translate(${xe.x},${xe.y})rotate(0)scale(1)`,
|
21893
|
+
onMousewheel: Pt[0] || (Pt[0] = //@ts-ignore
|
21894
|
+
(...hn) => unref(stopEvent) && unref(stopEvent)(...hn))
|
21800
21895
|
}, [
|
21801
21896
|
createElementVNode("g", {
|
21802
|
-
|
21803
|
-
onMousedown: (hn) => k(xe, Lt, hn),
|
21804
|
-
onMouseup: (hn) => M(xe, Lt, hn),
|
21805
|
-
onMouseenter: (hn) => O(xe, Lt, hn),
|
21806
|
-
onMouseleave: (hn) => ie(xe, Lt, hn),
|
21807
|
-
onContextmenu: (hn) => pe(xe, Lt, hn)
|
21897
|
+
class: normalizeClass(`${unref(getCommonClass)(xe)}`)
|
21808
21898
|
}, [
|
21809
|
-
|
21810
|
-
|
21811
|
-
|
21812
|
-
|
21813
|
-
|
21814
|
-
|
21815
|
-
|
21816
|
-
},
|
21817
|
-
|
21818
|
-
|
21819
|
-
|
21820
|
-
|
21821
|
-
|
21822
|
-
|
21823
|
-
|
21824
|
-
|
21825
|
-
|
21826
|
-
|
21827
|
-
}), null, 16, ["width", "height", "id", "transform"])) : xe.type === unref(EDoneJsonType).Vue ? (openBlock(), createElementBlock("foreignObject", mergeProps({ key: 3 }, ue(xe.actual_bound, xe.scale_x, xe.scale_y), {
|
21828
|
-
id: `foreign-object${xe.id}`,
|
21829
|
-
class: "foreignObject"
|
21830
|
-
}), [
|
21831
|
-
(openBlock(), createBlock(resolveDynamicComponent(xe.tag), mergeProps(unref(prosToVBind)(xe), {
|
21899
|
+
createElementVNode("g", {
|
21900
|
+
transform: `translate(${xe.actual_bound.x + xe.actual_bound.width / 2},${xe.actual_bound.y + xe.actual_bound.height / 2})rotate(${xe.rotate}) scale(1) translate(${-(xe.actual_bound.x + xe.actual_bound.width / 2)},${-(xe.actual_bound.y + xe.actual_bound.height / 2)})`,
|
21901
|
+
onMousedown: (hn) => k(xe, Lt, hn),
|
21902
|
+
onMouseup: (hn) => M(xe, Lt, hn),
|
21903
|
+
onMouseenter: (hn) => O(xe, Lt, hn),
|
21904
|
+
onMouseleave: (hn) => ie(xe, Lt, hn),
|
21905
|
+
onContextmenu: (hn) => pe(xe, Lt, hn)
|
21906
|
+
}, [
|
21907
|
+
xe.type === unref(EDoneJsonType).ConnectionLine ? (openBlock(), createBlock(_sfc_main$y, {
|
21908
|
+
key: 0,
|
21909
|
+
"item-info": xe,
|
21910
|
+
"point-visible": unref(g).connection_line && ((_n = unref(g).select_item.info) == null ? void 0 : _n.id) == xe.id
|
21911
|
+
}, null, 8, ["item-info", "point-visible"])) : xe.type === unref(EDoneJsonType).File ? (openBlock(), createElementBlock("use", mergeProps({
|
21912
|
+
key: 1,
|
21913
|
+
"xlink:href": `#svg-${xe.name}`
|
21914
|
+
}, unref(prosToVBind)(xe, ["height", "width"]), {
|
21915
|
+
width: ((jt = (In = xe.props) == null ? void 0 : In.width) == null ? void 0 : jt.val) ?? 100,
|
21916
|
+
height: ((At = (he = xe.props) == null ? void 0 : he.height) == null ? void 0 : At.val) ?? 100,
|
21832
21917
|
id: xe.id,
|
21833
21918
|
transform: `translate(${xe.actual_bound.x + xe.actual_bound.width / 2},${xe.actual_bound.y + xe.actual_bound.height / 2}) scale(${xe.scale_x},${xe.scale_y}) translate(${-(xe.actual_bound.x + xe.actual_bound.width / 2)},${-(xe.actual_bound.y + xe.actual_bound.height / 2)})`
|
21834
|
-
}), {
|
21835
|
-
|
21836
|
-
|
21837
|
-
|
21838
|
-
|
21839
|
-
|
21840
|
-
|
21841
|
-
|
21842
|
-
|
21843
|
-
|
21844
|
-
|
21845
|
-
|
21846
|
-
|
21847
|
-
|
21848
|
-
|
21849
|
-
|
21850
|
-
|
21851
|
-
|
21852
|
-
|
21853
|
-
|
21854
|
-
|
21855
|
-
|
21856
|
-
|
21857
|
-
|
21858
|
-
|
21859
|
-
|
21860
|
-
"
|
21861
|
-
"
|
21862
|
-
"
|
21863
|
-
}
|
21864
|
-
|
21865
|
-
|
21866
|
-
|
21867
|
-
|
21868
|
-
|
21869
|
-
|
21870
|
-
|
21871
|
-
|
21872
|
-
|
21873
|
-
|
21874
|
-
|
21875
|
-
|
21876
|
-
|
21877
|
-
|
21878
|
-
|
21879
|
-
|
21880
|
-
|
21881
|
-
|
21882
|
-
|
21883
|
-
|
21884
|
-
|
21885
|
-
|
21886
|
-
|
21887
|
-
|
21888
|
-
|
21889
|
-
|
21890
|
-
|
21891
|
-
|
21919
|
+
}), null, 16, _hoisted_12$1)) : xe.type === unref(EDoneJsonType).CustomSvg ? (openBlock(), createBlock(resolveDynamicComponent(xe.tag), mergeProps({ key: 2 }, unref(prosToVBind)(xe, ["height", "width"]), {
|
21920
|
+
width: ((Cn = (kt = xe.props) == null ? void 0 : kt.width) == null ? void 0 : Cn.val) ?? 100,
|
21921
|
+
height: ((_e = (ze = xe.props) == null ? void 0 : ze.height) == null ? void 0 : _e.val) ?? 100,
|
21922
|
+
id: xe.id,
|
21923
|
+
onResize: Fe,
|
21924
|
+
transform: `translate(${xe.actual_bound.x + xe.actual_bound.width / 2},${xe.actual_bound.y + xe.actual_bound.height / 2}) scale(${xe.scale_x},${xe.scale_y}) translate(${-(xe.actual_bound.x + xe.actual_bound.width / 2)},${-(xe.actual_bound.y + xe.actual_bound.height / 2)})`
|
21925
|
+
}), null, 16, ["width", "height", "id", "transform"])) : xe.type === unref(EDoneJsonType).Vue ? (openBlock(), createElementBlock("foreignObject", mergeProps({ key: 3 }, ue(xe.actual_bound, xe.scale_x, xe.scale_y), {
|
21926
|
+
id: `foreign-object${xe.id}`,
|
21927
|
+
class: "foreignObject"
|
21928
|
+
}), [
|
21929
|
+
(openBlock(), createBlock(resolveDynamicComponent(xe.tag), mergeProps(unref(prosToVBind)(xe), {
|
21930
|
+
id: xe.id,
|
21931
|
+
transform: `translate(${xe.actual_bound.x + xe.actual_bound.width / 2},${xe.actual_bound.y + xe.actual_bound.height / 2}) scale(${xe.scale_x},${xe.scale_y}) translate(${-(xe.actual_bound.x + xe.actual_bound.width / 2)},${-(xe.actual_bound.y + xe.actual_bound.height / 2)})`
|
21932
|
+
}), {
|
21933
|
+
default: withCtx(() => [
|
21934
|
+
createTextVNode(toDisplayString(xe.tag_slot), 1)
|
21935
|
+
]),
|
21936
|
+
_: 2
|
21937
|
+
}, 1040, ["id", "transform"]))
|
21938
|
+
], 16, _hoisted_13)) : xe.type === unref(EDoneJsonType).StraightLine ? (openBlock(), createElementBlock("line", {
|
21939
|
+
key: 4,
|
21940
|
+
id: xe.id,
|
21941
|
+
x1: xe.props.start_x.val,
|
21942
|
+
y1: xe.props.start_y.val,
|
21943
|
+
x2: xe.props.end_x.val,
|
21944
|
+
y2: xe.props.end_y.val,
|
21945
|
+
fill: "#FF0000",
|
21946
|
+
stroke: "#FF0000",
|
21947
|
+
"stroke-width": "2"
|
21948
|
+
}, null, 8, _hoisted_14)) : createCommentVNode("", !0),
|
21949
|
+
xe.config.actual_rect ? (openBlock(), createElementBlock("rect", mergeProps({
|
21950
|
+
key: 5,
|
21951
|
+
id: `rect${xe.id}`,
|
21952
|
+
fill: "black",
|
21953
|
+
"fill-opacity": "0"
|
21954
|
+
}, ue(xe.actual_bound, xe.scale_x, xe.scale_y), {
|
21955
|
+
style: { stroke: "none", "stroke-width": "2", "stroke-miterlimit": "10" },
|
21956
|
+
class: {
|
21957
|
+
"svg-item-none": !xe.selected && (unref(o).intention == unref(EGlobalStoreIntention).None || unref(o).intention == unref(EGlobalStoreIntention).Select),
|
21958
|
+
"svg-item-move": unref(o).intention == unref(EGlobalStoreIntention).Move && ((de = unref(o).handle_svg_info) == null ? void 0 : de.info.id) == xe.id,
|
21959
|
+
"svg-item-select": unref(o).intention == unref(EGlobalStoreIntention).Select && ((Et = unref(o).handle_svg_info) == null ? void 0 : Et.info.id) == xe.id,
|
21960
|
+
"svg-item-in-group": xe.selected
|
21961
|
+
}
|
21962
|
+
}), null, 16, _hoisted_15)) : createCommentVNode("", !0),
|
21963
|
+
((Oe = unref(o).handle_svg_info) == null ? void 0 : Oe.info.id) === xe.id && unref(g).handle_panel && xe.type !== unref(EDoneJsonType).ConnectionLine ? (openBlock(), createBlock(HandlePanel, {
|
21964
|
+
key: 6,
|
21965
|
+
"item-info": xe
|
21966
|
+
}, null, 8, ["item-info"])) : createCommentVNode("", !0),
|
21967
|
+
!xe.selected && ((Ve = unref(g).select_item.info) == null ? void 0 : Ve.id) == xe.id && unref(g).connection_panel && xe.config.have_anchor && unref(o).intention !== unref(EGlobalStoreIntention).SelectArea && (unref(o).intention !== unref(EGlobalStoreIntention).Select || xe.id !== ((Dt = unref(o).handle_svg_info) == null ? void 0 : Dt.info.id)) ? (openBlock(), createBlock(ConnectionPanel, {
|
21968
|
+
key: 7,
|
21969
|
+
onContextmenu: z,
|
21970
|
+
"item-info": xe
|
21971
|
+
}, null, 8, ["item-info"])) : createCommentVNode("", !0)
|
21972
|
+
], 40, _hoisted_11)
|
21973
|
+
], 2)
|
21974
|
+
], 40, _hoisted_10)), [
|
21975
|
+
[vShow, xe.display]
|
21976
|
+
]);
|
21977
|
+
}), 128)),
|
21978
|
+
createElementVNode("rect", {
|
21979
|
+
x: unref(b).x,
|
21980
|
+
y: unref(b).y,
|
21981
|
+
height: unref(b).height,
|
21982
|
+
width: unref(b).with,
|
21983
|
+
stroke: "#107cec",
|
21984
|
+
fill: "#107cec",
|
21985
|
+
"fill-opacity": ".2"
|
21986
|
+
}, null, 8, _hoisted_16$1)
|
21987
|
+
], 8, _hoisted_9)
|
21988
|
+
]))
|
21989
|
+
])
|
21990
|
+
], 36),
|
21892
21991
|
withDirectives(createElementVNode("ul", {
|
21893
21992
|
ref_key: "contextMenuRef",
|
21894
21993
|
ref: d,
|
@@ -21902,15 +22001,15 @@ const _withScopeId$2 = (r) => (pushScopeId("data-v-62907637"), r = r(), popScope
|
|
21902
22001
|
class: normalizeClass(xe.enable ? "" : "disabled")
|
21903
22002
|
}, [
|
21904
22003
|
createTextVNode(toDisplayString(xe.title) + " ", 1),
|
21905
|
-
createElementVNode("span",
|
22004
|
+
createElementVNode("span", _hoisted_18, toDisplayString(xe.hot_key), 1)
|
21906
22005
|
], 2)
|
21907
|
-
], 8,
|
22006
|
+
], 8, _hoisted_17))), 128))
|
21908
22007
|
], 512), [
|
21909
22008
|
[vShow, unref(f).display]
|
21910
22009
|
])
|
21911
22010
|
], 64));
|
21912
22011
|
}
|
21913
|
-
}),
|
22012
|
+
}), centerPanel_vue_vue_type_style_index_0_scoped_c77c0287_lang = "", CenterPanel = /* @__PURE__ */ _export_sfc$1(_sfc_main$x, [["__scopeId", "data-v-c77c0287"]]);
|
21914
22013
|
/*! Element Plus Icons Vue v2.1.0 */
|
21915
22014
|
var export_helper_default = (r, n) => {
|
21916
22015
|
let i = r.__vccOpts || r;
|
@@ -30263,13 +30362,18 @@ const _hoisted_1$1 = { class: "canvas-main-pc" }, _sfc_main$1 = /* @__PURE__ */
|
|
30263
30362
|
ref_key: "centerRef",
|
30264
30363
|
ref: d,
|
30265
30364
|
vueComp: o.vueComp
|
30266
|
-
},
|
30365
|
+
}, {
|
30366
|
+
background: withCtx(() => [
|
30367
|
+
renderSlot(T.$slots, "background", {}, void 0, !0)
|
30368
|
+
]),
|
30369
|
+
_: 3
|
30370
|
+
}, 8, ["vueComp"])
|
30267
30371
|
]),
|
30268
|
-
_:
|
30372
|
+
_: 3
|
30269
30373
|
}, 8, ["visible"])
|
30270
30374
|
])
|
30271
30375
|
]),
|
30272
|
-
_:
|
30376
|
+
_: 3
|
30273
30377
|
}),
|
30274
30378
|
createVNode$1(unref(ElAside), {
|
30275
30379
|
class: normalizeClass(["side-nav", unref(u).right_nav ? "show-nav" : "hide-nav"]),
|
@@ -30286,10 +30390,10 @@ const _hoisted_1$1 = { class: "canvas-main-pc" }, _sfc_main$1 = /* @__PURE__ */
|
|
30286
30390
|
_: 1
|
30287
30391
|
}, 8, ["class"])
|
30288
30392
|
]),
|
30289
|
-
_:
|
30393
|
+
_: 3
|
30290
30394
|
})
|
30291
30395
|
]),
|
30292
|
-
_:
|
30396
|
+
_: 3
|
30293
30397
|
}),
|
30294
30398
|
createVNode$1(unref(ElDialog), {
|
30295
30399
|
class: "modal-full",
|
@@ -30352,7 +30456,7 @@ const _hoisted_1$1 = { class: "canvas-main-pc" }, _sfc_main$1 = /* @__PURE__ */
|
|
30352
30456
|
}, 8, ["modelValue"])
|
30353
30457
|
]));
|
30354
30458
|
}
|
30355
|
-
}),
|
30459
|
+
}), index_vue_vue_type_style_index_0_scoped_ed6b1a90_lang = "", index = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__scopeId", "data-v-ed6b1a90"]]);
|
30356
30460
|
function commonjsRequire(r) {
|
30357
30461
|
throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
30358
30462
|
}
|
@@ -42617,7 +42721,11 @@ const sub = (r, n, i, o, a) => {
|
|
42617
42721
|
client && client.end && client.end(!0, {}, () => {
|
42618
42722
|
console.log("MQTT服务连接关闭");
|
42619
42723
|
});
|
42620
|
-
}, _hoisted_1 =
|
42724
|
+
}, _hoisted_1 = { style: { position: "absolute", left: "0", top: "0", bottom: "0", right: "0" } }, _hoisted_2 = {
|
42725
|
+
xmlns: "http://www.w3.org/2000/svg",
|
42726
|
+
width: "100%",
|
42727
|
+
height: "100%"
|
42728
|
+
}, _hoisted_3 = ["transform"], _hoisted_4 = ["transform", "onClick"], _hoisted_5 = ["transform"], _hoisted_6 = ["xlink:href", "width", "height", "id", "transform"], _hoisted_7 = ["id"], _sfc_main = /* @__PURE__ */ defineComponent({
|
42621
42729
|
__name: "svg-viewer",
|
42622
42730
|
props: {
|
42623
42731
|
vueComp: {},
|
@@ -42628,7 +42736,7 @@ const sub = (r, n, i, o, a) => {
|
|
42628
42736
|
setup(r, { expose: n, emit: i }) {
|
42629
42737
|
const o = r;
|
42630
42738
|
useCssVars((S) => ({
|
42631
|
-
"
|
42739
|
+
"01996f39": unref(c)
|
42632
42740
|
})), setEditorLoadTime();
|
42633
42741
|
const a = useGlobalStore(pinia);
|
42634
42742
|
componentsRegister(o.vueComp);
|
@@ -42768,6 +42876,7 @@ const sub = (r, n, i, o, a) => {
|
|
42768
42876
|
setNodeAttrByID: w
|
42769
42877
|
}), (S, x) => (openBlock(), createElementBlock("div", {
|
42770
42878
|
class: "canvas",
|
42879
|
+
style: normalizeStyle$1({ backgroundColor: unref(u).config.svg.background_color, position: "relative" }),
|
42771
42880
|
onMousedown: p,
|
42772
42881
|
onMousemove: f,
|
42773
42882
|
onMouseup: d,
|
@@ -42775,80 +42884,78 @@ const sub = (r, n, i, o, a) => {
|
|
42775
42884
|
onContextmenu: x[4] || (x[4] = //@ts-ignore
|
42776
42885
|
(...T) => unref(preventDefault) && unref(preventDefault)(...T))
|
42777
42886
|
}, [
|
42778
|
-
(
|
42779
|
-
|
42780
|
-
|
42781
|
-
|
42782
|
-
|
42783
|
-
|
42784
|
-
|
42785
|
-
|
42786
|
-
|
42787
|
-
|
42788
|
-
|
42789
|
-
|
42790
|
-
|
42791
|
-
|
42792
|
-
|
42793
|
-
|
42794
|
-
|
42795
|
-
|
42796
|
-
|
42797
|
-
|
42798
|
-
|
42799
|
-
(...Y) => unref(stopEvent) && unref(stopEvent)(...Y)),
|
42800
|
-
onMousewheel: x[3] || (x[3] = //@ts-ignore
|
42801
|
-
(...Y) => unref(stopEvent) && unref(stopEvent)(...Y))
|
42802
|
-
}, [
|
42803
|
-
createElementVNode("g", {
|
42804
|
-
class: normalizeClass(`${unref(getCommonClass)(T)}`)
|
42887
|
+
renderSlot(S.$slots, "background", {}, void 0, !0),
|
42888
|
+
createElementVNode("div", _hoisted_1, [
|
42889
|
+
(openBlock(), createElementBlock("svg", _hoisted_2, [
|
42890
|
+
createElementVNode("g", {
|
42891
|
+
transform: `translate(${unref(u).layout_center.x},${unref(u).layout_center.y})rotate(0)scale(${unref(u).config.svg.scale})`
|
42892
|
+
}, [
|
42893
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(u).done_json, (T) => {
|
42894
|
+
var L, k, M, O, ie, F, re, D;
|
42895
|
+
return withDirectives((openBlock(), createElementBlock("g", {
|
42896
|
+
key: T.id,
|
42897
|
+
transform: `translate(${T.x},${T.y})rotate(0)scale(1)`,
|
42898
|
+
style: normalizeStyle$1(g(T)),
|
42899
|
+
onClick: (Y) => _(T, unref(EEventType).Click),
|
42900
|
+
onMousedown: x[0] || (x[0] = //@ts-ignore
|
42901
|
+
(...Y) => unref(stopEvent) && unref(stopEvent)(...Y)),
|
42902
|
+
onMousemove: x[1] || (x[1] = //@ts-ignore
|
42903
|
+
(...Y) => unref(stopEvent) && unref(stopEvent)(...Y)),
|
42904
|
+
onMouseup: x[2] || (x[2] = //@ts-ignore
|
42905
|
+
(...Y) => unref(stopEvent) && unref(stopEvent)(...Y)),
|
42906
|
+
onMousewheel: x[3] || (x[3] = //@ts-ignore
|
42907
|
+
(...Y) => unref(stopEvent) && unref(stopEvent)(...Y))
|
42805
42908
|
}, [
|
42806
42909
|
createElementVNode("g", {
|
42807
|
-
|
42910
|
+
class: normalizeClass(`${unref(getCommonClass)(T)}`)
|
42808
42911
|
}, [
|
42809
|
-
|
42810
|
-
|
42811
|
-
|
42812
|
-
|
42813
|
-
|
42814
|
-
|
42815
|
-
|
42816
|
-
|
42817
|
-
|
42818
|
-
|
42819
|
-
|
42820
|
-
|
42821
|
-
|
42822
|
-
|
42823
|
-
|
42824
|
-
|
42825
|
-
|
42826
|
-
}), null, 16, ["width", "height", "id", "onOnChange", "transform"])) : T.type === unref(EDoneJsonType).Vue ? (openBlock(), createElementBlock("foreignObject", mergeProps({ key: 3 }, v(T.actual_bound, T.scale_x, T.scale_y), {
|
42827
|
-
id: `foreign-object${T.id}`,
|
42828
|
-
class: "foreignObject"
|
42829
|
-
}), [
|
42830
|
-
(openBlock(), createBlock(resolveDynamicComponent(T.tag), mergeProps(unref(prosToVBind)(T), {
|
42912
|
+
createElementVNode("g", {
|
42913
|
+
transform: `translate(${T.actual_bound.x + T.actual_bound.width / 2},${T.actual_bound.y + T.actual_bound.height / 2})rotate(${T.rotate}) scale(1) translate(${-(T.actual_bound.x + T.actual_bound.width / 2)},${-(T.actual_bound.y + T.actual_bound.height / 2)})`
|
42914
|
+
}, [
|
42915
|
+
T.type === unref(EDoneJsonType).ConnectionLine ? (openBlock(), createBlock(_sfc_main$y, {
|
42916
|
+
key: 0,
|
42917
|
+
"item-info": T
|
42918
|
+
}, null, 8, ["item-info"])) : T.type === unref(EDoneJsonType).File ? (openBlock(), createElementBlock("use", mergeProps({
|
42919
|
+
key: 1,
|
42920
|
+
"xlink:href": `#svg-${T.name}`
|
42921
|
+
}, unref(prosToVBind)(T, ["height", "width"]), {
|
42922
|
+
width: ((k = (L = T.props) == null ? void 0 : L.width) == null ? void 0 : k.val) ?? 100,
|
42923
|
+
height: ((O = (M = T.props) == null ? void 0 : M.height) == null ? void 0 : O.val) ?? 100,
|
42924
|
+
id: T.id,
|
42925
|
+
transform: `translate(${T.actual_bound.x + T.actual_bound.width / 2},${T.actual_bound.y + T.actual_bound.height / 2}) scale(${T.scale_x},${T.scale_y}) translate(${-(T.actual_bound.x + T.actual_bound.width / 2)},${-(T.actual_bound.y + T.actual_bound.height / 2)})`
|
42926
|
+
}), null, 16, _hoisted_6)) : T.type === unref(EDoneJsonType).CustomSvg ? (openBlock(), createBlock(resolveDynamicComponent(T.tag), mergeProps({ key: 2 }, unref(prosToVBind)(T, ["height", "width"]), {
|
42927
|
+
width: ((F = (ie = T.props) == null ? void 0 : ie.width) == null ? void 0 : F.val) ?? 100,
|
42928
|
+
height: ((D = (re = T.props) == null ? void 0 : re.height) == null ? void 0 : D.val) ?? 100,
|
42831
42929
|
id: T.id,
|
42832
42930
|
onOnChange: (Y) => _(T, unref(EEventType).Change),
|
42833
42931
|
transform: `translate(${T.actual_bound.x + T.actual_bound.width / 2},${T.actual_bound.y + T.actual_bound.height / 2}) scale(${T.scale_x},${T.scale_y}) translate(${-(T.actual_bound.x + T.actual_bound.width / 2)},${-(T.actual_bound.y + T.actual_bound.height / 2)})`
|
42834
|
-
}), {
|
42835
|
-
|
42836
|
-
|
42837
|
-
|
42838
|
-
|
42839
|
-
|
42840
|
-
|
42841
|
-
|
42842
|
-
|
42843
|
-
|
42844
|
-
|
42845
|
-
|
42846
|
-
|
42847
|
-
|
42848
|
-
|
42849
|
-
|
42932
|
+
}), null, 16, ["width", "height", "id", "onOnChange", "transform"])) : T.type === unref(EDoneJsonType).Vue ? (openBlock(), createElementBlock("foreignObject", mergeProps({ key: 3 }, v(T.actual_bound, T.scale_x, T.scale_y), {
|
42933
|
+
id: `foreign-object${T.id}`,
|
42934
|
+
class: "foreignObject"
|
42935
|
+
}), [
|
42936
|
+
(openBlock(), createBlock(resolveDynamicComponent(T.tag), mergeProps(unref(prosToVBind)(T), {
|
42937
|
+
id: T.id,
|
42938
|
+
onOnChange: (Y) => _(T, unref(EEventType).Change),
|
42939
|
+
transform: `translate(${T.actual_bound.x + T.actual_bound.width / 2},${T.actual_bound.y + T.actual_bound.height / 2}) scale(${T.scale_x},${T.scale_y}) translate(${-(T.actual_bound.x + T.actual_bound.width / 2)},${-(T.actual_bound.y + T.actual_bound.height / 2)})`
|
42940
|
+
}), {
|
42941
|
+
default: withCtx(() => [
|
42942
|
+
createTextVNode(toDisplayString(T.tag_slot), 1)
|
42943
|
+
]),
|
42944
|
+
_: 2
|
42945
|
+
}, 1040, ["id", "onOnChange", "transform"]))
|
42946
|
+
], 16, _hoisted_7)) : createCommentVNode("", !0)
|
42947
|
+
], 8, _hoisted_5)
|
42948
|
+
], 2)
|
42949
|
+
], 44, _hoisted_4)), [
|
42950
|
+
[vShow, T.display]
|
42951
|
+
]);
|
42952
|
+
}), 128))
|
42953
|
+
], 8, _hoisted_3)
|
42954
|
+
]))
|
42955
|
+
])
|
42956
|
+
], 36));
|
42850
42957
|
}
|
42851
|
-
}),
|
42958
|
+
}), svgViewer_vue_vue_type_style_index_0_scoped_7f6cd20a_lang = "", svgViewer = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-7f6cd20a"]]);
|
42852
42959
|
export {
|
42853
42960
|
index as SvgEditor,
|
42854
42961
|
svgViewer as SvgViewer
|