chbim-time-axis-v2 0.0.14 → 0.0.15
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/README.md +0 -4
- package/dist/chbim-time-axis-v2.es.js +20 -22
- package/dist/chbim-time-axis-v2.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12345,27 +12345,25 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
12345
12345
|
return !(i.left < scrollLeft.value - 100 || i.left > scrollLeft.value + containerWidth.value + 100);
|
|
12346
12346
|
});
|
|
12347
12347
|
}
|
|
12348
|
-
|
|
12349
|
-
|
|
12350
|
-
|
|
12351
|
-
|
|
12352
|
-
|
|
12353
|
-
|
|
12354
|
-
|
|
12355
|
-
|
|
12356
|
-
|
|
12357
|
-
|
|
12358
|
-
|
|
12359
|
-
|
|
12360
|
-
|
|
12361
|
-
|
|
12362
|
-
|
|
12363
|
-
|
|
12364
|
-
|
|
12365
|
-
barData.limitWidth = limitWidth;
|
|
12366
|
-
}
|
|
12367
|
-
bars.push(barData);
|
|
12348
|
+
const shouldRender = isVisible || task.type === "instant" || task.type === "block" && task.allowInstant;
|
|
12349
|
+
if (shouldRender) {
|
|
12350
|
+
const barData = {
|
|
12351
|
+
id: task.id,
|
|
12352
|
+
top: index * 30,
|
|
12353
|
+
left: hasMainBar ? startX : 0,
|
|
12354
|
+
width: hasMainBar ? width : 0,
|
|
12355
|
+
hasMainBar,
|
|
12356
|
+
name: task.name,
|
|
12357
|
+
color: task.type === "group" ? "#4a90e2" : "#50e3c2",
|
|
12358
|
+
originalTask: task,
|
|
12359
|
+
blocks: blocks.length > 0 ? blocks : void 0,
|
|
12360
|
+
instants: instants.length > 0 ? instants : void 0
|
|
12361
|
+
};
|
|
12362
|
+
if (hasLimit) {
|
|
12363
|
+
barData.limitLeft = limitLeft;
|
|
12364
|
+
barData.limitWidth = limitWidth;
|
|
12368
12365
|
}
|
|
12366
|
+
bars.push(barData);
|
|
12369
12367
|
}
|
|
12370
12368
|
});
|
|
12371
12369
|
return bars;
|
|
@@ -12737,8 +12735,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
12737
12735
|
};
|
|
12738
12736
|
}
|
|
12739
12737
|
});
|
|
12740
|
-
const
|
|
12741
|
-
const TimelineChart = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
12738
|
+
const TimelineChart_vue_vue_type_style_index_0_scoped_761ad497_lang = "";
|
|
12739
|
+
const TimelineChart = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-761ad497"]]);
|
|
12742
12740
|
const _hoisted_1 = { class: "toolbar" };
|
|
12743
12741
|
const _hoisted_2 = { style: { "flex": "1", "display": "flex", "align-items": "center", "height": "100%" } };
|
|
12744
12742
|
const _hoisted_3 = { class: "left-controls" };
|