@visactor/vtable-gantt 1.23.2 → 1.23.3-alpha.0
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/event/touch.js +0 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/plugins/index.js +2 -1
- package/cjs/state/gantt-table-sync.js +0 -1
- package/cjs/state/state-manager.js +1 -0
- package/cjs/zoom-scale/ZoomScaleManager.js +1 -2
- package/cjs/zoom-scale/index.js +2 -1
- package/dist/vtable-gantt.js +20 -15
- package/dist/vtable-gantt.min.js +2 -2
- package/es/event/touch.js +1 -2
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/plugins/index.js +2 -1
- package/es/state/gantt-table-sync.js +1 -2
- package/es/state/state-manager.js +2 -1
- package/es/zoom-scale/ZoomScaleManager.js +1 -2
- package/es/zoom-scale/index.js +2 -1
- package/package.json +4 -4
package/cjs/event/touch.js
CHANGED
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.23.
|
|
9
|
+
export declare const version = "1.23.3-alpha.0";
|
|
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,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.23.3-alpha.0\";\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"]}
|
package/cjs/plugins/index.js
CHANGED
|
@@ -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/cjs/zoom-scale/index.js
CHANGED
package/dist/vtable-gantt.js
CHANGED
|
@@ -21646,7 +21646,7 @@
|
|
|
21646
21646
|
this._sliderRenderBounds = null, this._sliderLimitRange = null;
|
|
21647
21647
|
}
|
|
21648
21648
|
release(all) {
|
|
21649
|
-
super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).
|
|
21649
|
+
super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).removeEventListener("touchmove", this._handleTouchMove, {
|
|
21650
21650
|
passive: !1
|
|
21651
21651
|
}), this._clearDragEvents();
|
|
21652
21652
|
}
|
|
@@ -23229,17 +23229,21 @@
|
|
|
23229
23229
|
} = this.attribute.label;
|
|
23230
23230
|
textStyle = isFunction$3(textStyle) ? merge({}, DEFAULT_AXIS_THEME.label.style, textStyle(tickDatum, index, tickData, layer)) : textStyle;
|
|
23231
23231
|
const labelAlign = this.getLabelAlign(vector, inside, textStyle.angle);
|
|
23232
|
-
|
|
23232
|
+
textStyle = merge(labelAlign, textStyle), isFunction$3(textStyle.text) && (textStyle.text = textStyle.text({
|
|
23233
23233
|
label: tickDatum.label,
|
|
23234
23234
|
value: tickDatum.rawValue,
|
|
23235
23235
|
index: tickDatum.index,
|
|
23236
23236
|
layer: layer
|
|
23237
|
-
}))
|
|
23237
|
+
}));
|
|
23238
|
+
let reactStyle = textStyle.react;
|
|
23239
|
+
return isFunction$3(reactStyle) && (reactStyle = reactStyle(tickDatum, index, tickData, layer)), Object.assign(Object.assign(Object.assign(Object.assign({}, this.getLabelPosition(point, vector, textContent, textStyle)), {
|
|
23238
23240
|
text: null != text ? text : textContent,
|
|
23239
23241
|
_originText: tickDatum.label,
|
|
23240
23242
|
lineHeight: null == textStyle ? void 0 : textStyle.fontSize,
|
|
23241
23243
|
type: type
|
|
23242
|
-
}), textStyle)
|
|
23244
|
+
}), textStyle), {
|
|
23245
|
+
react: reactStyle
|
|
23246
|
+
});
|
|
23243
23247
|
}
|
|
23244
23248
|
getLabelPosition(point, vector, text, style) {
|
|
23245
23249
|
return point;
|
|
@@ -24268,6 +24272,8 @@
|
|
|
24268
24272
|
this.status === STATUS$1.RUNNING && (this.tickCounts++, this.timelines.forEach(timeline => {
|
|
24269
24273
|
timeline.tick(delta);
|
|
24270
24274
|
}), this.emit("tick", delta));
|
|
24275
|
+
}, this._handleGraphTick = () => {
|
|
24276
|
+
this.initHandler(!1);
|
|
24271
24277
|
}, this.init(), this.lastFrameTime = -1, this.tickCounts = 0, this.stage = stage, this.autoStop = !0, this.interval = 16, this.computeTimeOffsetAndJitter();
|
|
24272
24278
|
}
|
|
24273
24279
|
bindStage(stage) {
|
|
@@ -24277,9 +24283,7 @@
|
|
|
24277
24283
|
this.timeOffset = Math.floor(Math.random() * this.interval), this._jitter = Math.min(Math.max(.2 * this.interval, 6), .7 * this.interval);
|
|
24278
24284
|
}
|
|
24279
24285
|
init() {
|
|
24280
|
-
this.interval = 16, this.status = STATUS$1.INITIAL, application.global.hooks.onSetEnv.tap("graph-ticker",
|
|
24281
|
-
this.initHandler(!1);
|
|
24282
|
-
}), application.global.env && this.initHandler(!1);
|
|
24286
|
+
this.interval = 16, this.status = STATUS$1.INITIAL, application.global.hooks.onSetEnv.tap("graph-ticker", this._handleGraphTick), application.global.env && this.initHandler(!1);
|
|
24283
24287
|
}
|
|
24284
24288
|
addTimeline(timeline) {
|
|
24285
24289
|
this.timelines.push(timeline);
|
|
@@ -24352,7 +24356,7 @@
|
|
|
24352
24356
|
}
|
|
24353
24357
|
release() {
|
|
24354
24358
|
var _a;
|
|
24355
|
-
this.stop(), this.timelines = [], null === (_a = this.tickerHandler) || void 0 === _a || _a.release(), this.tickerHandler = null, this.lastFrameTime = -1;
|
|
24359
|
+
this.stop(), this.timelines = [], null === (_a = this.tickerHandler) || void 0 === _a || _a.release(), this.tickerHandler = null, this.lastFrameTime = -1, application.global.hooks.onSetEnv.unTap("graph-ticker", this._handleGraphTick);
|
|
24356
24360
|
}
|
|
24357
24361
|
checkSkip(delta) {
|
|
24358
24362
|
var _a, _b, _c;
|
|
@@ -60388,7 +60392,7 @@
|
|
|
60388
60392
|
}
|
|
60389
60393
|
constructor(container, options = {}) {
|
|
60390
60394
|
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;
|
|
60391
|
-
if (super(), this.showFrozenIcon = !0, this._tableBorderWidth_left = 0, this._tableBorderWidth_right = 0, this._tableBorderWidth_top = 0, this._tableBorderWidth_bottom = 0, this.version = "1.23.
|
|
60395
|
+
if (super(), this.showFrozenIcon = !0, this._tableBorderWidth_left = 0, this._tableBorderWidth_right = 0, this._tableBorderWidth_top = 0, this._tableBorderWidth_bottom = 0, this.version = "1.23.3-alpha.0", 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");
|
|
60392
60396
|
this.pluginManager = new PluginManager$1(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
60393
60397
|
options: options,
|
|
60394
60398
|
container: container
|
|
@@ -61327,17 +61331,18 @@
|
|
|
61327
61331
|
this.release();
|
|
61328
61332
|
}
|
|
61329
61333
|
release() {
|
|
61330
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
61334
|
+
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, _0, _1;
|
|
61335
|
+
null === (_c = null === (_b = null === (_a = this.scenegraph) || void 0 === _a ? void 0 : _a.component) || void 0 === _b ? void 0 : _b.vScrollBar) || void 0 === _c || _c.release(), null === (_f = null === (_e = null === (_d = this.scenegraph) || void 0 === _d ? void 0 : _d.component) || void 0 === _e ? void 0 : _e.hScrollBar) || void 0 === _f || _f.release(), this.animationManager.clear(), this.animationManager.ticker.release(), null === (_j = null === (_h = null === (_g = this.scenegraph) || void 0 === _g ? void 0 : _g.stage) || void 0 === _h ? void 0 : _h.ticker) || void 0 === _j || _j.release();
|
|
61331
61336
|
const internalProps = this.internalProps;
|
|
61332
61337
|
if (this.isReleased) return;
|
|
61333
|
-
null === (
|
|
61338
|
+
null === (_l = null === (_k = internalProps.tooltipHandler) || void 0 === _k ? void 0 : _k.release) || void 0 === _l || _l.call(_k), null === (_o = null === (_m = internalProps.menuHandler) || void 0 === _m ? void 0 : _m.release) || void 0 === _o || _o.call(_m), null === (_p = super.release) || void 0 === _p || _p.call(this), this.pluginManager.release(), null === (_r = null === (_q = internalProps.handler) || void 0 === _q ? void 0 : _q.release) || void 0 === _r || _r.call(_q), this.eventManager.release(), null === (_t = null === (_s = internalProps.focusControl) || void 0 === _s ? void 0 : _s.release) || void 0 === _t || _t.call(_s), null === (_u = internalProps.legends) || void 0 === _u || _u.forEach(legend => {
|
|
61334
61339
|
null == legend || legend.release();
|
|
61335
|
-
}), null === (
|
|
61340
|
+
}), null === (_v = internalProps.title) || void 0 === _v || _v.release(), internalProps.title = null, null === (_w = internalProps.emptyTip) || void 0 === _w || _w.release(), internalProps.emptyTip = null, internalProps.layoutMap.release(), internalProps.releaseList && (internalProps.releaseList.forEach(releaseObj => {
|
|
61336
61341
|
var _a;
|
|
61337
61342
|
return null === (_a = null == releaseObj ? void 0 : releaseObj.release) || void 0 === _a ? void 0 : _a.call(releaseObj);
|
|
61338
61343
|
}), internalProps.releaseList = null), this.scenegraph.stage.release(), this.scenegraph.proxy.release();
|
|
61339
|
-
const parentElement = null === (
|
|
61340
|
-
parentElement && !this.options.canvas && parentElement.removeChild(internalProps.element), null === (
|
|
61344
|
+
const parentElement = null === (_x = internalProps.element) || void 0 === _x ? void 0 : _x.parentElement;
|
|
61345
|
+
parentElement && !this.options.canvas && parentElement.removeChild(internalProps.element), null === (_0 = null === (_z = null === (_y = this.editorManager) || void 0 === _y ? void 0 : _y.editingEditor) || void 0 === _z ? void 0 : _z.onEnd) || void 0 === _0 || _0.call(_z), this.isReleased = !0, this.scenegraph = null, this.internalProps = null, null === (_1 = this.reactCustomLayout) || void 0 === _1 || _1.clearCache(), clearChartRenderQueue();
|
|
61341
61346
|
}
|
|
61342
61347
|
fireListeners(type, event) {
|
|
61343
61348
|
return super.fireListeners(type, event);
|
|
@@ -76962,7 +76967,7 @@
|
|
|
76962
76967
|
PluginManager: PluginManager
|
|
76963
76968
|
});
|
|
76964
76969
|
|
|
76965
|
-
const version = "1.23.
|
|
76970
|
+
const version = "1.23.3-alpha.0";
|
|
76966
76971
|
|
|
76967
76972
|
exports.Gantt = Gantt;
|
|
76968
76973
|
exports.TYPES = index$4;
|