@zhangqingcq/vgce 0.1.19 → 0.1.21
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/dist/style.css +1 -1
- package/dist/vgce.js +26 -18
- package/dist/vgce.umd.cjs +2 -2
- package/package.json +1 -1
- package/src/components/svg-editor/center-panel.vue +32 -1
- package/src/components/svg-editor/top-panel.vue +1 -1
- package/src/config/svg/animation/thermometer.ts +1 -1
- package/src/config/svg/custom/clock-a.ts +1 -1
- package/src/config/svg/custom/light.ts +1 -1
- package/src/config/svg/custom/svg-text.ts +1 -1
- package/src/config/svg/custom/switch-r.ts +1 -1
- package/src/config/svg/stateful/alert-light.ts +1 -1
- package/src/config/vue/component/button.ts +1 -1
- package/src/config/vue/component/common-table.ts +1 -1
- package/src/config/vue/component/progress.ts +1 -1
- package/src/config/vue/component/tag.ts +1 -1
- package/src/config/vue/echarts/pie-charts.ts +1 -1
package/dist/vgce.js
CHANGED
|
@@ -221,7 +221,7 @@ const t$q = {
|
|
|
221
221
|
type: EDoneJsonType.File,
|
|
222
222
|
config: {
|
|
223
223
|
can_zoom: !0,
|
|
224
|
-
have_anchor: !
|
|
224
|
+
have_anchor: !1,
|
|
225
225
|
actual_rect: !0
|
|
226
226
|
},
|
|
227
227
|
display: !0,
|
|
@@ -341,7 +341,7 @@ const t$q = {
|
|
|
341
341
|
type: EDoneJsonType.File,
|
|
342
342
|
config: {
|
|
343
343
|
can_zoom: !0,
|
|
344
|
-
have_anchor: !
|
|
344
|
+
have_anchor: !1,
|
|
345
345
|
actual_rect: !0
|
|
346
346
|
},
|
|
347
347
|
display: !0,
|
|
@@ -365,7 +365,7 @@ const t$q = {
|
|
|
365
365
|
display: !0,
|
|
366
366
|
config: {
|
|
367
367
|
can_zoom: !0,
|
|
368
|
-
have_anchor: !
|
|
368
|
+
have_anchor: !1,
|
|
369
369
|
actual_rect: !0
|
|
370
370
|
},
|
|
371
371
|
props: {
|
|
@@ -444,7 +444,7 @@ const t$q = {
|
|
|
444
444
|
display: !0,
|
|
445
445
|
config: {
|
|
446
446
|
can_zoom: !0,
|
|
447
|
-
have_anchor: !
|
|
447
|
+
have_anchor: !1,
|
|
448
448
|
actual_rect: !0
|
|
449
449
|
},
|
|
450
450
|
props: {
|
|
@@ -468,7 +468,7 @@ const t$q = {
|
|
|
468
468
|
type: EDoneJsonType.CustomSvg,
|
|
469
469
|
config: {
|
|
470
470
|
can_zoom: !0,
|
|
471
|
-
have_anchor: !
|
|
471
|
+
have_anchor: !1,
|
|
472
472
|
actual_rect: !0
|
|
473
473
|
},
|
|
474
474
|
display: !0,
|
|
@@ -503,7 +503,7 @@ const t$q = {
|
|
|
503
503
|
type: EDoneJsonType.CustomSvg,
|
|
504
504
|
config: {
|
|
505
505
|
can_zoom: !0,
|
|
506
|
-
have_anchor: !
|
|
506
|
+
have_anchor: !1,
|
|
507
507
|
actual_rect: !0
|
|
508
508
|
},
|
|
509
509
|
display: !0,
|
|
@@ -567,7 +567,7 @@ const t$q = {
|
|
|
567
567
|
type: EDoneJsonType.Vue,
|
|
568
568
|
config: {
|
|
569
569
|
can_zoom: !1,
|
|
570
|
-
have_anchor: !
|
|
570
|
+
have_anchor: !1,
|
|
571
571
|
actual_rect: !0
|
|
572
572
|
},
|
|
573
573
|
display: !0,
|
|
@@ -620,7 +620,7 @@ const t$q = {
|
|
|
620
620
|
type: EDoneJsonType.Vue,
|
|
621
621
|
config: {
|
|
622
622
|
can_zoom: !1,
|
|
623
|
-
have_anchor: !
|
|
623
|
+
have_anchor: !1,
|
|
624
624
|
actual_rect: !0
|
|
625
625
|
},
|
|
626
626
|
display: !0,
|
|
@@ -804,7 +804,7 @@ const t$q = {
|
|
|
804
804
|
type: EDoneJsonType.Vue,
|
|
805
805
|
config: {
|
|
806
806
|
can_zoom: !0,
|
|
807
|
-
have_anchor: !
|
|
807
|
+
have_anchor: !1,
|
|
808
808
|
actual_rect: !0
|
|
809
809
|
},
|
|
810
810
|
display: !0,
|
|
@@ -846,7 +846,7 @@ const t$q = {
|
|
|
846
846
|
type: EDoneJsonType.Vue,
|
|
847
847
|
config: {
|
|
848
848
|
can_zoom: !1,
|
|
849
|
-
have_anchor: !
|
|
849
|
+
have_anchor: !1,
|
|
850
850
|
actual_rect: !0
|
|
851
851
|
},
|
|
852
852
|
display: !0,
|
|
@@ -935,7 +935,7 @@ const t$q = {
|
|
|
935
935
|
type: EDoneJsonType.Vue,
|
|
936
936
|
config: {
|
|
937
937
|
can_zoom: !0,
|
|
938
|
-
have_anchor: !
|
|
938
|
+
have_anchor: !1,
|
|
939
939
|
actual_rect: !0
|
|
940
940
|
},
|
|
941
941
|
display: !0,
|
|
@@ -20429,7 +20429,7 @@ const useEditPrivateStore = defineStore("edit-private-store", {
|
|
|
20429
20429
|
}
|
|
20430
20430
|
});
|
|
20431
20431
|
var EVisibleConfKey = /* @__PURE__ */ ((i) => (i.ImportJson = "ImportJson", i.ExportJson = "ExportJson", i.ImportFile = "ImportFile", i))(EVisibleConfKey || {});
|
|
20432
|
-
const _withScopeId$2 = (i) => (pushScopeId("data-v-
|
|
20432
|
+
const _withScopeId$2 = (i) => (pushScopeId("data-v-2954e727"), i = i(), popScopeId(), i), _hoisted_1$d = {
|
|
20433
20433
|
class: "flex justify-between",
|
|
20434
20434
|
style: { width: "100%" }
|
|
20435
20435
|
}, _hoisted_2$b = {
|
|
@@ -20446,7 +20446,7 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-c6f23032"), i = i(), popScope
|
|
|
20446
20446
|
}, _hoisted_8$5 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", {
|
|
20447
20447
|
class: "font-bold mb-10px text-15px guide-title",
|
|
20448
20448
|
style: { "padding-top": "16px" }
|
|
20449
|
-
}, "多选", -1)), _hoisted_9$4 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", null, "
|
|
20449
|
+
}, "多选", -1)), _hoisted_9$4 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", null, "在画布空白区域按住鼠标左键可以框选(图形中心点在框选区域即判定被选中),也可以按住ctrl+鼠标左键点图形进行多选", -1)), _hoisted_10$3 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", {
|
|
20450
20450
|
class: "el-divider el-divider--horizontal",
|
|
20451
20451
|
role: "separator",
|
|
20452
20452
|
style: { "--el-border-style": "solid" }
|
|
@@ -20730,7 +20730,7 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-c6f23032"), i = i(), popScope
|
|
|
20730
20730
|
}, 8, ["modelValue"])
|
|
20731
20731
|
], 64));
|
|
20732
20732
|
}
|
|
20733
|
-
}),
|
|
20733
|
+
}), topPanel_vue_vue_type_style_index_0_scoped_2954e727_lang = "", TopPanel = /* @__PURE__ */ _export_sfc$1(_sfc_main$D, [["__scopeId", "data-v-2954e727"]]), _hoisted_1$c = { class: "component-group flex flex-wrap" }, _hoisted_2$a = ["onDragstart", "title"], _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
20734
20734
|
__name: "left-panel",
|
|
20735
20735
|
props: {
|
|
20736
20736
|
customToolbar: {}
|
|
@@ -21445,7 +21445,7 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-c6f23032"), i = i(), popScope
|
|
|
21445
21445
|
},
|
|
21446
21446
|
setup(i, { expose: r }) {
|
|
21447
21447
|
useCssVars((Ie) => ({
|
|
21448
|
-
"
|
|
21448
|
+
"4dc61978": unref(v)
|
|
21449
21449
|
}));
|
|
21450
21450
|
const n = useGlobalStore(pinia), o = useConfigStore(pinia), a = useSvgEditLayoutStore(pinia), u = useEditPrivateStore(pinia), c = useContextMenuStore(pinia);
|
|
21451
21451
|
componentsRegister(i.vueComp);
|
|
@@ -21567,7 +21567,15 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-c6f23032"), i = i(), popScope
|
|
|
21567
21567
|
}, O = (Ie, Lt, xe) => {
|
|
21568
21568
|
var At, Cn, In;
|
|
21569
21569
|
if ((At = p.value) == null || At.focus(), n.intention === EGlobalStoreIntention.Connection) {
|
|
21570
|
-
xe.stopPropagation()
|
|
21570
|
+
if (xe.stopPropagation(), n.handle_svg_info)
|
|
21571
|
+
if (xe.button === 0) {
|
|
21572
|
+
const Dt = n.handle_svg_info.info.props.point_position.val;
|
|
21573
|
+
Dt.length > 1 && Dt[0].x !== Dt[1].x && Dt[0].y !== Dt[1].y && Dt.push({
|
|
21574
|
+
x: n.mouse_info.new_position_x - n.mouse_info.position_x - a.center_offset.x,
|
|
21575
|
+
y: n.mouse_info.new_position_y - n.mouse_info.position_y - a.center_offset.y
|
|
21576
|
+
});
|
|
21577
|
+
} else
|
|
21578
|
+
xe.button === 2 && (n.intention = EGlobalStoreIntention.None, setSvgActualInfo(n.done_json[n.handle_svg_info.index]), n.setHandleSvgInfo(null));
|
|
21571
21579
|
return;
|
|
21572
21580
|
}
|
|
21573
21581
|
if (xe.preventDefault(), xe.stopPropagation(), xe.ctrlKey && xe.button === 0)
|
|
@@ -21806,7 +21814,7 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-c6f23032"), i = i(), popScope
|
|
|
21806
21814
|
n.setHandleSvgInfo(null);
|
|
21807
21815
|
for (let Cn of n.done_json) {
|
|
21808
21816
|
const In = b.value;
|
|
21809
|
-
Cn.selected = Cn.x > In.x && Cn.x < In.x + In.with && Cn.y > In.y && Cn.y < In.y + In.height;
|
|
21817
|
+
Cn.selected = Cn.center_position.x > In.x && Cn.center_position.x < In.x + In.with && Cn.center_position.y > In.y && Cn.center_position.y < In.y + In.height;
|
|
21810
21818
|
}
|
|
21811
21819
|
n.intention = EGlobalStoreIntention.None;
|
|
21812
21820
|
} else
|
|
@@ -22105,7 +22113,7 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-c6f23032"), i = i(), popScope
|
|
|
22105
22113
|
])
|
|
22106
22114
|
], 64));
|
|
22107
22115
|
}
|
|
22108
|
-
}),
|
|
22116
|
+
}), centerPanel_vue_vue_type_style_index_0_scoped_19d2841e_lang = "", CenterPanel = /* @__PURE__ */ _export_sfc$1(_sfc_main$y, [["__scopeId", "data-v-19d2841e"]]);
|
|
22109
22117
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
22110
22118
|
var aim_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
22111
22119
|
name: "Aim",
|