chbim-time-axis-v2 0.0.196 → 0.0.197

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.
@@ -13130,7 +13130,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13130
13130
  maxTime = bEnd;
13131
13131
  });
13132
13132
  }
13133
- if (t.type === "instant" && t.instants) {
13133
+ if (t.instants && t.instants.length > 0) {
13134
13134
  t.instants.forEach((i) => {
13135
13135
  const tVal = dayjs(i.time).valueOf();
13136
13136
  if (!isNaN(tVal)) {
@@ -13145,8 +13145,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13145
13145
  t.children.forEach(checkTask);
13146
13146
  };
13147
13147
  tasks.forEach(checkTask);
13148
- if (minTime < maxTime) {
13149
- const duration = maxTime - minTime;
13148
+ if (minTime <= maxTime && minTime !== Number.MAX_SAFE_INTEGER) {
13149
+ let duration = maxTime - minTime;
13150
+ if (duration === 0) {
13151
+ duration = 1e3 * 60 * 60 * 24;
13152
+ minTime = minTime - duration / 2;
13153
+ maxTime = maxTime + duration / 2;
13154
+ }
13150
13155
  const padding = duration * 0.1;
13151
13156
  viewStartTime.value = minTime - padding;
13152
13157
  viewEndTime.value = maxTime + padding;
@@ -13715,8 +13720,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13715
13720
  };
13716
13721
  }
13717
13722
  });
13718
- const CesiumGantt_vue_vue_type_style_index_0_scoped_1991ca92_lang = "";
13719
- const CesiumGantt = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1991ca92"]]);
13723
+ const CesiumGantt_vue_vue_type_style_index_0_scoped_e98af27c_lang = "";
13724
+ const CesiumGantt = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e98af27c"]]);
13720
13725
  class ViewportRoam {
13721
13726
  constructor(viewer, data, intervals) {
13722
13727
  __publicField(this, "viewer");