@hpcc-js/chart 3.3.1 → 3.3.2

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/dist/index.js CHANGED
@@ -1,4 +1,3 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".chart_Axis{fill:#000;font:10px sans-serif}.chart_Axis .axis .tick>text{font:10px sans-serif}.chart_Axis .axis path.domain,.chart_Axis .axis .tick line{fill:none;stroke:#000}.chart_Axis .guide path.domain{fill:none;stroke:none}.chart_Axis .guide .tick line{fill:none;stroke:#d3d3d3;opacity:.7}.chart_Axis .guide .tick.guide-0 line{stroke:#000;stroke-width:1;stroke-dasharray:3 5}.chart_Axis line,.chart_Axis path{shape-rendering:crispEdges}.chart_XYAxis .axis{fill:#000;font:10px sans-serif}.chart_XYAxis .tick>text{font:10px sans-serif}.chart_XYAxis .focus .chart_Axis.value .tick{visibility:hidden}.chart_XYAxis .axis path,.chart_XYAxis .axis line{fill:none;stroke:#000;shape-rendering:crispEdges}.chart_XYAxis .region{opacity:.33}.chart_XYAxis .brush rect.background{z-index:-999}.chart_XYAxis .brush .selection{stroke:#4682b4;stroke-opacity:1;stroke-width:1px;fill:#4682b4;fill-opacity:.125;shape-rendering:crispEdges}.chart_XYAxis .brush path.handle--custom{fill:#eee;stroke:#666}.chart_Scatter .pointShape,.chart_Scatter .line,.chart_Scatter .area{pointer-events:none}.chart_Scatter .point .pointSelection{fill:none;stroke:none;pointer-events:all}.chart_Scatter .point .pointSelection.selected{fill:none;stroke:red}.chart_Column .columnRect{fill:#4682b4;cursor:pointer}.chart_Column .data.axis path{display:none}.chart_Column .columnRect{stroke:transparent;border-width:1.5px}.chart_Column .columnRect.selected{stroke:red}.chart_Bubble circle{cursor:pointer}.chart_Bubble .selected circle{stroke:red;stroke-width:1.5px}.chart_Bubble .common_FAChar{fill:#fff;pointer-events:none}.chart_Bubble .common_Text{pointer-events:none}.chart_Bullet .domain{opacity:0}.chart_Bullet .bullet{border:solid 1px;border-color:transparent;font:10px sans-serif}.chart_Bullet .bullet.selected{border-color:red}.chart_Bullet .bullet.over{border-color:orange}.chart_Bullet .bullet.selected.over{border-color:red}.chart_Bullet .bullet .marker{stroke:#000;stroke-width:2px}.chart_Bullet .bullet .tick line{stroke:#666;stroke-width:.5px}.chart_Bullet .bullet .range.s0{fill:#eee}.chart_Bullet .bullet .range.s1{fill:#ddd}.chart_Bullet .bullet .range.s2{fill:#ccc}.chart_Bullet .bullet .measure.s0{fill:#b0c4de}.chart_Bullet .bullet .measure.s1{fill:#4682b4}.chart_Bullet .bullet .title{font-size:14px;font-weight:700}.chart_Bullet .bullet .subtitle{fill:#999}.chart_Pie path{cursor:pointer}.chart_Pie>g>text{cursor:pointer}.chart_Pie .arc path{stroke:#fff;stroke-width:.75px}.chart_Pie .arc.selected path{stroke:red;stroke-width:1.5px}.chart_Pie polyline{opacity:.3;stroke:#000;stroke-width:2px;fill:none}.chart_HexBin .hexagon{fill:none;stroke:#000;stroke-width:.5px}.chart_HexBin .hexagon.selected{stroke:red}.chart_Line .dataLine{fill:none;stroke:#4682b4;stroke-width:1.5px}.chart_Radar .pointShape,.chart_Radar .area{pointer-events:none}.chart_Radar .point .pointSelection{fill:none;stroke:none;pointer-events:all}.chart_Radar .point .pointSelection.selected{fill:none;stroke:red}.chart_RadialBar path.arc{opacity:.9;transition:opacity .5s}.chart_RadialBar path.arc.selected{stroke:red}.chart_RadialBar path.arc:hover{opacity:.7}.chart_RadialBar .axis line,.chart_RadialBar .axis circle{stroke:#ccc;stroke-width:1px}.chart_RadialBar .axis circle{fill:none}.chart_RadialBar .r.axis text{text-anchor:end}.chart_Summary{width:225px;height:150px;font-size:14px}.chart_Summary .content h2{font-weight:700;font-size:3em;margin-left:10px;margin-top:10px;margin-bottom:10px}.chart_Summary .bgIcon:before{position:absolute;font-family:FontAwesome;font-size:5.5em;opacity:.4;top:.5em;right:15px}.chart_Summary .bgIcon{position:relative}.chart_Summary .content{float:left;width:100%;height:100%;background-color:#efd752}.chart_Summary .content div{margin-top:-1.1em;font-size:1.1em;opacity:.8}.chart_Summary .content .text{padding-left:10px}.chart_Summary .content .more{position:absolute;bottom:0;width:100%;height:3em;line-height:3em}.chart_Summary .content .more i{padding-left:10px;padding-right:.5em}.other_Wordcloud text{cursor:pointer}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
1
  var __defProp = Object.defineProperty;
3
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value;
4
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key != "symbol" ? key + "" : key, value);
@@ -169,7 +168,6 @@ Linear$1.prototype = {
169
168
  break;
170
169
  case 1:
171
170
  this._point = 2;
172
- // proceed
173
171
  default:
174
172
  this._context.lineTo(x2, y2);
175
173
  break;
@@ -319,7 +317,6 @@ Basis$1.prototype = {
319
317
  switch (this._point) {
320
318
  case 3:
321
319
  point$7(this, this._x1, this._y1);
322
- // proceed
323
320
  case 2:
324
321
  this._context.lineTo(this._x1, this._y1);
325
322
  break;
@@ -336,7 +333,6 @@ Basis$1.prototype = {
336
333
  break;
337
334
  case 2:
338
335
  this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
339
- // proceed
340
336
  default:
341
337
  point$7(this, x2, y2);
342
338
  break;
@@ -420,7 +416,6 @@ Cardinal$1.prototype = {
420
416
  break;
421
417
  case 2:
422
418
  this._point = 3;
423
- // proceed
424
419
  default:
425
420
  point$6(this, x2, y2);
426
421
  break;
@@ -486,7 +481,6 @@ CatmullRom$1.prototype = {
486
481
  break;
487
482
  case 2:
488
483
  this._point = 3;
489
- // proceed
490
484
  default:
491
485
  point$5(this, x2, y2);
492
486
  break;
@@ -629,7 +623,6 @@ Step$1.prototype = {
629
623
  break;
630
624
  case 1:
631
625
  this._point = 2;
632
- // proceed
633
626
  default: {
634
627
  if (this._t <= 0)
635
628
  this._context.lineTo(this._x, y2), this._context.lineTo(x2, y2);
@@ -894,7 +887,6 @@ class Axis extends SVGWidget {
894
887
  });
895
888
  break;
896
889
  }
897
- /* falls through */
898
890
  default:
899
891
  textSelection.style("text-anchor", isHoriztontal ? "middle" : isLeft ? "end" : "start").attr("dy", isHoriztontal ? (isBottom ? 0.71 : 0) + "em" : "0.32em").attr("dx", 0).attr("visibility", null).attr("transform", "rotate(0)");
900
892
  }
@@ -2548,7 +2540,7 @@ function d3ContourDensity() {
2548
2540
  data.forEach(function(d, i, data2) {
2549
2541
  var xi = +x2(d, i, data2) + o >> k, yi = +y2(d, i, data2) + o >> k, wi = +weight(d, i, data2);
2550
2542
  xi >= 0 && xi < n && yi >= 0 && yi < m && (values0[xi + yi * n] += wi);
2551
- }), blurX({ width: n, height: m, data: values0 }, { width: n, height: m, data: values1 }, r >> k), blurY({ width: n, height: m, data: values1 }, { width: n, height: m, data: values0 }, r >> k), blurX({ width: n, height: m, data: values0 }, { width: n, height: m, data: values1 }, r >> k), blurY({ width: n, height: m, data: values1 }, { width: n, height: m, data: values0 }, r >> k), blurX({ width: n, height: m, data: values0 }, { width: n, height: m, data: values1 }, r >> k), blurY({ width: n, height: m, data: values1 }, { width: n, height: m, data: values0 }, r >> k);
2543
+ }), blurX({ width: n, height: m, data: values0 }, { data: values1 }, r >> k), blurY({ width: n, height: m, data: values1 }, { data: values0 }, r >> k), blurX({ width: n, height: m, data: values0 }, { data: values1 }, r >> k), blurY({ width: n, height: m, data: values1 }, { data: values0 }, r >> k), blurX({ width: n, height: m, data: values0 }, { data: values1 }, r >> k), blurY({ width: n, height: m, data: values1 }, { data: values0 }, r >> k);
2552
2544
  var tz = threshold(values0);
2553
2545
  if (!Array.isArray(tz)) {
2554
2546
  var stop = max$1(values0);
@@ -3047,7 +3039,6 @@ Linear.prototype = {
3047
3039
  break;
3048
3040
  case 1:
3049
3041
  this._point = 2;
3050
- // proceed
3051
3042
  default:
3052
3043
  this._context.lineTo(x2, y2);
3053
3044
  break;
@@ -3112,7 +3103,6 @@ Basis.prototype = {
3112
3103
  switch (this._point) {
3113
3104
  case 3:
3114
3105
  point$3(this, this._x1, this._y1);
3115
- // proceed
3116
3106
  case 2:
3117
3107
  this._context.lineTo(this._x1, this._y1);
3118
3108
  break;
@@ -3129,7 +3119,6 @@ Basis.prototype = {
3129
3119
  break;
3130
3120
  case 2:
3131
3121
  this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
3132
- // proceed
3133
3122
  default:
3134
3123
  point$3(this, x2, y2);
3135
3124
  break;
@@ -3210,7 +3199,6 @@ Cardinal.prototype = {
3210
3199
  break;
3211
3200
  case 2:
3212
3201
  this._point = 3;
3213
- // proceed
3214
3202
  default:
3215
3203
  point$2(this, x2, y2);
3216
3204
  break;
@@ -3306,7 +3294,6 @@ CardinalOpen.prototype = {
3306
3294
  break;
3307
3295
  case 3:
3308
3296
  this._point = 4;
3309
- // proceed
3310
3297
  default:
3311
3298
  point$2(this, x2, y2);
3312
3299
  break;
@@ -3372,7 +3359,6 @@ CatmullRom.prototype = {
3372
3359
  break;
3373
3360
  case 2:
3374
3361
  this._point = 3;
3375
- // proceed
3376
3362
  default:
3377
3363
  point$1(this, x2, y2);
3378
3364
  break;
@@ -3476,7 +3462,6 @@ CatmullRomOpen.prototype = {
3476
3462
  break;
3477
3463
  case 3:
3478
3464
  this._point = 4;
3479
- // proceed
3480
3465
  default:
3481
3466
  point$1(this, x2, y2);
3482
3467
  break;
@@ -3850,7 +3835,7 @@ var _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol"
3850
3835
  }, topBottomDynamic = function(align, x2) {
3851
3836
  return (align === "dynamic" || align === "top" || align === "bottom") && (x2 < 0 ? align = "right" : align = "left"), align;
3852
3837
  }, orientationTopBottom = ["topBottom", "top", "bottom"], orientationLeftRight = ["leftRight", "left", "right"], noteAlignment = function(_ref) {
3853
- var _ref$padding = _ref.padding, padding = _ref$padding === void 0 ? 0 : _ref$padding, _ref$bbox = _ref.bbox, bbox = _ref$bbox === void 0 ? { x: 0, y: 0, width: 0, height: 0 } : _ref$bbox, align = _ref.align, orientation = _ref.orientation, _ref$offset = _ref.offset, offset = _ref$offset === void 0 ? { x: 0, y: 0 } : _ref$offset, x2 = -bbox.x, y2 = 0;
3838
+ var _ref$padding = _ref.padding, padding = _ref$padding === void 0 ? 0 : _ref$padding, _ref$bbox = _ref.bbox, bbox = _ref$bbox === void 0 ? { x: 0, width: 0, height: 0 } : _ref$bbox, align = _ref.align, orientation = _ref.orientation, _ref$offset = _ref.offset, offset = _ref$offset === void 0 ? { x: 0, y: 0 } : _ref$offset, x2 = -bbox.x, y2 = 0;
3854
3839
  return orientationTopBottom.indexOf(orientation) !== -1 ? (align = topBottomDynamic(align, offset.x), offset.y < 0 && orientation === "topBottom" || orientation === "top" ? y2 -= bbox.height + padding : y2 += padding, align === "middle" ? x2 -= bbox.width / 2 : align === "right" && (x2 -= bbox.width)) : orientationLeftRight.indexOf(orientation) !== -1 && (align = leftRightDynamic(align, offset.y), offset.x < 0 && orientation === "leftRight" || orientation === "left" ? x2 -= bbox.width + padding : x2 += padding, align === "middle" ? y2 -= bbox.height / 2 : align === "top" && (y2 -= bbox.height)), { x: x2, y: y2 };
3855
3840
  }, lineBuilder = function(_ref) {
3856
3841
  var data = _ref.data, _ref$curve = _ref.curve, curve = _ref$curve === void 0 ? curveLinear : _ref$curve, canvasContext = _ref.canvasContext, className = _ref.className, classID = _ref.classID, lineGen2 = line().curve(curve), builder = {
@@ -6172,3 +6157,4 @@ export {
6172
6157
  XYAxis
6173
6158
  };
6174
6159
  //# sourceMappingURL=index.js.map
6160
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".chart_Axis{fill:#000;font:10px sans-serif}.chart_Axis .axis .tick>text{font:10px sans-serif}.chart_Axis .axis path.domain,.chart_Axis .axis .tick line{fill:none;stroke:#000}.chart_Axis .guide path.domain{fill:none;stroke:none}.chart_Axis .guide .tick line{fill:none;stroke:#d3d3d3;opacity:.7}.chart_Axis .guide .tick.guide-0 line{stroke:#000;stroke-width:1;stroke-dasharray:3 5}.chart_Axis line,.chart_Axis path{shape-rendering:crispEdges}.chart_XYAxis .axis{fill:#000;font:10px sans-serif}.chart_XYAxis .tick>text{font:10px sans-serif}.chart_XYAxis .focus .chart_Axis.value .tick{visibility:hidden}.chart_XYAxis .axis path,.chart_XYAxis .axis line{fill:none;stroke:#000;shape-rendering:crispEdges}.chart_XYAxis .region{opacity:.33}.chart_XYAxis .brush rect.background{z-index:-999}.chart_XYAxis .brush .selection{stroke:#4682b4;stroke-opacity:1;stroke-width:1px;fill:#4682b4;fill-opacity:.125;shape-rendering:crispEdges}.chart_XYAxis .brush path.handle--custom{fill:#eee;stroke:#666}.chart_Scatter .pointShape,.chart_Scatter .line,.chart_Scatter .area{pointer-events:none}.chart_Scatter .point .pointSelection{fill:none;stroke:none;pointer-events:all}.chart_Scatter .point .pointSelection.selected{fill:none;stroke:red}.chart_Column .columnRect{fill:#4682b4;cursor:pointer}.chart_Column .data.axis path{display:none}.chart_Column .columnRect{stroke:transparent;border-width:1.5px}.chart_Column .columnRect.selected{stroke:red}.chart_Bubble circle{cursor:pointer}.chart_Bubble .selected circle{stroke:red;stroke-width:1.5px}.chart_Bubble .common_FAChar{fill:#fff;pointer-events:none}.chart_Bubble .common_Text{pointer-events:none}.chart_Bullet .domain{opacity:0}.chart_Bullet .bullet{border:solid 1px;border-color:transparent;font:10px sans-serif}.chart_Bullet .bullet.selected{border-color:red}.chart_Bullet .bullet.over{border-color:orange}.chart_Bullet .bullet.selected.over{border-color:red}.chart_Bullet .bullet .marker{stroke:#000;stroke-width:2px}.chart_Bullet .bullet .tick line{stroke:#666;stroke-width:.5px}.chart_Bullet .bullet .range.s0{fill:#eee}.chart_Bullet .bullet .range.s1{fill:#ddd}.chart_Bullet .bullet .range.s2{fill:#ccc}.chart_Bullet .bullet .measure.s0{fill:#b0c4de}.chart_Bullet .bullet .measure.s1{fill:#4682b4}.chart_Bullet .bullet .title{font-size:14px;font-weight:700}.chart_Bullet .bullet .subtitle{fill:#999}.chart_Pie path{cursor:pointer}.chart_Pie>g>text{cursor:pointer}.chart_Pie .arc path{stroke:#fff;stroke-width:.75px}.chart_Pie .arc.selected path{stroke:red;stroke-width:1.5px}.chart_Pie polyline{opacity:.3;stroke:#000;stroke-width:2px;fill:none}.chart_HexBin .hexagon{fill:none;stroke:#000;stroke-width:.5px}.chart_HexBin .hexagon.selected{stroke:red}.chart_Line .dataLine{fill:none;stroke:#4682b4;stroke-width:1.5px}.chart_Radar .pointShape,.chart_Radar .area{pointer-events:none}.chart_Radar .point .pointSelection{fill:none;stroke:none;pointer-events:all}.chart_Radar .point .pointSelection.selected{fill:none;stroke:red}.chart_RadialBar path.arc{opacity:.9;transition:opacity .5s}.chart_RadialBar path.arc.selected{stroke:red}.chart_RadialBar path.arc:hover{opacity:.7}.chart_RadialBar .axis line,.chart_RadialBar .axis circle{stroke:#ccc;stroke-width:1px}.chart_RadialBar .axis circle{fill:none}.chart_RadialBar .r.axis text{text-anchor:end}.chart_Summary{width:225px;height:150px;font-size:14px}.chart_Summary .content h2{font-weight:700;font-size:3em;margin-left:10px;margin-top:10px;margin-bottom:10px}.chart_Summary .bgIcon:before{position:absolute;font-family:FontAwesome;font-size:5.5em;opacity:.4;top:.5em;right:15px}.chart_Summary .bgIcon{position:relative}.chart_Summary .content{float:left;width:100%;height:100%;background-color:#efd752}.chart_Summary .content div{margin-top:-1.1em;font-size:1.1em;opacity:.8}.chart_Summary .content .text{padding-left:10px}.chart_Summary .content .more{position:absolute;bottom:0;width:100%;height:3em;line-height:3em}.chart_Summary .content .more i{padding-left:10px;padding-right:.5em}.other_Wordcloud text{cursor:pointer}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();