@visactor/vtable-gantt 1.22.6-alpha.1 → 1.22.6-alpha.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/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/scenegraph/timeline-header.js +2 -1
- package/cjs/state/gantt-table-sync.js +0 -1
- package/dist/vtable-gantt.js +10 -21
- 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/es/scenegraph/timeline-header.js +2 -1
- package/es/state/gantt-table-sync.js +1 -2
- package/package.json +5 -5
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.22.6-alpha.
|
|
9
|
+
export declare const version = "1.22.6-alpha.3";
|
|
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,gBAAgB,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.22.6-alpha.
|
|
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,gBAAgB,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.22.6-alpha.3\";\n/**\n * @namespace VTableGantt\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"]}
|
|
@@ -89,7 +89,6 @@ function _syncTableSize(gantt) {
|
|
|
89
89
|
gantt._updateSize(), (0, gantt_helper_1.updateSplitLineAndResizeLine)(gantt), gantt.zoomScaleManager && gantt.zoomScaleManager.handleTableWidthChange());
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
//# sourceMappingURL=gantt-table-sync.js.map
|
|
93
92
|
exports.syncScrollStateToTable = syncScrollStateToTable, exports.syncScrollStateFromTable = syncScrollStateFromTable,
|
|
94
93
|
exports.syncEditCellFromTable = syncEditCellFromTable, exports.syncTreeChangeFromTable = syncTreeChangeFromTable,
|
|
95
94
|
exports.syncSortFromTable = syncSortFromTable, exports.syncDragOrderFromTable = syncDragOrderFromTable,
|
package/dist/vtable-gantt.js
CHANGED
|
@@ -48042,11 +48042,8 @@
|
|
|
48042
48042
|
}, axisOption, {
|
|
48043
48043
|
orient: "left",
|
|
48044
48044
|
type: null !== (_e = null == axisOption ? void 0 : axisOption.type) && void 0 !== _e ? _e : "band",
|
|
48045
|
-
label: {
|
|
48046
|
-
flush: !0
|
|
48047
|
-
},
|
|
48048
|
-
inverse: transformInverse(axisOption, "horizontal" === (null !== (_f = null == spec ? void 0 : spec.direction) && void 0 !== _f ? _f : "scatter" === chartType ? "vertical" : "horizontal")),
|
|
48049
48045
|
__vtableChartTheme: theme,
|
|
48046
|
+
inverse: transformInverse(axisOption, "horizontal" === (null !== (_f = null == spec ? void 0 : spec.direction) && void 0 !== _f ? _f : "scatter" === chartType ? "vertical" : "horizontal")),
|
|
48050
48047
|
__vtableBodyChartCellPadding: bodyChartCellPadding
|
|
48051
48048
|
});
|
|
48052
48049
|
}
|
|
@@ -48173,9 +48170,6 @@
|
|
|
48173
48170
|
}, axisOption, {
|
|
48174
48171
|
orient: "bottom",
|
|
48175
48172
|
type: null !== (_o = null == axisOption ? void 0 : axisOption.type) && void 0 !== _o ? _o : "band",
|
|
48176
|
-
label: {
|
|
48177
|
-
flush: !0
|
|
48178
|
-
},
|
|
48179
48173
|
__vtableChartTheme: theme,
|
|
48180
48174
|
__vtableBodyChartCellPadding: bodyChartCellPadding
|
|
48181
48175
|
});
|
|
@@ -48540,7 +48534,7 @@
|
|
|
48540
48534
|
releaseColumnChartInstance = !0,
|
|
48541
48535
|
releaseRowChartInstance = !0
|
|
48542
48536
|
} = {}) {
|
|
48543
|
-
var _a, _b, _c, _d, _e, _f
|
|
48537
|
+
var _a, _b, _c, _d, _e, _f;
|
|
48544
48538
|
if (this.activeChartInstanceHoverOnMark = null, this.justShowMarkTooltip = void 0, this.justShowMarkTooltipTimer = Date.now(), clearTimeout(this.delayRunDimensionHoverTimer), this.delayRunDimensionHoverTimer = void 0, releaseChartInstance) {
|
|
48545
48539
|
null === (_a = this.activeChartInstance) || void 0 === _a || _a.updateViewBox({
|
|
48546
48540
|
x1: -1e3,
|
|
@@ -48549,16 +48543,11 @@
|
|
|
48549
48543
|
y2: -800
|
|
48550
48544
|
}, !1, !1), null === (_b = this.activeChartInstance) || void 0 === _b || _b.release(), this.activeChartInstance = null;
|
|
48551
48545
|
const {
|
|
48552
|
-
|
|
48553
|
-
|
|
48554
|
-
|
|
48546
|
+
col: col,
|
|
48547
|
+
row: row
|
|
48548
|
+
} = this.parent,
|
|
48549
|
+
table = this.stage.table;
|
|
48555
48550
|
table.internalProps.layoutMap.isAxisCell(table.rowHeaderLevelCount - 1, row) && (null === (_d = (_c = table.scenegraph.getCell(table.rowHeaderLevelCount - 1, row).firstChild).hideLabelHoverOnAxis) || void 0 === _d || _d.call(_c)), table.internalProps.layoutMap.isAxisCell(col, table.rowCount - table.bottomFrozenRowCount) && (null === (_f = (_e = table.scenegraph.getCell(col, table.rowCount - table.bottomFrozenRowCount).firstChild).hideLabelHoverOnAxis) || void 0 === _f || _f.call(_e));
|
|
48556
|
-
} else {
|
|
48557
|
-
const {
|
|
48558
|
-
col: col,
|
|
48559
|
-
row: row
|
|
48560
|
-
} = this.parent;
|
|
48561
|
-
releaseColumnChartInstance && table.internalProps.layoutMap.isAxisCell(col, table.rowCount - table.bottomFrozenRowCount) && (null === (_h = (_g = table.scenegraph.getCell(col, table.rowCount - table.bottomFrozenRowCount).firstChild).hideLabelHoverOnAxis) || void 0 === _h || _h.call(_g)), releaseRowChartInstance && table.internalProps.layoutMap.isAxisCell(table.rowHeaderLevelCount - 1, row) && (null === (_k = (_j = table.scenegraph.getCell(table.rowHeaderLevelCount - 1, row).firstChild).hideLabelHoverOnAxis) || void 0 === _k || _k.call(_j));
|
|
48562
48551
|
}
|
|
48563
48552
|
releaseColumnChartInstance && clearChartInstanceListByColumnDirection(this.parent.col, "scatter" === this.attribute.spec.type ? this.parent.row : void 0, table), releaseRowChartInstance && clearChartInstanceListByRowDirection(this.parent.row, "scatter" === this.attribute.spec.type ? this.parent.col : void 0, table);
|
|
48564
48553
|
}
|
|
@@ -48683,7 +48672,7 @@
|
|
|
48683
48672
|
tickMode: null === (_e = axis.tick) || void 0 === _e ? void 0 : _e.tickMode
|
|
48684
48673
|
}
|
|
48685
48674
|
}, !0);
|
|
48686
|
-
}), null === (_c = null === (_b = table.internalProps.layoutMap) || void 0 === _b ? void 0 : _b.updateDataStateToActiveChartInstance) || void 0 === _c || _c.call(_b, chartInstance), "string" == typeof dataId
|
|
48675
|
+
}), null === (_c = null === (_b = table.internalProps.layoutMap) || void 0 === _b ? void 0 : _b.updateDataStateToActiveChartInstance) || void 0 === _c || _c.call(_b, chartInstance), "string" == typeof dataId) chartInstance.getChart().setLayoutTag(!0), chartInstance.updateDataSync(dataId, null != data ? data : []);else {
|
|
48687
48676
|
const dataBatch = [];
|
|
48688
48677
|
for (const dataIdStr in dataId) {
|
|
48689
48678
|
const dataIdAndField = dataId[dataIdStr],
|
|
@@ -48835,7 +48824,7 @@
|
|
|
48835
48824
|
chartStage.needRender = !0;
|
|
48836
48825
|
const matrix = chart.globalTransMatrix.clone(),
|
|
48837
48826
|
stageMatrix = chart.stage.window.getViewBoxTransform().clone();
|
|
48838
|
-
if (stageMatrix.multiply(matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f), chartStage.window.setViewBoxTransform(stageMatrix.a, stageMatrix.b, stageMatrix.c, stageMatrix.d, stageMatrix.e, stageMatrix.f), "string" == typeof dataId
|
|
48827
|
+
if (stageMatrix.multiply(matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f), chartStage.window.setViewBoxTransform(stageMatrix.a, stageMatrix.b, stageMatrix.c, stageMatrix.d, stageMatrix.e, stageMatrix.f), "string" == typeof dataId) activeChartInstance.updateDataSync(dataId, null != data ? data : []);else {
|
|
48839
48828
|
const dataBatch = [];
|
|
48840
48829
|
for (const dataIdStr in dataId) {
|
|
48841
48830
|
const dataIdAndField = dataId[dataIdStr],
|
|
@@ -59814,7 +59803,7 @@
|
|
|
59814
59803
|
}
|
|
59815
59804
|
constructor(container, options = {}) {
|
|
59816
59805
|
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;
|
|
59817
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.22.6-alpha.
|
|
59806
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.22.6-alpha.3", 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");
|
|
59818
59807
|
this.pluginManager = new PluginManager$1(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
59819
59808
|
options: options,
|
|
59820
59809
|
container: container
|
|
@@ -77741,7 +77730,7 @@
|
|
|
77741
77730
|
PluginManager: PluginManager
|
|
77742
77731
|
});
|
|
77743
77732
|
|
|
77744
|
-
const version = "1.22.6-alpha.
|
|
77733
|
+
const version = "1.22.6-alpha.3";
|
|
77745
77734
|
|
|
77746
77735
|
exports.Gantt = Gantt;
|
|
77747
77736
|
exports.TYPES = index$4;
|