@hpcc-js/layout 2.47.4 → 2.48.1
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.es6.js +23 -2
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +23 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +5 -5
- package/src/ChartPanel.ts +21 -0
- package/src/__package__.ts +2 -2
- package/types/ChartPanel.d.ts.map +1 -1
- package/types/__package__.d.ts +2 -2
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
var PKG_NAME = "@hpcc-js/layout";
|
|
23
|
-
var PKG_VERSION = "2.
|
|
24
|
-
var BUILD_VERSION = "2.103.
|
|
23
|
+
var PKG_VERSION = "2.48.1";
|
|
24
|
+
var BUILD_VERSION = "2.103.5";
|
|
25
25
|
|
|
26
26
|
/*! *****************************************************************************
|
|
27
27
|
Copyright (c) Microsoft Corporation.
|
|
@@ -3096,7 +3096,28 @@
|
|
|
3096
3096
|
element.style("transform", "translate(0px,0px) scale(1)");
|
|
3097
3097
|
};
|
|
3098
3098
|
ChartPanel.prototype.update = function (domNode, element) {
|
|
3099
|
+
var _this = this;
|
|
3099
3100
|
_super.prototype.update.call(this, domNode, element);
|
|
3101
|
+
if (this._table && this.widget_exists() && this.widget().class().indexOf("chart_XYAxis") >= 0) {
|
|
3102
|
+
var chart_1 = this.widget();
|
|
3103
|
+
this._table.columns().forEach(function (column, idx) {
|
|
3104
|
+
switch (idx === 0 ? chart_1.xAxisType() : chart_1.yAxisType()) {
|
|
3105
|
+
case "linear":
|
|
3106
|
+
case "log":
|
|
3107
|
+
case "pow":
|
|
3108
|
+
_this._table.columnType(column, "number");
|
|
3109
|
+
break;
|
|
3110
|
+
case "time":
|
|
3111
|
+
_this._table.columnType(column, "time");
|
|
3112
|
+
break;
|
|
3113
|
+
case "ordinal":
|
|
3114
|
+
default:
|
|
3115
|
+
_this._table.columnType(column, "string");
|
|
3116
|
+
}
|
|
3117
|
+
_this._table.columnPattern(column, idx === 0 ? chart_1.xAxisTypeTimePattern() : chart_1.yAxisTypeTimePattern());
|
|
3118
|
+
_this._table.columnFormat(column, idx === 0 ? chart_1.xAxisTickFormat() : chart_1.yAxisTickFormat());
|
|
3119
|
+
});
|
|
3120
|
+
}
|
|
3100
3121
|
};
|
|
3101
3122
|
ChartPanel.prototype.preUpdate = function (domNode, element) {
|
|
3102
3123
|
_super.prototype.preUpdate.call(this, domNode, element);
|