sctj-components 1.1.33 → 1.1.34
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/lib/sctj-components.es.js +35 -25
- package/lib/sctj-components.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -10198,8 +10198,8 @@ const _sfc_main$5 = {
|
|
|
10198
10198
|
}
|
|
10199
10199
|
};
|
|
10200
10200
|
const SCTJTrackPlayback = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-87a3abe5"]]);
|
|
10201
|
-
const
|
|
10202
|
-
const _withScopeId$3 = (n) => (pushScopeId("data-v-
|
|
10201
|
+
const index_vue_vue_type_style_index_0_scoped_eff1c241_lang = "";
|
|
10202
|
+
const _withScopeId$3 = (n) => (pushScopeId("data-v-eff1c241"), n = n(), popScopeId(), n);
|
|
10203
10203
|
const _hoisted_1$3 = {
|
|
10204
10204
|
key: 0,
|
|
10205
10205
|
class: "btn-container"
|
|
@@ -10517,7 +10517,9 @@ const _sfc_main$4 = {
|
|
|
10517
10517
|
const mapContainer = ref$1(null);
|
|
10518
10518
|
watch(() => props.center, () => {
|
|
10519
10519
|
var _a;
|
|
10520
|
-
props.center &&
|
|
10520
|
+
if (props.center && map.value && !allOverlays.value.length) {
|
|
10521
|
+
(_a = map.value) == null ? void 0 : _a.setCenter(parsePosition(props.center));
|
|
10522
|
+
}
|
|
10521
10523
|
});
|
|
10522
10524
|
const markerDefaultConfig = reactive({
|
|
10523
10525
|
icon: "https://a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",
|
|
@@ -10671,6 +10673,7 @@ const _sfc_main$4 = {
|
|
|
10671
10673
|
updatePolygonData(instance);
|
|
10672
10674
|
if (type === "bezierCurve")
|
|
10673
10675
|
updateBezierCurveData(instance);
|
|
10676
|
+
props.immediateComplete && handleConfirm();
|
|
10674
10677
|
});
|
|
10675
10678
|
}
|
|
10676
10679
|
instance.on("rightclick", () => {
|
|
@@ -10685,6 +10688,13 @@ const _sfc_main$4 = {
|
|
|
10685
10688
|
});
|
|
10686
10689
|
}
|
|
10687
10690
|
};
|
|
10691
|
+
const allOverlays = computed$1(() => [
|
|
10692
|
+
...localMarkers.value.map((item) => item.obj).filter((item) => item),
|
|
10693
|
+
...localPolylines.value.map((item) => item.obj).filter((item) => item),
|
|
10694
|
+
...localPolygons.value.map((item) => item.obj).filter((item) => item),
|
|
10695
|
+
...localBezierCurves.value.map((item) => item.obj).filter((item) => item),
|
|
10696
|
+
...localCircles.value.map((item) => item.obj).filter((item) => item)
|
|
10697
|
+
]);
|
|
10688
10698
|
const renderInitialData = () => {
|
|
10689
10699
|
if (!map.value)
|
|
10690
10700
|
return;
|
|
@@ -10769,15 +10779,8 @@ const _sfc_main$4 = {
|
|
|
10769
10779
|
setInstanceEvent("circle", circleObj);
|
|
10770
10780
|
localCircles.value.push({ obj: circleObj, center, radius, type: "circle" });
|
|
10771
10781
|
});
|
|
10772
|
-
|
|
10773
|
-
|
|
10774
|
-
...localPolylines.value.map((item) => item.obj),
|
|
10775
|
-
...localPolygons.value.map((item) => item.obj),
|
|
10776
|
-
...localBezierCurves.value.map((item) => item.obj),
|
|
10777
|
-
...localCircles.value.map((item) => item.obj)
|
|
10778
|
-
];
|
|
10779
|
-
if (allOverlays.length > 0) {
|
|
10780
|
-
map.value.setFitView(allOverlays);
|
|
10782
|
+
if (allOverlays.value.length > 0) {
|
|
10783
|
+
map.value.setFitView(allOverlays.value);
|
|
10781
10784
|
}
|
|
10782
10785
|
};
|
|
10783
10786
|
const drawTypClick = (type) => {
|
|
@@ -10999,7 +11002,11 @@ const _sfc_main$4 = {
|
|
|
10999
11002
|
} else if (target instanceof AMap.Circle) {
|
|
11000
11003
|
deleteCircle(target);
|
|
11001
11004
|
} else {
|
|
11002
|
-
|
|
11005
|
+
if (props.immediateComplete) {
|
|
11006
|
+
handleConfirm();
|
|
11007
|
+
} else {
|
|
11008
|
+
closeEditor();
|
|
11009
|
+
}
|
|
11003
11010
|
if (drawingType.value) {
|
|
11004
11011
|
startDrawing(drawingType.value);
|
|
11005
11012
|
}
|
|
@@ -11013,7 +11020,8 @@ const _sfc_main$4 = {
|
|
|
11013
11020
|
return;
|
|
11014
11021
|
}
|
|
11015
11022
|
if (currentEditingObj.value) {
|
|
11016
|
-
closeEditor();
|
|
11023
|
+
!props.immediateComplete && closeEditor();
|
|
11024
|
+
props.immediateComplete && handleConfirm();
|
|
11017
11025
|
}
|
|
11018
11026
|
if (target instanceof AMap.Polyline) {
|
|
11019
11027
|
enablePolylineEditor(target);
|
|
@@ -11109,21 +11117,21 @@ const _sfc_main$4 = {
|
|
|
11109
11117
|
return;
|
|
11110
11118
|
if (polyEditor.value && currentEditingObj.value instanceof AMap.Polyline) {
|
|
11111
11119
|
updatePolylineData();
|
|
11112
|
-
|
|
11120
|
+
polyEditor.value.close();
|
|
11113
11121
|
}
|
|
11114
11122
|
if (polygonEditor.value && currentEditingObj.value instanceof AMap.Polygon) {
|
|
11115
11123
|
updatePolygonData();
|
|
11116
|
-
|
|
11124
|
+
polygonEditor.value.close();
|
|
11117
11125
|
}
|
|
11118
11126
|
if (bezierCurveEditor.value && currentEditingObj.value instanceof AMap.BezierCurve) {
|
|
11119
11127
|
updateBezierCurveData();
|
|
11120
|
-
|
|
11128
|
+
bezierCurveEditor.value.close();
|
|
11121
11129
|
}
|
|
11122
11130
|
if (circleEditor.value && currentEditingObj.value instanceof AMap.Circle) {
|
|
11123
11131
|
updateCircleData();
|
|
11124
|
-
|
|
11132
|
+
circleEditor.value.close();
|
|
11125
11133
|
}
|
|
11126
|
-
|
|
11134
|
+
currentEditingObj.value = null;
|
|
11127
11135
|
};
|
|
11128
11136
|
const updatePolylineData = (instance = null) => {
|
|
11129
11137
|
const polyline = instance != null ? instance : polyEditor.value.getTarget();
|
|
@@ -11577,7 +11585,8 @@ const _sfc_main$4 = {
|
|
|
11577
11585
|
type: "primary",
|
|
11578
11586
|
icon: unref(QuestionFilled),
|
|
11579
11587
|
onClick: _cache[0] || (_cache[0] = ($event) => showHelpDialog.value = true),
|
|
11580
|
-
class: "help-button"
|
|
11588
|
+
class: "help-button",
|
|
11589
|
+
size: "small"
|
|
11581
11590
|
}, {
|
|
11582
11591
|
default: withCtx(() => [
|
|
11583
11592
|
createTextVNode(" \u64CD\u4F5C\u8BF4\u660E ")
|
|
@@ -11659,14 +11668,14 @@ const _sfc_main$4 = {
|
|
|
11659
11668
|
return openBlock(), createBlock(_component_el_radio, {
|
|
11660
11669
|
key: type,
|
|
11661
11670
|
onClick: withModifiers(($event) => drawTypClick(type), ["prevent"]),
|
|
11662
|
-
|
|
11671
|
+
value: type,
|
|
11663
11672
|
border: ""
|
|
11664
11673
|
}, {
|
|
11665
11674
|
default: withCtx(() => [
|
|
11666
11675
|
createTextVNode(toDisplayString(getButtonLabel(type)), 1)
|
|
11667
11676
|
]),
|
|
11668
11677
|
_: 2
|
|
11669
|
-
}, 1032, ["onClick", "
|
|
11678
|
+
}, 1032, ["onClick", "value"]);
|
|
11670
11679
|
}), 128))
|
|
11671
11680
|
]),
|
|
11672
11681
|
_: 1
|
|
@@ -11741,7 +11750,8 @@ const _sfc_main$4 = {
|
|
|
11741
11750
|
title: "\u64CD\u4F5C\u8BF4\u660E",
|
|
11742
11751
|
modelValue: showHelpDialog.value,
|
|
11743
11752
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => showHelpDialog.value = $event),
|
|
11744
|
-
width: "600px",
|
|
11753
|
+
width: unref(isMobile) ? "90%" : "600px",
|
|
11754
|
+
fullscreen: unref(isMobile),
|
|
11745
11755
|
"append-to-body": ""
|
|
11746
11756
|
}, {
|
|
11747
11757
|
footer: withCtx(() => [
|
|
@@ -11761,12 +11771,12 @@ const _sfc_main$4 = {
|
|
|
11761
11771
|
_hoisted_13
|
|
11762
11772
|
]),
|
|
11763
11773
|
_: 1
|
|
11764
|
-
}, 8, ["modelValue"])
|
|
11774
|
+
}, 8, ["modelValue", "width", "fullscreen"])
|
|
11765
11775
|
], 4);
|
|
11766
11776
|
};
|
|
11767
11777
|
}
|
|
11768
11778
|
};
|
|
11769
|
-
const SCTJMapDrawing = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
11779
|
+
const SCTJMapDrawing = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-eff1c241"]]);
|
|
11770
11780
|
const BimViewer_vue_vue_type_style_index_0_scoped_5d1b1a03_lang = "";
|
|
11771
11781
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-5d1b1a03"), n = n(), popScopeId(), n);
|
|
11772
11782
|
const _hoisted_1$2 = {
|