@visactor/vtable-gantt 1.19.9 → 1.19.10-alpha.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/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/vtable-gantt.js +55 -19
- package/dist/vtable-gantt.min.js +2 -2
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +6 -6
package/cjs/index.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ import * as tools from './tools';
|
|
|
6
6
|
import * as VRender from './vrender';
|
|
7
7
|
import * as VTable from './vtable';
|
|
8
8
|
import * as plugins from './plugins';
|
|
9
|
-
export declare const version = "1.19.
|
|
9
|
+
export declare const version = "1.19.10-alpha.1";
|
|
10
10
|
export { TYPES, GanttConstructorOptions, Gantt, ColumnsDefine, ColumnDefine, LinkColumnDefine, ChartColumnDefine, ImageColumnDefine, SparklineColumnDefine, ProgressbarColumnDefine, TextColumnDefine, GroupColumnDefine, TextAlignType, TextBaselineType, tools, VRender, VTable, plugins };
|
package/cjs/index.js
CHANGED
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAAoC;AAwBlC,sBAAK;AAVP,mCAAgC;AAY9B,sFAZO,aAAK,OAYP;AAXP,+CAAiC;AAuB/B,sBAAK;AAtBP,mDAAqC;AAuBnC,0BAAO;AAtBT,iDAAmC;AAuBjC,wBAAM;AAtBR,mDAAqC;AAuBnC,0BAAO;AAtBI,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAAoC;AAwBlC,sBAAK;AAVP,mCAAgC;AAY9B,sFAZO,aAAK,OAYP;AAXP,+CAAiC;AAuB/B,sBAAK;AAtBP,mDAAqC;AAuBnC,0BAAO;AAtBT,iDAAmC;AAuBjC,wBAAM;AAtBR,mDAAqC;AAuBnC,0BAAO;AAtBI,QAAA,OAAO,GAAG,iBAAiB,CAAC","file":"index.js","sourcesContent":["import type { GanttConstructorOptions } from './ts-types';\nimport * as TYPES from './ts-types';\nimport type {\n ColumnDefine,\n ColumnsDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType\n} from '@visactor/vtable';\nimport { Gantt } from './Gantt';\nimport * as tools from './tools';\nimport * as VRender from './vrender';\nimport * as VTable from './vtable';\nimport * as plugins from './plugins';\nexport const version = \"1.19.10-alpha.1\";\n/**\n * @namespace VTable\n */\nexport {\n TYPES,\n GanttConstructorOptions,\n Gantt,\n ColumnsDefine,\n ColumnDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType,\n tools,\n VRender,\n VTable,\n plugins\n};\n"]}
|
package/dist/vtable-gantt.js
CHANGED
|
@@ -55736,7 +55736,7 @@
|
|
|
55736
55736
|
}
|
|
55737
55737
|
|
|
55738
55738
|
function getAxisConfigInPivotChart(col, row, layout) {
|
|
55739
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
55739
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
55740
55740
|
if (layout._table.isPivotChart()) if (layout.indicatorsAsCol) {
|
|
55741
55741
|
if (layout.hasTwoIndicatorAxes && row === layout.columnHeaderLevelCount - 1 && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) {
|
|
55742
55742
|
const axisRange = getRange("top", col, row + 1, col, layout.columnHeaderLevelCount - 1, col, row, 1, layout);
|
|
@@ -55775,7 +55775,10 @@
|
|
|
55775
55775
|
const info = layout.getIndicatorInfo(key);
|
|
55776
55776
|
info && (indicatorInfo = info);
|
|
55777
55777
|
});
|
|
55778
|
-
const axisRange = getRange("bottom", col, row - 1, col, row, col, row, 0, layout)
|
|
55778
|
+
const axisRange = getRange("bottom", col, row - 1, col, row, col, row, 0, layout),
|
|
55779
|
+
{
|
|
55780
|
+
chartType: chartType
|
|
55781
|
+
} = getAxisOption(col, row - 1, "bottom", layout);
|
|
55779
55782
|
if (!axisRange) return;
|
|
55780
55783
|
const chartCellStyle = layout._table._getCellStyle(col, row - 1),
|
|
55781
55784
|
padding = getQuadProps(getProp("padding", chartCellStyle, col, row - 1, layout._table)),
|
|
@@ -55788,12 +55791,21 @@
|
|
|
55788
55791
|
targetRange: targetRange,
|
|
55789
55792
|
theme: theme
|
|
55790
55793
|
} = axisRange;
|
|
55791
|
-
|
|
55794
|
+
isNumber$4(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min, range.min > 0 && (axisOption.zero = !1)), isNumber$4(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max, range.max < 0 && (axisOption.zero = !1));
|
|
55795
|
+
let domain = [];
|
|
55796
|
+
if ("heatmap" === chartType) {
|
|
55797
|
+
const colDimensionKey = layout.getDimensionKeyInChartSpec(col, layout.rowCount - layout.bottomFrozenRowCount - 1, "xField"),
|
|
55798
|
+
data = null !== (_a = layout.dataset.collectedValues[colDimensionKey]) && void 0 !== _a ? _a : [],
|
|
55799
|
+
colPath = layout.getColKeysPath(col, row);
|
|
55800
|
+
domain = null !== (_b = null == data ? void 0 : data[null != colPath ? colPath : ""]) && void 0 !== _b ? _b : [];
|
|
55801
|
+
}
|
|
55802
|
+
return merge$1({
|
|
55792
55803
|
title: {
|
|
55793
55804
|
visible: !0,
|
|
55794
55805
|
text: null == indicatorInfo ? void 0 : indicatorInfo.title
|
|
55795
55806
|
},
|
|
55796
|
-
range: range
|
|
55807
|
+
range: range,
|
|
55808
|
+
domain: "linear" === (null == axisOption ? void 0 : axisOption.type) ? void 0 : Array.from(domain)
|
|
55797
55809
|
}, axisOption, {
|
|
55798
55810
|
orient: "bottom",
|
|
55799
55811
|
type: (null == axisOption ? void 0 : axisOption.type) || "linear",
|
|
@@ -55811,9 +55823,9 @@
|
|
|
55811
55823
|
if (col === layout.rowHeaderLevelCount - 1 && row >= layout.columnHeaderLevelCount && row < layout.rowCount - layout.bottomFrozenRowCount) {
|
|
55812
55824
|
let rowDimensionKey = layout.getDimensionKeyInChartSpec(layout.rowHeaderLevelCount, row);
|
|
55813
55825
|
isArray$7(rowDimensionKey) && (rowDimensionKey = rowDimensionKey[0]);
|
|
55814
|
-
const data = null !== (
|
|
55826
|
+
const data = null !== (_c = layout.dataset.collectedValues[rowDimensionKey]) && void 0 !== _c ? _c : [],
|
|
55815
55827
|
rowPath = layout.getRowKeysPath(col, row),
|
|
55816
|
-
domain = null !== (
|
|
55828
|
+
domain = null !== (_d = data[null != rowPath ? rowPath : ""]) && void 0 !== _d ? _d : [],
|
|
55817
55829
|
{
|
|
55818
55830
|
axisOption: axisOption,
|
|
55819
55831
|
theme: theme,
|
|
@@ -55831,9 +55843,9 @@
|
|
|
55831
55843
|
}
|
|
55832
55844
|
}, axisOption, {
|
|
55833
55845
|
orient: "left",
|
|
55834
|
-
type: null !== (
|
|
55846
|
+
type: null !== (_e = null == axisOption ? void 0 : axisOption.type) && void 0 !== _e ? _e : "band",
|
|
55835
55847
|
__vtableChartTheme: theme,
|
|
55836
|
-
inverse: transformInverse(axisOption, "horizontal" === (null !== (
|
|
55848
|
+
inverse: transformInverse(axisOption, "horizontal" === (null !== (_f = null == spec ? void 0 : spec.direction) && void 0 !== _f ? _f : "scatter" === chartType ? "vertical" : "horizontal")),
|
|
55837
55849
|
__vtablePadding: padding
|
|
55838
55850
|
});
|
|
55839
55851
|
}
|
|
@@ -55845,7 +55857,10 @@
|
|
|
55845
55857
|
const info = layout.getIndicatorInfo(key);
|
|
55846
55858
|
info && (indicatorInfo = info);
|
|
55847
55859
|
});
|
|
55848
|
-
const axisRange = getRange("left", col + 1, row, col, row, col, row, 0, layout)
|
|
55860
|
+
const axisRange = getRange("left", col + 1, row, col, row, col, row, 0, layout),
|
|
55861
|
+
{
|
|
55862
|
+
chartType: chartType
|
|
55863
|
+
} = getAxisOption(col + 1, row, "left", layout);
|
|
55849
55864
|
if (!axisRange) return;
|
|
55850
55865
|
const chartCellStyle = layout._table._getCellStyle(col + 1, row),
|
|
55851
55866
|
padding = getQuadProps(getProp("padding", chartCellStyle, col + 1, row, layout._table)),
|
|
@@ -55858,13 +55873,22 @@
|
|
|
55858
55873
|
targetRange: targetRange,
|
|
55859
55874
|
theme: theme
|
|
55860
55875
|
} = axisRange;
|
|
55861
|
-
|
|
55876
|
+
isNumber$4(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min, range.min > 0 && (axisOption.zero = !1)), isNumber$4(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max, range.max < 0 && (axisOption.zero = !1));
|
|
55877
|
+
let domain = [];
|
|
55878
|
+
if ("heatmap" === chartType) {
|
|
55879
|
+
const rowDimensionKey = layout.getDimensionKeyInChartSpec(layout.rowHeaderLevelCount, row, "yField"),
|
|
55880
|
+
data = null !== (_g = layout.dataset.collectedValues[rowDimensionKey]) && void 0 !== _g ? _g : [],
|
|
55881
|
+
rowPath = layout.getRowKeysPath(col, row);
|
|
55882
|
+
domain = null !== (_h = null == data ? void 0 : data[null != rowPath ? rowPath : ""]) && void 0 !== _h ? _h : [];
|
|
55883
|
+
}
|
|
55884
|
+
return merge$1({
|
|
55862
55885
|
title: {
|
|
55863
55886
|
visible: !0,
|
|
55864
55887
|
text: null == indicatorInfo ? void 0 : indicatorInfo.title,
|
|
55865
55888
|
autoRotate: !0
|
|
55866
55889
|
},
|
|
55867
|
-
range: range
|
|
55890
|
+
range: range,
|
|
55891
|
+
domain: "linear" === (null == axisOption ? void 0 : axisOption.type) ? void 0 : Array.from(domain)
|
|
55868
55892
|
}, axisOption, {
|
|
55869
55893
|
orient: "left",
|
|
55870
55894
|
type: (null == axisOption ? void 0 : axisOption.type) || "linear",
|
|
@@ -55880,7 +55904,10 @@
|
|
|
55880
55904
|
});
|
|
55881
55905
|
}
|
|
55882
55906
|
if (col === layout.colCount - layout.rightFrozenColCount && row >= layout.columnHeaderLevelCount && row < layout.rowCount - layout.bottomFrozenRowCount) {
|
|
55883
|
-
const axisRange = getRange("right", col - 1, row, layout.rowHeaderLevelCount - 1, row, col, row, 1, layout)
|
|
55907
|
+
const axisRange = getRange("right", col - 1, row, layout.rowHeaderLevelCount - 1, row, col, row, 1, layout),
|
|
55908
|
+
{
|
|
55909
|
+
chartType: chartType
|
|
55910
|
+
} = getAxisOption(col - 1, row, "right", layout);
|
|
55884
55911
|
if (!axisRange) return;
|
|
55885
55912
|
const chartCellStyle = layout._table._getCellStyle(col - 1, row),
|
|
55886
55913
|
padding = getQuadProps(getProp("padding", chartCellStyle, col - 1, row, layout._table)),
|
|
@@ -55893,11 +55920,20 @@
|
|
|
55893
55920
|
targetRange: targetRange,
|
|
55894
55921
|
theme: theme
|
|
55895
55922
|
} = axisRange;
|
|
55896
|
-
|
|
55923
|
+
isNumber$4(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min, range.min > 0 && (axisOption.zero = !1)), isNumber$4(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max, range.max < 0 && (axisOption.zero = !1));
|
|
55924
|
+
let domain = [];
|
|
55925
|
+
if ("heatmap" === chartType) {
|
|
55926
|
+
const rowDimensionKey = layout.getDimensionKeyInChartSpec(layout.colCount - layout.rightFrozenColCount - 1, row, "yField"),
|
|
55927
|
+
data = null !== (_j = layout.dataset.collectedValues[rowDimensionKey]) && void 0 !== _j ? _j : [],
|
|
55928
|
+
rowPath = layout.getRowKeysPath(col, row);
|
|
55929
|
+
domain = null !== (_k = null == data ? void 0 : data[null != rowPath ? rowPath : ""]) && void 0 !== _k ? _k : [];
|
|
55930
|
+
}
|
|
55931
|
+
return merge$1({
|
|
55897
55932
|
range: range,
|
|
55898
55933
|
title: {
|
|
55899
55934
|
autoRotate: !0
|
|
55900
|
-
}
|
|
55935
|
+
},
|
|
55936
|
+
domain: "linear" === (null == axisOption ? void 0 : axisOption.type) ? void 0 : Array.from(domain)
|
|
55901
55937
|
}, axisOption, {
|
|
55902
55938
|
orient: "right",
|
|
55903
55939
|
type: (null == axisOption ? void 0 : axisOption.type) || "linear",
|
|
@@ -55915,9 +55951,9 @@
|
|
|
55915
55951
|
if (row === layout.rowCount - layout.bottomFrozenRowCount && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) {
|
|
55916
55952
|
let columnDimensionKey = layout.getDimensionKeyInChartSpec(col, layout.columnHeaderLevelCount);
|
|
55917
55953
|
isArray$7(columnDimensionKey) && (columnDimensionKey = columnDimensionKey[0]);
|
|
55918
|
-
const data = null !== (
|
|
55954
|
+
const data = null !== (_l = layout.dataset.collectedValues[columnDimensionKey]) && void 0 !== _l ? _l : [],
|
|
55919
55955
|
colPath = layout.getColKeysPath(col, row),
|
|
55920
|
-
domain = null !== (
|
|
55956
|
+
domain = null !== (_m = null == data ? void 0 : data[null != colPath ? colPath : ""]) && void 0 !== _m ? _m : [],
|
|
55921
55957
|
{
|
|
55922
55958
|
axisOption: axisOption,
|
|
55923
55959
|
isPercent: isPercent,
|
|
@@ -55932,7 +55968,7 @@
|
|
|
55932
55968
|
range: "linear" === (null == axisOption ? void 0 : axisOption.type) ? domain : void 0
|
|
55933
55969
|
}, axisOption, {
|
|
55934
55970
|
orient: "bottom",
|
|
55935
|
-
type: null !== (
|
|
55971
|
+
type: null !== (_o = null == axisOption ? void 0 : axisOption.type) && void 0 !== _o ? _o : "band",
|
|
55936
55972
|
__vtableChartTheme: theme,
|
|
55937
55973
|
__vtablePadding: padding
|
|
55938
55974
|
});
|
|
@@ -56439,7 +56475,7 @@
|
|
|
56439
56475
|
}
|
|
56440
56476
|
constructor(container, options = {}) {
|
|
56441
56477
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
56442
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.19.
|
|
56478
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.19.10-alpha.1", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
56443
56479
|
this.pluginManager = new PluginManager$1(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
56444
56480
|
options: options,
|
|
56445
56481
|
container: container
|
|
@@ -73097,7 +73133,7 @@
|
|
|
73097
73133
|
PluginManager: PluginManager
|
|
73098
73134
|
});
|
|
73099
73135
|
|
|
73100
|
-
const version = "1.19.
|
|
73136
|
+
const version = "1.19.10-alpha.1";
|
|
73101
73137
|
|
|
73102
73138
|
exports.Gantt = Gantt;
|
|
73103
73139
|
exports.TYPES = index$4;
|