sctj-components 1.0.60 → 1.0.62
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 +17 -10
- package/lib/sctj-components.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -9436,7 +9436,7 @@ const _sfc_main$3 = {
|
|
|
9436
9436
|
}
|
|
9437
9437
|
};
|
|
9438
9438
|
const SCTJBusinessMapDrawingDialog = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-d0bea808"]]);
|
|
9439
|
-
const
|
|
9439
|
+
const index_vue_vue_type_style_index_0_scoped_3a5f08b0_lang = "";
|
|
9440
9440
|
const _hoisted_1$1 = { class: "controls" };
|
|
9441
9441
|
const _sfc_main$2 = {
|
|
9442
9442
|
__name: "index",
|
|
@@ -9488,7 +9488,7 @@ const _sfc_main$2 = {
|
|
|
9488
9488
|
const startMarker = ref$1(null);
|
|
9489
9489
|
const endMarker = ref$1(null);
|
|
9490
9490
|
const isPlaying = ref$1(false);
|
|
9491
|
-
const playSpeed = ref$1(
|
|
9491
|
+
const playSpeed = ref$1(1.25);
|
|
9492
9492
|
const passedPolyline = ref$1(null);
|
|
9493
9493
|
const isPlayed = ref$1(false);
|
|
9494
9494
|
let AMapInstance = null;
|
|
@@ -9578,12 +9578,18 @@ const _sfc_main$2 = {
|
|
|
9578
9578
|
});
|
|
9579
9579
|
map.value.add([polyline.value, startMarker.value, endMarker.value, moveMarker.value, passedPolyline.value]);
|
|
9580
9580
|
map.value.setFitView();
|
|
9581
|
+
let lastUpdateTime = 0;
|
|
9582
|
+
const throttleInterval = 100;
|
|
9581
9583
|
moveMarker.value.on("moving", (e) => {
|
|
9582
9584
|
if (!isPlayed.value) {
|
|
9583
9585
|
isPlayed.value = true;
|
|
9584
9586
|
}
|
|
9585
9587
|
passedPolyline.value.setPath(e.passedPath);
|
|
9586
|
-
|
|
9588
|
+
const now = Date.now();
|
|
9589
|
+
if (now - lastUpdateTime >= throttleInterval) {
|
|
9590
|
+
map.value.setCenter(e.target.getPosition(), false);
|
|
9591
|
+
lastUpdateTime = now;
|
|
9592
|
+
}
|
|
9587
9593
|
});
|
|
9588
9594
|
};
|
|
9589
9595
|
const startPlay = () => {
|
|
@@ -9650,6 +9656,7 @@ const _sfc_main$2 = {
|
|
|
9650
9656
|
});
|
|
9651
9657
|
onBeforeUnmount(() => {
|
|
9652
9658
|
if (moveMarker.value) {
|
|
9659
|
+
moveMarker.value.off("moving");
|
|
9653
9660
|
moveMarker.value.stopMove();
|
|
9654
9661
|
}
|
|
9655
9662
|
if (map.value) {
|
|
@@ -9713,21 +9720,21 @@ const _sfc_main$2 = {
|
|
|
9713
9720
|
}, {
|
|
9714
9721
|
default: withCtx(() => [
|
|
9715
9722
|
createVNode(_component_el_option, {
|
|
9716
|
-
value:
|
|
9723
|
+
value: 10,
|
|
9717
9724
|
label: "1x"
|
|
9718
9725
|
}),
|
|
9719
9726
|
createVNode(_component_el_option, {
|
|
9720
|
-
value:
|
|
9727
|
+
value: 5,
|
|
9721
9728
|
label: "2x"
|
|
9722
9729
|
}),
|
|
9723
9730
|
createVNode(_component_el_option, {
|
|
9724
|
-
value:
|
|
9731
|
+
value: 2.5,
|
|
9725
9732
|
label: "4x"
|
|
9726
|
-
}),
|
|
9733
|
+
}, null, 8, ["value"]),
|
|
9727
9734
|
createVNode(_component_el_option, {
|
|
9728
|
-
value:
|
|
9735
|
+
value: 1.25,
|
|
9729
9736
|
label: "8x"
|
|
9730
|
-
})
|
|
9737
|
+
}, null, 8, ["value"])
|
|
9731
9738
|
]),
|
|
9732
9739
|
_: 1
|
|
9733
9740
|
}, 8, ["modelValue"])
|
|
@@ -9736,7 +9743,7 @@ const _sfc_main$2 = {
|
|
|
9736
9743
|
};
|
|
9737
9744
|
}
|
|
9738
9745
|
};
|
|
9739
|
-
const SCTJTrackPlayback = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
9746
|
+
const SCTJTrackPlayback = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-3a5f08b0"]]);
|
|
9740
9747
|
const BimViewer_vue_vue_type_style_index_0_scoped_89f55b38_lang = "";
|
|
9741
9748
|
const _withScopeId = (n) => (pushScopeId("data-v-89f55b38"), n = n(), popScopeId(), n);
|
|
9742
9749
|
const _hoisted_1 = {
|