@visactor/vtable 1.0.2 → 1.0.3
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/PivotChart.d.ts +1 -1
- package/cjs/PivotChart.js +10 -2
- package/cjs/PivotChart.js.map +1 -1
- package/cjs/core/BaseTable.js +36 -14
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/scenegraph/layout/compute-col-width.js +1 -1
- package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +2 -2
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +55 -20
- package/dist/vtable.min.js +1 -1
- package/es/PivotChart.d.ts +1 -1
- package/es/PivotChart.js +10 -2
- package/es/PivotChart.js.map +1 -1
- package/es/core/BaseTable.js +34 -15
- package/es/core/BaseTable.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/scenegraph/layout/compute-col-width.js +1 -1
- package/es/scenegraph/layout/compute-col-width.js.map +1 -1
- package/es/ts-types/base-table.d.ts +2 -2
- package/es/ts-types/base-table.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +2 -2
package/dist/vtable.js
CHANGED
|
@@ -44910,7 +44910,7 @@
|
|
|
44910
44910
|
if (hd?.define?.columnWidthComputeMode === 'only-body') {
|
|
44911
44911
|
continue;
|
|
44912
44912
|
}
|
|
44913
|
-
if (hd?.hierarchyLevel) {
|
|
44913
|
+
if (isValid$3(hd?.hierarchyLevel)) {
|
|
44914
44914
|
cellHierarchyIndent =
|
|
44915
44915
|
(hd.hierarchyLevel ?? 0) * (layoutMap.rowHierarchyIndent ?? 0);
|
|
44916
44916
|
if (layoutMap.rowHierarchyTextStartAlignment &&
|
|
@@ -59133,7 +59133,7 @@
|
|
|
59133
59133
|
return TABLE_EVENT_TYPE;
|
|
59134
59134
|
}
|
|
59135
59135
|
options;
|
|
59136
|
-
version = "1.0.
|
|
59136
|
+
version = "1.0.3";
|
|
59137
59137
|
pagination;
|
|
59138
59138
|
id = `VTable${Date.now()}`;
|
|
59139
59139
|
headerStyleCache;
|
|
@@ -59273,11 +59273,23 @@
|
|
|
59273
59273
|
this.stateManager = new StateManager(this);
|
|
59274
59274
|
this.eventManager = new EventManager(this);
|
|
59275
59275
|
if (options.legends) {
|
|
59276
|
-
internalProps.legends =
|
|
59277
|
-
|
|
59278
|
-
|
|
59279
|
-
|
|
59280
|
-
|
|
59276
|
+
internalProps.legends = [];
|
|
59277
|
+
if (Array.isArray(options.legends)) {
|
|
59278
|
+
for (let i = 0; i < options.legends.length; i++) {
|
|
59279
|
+
internalProps.legends.push(createLegend(options.legends[i], this));
|
|
59280
|
+
}
|
|
59281
|
+
this.scenegraph.tableGroup.setAttributes({
|
|
59282
|
+
x: this.tableX,
|
|
59283
|
+
y: this.tableY
|
|
59284
|
+
});
|
|
59285
|
+
}
|
|
59286
|
+
else {
|
|
59287
|
+
internalProps.legends.push(createLegend(options.legends, this));
|
|
59288
|
+
this.scenegraph.tableGroup.setAttributes({
|
|
59289
|
+
x: this.tableX,
|
|
59290
|
+
y: this.tableY
|
|
59291
|
+
});
|
|
59292
|
+
}
|
|
59281
59293
|
}
|
|
59282
59294
|
internalProps.tooltip = Object.assign({
|
|
59283
59295
|
renderMode: 'html',
|
|
@@ -59316,9 +59328,9 @@
|
|
|
59316
59328
|
}
|
|
59317
59329
|
resize() {
|
|
59318
59330
|
this._updateSize();
|
|
59319
|
-
|
|
59320
|
-
|
|
59321
|
-
}
|
|
59331
|
+
this.internalProps.legends?.forEach(legend => {
|
|
59332
|
+
legend?.resize();
|
|
59333
|
+
});
|
|
59322
59334
|
if (this.internalProps.title) {
|
|
59323
59335
|
this.internalProps.title.resize();
|
|
59324
59336
|
}
|
|
@@ -60311,7 +60323,9 @@
|
|
|
60311
60323
|
super.release?.();
|
|
60312
60324
|
internalProps.handler?.release?.();
|
|
60313
60325
|
internalProps.focusControl?.release?.();
|
|
60314
|
-
internalProps.legends?.
|
|
60326
|
+
internalProps.legends?.forEach(legend => {
|
|
60327
|
+
legend?.release();
|
|
60328
|
+
});
|
|
60315
60329
|
internalProps.title?.release();
|
|
60316
60330
|
internalProps.layoutMap.release();
|
|
60317
60331
|
if (internalProps.releaseList) {
|
|
@@ -60415,7 +60429,9 @@
|
|
|
60415
60429
|
: 0
|
|
60416
60430
|
: 10;
|
|
60417
60431
|
this._vDataSet = new DataSet();
|
|
60418
|
-
internalProps.legends?.
|
|
60432
|
+
internalProps.legends?.forEach(legend => {
|
|
60433
|
+
legend?.release();
|
|
60434
|
+
});
|
|
60419
60435
|
internalProps.title?.release();
|
|
60420
60436
|
internalProps.layoutMap.release();
|
|
60421
60437
|
this.scenegraph.clearCells();
|
|
@@ -60424,11 +60440,23 @@
|
|
|
60424
60440
|
this._updateSize();
|
|
60425
60441
|
this.eventManager.updateEventBinder();
|
|
60426
60442
|
if (options.legends) {
|
|
60427
|
-
internalProps.legends =
|
|
60428
|
-
|
|
60429
|
-
|
|
60430
|
-
|
|
60431
|
-
|
|
60443
|
+
internalProps.legends = [];
|
|
60444
|
+
if (Array.isArray(options.legends)) {
|
|
60445
|
+
for (let i = 0; i < options.legends.length; i++) {
|
|
60446
|
+
internalProps.legends.push(createLegend(options.legends[i], this));
|
|
60447
|
+
}
|
|
60448
|
+
this.scenegraph.tableGroup.setAttributes({
|
|
60449
|
+
x: this.tableX,
|
|
60450
|
+
y: this.tableY
|
|
60451
|
+
});
|
|
60452
|
+
}
|
|
60453
|
+
else {
|
|
60454
|
+
internalProps.legends.push(createLegend(options.legends, this));
|
|
60455
|
+
this.scenegraph.tableGroup.setAttributes({
|
|
60456
|
+
x: this.tableX,
|
|
60457
|
+
y: this.tableY
|
|
60458
|
+
});
|
|
60459
|
+
}
|
|
60432
60460
|
}
|
|
60433
60461
|
internalProps.tooltip = Object.assign({
|
|
60434
60462
|
renderMode: 'html',
|
|
@@ -70953,10 +70981,17 @@
|
|
|
70953
70981
|
this.render();
|
|
70954
70982
|
}
|
|
70955
70983
|
getLegendSelected() {
|
|
70956
|
-
|
|
70984
|
+
const selected = [];
|
|
70985
|
+
this.internalProps.legends?.forEach(legend => {
|
|
70986
|
+
const data = legend.legendComponent._getSelectedLegends().map((d) => d.label);
|
|
70987
|
+
selected.push(...data);
|
|
70988
|
+
});
|
|
70989
|
+
return selected;
|
|
70957
70990
|
}
|
|
70958
70991
|
setLegendSelected(selectedData) {
|
|
70959
|
-
this.internalProps.legends
|
|
70992
|
+
this.internalProps.legends?.forEach(legend => {
|
|
70993
|
+
legend.legendComponent.setSelected(selectedData);
|
|
70994
|
+
});
|
|
70960
70995
|
}
|
|
70961
70996
|
getChartDatumPosition(datum, cellHeaderPaths) {
|
|
70962
70997
|
const { chartInstance, bounds } = this.getChartInstance(cellHeaderPaths);
|
|
@@ -71735,7 +71770,7 @@
|
|
|
71735
71770
|
}
|
|
71736
71771
|
|
|
71737
71772
|
registerForVrender();
|
|
71738
|
-
const version = "1.0.
|
|
71773
|
+
const version = "1.0.3";
|
|
71739
71774
|
function getIcons() {
|
|
71740
71775
|
return get$2();
|
|
71741
71776
|
}
|