cx 24.3.8 → 24.3.9
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/charts.js +35 -35
- package/dist/data.js +37 -27
- package/dist/manifest.js +765 -741
- package/dist/svg.js +11 -11
- package/dist/ui.js +213 -86
- package/dist/util.js +6 -1
- package/dist/widgets.js +141 -147
- package/package.json +1 -1
- package/src/data/Expression.d.ts +17 -16
- package/src/data/Expression.js +220 -212
- package/src/data/StringTemplate.d.ts +15 -14
- package/src/data/StringTemplate.js +92 -85
- package/src/ui/Culture.d.ts +47 -23
- package/src/ui/Culture.js +132 -76
- package/src/ui/CultureScope.d.ts +10 -0
- package/src/ui/CultureScope.js +53 -0
- package/src/ui/Format.js +107 -87
- package/src/ui/index.d.ts +43 -42
- package/src/ui/index.js +45 -44
- package/src/util/Format.d.ts +18 -14
- package/src/util/Format.js +234 -242
package/dist/charts.js
CHANGED
|
@@ -156,10 +156,10 @@ Rect.prototype.t = 0; //top
|
|
|
156
156
|
Rect.prototype.b = 0; //bottom
|
|
157
157
|
|
|
158
158
|
var BoundedObject = /*#__PURE__*/ (function (_PureContainer) {
|
|
159
|
-
_inheritsLoose(BoundedObject, _PureContainer);
|
|
160
159
|
function BoundedObject() {
|
|
161
160
|
return _PureContainer.apply(this, arguments) || this;
|
|
162
161
|
}
|
|
162
|
+
_inheritsLoose(BoundedObject, _PureContainer);
|
|
163
163
|
var _proto = BoundedObject.prototype;
|
|
164
164
|
_proto.declareData = function declareData() {
|
|
165
165
|
var _PureContainer$protot;
|
|
@@ -221,10 +221,10 @@ BoundedObject.prototype.isPureContainer = false;
|
|
|
221
221
|
BoundedObject.prototype.styled = true;
|
|
222
222
|
|
|
223
223
|
var Axis = /*#__PURE__*/ (function (_BoundedObject) {
|
|
224
|
-
_inheritsLoose(Axis, _BoundedObject);
|
|
225
224
|
function Axis() {
|
|
226
225
|
return _BoundedObject.apply(this, arguments) || this;
|
|
227
226
|
}
|
|
227
|
+
_inheritsLoose(Axis, _BoundedObject);
|
|
228
228
|
var _proto = Axis.prototype;
|
|
229
229
|
_proto.init = function init() {
|
|
230
230
|
if (this.labelAnchor == "auto") this.labelAnchor = this.vertical ? (this.secondary ? "start" : "end") : "middle";
|
|
@@ -474,10 +474,10 @@ Axis.prototype.labelMaxLineLength = 10;
|
|
|
474
474
|
Axis.namespace = "ui.svg.chart.axis";
|
|
475
475
|
|
|
476
476
|
var Chart = /*#__PURE__*/ (function (_BoundedObject) {
|
|
477
|
-
_inheritsLoose(Chart, _BoundedObject);
|
|
478
477
|
function Chart() {
|
|
479
478
|
return _BoundedObject.apply(this, arguments) || this;
|
|
480
479
|
}
|
|
480
|
+
_inheritsLoose(Chart, _BoundedObject);
|
|
481
481
|
var _proto = Chart.prototype;
|
|
482
482
|
_proto.init = function init() {
|
|
483
483
|
_BoundedObject.prototype.init.call(this);
|
|
@@ -532,10 +532,10 @@ Chart.prototype.axesOnTop = false;
|
|
|
532
532
|
Widget.alias("chart", Chart);
|
|
533
533
|
|
|
534
534
|
var PieChart = /*#__PURE__*/ (function (_BoundedObject) {
|
|
535
|
-
_inheritsLoose(PieChart, _BoundedObject);
|
|
536
535
|
function PieChart() {
|
|
537
536
|
return _BoundedObject.apply(this, arguments) || this;
|
|
538
537
|
}
|
|
538
|
+
_inheritsLoose(PieChart, _BoundedObject);
|
|
539
539
|
var _proto = PieChart.prototype;
|
|
540
540
|
_proto.declareData = function declareData() {
|
|
541
541
|
var _BoundedObject$protot;
|
|
@@ -731,10 +731,10 @@ PieChart.prototype.anchors = "0 1 1 0";
|
|
|
731
731
|
PieChart.prototype.angle = 360;
|
|
732
732
|
Widget.alias("pie-slice");
|
|
733
733
|
var PieSlice = /*#__PURE__*/ (function (_Container) {
|
|
734
|
-
_inheritsLoose(PieSlice, _Container);
|
|
735
734
|
function PieSlice() {
|
|
736
735
|
return _Container.apply(this, arguments) || this;
|
|
737
736
|
}
|
|
737
|
+
_inheritsLoose(PieSlice, _Container);
|
|
738
738
|
var _proto3 = PieSlice.prototype;
|
|
739
739
|
_proto3.init = function init() {
|
|
740
740
|
this.selection = Selection.create(this.selection);
|
|
@@ -958,10 +958,10 @@ var Pie = PieChart;
|
|
|
958
958
|
Pie.Slice = PieSlice;
|
|
959
959
|
|
|
960
960
|
var PieLabel = /*#__PURE__*/ (function (_BoundedObject) {
|
|
961
|
-
_inheritsLoose(PieLabel, _BoundedObject);
|
|
962
961
|
function PieLabel() {
|
|
963
962
|
return _BoundedObject.apply(this, arguments) || this;
|
|
964
963
|
}
|
|
964
|
+
_inheritsLoose(PieLabel, _BoundedObject);
|
|
965
965
|
var _proto = PieLabel.prototype;
|
|
966
966
|
_proto.init = function init() {
|
|
967
967
|
this.lineStyle = parseStyle(this.lineStyle);
|
|
@@ -1050,10 +1050,10 @@ PieLabel.prototype.baseClass = "pielabel";
|
|
|
1050
1050
|
PieLabel.prototype.styled = true;
|
|
1051
1051
|
|
|
1052
1052
|
var PieLabelsContainer = /*#__PURE__*/ (function (_BoundedObject) {
|
|
1053
|
-
_inheritsLoose(PieLabelsContainer, _BoundedObject);
|
|
1054
1053
|
function PieLabelsContainer() {
|
|
1055
1054
|
return _BoundedObject.apply(this, arguments) || this;
|
|
1056
1055
|
}
|
|
1056
|
+
_inheritsLoose(PieLabelsContainer, _BoundedObject);
|
|
1057
1057
|
var _proto = PieLabelsContainer.prototype;
|
|
1058
1058
|
_proto.prepare = function prepare(context, instance) {
|
|
1059
1059
|
_BoundedObject.prototype.prepare.call(this, context, instance);
|
|
@@ -1107,10 +1107,10 @@ var PieLabelsContainer = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
1107
1107
|
PieLabelsContainer.prototype.anchors = "0 1 1 0";
|
|
1108
1108
|
|
|
1109
1109
|
var ColumnBarBase = /*#__PURE__*/ (function (_PureContainer) {
|
|
1110
|
-
_inheritsLoose(ColumnBarBase, _PureContainer);
|
|
1111
1110
|
function ColumnBarBase() {
|
|
1112
1111
|
return _PureContainer.apply(this, arguments) || this;
|
|
1113
1112
|
}
|
|
1113
|
+
_inheritsLoose(ColumnBarBase, _PureContainer);
|
|
1114
1114
|
var _proto = ColumnBarBase.prototype;
|
|
1115
1115
|
_proto.init = function init() {
|
|
1116
1116
|
this.selection = Selection.create(this.selection);
|
|
@@ -1283,10 +1283,10 @@ ColumnBarBase.prototype.hoverChannel = "default";
|
|
|
1283
1283
|
ColumnBarBase.prototype.borderRadius = 0;
|
|
1284
1284
|
|
|
1285
1285
|
var Column = /*#__PURE__*/ (function (_ColumnBarBase) {
|
|
1286
|
-
_inheritsLoose(Column, _ColumnBarBase);
|
|
1287
1286
|
function Column() {
|
|
1288
1287
|
return _ColumnBarBase.apply(this, arguments) || this;
|
|
1289
1288
|
}
|
|
1289
|
+
_inheritsLoose(Column, _ColumnBarBase);
|
|
1290
1290
|
var _proto = Column.prototype;
|
|
1291
1291
|
_proto.init = function init() {
|
|
1292
1292
|
if (isDefined(this.width)) this.size = this.width;
|
|
@@ -1367,10 +1367,10 @@ Column.prototype.minPixelHeight = 0.5;
|
|
|
1367
1367
|
Widget.alias("column", Column);
|
|
1368
1368
|
|
|
1369
1369
|
var Bar = /*#__PURE__*/ (function (_ColumnBarBase) {
|
|
1370
|
-
_inheritsLoose(Bar, _ColumnBarBase);
|
|
1371
1370
|
function Bar() {
|
|
1372
1371
|
return _ColumnBarBase.apply(this, arguments) || this;
|
|
1373
1372
|
}
|
|
1373
|
+
_inheritsLoose(Bar, _ColumnBarBase);
|
|
1374
1374
|
var _proto = Bar.prototype;
|
|
1375
1375
|
_proto.init = function init() {
|
|
1376
1376
|
if (isDefined(this.height)) this.size = this.height;
|
|
@@ -1558,10 +1558,10 @@ function triangle(cx, cy, size, props, options) {
|
|
|
1558
1558
|
registerShape("triangle", triangle);
|
|
1559
1559
|
|
|
1560
1560
|
var Legend = /*#__PURE__*/ (function (_HtmlElement) {
|
|
1561
|
-
_inheritsLoose(Legend, _HtmlElement);
|
|
1562
1561
|
function Legend() {
|
|
1563
1562
|
return _HtmlElement.apply(this, arguments) || this;
|
|
1564
1563
|
}
|
|
1564
|
+
_inheritsLoose(Legend, _HtmlElement);
|
|
1565
1565
|
var _proto = Legend.prototype;
|
|
1566
1566
|
_proto.prepareData = function prepareData(context, instance) {
|
|
1567
1567
|
var data = instance.data;
|
|
@@ -1683,10 +1683,10 @@ Legend.prototype.shape = null;
|
|
|
1683
1683
|
Legend.prototype.svgSize = 20;
|
|
1684
1684
|
Widget.alias("legend", Legend);
|
|
1685
1685
|
Legend.Scope = /*#__PURE__*/ (function (_PureContainer) {
|
|
1686
|
-
_inheritsLoose(_class, _PureContainer);
|
|
1687
1686
|
function _class() {
|
|
1688
1687
|
return _PureContainer.apply(this, arguments) || this;
|
|
1689
1688
|
}
|
|
1689
|
+
_inheritsLoose(_class, _PureContainer);
|
|
1690
1690
|
var _proto2 = _class.prototype;
|
|
1691
1691
|
_proto2.explore = function explore(context, instance) {
|
|
1692
1692
|
context.push("legends", (instance.legends = {}));
|
|
@@ -1706,10 +1706,10 @@ Legend.Scope = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
1706
1706
|
var LegendScope = Legend.Scope;
|
|
1707
1707
|
|
|
1708
1708
|
var LegendEntry = /*#__PURE__*/ (function (_HtmlElement) {
|
|
1709
|
-
_inheritsLoose(LegendEntry, _HtmlElement);
|
|
1710
1709
|
function LegendEntry() {
|
|
1711
1710
|
return _HtmlElement.apply(this, arguments) || this;
|
|
1712
1711
|
}
|
|
1712
|
+
_inheritsLoose(LegendEntry, _HtmlElement);
|
|
1713
1713
|
var _proto = LegendEntry.prototype;
|
|
1714
1714
|
_proto.init = function init() {
|
|
1715
1715
|
this.selection = Selection.create(this.selection);
|
|
@@ -1820,10 +1820,10 @@ LegendEntry.prototype.svgSize = 20;
|
|
|
1820
1820
|
Widget.alias("legend-entry", LegendEntry);
|
|
1821
1821
|
|
|
1822
1822
|
var ColorMap = /*#__PURE__*/ (function (_Widget) {
|
|
1823
|
-
_inheritsLoose(ColorMap, _Widget);
|
|
1824
1823
|
function ColorMap() {
|
|
1825
1824
|
return _Widget.apply(this, arguments) || this;
|
|
1826
1825
|
}
|
|
1826
|
+
_inheritsLoose(ColorMap, _Widget);
|
|
1827
1827
|
var _proto = ColorMap.prototype;
|
|
1828
1828
|
_proto.declareData = function declareData() {
|
|
1829
1829
|
var _Widget$prototype$dec;
|
|
@@ -1875,10 +1875,10 @@ ColorMap.prototype.offset = 0;
|
|
|
1875
1875
|
ColorMap.prototype.step = null;
|
|
1876
1876
|
ColorMap.prototype.size = 16;
|
|
1877
1877
|
var ColorMapScope = /*#__PURE__*/ (function (_PureContainer) {
|
|
1878
|
-
_inheritsLoose(ColorMapScope, _PureContainer);
|
|
1879
1878
|
function ColorMapScope() {
|
|
1880
1879
|
return _PureContainer.apply(this, arguments) || this;
|
|
1881
1880
|
}
|
|
1881
|
+
_inheritsLoose(ColorMapScope, _PureContainer);
|
|
1882
1882
|
var _proto2 = ColorMapScope.prototype;
|
|
1883
1883
|
_proto2.explore = function explore(context, instance) {
|
|
1884
1884
|
context.push("colorMaps", (instance.colorMaps = {}));
|
|
@@ -1930,10 +1930,10 @@ var ColorIndex = /*#__PURE__*/ (function () {
|
|
|
1930
1930
|
})();
|
|
1931
1931
|
|
|
1932
1932
|
var Marker = /*#__PURE__*/ (function (_BoundedObject) {
|
|
1933
|
-
_inheritsLoose(Marker, _BoundedObject);
|
|
1934
1933
|
function Marker() {
|
|
1935
1934
|
return _BoundedObject.apply(this, arguments) || this;
|
|
1936
1935
|
}
|
|
1936
|
+
_inheritsLoose(Marker, _BoundedObject);
|
|
1937
1937
|
var _proto = Marker.prototype;
|
|
1938
1938
|
_proto.init = function init() {
|
|
1939
1939
|
this.selection = Selection.create(this.selection);
|
|
@@ -2138,10 +2138,10 @@ Marker.prototype.hidden = false;
|
|
|
2138
2138
|
Marker.prototype.affectsAxes = true;
|
|
2139
2139
|
BoundedObject.alias("marker", Marker);
|
|
2140
2140
|
var MarkerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
2141
|
-
_inheritsLoose(MarkerComponent, _VDOM$Component);
|
|
2142
2141
|
function MarkerComponent() {
|
|
2143
2142
|
return _VDOM$Component.apply(this, arguments) || this;
|
|
2144
2143
|
}
|
|
2144
|
+
_inheritsLoose(MarkerComponent, _VDOM$Component);
|
|
2145
2145
|
var _proto2 = MarkerComponent.prototype;
|
|
2146
2146
|
_proto2.shouldComponentUpdate = function shouldComponentUpdate(props) {
|
|
2147
2147
|
return props.shouldUpdate;
|
|
@@ -2214,10 +2214,10 @@ var MarkerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
2214
2214
|
})(VDOM.Component);
|
|
2215
2215
|
|
|
2216
2216
|
var MarkerLine = /*#__PURE__*/ (function (_BoundedObject) {
|
|
2217
|
-
_inheritsLoose(MarkerLine, _BoundedObject);
|
|
2218
2217
|
function MarkerLine() {
|
|
2219
2218
|
return _BoundedObject.apply(this, arguments) || this;
|
|
2220
2219
|
}
|
|
2220
|
+
_inheritsLoose(MarkerLine, _BoundedObject);
|
|
2221
2221
|
var _proto = MarkerLine.prototype;
|
|
2222
2222
|
_proto.init = function init() {
|
|
2223
2223
|
if (isDefined(this.x)) this.x1 = this.x2 = this.x;
|
|
@@ -2338,10 +2338,10 @@ MarkerLine.prototype.affectsAxes = true;
|
|
|
2338
2338
|
BoundedObject.alias("marker-line", MarkerLine);
|
|
2339
2339
|
|
|
2340
2340
|
var Range = /*#__PURE__*/ (function (_BoundedObject) {
|
|
2341
|
-
_inheritsLoose(Range, _BoundedObject);
|
|
2342
2341
|
function Range() {
|
|
2343
2342
|
return _BoundedObject.apply(this, arguments) || this;
|
|
2344
2343
|
}
|
|
2344
|
+
_inheritsLoose(Range, _BoundedObject);
|
|
2345
2345
|
var _proto = Range.prototype;
|
|
2346
2346
|
_proto.declareData = function declareData() {
|
|
2347
2347
|
var _BoundedObject$protot;
|
|
@@ -2532,10 +2532,10 @@ Range.prototype.legendAction = "auto";
|
|
|
2532
2532
|
BoundedObject.alias("range", Range);
|
|
2533
2533
|
|
|
2534
2534
|
var Gridlines = /*#__PURE__*/ (function (_BoundedObject) {
|
|
2535
|
-
_inheritsLoose(Gridlines, _BoundedObject);
|
|
2536
2535
|
function Gridlines() {
|
|
2537
2536
|
return _BoundedObject.apply(this, arguments) || this;
|
|
2538
2537
|
}
|
|
2538
|
+
_inheritsLoose(Gridlines, _BoundedObject);
|
|
2539
2539
|
var _proto = Gridlines.prototype;
|
|
2540
2540
|
_proto.explore = function explore(context, instance) {
|
|
2541
2541
|
_BoundedObject.prototype.explore.call(this, context, instance);
|
|
@@ -2589,10 +2589,10 @@ Gridlines.prototype.baseClass = "gridlines";
|
|
|
2589
2589
|
BoundedObject.alias("gridlines", Gridlines);
|
|
2590
2590
|
|
|
2591
2591
|
var Swimlanes = /*#__PURE__*/ (function (_BoundedObject) {
|
|
2592
|
-
_inheritsLoose(Swimlanes, _BoundedObject);
|
|
2593
2592
|
function Swimlanes() {
|
|
2594
2593
|
return _BoundedObject.apply(this, arguments) || this;
|
|
2595
2594
|
}
|
|
2595
|
+
_inheritsLoose(Swimlanes, _BoundedObject);
|
|
2596
2596
|
var _proto = Swimlanes.prototype;
|
|
2597
2597
|
_proto.init = function init() {
|
|
2598
2598
|
this.laneStyle = parseStyle(this.laneStyle);
|
|
@@ -2719,10 +2719,10 @@ Swimlanes.prototype.styled = true;
|
|
|
2719
2719
|
BoundedObject.alias("swimlanes", Swimlanes);
|
|
2720
2720
|
|
|
2721
2721
|
var LineGraph = /*#__PURE__*/ (function (_Widget) {
|
|
2722
|
-
_inheritsLoose(LineGraph, _Widget);
|
|
2723
2722
|
function LineGraph() {
|
|
2724
2723
|
return _Widget.apply(this, arguments) || this;
|
|
2725
2724
|
}
|
|
2725
|
+
_inheritsLoose(LineGraph, _Widget);
|
|
2726
2726
|
var _proto = LineGraph.prototype;
|
|
2727
2727
|
_proto.declareData = function declareData() {
|
|
2728
2728
|
var _Widget$prototype$dec;
|
|
@@ -2919,10 +2919,10 @@ LineGraph.prototype.hiddenBase = false;
|
|
|
2919
2919
|
Widget.alias("line-graph", LineGraph);
|
|
2920
2920
|
|
|
2921
2921
|
var ColumnBarGraphBase = /*#__PURE__*/ (function (_Widget) {
|
|
2922
|
-
_inheritsLoose(ColumnBarGraphBase, _Widget);
|
|
2923
2922
|
function ColumnBarGraphBase() {
|
|
2924
2923
|
return _Widget.apply(this, arguments) || this;
|
|
2925
2924
|
}
|
|
2925
|
+
_inheritsLoose(ColumnBarGraphBase, _Widget);
|
|
2926
2926
|
var _proto = ColumnBarGraphBase.prototype;
|
|
2927
2927
|
_proto.init = function init() {
|
|
2928
2928
|
this.selection = Selection.create(this.selection, {
|
|
@@ -3035,10 +3035,10 @@ ColumnBarGraphBase.prototype.styled = true;
|
|
|
3035
3035
|
ColumnBarGraphBase.prototype.borderRadius = 0;
|
|
3036
3036
|
|
|
3037
3037
|
var ColumnGraph = /*#__PURE__*/ (function (_ColumnBarGraphBase) {
|
|
3038
|
-
_inheritsLoose(ColumnGraph, _ColumnBarGraphBase);
|
|
3039
3038
|
function ColumnGraph() {
|
|
3040
3039
|
return _ColumnBarGraphBase.apply(this, arguments) || this;
|
|
3041
3040
|
}
|
|
3041
|
+
_inheritsLoose(ColumnGraph, _ColumnBarGraphBase);
|
|
3042
3042
|
var _proto = ColumnGraph.prototype;
|
|
3043
3043
|
_proto.explore = function explore(context, instance) {
|
|
3044
3044
|
var _this = this;
|
|
@@ -3147,10 +3147,10 @@ ColumnGraph.prototype.hiddenBase = false;
|
|
|
3147
3147
|
Widget.alias("columngraph", ColumnGraph);
|
|
3148
3148
|
|
|
3149
3149
|
var BarGraph = /*#__PURE__*/ (function (_ColumnBarGraphBase) {
|
|
3150
|
-
_inheritsLoose(BarGraph, _ColumnBarGraphBase);
|
|
3151
3150
|
function BarGraph() {
|
|
3152
3151
|
return _ColumnBarGraphBase.apply(this, arguments) || this;
|
|
3153
3152
|
}
|
|
3153
|
+
_inheritsLoose(BarGraph, _ColumnBarGraphBase);
|
|
3154
3154
|
var _proto = BarGraph.prototype;
|
|
3155
3155
|
_proto.explore = function explore(context, instance) {
|
|
3156
3156
|
var _this = this;
|
|
@@ -3259,10 +3259,10 @@ BarGraph.prototype.borderRadius = 0;
|
|
|
3259
3259
|
Widget.alias("bargraph", BarGraph);
|
|
3260
3260
|
|
|
3261
3261
|
var ScatterGraph = /*#__PURE__*/ (function (_Widget) {
|
|
3262
|
-
_inheritsLoose(ScatterGraph, _Widget);
|
|
3263
3262
|
function ScatterGraph() {
|
|
3264
3263
|
return _Widget.apply(this, arguments) || this;
|
|
3265
3264
|
}
|
|
3265
|
+
_inheritsLoose(ScatterGraph, _Widget);
|
|
3266
3266
|
var _proto = ScatterGraph.prototype;
|
|
3267
3267
|
_proto.init = function init() {
|
|
3268
3268
|
this.selection = Selection.create(this.selection, {
|
|
@@ -3411,10 +3411,10 @@ ScatterGraph.prototype.styled = true;
|
|
|
3411
3411
|
Widget.alias("scatter-graph", ScatterGraph);
|
|
3412
3412
|
|
|
3413
3413
|
var BubbleGraph = /*#__PURE__*/ (function (_Widget) {
|
|
3414
|
-
_inheritsLoose(BubbleGraph, _Widget);
|
|
3415
3414
|
function BubbleGraph() {
|
|
3416
3415
|
return _Widget.apply(this, arguments) || this;
|
|
3417
3416
|
}
|
|
3417
|
+
_inheritsLoose(BubbleGraph, _Widget);
|
|
3418
3418
|
var _proto = BubbleGraph.prototype;
|
|
3419
3419
|
_proto.declareData = function declareData() {
|
|
3420
3420
|
var _Widget$prototype$dec;
|
|
@@ -3518,10 +3518,10 @@ BubbleGraph.prototype.bubbleRadius = 10;
|
|
|
3518
3518
|
Widget.alias("bubble-graph", BubbleGraph);
|
|
3519
3519
|
|
|
3520
3520
|
var MouseTracker = /*#__PURE__*/ (function (_BoundedObject) {
|
|
3521
|
-
_inheritsLoose(MouseTracker, _BoundedObject);
|
|
3522
3521
|
function MouseTracker() {
|
|
3523
3522
|
return _BoundedObject.apply(this, arguments) || this;
|
|
3524
3523
|
}
|
|
3524
|
+
_inheritsLoose(MouseTracker, _BoundedObject);
|
|
3525
3525
|
var _proto = MouseTracker.prototype;
|
|
3526
3526
|
_proto.declareData = function declareData() {
|
|
3527
3527
|
var _BoundedObject$protot;
|
|
@@ -3640,10 +3640,10 @@ var Stack = /*#__PURE__*/ (function () {
|
|
|
3640
3640
|
})();
|
|
3641
3641
|
|
|
3642
3642
|
var NumericAxis = /*#__PURE__*/ (function (_Axis) {
|
|
3643
|
-
_inheritsLoose(NumericAxis, _Axis);
|
|
3644
3643
|
function NumericAxis() {
|
|
3645
3644
|
return _Axis.apply(this, arguments) || this;
|
|
3646
3645
|
}
|
|
3646
|
+
_inheritsLoose(NumericAxis, _Axis);
|
|
3647
3647
|
var _proto = NumericAxis.prototype;
|
|
3648
3648
|
_proto.init = function init() {
|
|
3649
3649
|
if (this.deadZone) {
|
|
@@ -4006,10 +4006,10 @@ var NumericScale = /*#__PURE__*/ (function () {
|
|
|
4006
4006
|
})();
|
|
4007
4007
|
|
|
4008
4008
|
var CategoryAxis = /*#__PURE__*/ (function (_Axis) {
|
|
4009
|
-
_inheritsLoose(CategoryAxis, _Axis);
|
|
4010
4009
|
function CategoryAxis() {
|
|
4011
4010
|
return _Axis.apply(this, arguments) || this;
|
|
4012
4011
|
}
|
|
4012
|
+
_inheritsLoose(CategoryAxis, _Axis);
|
|
4013
4013
|
var _proto = CategoryAxis.prototype;
|
|
4014
4014
|
_proto.declareData = function declareData() {
|
|
4015
4015
|
var _Axis$prototype$decla;
|
|
@@ -4245,10 +4245,10 @@ Format$1.registerFactory("monthOrDay", function (format) {
|
|
|
4245
4245
|
};
|
|
4246
4246
|
});
|
|
4247
4247
|
var TimeAxis = /*#__PURE__*/ (function (_Axis) {
|
|
4248
|
-
_inheritsLoose(TimeAxis, _Axis);
|
|
4249
4248
|
function TimeAxis() {
|
|
4250
4249
|
return _Axis.apply(this, arguments) || this;
|
|
4251
4250
|
}
|
|
4251
|
+
_inheritsLoose(TimeAxis, _Axis);
|
|
4252
4252
|
var _proto = TimeAxis.prototype;
|
|
4253
4253
|
_proto.init = function init() {
|
|
4254
4254
|
if (this.labelAnchor == "auto") this.labelAnchor = this.vertical ? (this.secondary ? "start" : "end") : "start";
|
|
@@ -4739,10 +4739,10 @@ var TimeScale = /*#__PURE__*/ (function () {
|
|
|
4739
4739
|
})();
|
|
4740
4740
|
|
|
4741
4741
|
var PointReducer = /*#__PURE__*/ (function (_PureContainer) {
|
|
4742
|
-
_inheritsLoose(PointReducer, _PureContainer);
|
|
4743
4742
|
function PointReducer() {
|
|
4744
4743
|
return _PureContainer.apply(this, arguments) || this;
|
|
4745
4744
|
}
|
|
4745
|
+
_inheritsLoose(PointReducer, _PureContainer);
|
|
4746
4746
|
var _proto = PointReducer.prototype;
|
|
4747
4747
|
_proto.explore = function explore(context, instance) {
|
|
4748
4748
|
var _this = this;
|
|
@@ -4775,10 +4775,10 @@ var PointReducer = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
4775
4775
|
})(PureContainer);
|
|
4776
4776
|
|
|
4777
4777
|
var MinMaxFinder = /*#__PURE__*/ (function (_PointReducer) {
|
|
4778
|
-
_inheritsLoose(MinMaxFinder, _PointReducer);
|
|
4779
4778
|
function MinMaxFinder() {
|
|
4780
4779
|
return _PointReducer.apply(this, arguments) || this;
|
|
4781
4780
|
}
|
|
4781
|
+
_inheritsLoose(MinMaxFinder, _PointReducer);
|
|
4782
4782
|
var _proto = MinMaxFinder.prototype;
|
|
4783
4783
|
_proto.declareData = function declareData() {
|
|
4784
4784
|
var _PointReducer$prototy;
|
|
@@ -4835,10 +4835,10 @@ var MinMaxFinder = /*#__PURE__*/ (function (_PointReducer) {
|
|
|
4835
4835
|
})(PointReducer);
|
|
4836
4836
|
|
|
4837
4837
|
var SnapPointFinder = /*#__PURE__*/ (function (_PointReducer) {
|
|
4838
|
-
_inheritsLoose(SnapPointFinder, _PointReducer);
|
|
4839
4838
|
function SnapPointFinder() {
|
|
4840
4839
|
return _PointReducer.apply(this, arguments) || this;
|
|
4841
4840
|
}
|
|
4841
|
+
_inheritsLoose(SnapPointFinder, _PointReducer);
|
|
4842
4842
|
var _proto = SnapPointFinder.prototype;
|
|
4843
4843
|
_proto.declareData = function declareData() {
|
|
4844
4844
|
var _PointReducer$prototy;
|
|
@@ -4885,10 +4885,10 @@ var SnapPointFinder = /*#__PURE__*/ (function (_PointReducer) {
|
|
|
4885
4885
|
SnapPointFinder.prototype.maxDistance = 50;
|
|
4886
4886
|
|
|
4887
4887
|
var ValueAtFinder = /*#__PURE__*/ (function (_PointReducer) {
|
|
4888
|
-
_inheritsLoose(ValueAtFinder, _PointReducer);
|
|
4889
4888
|
function ValueAtFinder() {
|
|
4890
4889
|
return _PointReducer.apply(this, arguments) || this;
|
|
4891
4890
|
}
|
|
4891
|
+
_inheritsLoose(ValueAtFinder, _PointReducer);
|
|
4892
4892
|
var _proto = ValueAtFinder.prototype;
|
|
4893
4893
|
_proto.declareData = function declareData() {
|
|
4894
4894
|
var _PointReducer$prototy;
|
package/dist/data.js
CHANGED
|
@@ -156,12 +156,6 @@ function _setPrototypeOf(o, p) {
|
|
|
156
156
|
};
|
|
157
157
|
return _setPrototypeOf(o, p);
|
|
158
158
|
}
|
|
159
|
-
function _assertThisInitialized(self) {
|
|
160
|
-
if (self === void 0) {
|
|
161
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
162
|
-
}
|
|
163
|
-
return self;
|
|
164
|
-
}
|
|
165
159
|
|
|
166
160
|
function computable() {
|
|
167
161
|
var _ref;
|
|
@@ -222,8 +216,7 @@ function computable() {
|
|
|
222
216
|
let e = Expression.compile('_.min({data})');
|
|
223
217
|
*/
|
|
224
218
|
|
|
225
|
-
var
|
|
226
|
-
helpers = {},
|
|
219
|
+
var helpers = {},
|
|
227
220
|
helperNames = [],
|
|
228
221
|
helperValues = [],
|
|
229
222
|
expFatArrows = null;
|
|
@@ -287,7 +280,8 @@ function getExpr(expr) {
|
|
|
287
280
|
}
|
|
288
281
|
function expression(str) {
|
|
289
282
|
if (isFunction(str)) return getExpr(str);
|
|
290
|
-
var
|
|
283
|
+
var cache = getExpressionCache();
|
|
284
|
+
var r = cache[str];
|
|
291
285
|
if (r) return r;
|
|
292
286
|
var quote = false;
|
|
293
287
|
var termStart = -1,
|
|
@@ -382,7 +376,7 @@ function expression(str) {
|
|
|
382
376
|
})
|
|
383
377
|
.concat([compute]),
|
|
384
378
|
);
|
|
385
|
-
|
|
379
|
+
cache[str] = selector;
|
|
386
380
|
return selector;
|
|
387
381
|
} catch (err) {
|
|
388
382
|
throw new Error("Failed to parse expression: '" + str + "'. Error: " + err.message);
|
|
@@ -409,12 +403,19 @@ function plugFatArrowExpansion(impl) {
|
|
|
409
403
|
function invalidateExpressionCache() {
|
|
410
404
|
expCache = {};
|
|
411
405
|
}
|
|
406
|
+
var expCache = {};
|
|
407
|
+
var getExpressionCache = function getExpressionCache() {
|
|
408
|
+
return expCache;
|
|
409
|
+
};
|
|
410
|
+
function setGetExpressionCacheCallback(callback) {
|
|
411
|
+
getExpressionCache = callback;
|
|
412
|
+
}
|
|
412
413
|
|
|
413
414
|
function plus(str) {
|
|
414
415
|
return str.length ? str + " + " : str;
|
|
415
416
|
}
|
|
416
|
-
var tplCache = {};
|
|
417
417
|
function stringTemplate(str) {
|
|
418
|
+
var tplCache = getTplCache();
|
|
418
419
|
var expr = tplCache[str];
|
|
419
420
|
if (expr) return expr;
|
|
420
421
|
expr = "";
|
|
@@ -479,19 +480,26 @@ var StringTemplate = {
|
|
|
479
480
|
return stringTemplate(_format)(args);
|
|
480
481
|
},
|
|
481
482
|
};
|
|
483
|
+
var tplCache = {};
|
|
484
|
+
var getTplCache = function getTplCache() {
|
|
485
|
+
return tplCache;
|
|
486
|
+
};
|
|
482
487
|
function invalidateStringTemplateCache() {
|
|
483
488
|
tplCache = {};
|
|
484
489
|
}
|
|
490
|
+
function setGetStringTemplateCacheCallback(callback) {
|
|
491
|
+
getTplCache = callback;
|
|
492
|
+
}
|
|
485
493
|
|
|
486
494
|
var Ref = /*#__PURE__*/ (function (_Component) {
|
|
487
|
-
_inheritsLoose(Ref, _Component);
|
|
488
495
|
function Ref(config) {
|
|
489
496
|
var _this;
|
|
490
497
|
_this = _Component.call(this, config) || this;
|
|
491
|
-
_this.get = _this.get.bind(
|
|
492
|
-
if (_this.set) _this.set = _this.set.bind(
|
|
498
|
+
_this.get = _this.get.bind(_this);
|
|
499
|
+
if (_this.set) _this.set = _this.set.bind(_this);
|
|
493
500
|
return _this;
|
|
494
501
|
}
|
|
502
|
+
_inheritsLoose(Ref, _Component);
|
|
495
503
|
var _proto = Ref.prototype;
|
|
496
504
|
_proto.get = function get() {
|
|
497
505
|
throw new Error("Ref's get method is not implemented.");
|
|
@@ -549,13 +557,13 @@ Ref.factory = function (alias, config, more) {
|
|
|
549
557
|
};
|
|
550
558
|
|
|
551
559
|
var StoreRef = /*#__PURE__*/ (function (_Ref) {
|
|
552
|
-
_inheritsLoose(StoreRef, _Ref);
|
|
553
560
|
function StoreRef(config) {
|
|
554
561
|
var _this;
|
|
555
562
|
_this = _Ref.call(this, config) || this;
|
|
556
563
|
if (isAccessorChain(_this.path)) _this.path = _this.path.toString();
|
|
557
564
|
return _this;
|
|
558
565
|
}
|
|
566
|
+
_inheritsLoose(StoreRef, _Ref);
|
|
559
567
|
var _proto = StoreRef.prototype;
|
|
560
568
|
_proto.get = function get() {
|
|
561
569
|
return this.store.get(this.path);
|
|
@@ -761,7 +769,6 @@ View.prototype.mutate = function () {
|
|
|
761
769
|
};
|
|
762
770
|
|
|
763
771
|
var SubscribableView = /*#__PURE__*/ (function (_View) {
|
|
764
|
-
_inheritsLoose(SubscribableView, _View);
|
|
765
772
|
function SubscribableView(config) {
|
|
766
773
|
var _this;
|
|
767
774
|
_this = _View.call(this, config) || this;
|
|
@@ -769,6 +776,7 @@ var SubscribableView = /*#__PURE__*/ (function (_View) {
|
|
|
769
776
|
_this.changes = [];
|
|
770
777
|
return _this;
|
|
771
778
|
}
|
|
779
|
+
_inheritsLoose(SubscribableView, _View);
|
|
772
780
|
var _proto = SubscribableView.prototype;
|
|
773
781
|
_proto.subscribe = function subscribe(callback) {
|
|
774
782
|
return this.subscribers.subscribe(callback);
|
|
@@ -813,7 +821,6 @@ var SubscribableView = /*#__PURE__*/ (function (_View) {
|
|
|
813
821
|
SubscribableView.prototype.async = false;
|
|
814
822
|
|
|
815
823
|
var Store = /*#__PURE__*/ (function (_SubscribableView) {
|
|
816
|
-
_inheritsLoose(Store, _SubscribableView);
|
|
817
824
|
function Store(config) {
|
|
818
825
|
var _this;
|
|
819
826
|
if (config === void 0) {
|
|
@@ -826,6 +833,7 @@ var Store = /*#__PURE__*/ (function (_SubscribableView) {
|
|
|
826
833
|
};
|
|
827
834
|
return _this;
|
|
828
835
|
}
|
|
836
|
+
_inheritsLoose(Store, _SubscribableView);
|
|
829
837
|
var _proto = Store.prototype;
|
|
830
838
|
_proto.getData = function getData() {
|
|
831
839
|
return this.data;
|
|
@@ -860,10 +868,10 @@ var Store = /*#__PURE__*/ (function (_SubscribableView) {
|
|
|
860
868
|
Store.prototype.async = false;
|
|
861
869
|
|
|
862
870
|
var ExposedRecordView = /*#__PURE__*/ (function (_View) {
|
|
863
|
-
_inheritsLoose(ExposedRecordView, _View);
|
|
864
871
|
function ExposedRecordView() {
|
|
865
872
|
return _View.apply(this, arguments) || this;
|
|
866
873
|
}
|
|
874
|
+
_inheritsLoose(ExposedRecordView, _View);
|
|
867
875
|
var _proto = ExposedRecordView.prototype;
|
|
868
876
|
_proto.getData = function getData() {
|
|
869
877
|
if (this.sealed && this.meta.version === this.cache.version && this.cache.itemIndex === this.itemIndex)
|
|
@@ -925,10 +933,10 @@ var ExposedRecordView = /*#__PURE__*/ (function (_View) {
|
|
|
925
933
|
ExposedRecordView.prototype.immutable = false;
|
|
926
934
|
|
|
927
935
|
var ExposedValueView = /*#__PURE__*/ (function (_View) {
|
|
928
|
-
_inheritsLoose(ExposedValueView, _View);
|
|
929
936
|
function ExposedValueView() {
|
|
930
937
|
return _View.apply(this, arguments) || this;
|
|
931
938
|
}
|
|
939
|
+
_inheritsLoose(ExposedValueView, _View);
|
|
932
940
|
var _proto = ExposedValueView.prototype;
|
|
933
941
|
_proto.getData = function getData() {
|
|
934
942
|
if (this.sealed && this.meta.version === this.cache.version && this.cache.key === this.key)
|
|
@@ -987,10 +995,10 @@ var ExposedValueView = /*#__PURE__*/ (function (_View) {
|
|
|
987
995
|
ExposedValueView.prototype.immutable = false;
|
|
988
996
|
|
|
989
997
|
var ReadOnlyDataView = /*#__PURE__*/ (function (_View) {
|
|
990
|
-
_inheritsLoose(ReadOnlyDataView, _View);
|
|
991
998
|
function ReadOnlyDataView() {
|
|
992
999
|
return _View.apply(this, arguments) || this;
|
|
993
1000
|
}
|
|
1001
|
+
_inheritsLoose(ReadOnlyDataView, _View);
|
|
994
1002
|
var _proto = ReadOnlyDataView.prototype;
|
|
995
1003
|
_proto.getData = function getData() {
|
|
996
1004
|
if (this.sealed && this.meta.version === this.cache.version && this.cache.data === this.data)
|
|
@@ -1015,10 +1023,10 @@ var ReadOnlyDataView = /*#__PURE__*/ (function (_View) {
|
|
|
1015
1023
|
ReadOnlyDataView.prototype.immutable = false;
|
|
1016
1024
|
|
|
1017
1025
|
var AugmentedViewBase = /*#__PURE__*/ (function (_View) {
|
|
1018
|
-
_inheritsLoose(AugmentedViewBase, _View);
|
|
1019
1026
|
function AugmentedViewBase() {
|
|
1020
1027
|
return _View.apply(this, arguments) || this;
|
|
1021
1028
|
}
|
|
1029
|
+
_inheritsLoose(AugmentedViewBase, _View);
|
|
1022
1030
|
var _proto = AugmentedViewBase.prototype;
|
|
1023
1031
|
_proto.getData = function getData() {
|
|
1024
1032
|
if (this.meta.version === this.cache.version && this.sealed) return this.cache.result;
|
|
@@ -1077,10 +1085,10 @@ var AugmentedViewBase = /*#__PURE__*/ (function (_View) {
|
|
|
1077
1085
|
AugmentedViewBase.prototype.immutable = false;
|
|
1078
1086
|
|
|
1079
1087
|
var NestedDataView = /*#__PURE__*/ (function (_AugmentedViewBase) {
|
|
1080
|
-
_inheritsLoose(NestedDataView, _AugmentedViewBase);
|
|
1081
1088
|
function NestedDataView() {
|
|
1082
1089
|
return _AugmentedViewBase.apply(this, arguments) || this;
|
|
1083
1090
|
}
|
|
1091
|
+
_inheritsLoose(NestedDataView, _AugmentedViewBase);
|
|
1084
1092
|
var _proto = NestedDataView.prototype;
|
|
1085
1093
|
_proto.embedAugmentData = function embedAugmentData(result, parentStoreData) {
|
|
1086
1094
|
if (this.nestedData) {
|
|
@@ -1101,10 +1109,10 @@ var NestedDataView = /*#__PURE__*/ (function (_AugmentedViewBase) {
|
|
|
1101
1109
|
})(AugmentedViewBase);
|
|
1102
1110
|
|
|
1103
1111
|
var ZoomIntoPropertyView = /*#__PURE__*/ (function (_NestedDataView) {
|
|
1104
|
-
_inheritsLoose(ZoomIntoPropertyView, _NestedDataView);
|
|
1105
1112
|
function ZoomIntoPropertyView() {
|
|
1106
1113
|
return _NestedDataView.apply(this, arguments) || this;
|
|
1107
1114
|
}
|
|
1115
|
+
_inheritsLoose(ZoomIntoPropertyView, _NestedDataView);
|
|
1108
1116
|
var _proto = ZoomIntoPropertyView.prototype;
|
|
1109
1117
|
_proto.getBaseData = function getBaseData(parentStoreData) {
|
|
1110
1118
|
var x = this.binding.value(parentStoreData);
|
|
@@ -1889,10 +1897,10 @@ function diffArrays(oldArray, newArray, keyFn) {
|
|
|
1889
1897
|
}
|
|
1890
1898
|
|
|
1891
1899
|
var ArrayRef = /*#__PURE__*/ (function (_Ref) {
|
|
1892
|
-
_inheritsLoose(ArrayRef, _Ref);
|
|
1893
1900
|
function ArrayRef() {
|
|
1894
1901
|
return _Ref.apply(this, arguments) || this;
|
|
1895
1902
|
}
|
|
1903
|
+
_inheritsLoose(ArrayRef, _Ref);
|
|
1896
1904
|
var _proto = ArrayRef.prototype;
|
|
1897
1905
|
_proto.append = function append$1() {
|
|
1898
1906
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -1930,18 +1938,18 @@ var ArrayRef = /*#__PURE__*/ (function (_Ref) {
|
|
|
1930
1938
|
})(Ref);
|
|
1931
1939
|
|
|
1932
1940
|
var StoreProxy = /*#__PURE__*/ (function (_View) {
|
|
1933
|
-
_inheritsLoose(StoreProxy, _View);
|
|
1934
1941
|
function StoreProxy(getStore) {
|
|
1935
1942
|
var _this;
|
|
1936
1943
|
_this =
|
|
1937
1944
|
_View.call(this, {
|
|
1938
1945
|
store: getStore(),
|
|
1939
1946
|
}) || this;
|
|
1940
|
-
Object.defineProperty(
|
|
1947
|
+
Object.defineProperty(_this, "store", {
|
|
1941
1948
|
get: getStore,
|
|
1942
1949
|
});
|
|
1943
1950
|
return _this;
|
|
1944
1951
|
}
|
|
1952
|
+
_inheritsLoose(StoreProxy, _View);
|
|
1945
1953
|
var _proto = StoreProxy.prototype;
|
|
1946
1954
|
_proto.getData = function getData() {
|
|
1947
1955
|
return this.store.getData();
|
|
@@ -1950,10 +1958,10 @@ var StoreProxy = /*#__PURE__*/ (function (_View) {
|
|
|
1950
1958
|
})(View);
|
|
1951
1959
|
|
|
1952
1960
|
var ArrayElementView = /*#__PURE__*/ (function (_AugmentedViewBase) {
|
|
1953
|
-
_inheritsLoose(ArrayElementView, _AugmentedViewBase);
|
|
1954
1961
|
function ArrayElementView() {
|
|
1955
1962
|
return _AugmentedViewBase.apply(this, arguments) || this;
|
|
1956
1963
|
}
|
|
1964
|
+
_inheritsLoose(ArrayElementView, _AugmentedViewBase);
|
|
1957
1965
|
var _proto = ArrayElementView.prototype;
|
|
1958
1966
|
_proto.isExtraKey = function isExtraKey(key) {
|
|
1959
1967
|
return key == this.recordAlias || key == this.indexAlias || key == this.lengthAlias;
|
|
@@ -2090,6 +2098,8 @@ export {
|
|
|
2090
2098
|
moveElement,
|
|
2091
2099
|
plugFatArrowExpansion,
|
|
2092
2100
|
removeTreeNodes,
|
|
2101
|
+
setGetExpressionCacheCallback,
|
|
2102
|
+
setGetStringTemplateCacheCallback,
|
|
2093
2103
|
sorter,
|
|
2094
2104
|
stringTemplate,
|
|
2095
2105
|
updateArray,
|