northdata-viz 1.287.10 → 1.288.10
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/package.json +1 -1
- package/viz.esm.js +12 -4
- package/viz.esm.js.map +1 -1
- package/viz.min.js +2 -2
- package/viz.min.js.map +1 -1
package/package.json
CHANGED
package/viz.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! northdata-viz V1.
|
|
1
|
+
/*! northdata-viz V1.288.10 */
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
4
|
/***/ 100:
|
|
@@ -463,8 +463,8 @@ module.exports = debounce;
|
|
|
463
463
|
/************************************************************************/
|
|
464
464
|
|
|
465
465
|
;// ./src/ts/env.ts
|
|
466
|
-
var VERSION = "1.
|
|
467
|
-
var VERSION_PREFIX = (/* unused pure expression or super */ null && ("/ui/v1-
|
|
466
|
+
var VERSION = "1.288.10";
|
|
467
|
+
var VERSION_PREFIX = (/* unused pure expression or super */ null && ("/ui/v1-288-10"));
|
|
468
468
|
|
|
469
469
|
;// ./src/ts/util/params.ts
|
|
470
470
|
function clone(object) {
|
|
@@ -10245,6 +10245,7 @@ var vita = function (widget, data) {
|
|
|
10245
10245
|
var lineHeight = 18;
|
|
10246
10246
|
var itemMargin = 5;
|
|
10247
10247
|
var outerTextMargin = 2;
|
|
10248
|
+
var barGap = 0.5;
|
|
10248
10249
|
var maxTriangleWidth = lineHeight * 0.71;
|
|
10249
10250
|
var lines = data.lines;
|
|
10250
10251
|
if (!lines || !lines.length) {
|
|
@@ -10392,10 +10393,17 @@ var vita = function (widget, data) {
|
|
|
10392
10393
|
if (openStarted) {
|
|
10393
10394
|
barLeft += maxTriangleWidth;
|
|
10394
10395
|
}
|
|
10396
|
+
else {
|
|
10397
|
+
barLeft += barGap;
|
|
10398
|
+
}
|
|
10395
10399
|
var barRight = xScale(endTime);
|
|
10396
10400
|
if (bar.openEnded && bar.end) {
|
|
10397
|
-
barRight
|
|
10401
|
+
barRight -= maxTriangleWidth;
|
|
10402
|
+
}
|
|
10403
|
+
else {
|
|
10404
|
+
barRight -= barGap;
|
|
10398
10405
|
}
|
|
10406
|
+
barRight = Math.max(barLeft, barRight);
|
|
10399
10407
|
var barWidth = barRight - barLeft;
|
|
10400
10408
|
var textX = barLeft + barWidth / 2;
|
|
10401
10409
|
// Use space provided by open ended bars to make short bars more legible
|