sctj-components 1.0.70 → 1.0.72
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 +9 -4
- package/lib/sctj-components.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -9610,7 +9610,7 @@ const _sfc_main$4 = {
|
|
|
9610
9610
|
}
|
|
9611
9611
|
};
|
|
9612
9612
|
const SCTJBusinessMapDrawingDialog = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-d0bea808"]]);
|
|
9613
|
-
const
|
|
9613
|
+
const index_vue_vue_type_style_index_0_scoped_c4c32d62_lang = "";
|
|
9614
9614
|
const _hoisted_1$2 = { class: "controls" };
|
|
9615
9615
|
const _sfc_main$3 = {
|
|
9616
9616
|
__name: "index",
|
|
@@ -9653,7 +9653,7 @@ const _sfc_main$3 = {
|
|
|
9653
9653
|
required: true
|
|
9654
9654
|
}
|
|
9655
9655
|
},
|
|
9656
|
-
emits: ["moving"],
|
|
9656
|
+
emits: ["moving", "reset"],
|
|
9657
9657
|
setup(__props, { emit }) {
|
|
9658
9658
|
const props = __props;
|
|
9659
9659
|
const mapContainerRef = ref$1(null);
|
|
@@ -9674,7 +9674,8 @@ const _sfc_main$3 = {
|
|
|
9674
9674
|
return 100;
|
|
9675
9675
|
if (pointCount >= HIGH_THRESHOLD)
|
|
9676
9676
|
return 12.5;
|
|
9677
|
-
const
|
|
9677
|
+
const linear = (pointCount - LOW_THRESHOLD) / (HIGH_THRESHOLD - LOW_THRESHOLD);
|
|
9678
|
+
const t = Math.pow(linear, 0.35);
|
|
9678
9679
|
const raw = 100 - t * (100 - 12.5);
|
|
9679
9680
|
return SPEED_OPTIONS.reduce(
|
|
9680
9681
|
(prev, curr) => Math.abs(curr - raw) < Math.abs(prev - raw) ? curr : prev
|
|
@@ -9771,6 +9772,9 @@ const _sfc_main$3 = {
|
|
|
9771
9772
|
map.value.setFitView();
|
|
9772
9773
|
moveMarker.value.on("moving", (e) => {
|
|
9773
9774
|
emit("moving", e);
|
|
9775
|
+
if (!isPlayed.value) {
|
|
9776
|
+
isPlayed.value = true;
|
|
9777
|
+
}
|
|
9774
9778
|
});
|
|
9775
9779
|
};
|
|
9776
9780
|
const startPlay = () => {
|
|
@@ -9810,6 +9814,7 @@ const _sfc_main$3 = {
|
|
|
9810
9814
|
isPlayed.value = false;
|
|
9811
9815
|
const initialPoint = formatPath(props.pathPoints)[0];
|
|
9812
9816
|
passedPolyline.value.setPath([initialPoint]);
|
|
9817
|
+
emit("reset");
|
|
9813
9818
|
};
|
|
9814
9819
|
const handleSpeedChange = (value) => {
|
|
9815
9820
|
if (isPlaying.value) {
|
|
@@ -9926,7 +9931,7 @@ const _sfc_main$3 = {
|
|
|
9926
9931
|
};
|
|
9927
9932
|
}
|
|
9928
9933
|
};
|
|
9929
|
-
const SCTJTrackPlayback = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
9934
|
+
const SCTJTrackPlayback = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-c4c32d62"]]);
|
|
9930
9935
|
const BimViewer_vue_vue_type_style_index_0_scoped_89f55b38_lang = "";
|
|
9931
9936
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-89f55b38"), n = n(), popScopeId(), n);
|
|
9932
9937
|
const _hoisted_1$1 = {
|