chbim-time-axis-v2 0.0.191 → 0.0.192
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.
|
@@ -12922,7 +12922,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12922
12922
|
const handleRowMouseLeave = () => {
|
|
12923
12923
|
hoveredTaskId.value = null;
|
|
12924
12924
|
};
|
|
12925
|
-
const
|
|
12925
|
+
const getInitialTime = () => {
|
|
12926
|
+
var _a;
|
|
12927
|
+
const clock = props.clock || ((_a = props.viewer) == null ? void 0 : _a.clock);
|
|
12928
|
+
const Cesium2 = window.Cesium;
|
|
12929
|
+
if (clock && Cesium2) {
|
|
12930
|
+
try {
|
|
12931
|
+
const now = Cesium2.JulianDate.toDate(clock.currentTime);
|
|
12932
|
+
return dayjs(now).toISOString();
|
|
12933
|
+
} catch (e) {
|
|
12934
|
+
console.warn("Failed to init time from clock", e);
|
|
12935
|
+
}
|
|
12936
|
+
}
|
|
12937
|
+
return dayjs().toISOString();
|
|
12938
|
+
};
|
|
12939
|
+
const currentTime = ref(getInitialTime());
|
|
12926
12940
|
const viewStartTime = ref(dayjs().subtract(1, "month").valueOf());
|
|
12927
12941
|
const viewEndTime = ref(dayjs().add(1, "month").valueOf());
|
|
12928
12942
|
const scale = ref(DEFAULT_SCALE);
|
|
@@ -13634,8 +13648,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13634
13648
|
};
|
|
13635
13649
|
}
|
|
13636
13650
|
});
|
|
13637
|
-
const
|
|
13638
|
-
const CesiumGantt = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
13651
|
+
const CesiumGantt_vue_vue_type_style_index_0_scoped_87a98505_lang = "";
|
|
13652
|
+
const CesiumGantt = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-87a98505"]]);
|
|
13639
13653
|
class ViewportRoam {
|
|
13640
13654
|
constructor(viewer, data, intervals) {
|
|
13641
13655
|
__publicField(this, "viewer");
|