@hpcc-js/layout 3.2.1 → 3.2.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 +3 -21
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +2 -2
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +3 -3
- package/src/ChartPanel.ts +1 -21
- package/types/ChartPanel.d.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key != "symbol" ? key + "" : key, value);
|
|
5
|
-
import { HTMLWidget, FAChar, select, selectAll, Utility, d3Event, Platform, drag, scaleLinear, dispatch,
|
|
6
|
-
import { Table } from "@hpcc-js/
|
|
5
|
+
import { HTMLWidget, FAChar, select, selectAll, Utility, d3Event, Platform, drag, scaleLinear, dispatch, formatPrefix, format, formatLocale, formatSpecifier, sum, SVGWidget, Database, Palette, scaleOrdinal, ProgressBar, ToggleButton, Text, Button, Spacer, TitleBar, IconBar } from "@hpcc-js/common";
|
|
6
|
+
import { Table } from "@hpcc-js/dgrid";
|
|
7
7
|
import { instanceOfIHighlight } from "@hpcc-js/api";
|
|
8
8
|
function _mergeNamespaces(n, m) {
|
|
9
9
|
for (var i = 0; i < m.length; i++) {
|
|
@@ -1565,25 +1565,7 @@ class ChartPanel extends Border2 {
|
|
|
1565
1565
|
element.selectAll("div.body,div.title-text,div.icon-bar").style("display", ""), element.selectAll("div.data-count").style("visibility", "hidden"), element.select("div.title-icon").style("position", "static"), element.style("transform", "translate(0px,0px) scale(1)");
|
|
1566
1566
|
}
|
|
1567
1567
|
update(domNode, element) {
|
|
1568
|
-
|
|
1569
|
-
const chart = this.widget();
|
|
1570
|
-
this._table.columns().forEach((column, idx) => {
|
|
1571
|
-
switch (idx === 0 ? chart.xAxisType() : chart.yAxisType()) {
|
|
1572
|
-
case "linear":
|
|
1573
|
-
case "log":
|
|
1574
|
-
case "pow":
|
|
1575
|
-
this._table.columnType(column, "number");
|
|
1576
|
-
break;
|
|
1577
|
-
case "time":
|
|
1578
|
-
this._table.columnType(column, "time");
|
|
1579
|
-
break;
|
|
1580
|
-
case "ordinal":
|
|
1581
|
-
default:
|
|
1582
|
-
this._table.columnType(column, "string");
|
|
1583
|
-
}
|
|
1584
|
-
this._table.columnPattern(column, idx === 0 ? chart.xAxisTypeTimePattern() : chart.yAxisTypeTimePattern()), this._table.columnFormat(column, idx === 0 ? chart.xAxisTickFormat() : chart.yAxisTickFormat());
|
|
1585
|
-
});
|
|
1586
|
-
}
|
|
1568
|
+
super.update(domNode, element);
|
|
1587
1569
|
}
|
|
1588
1570
|
preUpdate(domNode, element) {
|
|
1589
1571
|
switch (super.preUpdate(domNode, element), this._prevLegendPosition !== this.legendPosition() && (this._legend.target() !== null && this._legend.target(null), this._prevLegendPosition !== void 0 ? this.swap(this._prevLegendPosition, this.legendPosition()) : this[this.legendPosition()](this._legend), this.legendPosition() === "right" ? (this.rightOverflowX("hidden"), this.rightOverflowY("auto"), this.bottomOverflowX("visible"), this.bottomOverflowY("visible")) : (this.rightOverflowX("visible"), this.rightOverflowY("visible"), this.bottomOverflowX("auto"), this.bottomOverflowY("hidden")), this._prevLegendPosition = this.legendPosition()), this._prevdataVisible !== this.dataVisible() && (this._prevdataVisible = this.dataVisible(), this._toggleData.selected(this._prevdataVisible), this._legend.visible(this._prevlegendVisible && !this._prevdataVisible), this._carousel.active(this._prevdataVisible ? 1 : 0)), this._prevlegendVisible !== this.legendVisible() && (this._prevlegendVisible = this.legendVisible(), this._toggleLegend.selected(this._prevlegendVisible), this._legend.visible(this._prevlegendVisible && !this._prevdataVisible)), this._legend.orientation(this.legendPosition() === "bottom" ? "horizontal" : "vertical"), this.showLeft(!this.left()), this.getResponsiveMode()) {
|