@zhangqingcq/vgce 0.1.1 → 0.1.3
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 +14 -7
- package/dist/vgce.umd.cjs +2 -2
- package/package.json +1 -1
- package/src/components/config/index.ts +1 -1
- package/src/components/svg-editor/connection-line.vue +2 -2
- package/src/components/svg-viewer.vue +17 -1
- package/src/config/svg/custom/svg-text.ts +5 -0
- package/src/utils/mqtt-net.ts +2 -1
package/dist/vgce.js
CHANGED
@@ -362,6 +362,11 @@ const svg_alert_light = {
|
|
362
362
|
actual_rect: !0
|
363
363
|
},
|
364
364
|
props: {
|
365
|
+
/*deviceCode:{
|
366
|
+
title:'设备编码',
|
367
|
+
type:EConfigItemPropsType.Input,
|
368
|
+
val:''
|
369
|
+
},*/
|
365
370
|
text: {
|
366
371
|
title: "文字内容",
|
367
372
|
type: EConfigItemPropsType.Textarea,
|
@@ -19726,7 +19731,7 @@ const connection_line_system = {
|
|
19726
19731
|
color: {
|
19727
19732
|
title: "颜色",
|
19728
19733
|
type: EConfigItemPropsType.Color,
|
19729
|
-
val: "#
|
19734
|
+
val: "#602a00"
|
19730
19735
|
},
|
19731
19736
|
reverse: {
|
19732
19737
|
title: "反转动画",
|
@@ -21074,7 +21079,7 @@ const _withScopeId$2 = (r) => (pushScopeId("data-v-62907637"), r = r(), popScope
|
|
21074
21079
|
], 32)
|
21075
21080
|
], 8, _hoisted_1$e));
|
21076
21081
|
}
|
21077
|
-
}), 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$1 = ["from", "to", "dur", "repeatCount"], _hoisted_7$1 = ["r", "fill"], _hoisted_8$1 = ["path", "dur", "repeatCount"], _hoisted_9$1 = ["cx", "cy", "r"], _hoisted_10$1 = ["cx", "cy", "r", "stroke", "onMousedown"], _sfc_main$y = /* @__PURE__ */ defineComponent({
|
21082
|
+
}), 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$1 = ["from", "to", "dur", "repeatCount"], _hoisted_7$1 = ["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({
|
21078
21083
|
__name: "connection-line",
|
21079
21084
|
props: {
|
21080
21085
|
itemInfo: {},
|
@@ -21112,7 +21117,7 @@ const _withScopeId$2 = (r) => (pushScopeId("data-v-62907637"), r = r(), popScope
|
|
21112
21117
|
fill: "none",
|
21113
21118
|
"fill-opacity": "0",
|
21114
21119
|
stroke: "#DE4517",
|
21115
|
-
"stroke-width": n.itemInfo.props["stroke-width"].val + 1,
|
21120
|
+
"stroke-width": Math.ceil(n.itemInfo.props["stroke-width"].val * 1.2) + 1,
|
21116
21121
|
"stroke-linecap": "round",
|
21117
21122
|
"stroke-linejoin": "round"
|
21118
21123
|
}, null, 8, _hoisted_1$d), [
|
@@ -21192,7 +21197,7 @@ const _withScopeId$2 = (r) => (pushScopeId("data-v-62907637"), r = r(), popScope
|
|
21192
21197
|
r: n.itemInfo.props.point_r.val + 1,
|
21193
21198
|
fill: "none",
|
21194
21199
|
"fill-opacity": "0",
|
21195
|
-
"stroke-width":
|
21200
|
+
"stroke-width": Math.ceil(n.itemInfo.props.point_r.val * 0.2) + 1,
|
21196
21201
|
stroke: "#DE4517"
|
21197
21202
|
}, null, 8, _hoisted_9$1)), [
|
21198
21203
|
[vShow, n.itemInfo.selected || n.itemInfo.id === ((T = unref(i).handle_svg_info) == null ? void 0 : T.info.id)]
|
@@ -39219,7 +39224,9 @@ let client;
|
|
39219
39224
|
const sub = (r, n, i, o, a) => {
|
39220
39225
|
client = mqttExports.connect(r, {
|
39221
39226
|
username: n,
|
39222
|
-
password: i
|
39227
|
+
password: i,
|
39228
|
+
reconnectPeriod: 6e5
|
39229
|
+
/*如果连不上,10分钟后重试*/
|
39223
39230
|
}), client.on("connect", () => {
|
39224
39231
|
console.log("MQTT服务器连接成功"), console.log(client.options.clientId), client.subscribe(o, { qos: 1 });
|
39225
39232
|
}), client.on("message", a);
|
@@ -39237,7 +39244,7 @@ const sub = (r, n, i, o, a) => {
|
|
39237
39244
|
setup(r, { expose: n, emit: i }) {
|
39238
39245
|
const o = r;
|
39239
39246
|
useCssVars((w) => ({
|
39240
|
-
|
39247
|
+
"2560e28f": unref(c)
|
39241
39248
|
})), setEditorLoadTime();
|
39242
39249
|
const a = useGlobalStore(pinia);
|
39243
39250
|
componentsRegister();
|
@@ -39454,7 +39461,7 @@ const sub = (r, n, i, o, a) => {
|
|
39454
39461
|
], 4))
|
39455
39462
|
], 32));
|
39456
39463
|
}
|
39457
|
-
}),
|
39464
|
+
}), svgViewer_vue_vue_type_style_index_0_scoped_5171fc53_lang = "", svgViewer = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-5171fc53"]]);
|
39458
39465
|
export {
|
39459
39466
|
index as SvgEditor,
|
39460
39467
|
svgViewer as SvgViewer
|