@visactor/vtable-sheet 1.22.13-alpha.1 → 1.22.13-alpha.10
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-sheet.js +97 -45
- package/dist/vtable-sheet.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +4 -4
package/cjs/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import VTableSheet from './components/vtable-sheet';
|
|
|
2
2
|
import type { ISheetDefine, IVTableSheetOptions } from './ts-types';
|
|
3
3
|
import * as TYPES from './ts-types';
|
|
4
4
|
import * as VTable from './vtable';
|
|
5
|
-
export declare const version = "1.22.13-alpha.
|
|
5
|
+
export declare const version = "1.22.13-alpha.10";
|
|
6
6
|
export { VTableSheet, TYPES, VTable, ISheetDefine, IVTableSheetOptions };
|
package/cjs/index.js
CHANGED
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6EAAoD;AAW3C,sBAXF,sBAAW,CAWE;AATpB,kDAAoC;AASd,sBAAK;AAR3B,iDAAmC;AAQN,wBAAM;AAPnC,0DAAsD;AACzC,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6EAAoD;AAW3C,sBAXF,sBAAW,CAWE;AATpB,kDAAoC;AASd,sBAAK;AAR3B,iDAAmC;AAQN,wBAAM;AAPnC,0DAAsD;AACzC,QAAA,OAAO,GAAG,kBAAkB,CAAC;AAE1C,IAAA,4BAAY,GAAE,CAAC","file":"index.js","sourcesContent":["import VTableSheet from './components/vtable-sheet';\nimport type { ISheetDefine, IVTableSheetOptions } from './ts-types';\nimport * as TYPES from './ts-types';\nimport * as VTable from './vtable';\nimport { importStyles } from './styles/style-manager';\nexport const version = \"1.22.13-alpha.10\";\n// 导入样式\nimportStyles();\n/**\n * @namespace VTableSheet\n */\nexport { VTableSheet, TYPES, VTable, ISheetDefine, IVTableSheetOptions };\n"]}
|
package/dist/vtable-sheet.js
CHANGED
|
@@ -3667,28 +3667,59 @@
|
|
|
3667
3667
|
}
|
|
3668
3668
|
addEventListener(type, listener, options) {
|
|
3669
3669
|
if (!listener) return;
|
|
3670
|
+
const capture = this._resolveCapture(options),
|
|
3671
|
+
once = this._resolveOnce(options),
|
|
3672
|
+
listenerTypeMap = this._getOrCreateListenerTypeMap(type),
|
|
3673
|
+
wrappedMap = this._getOrCreateWrappedMap(listenerTypeMap, listener);
|
|
3674
|
+
if (wrappedMap.has(capture)) return;
|
|
3670
3675
|
const wrappedListener = event => {
|
|
3671
3676
|
const transformedEvent = this._eventListenerTransformer(event);
|
|
3672
|
-
"function" == typeof listener ? listener(transformedEvent) : listener.handleEvent && listener.handleEvent(transformedEvent);
|
|
3677
|
+
"function" == typeof listener ? listener(transformedEvent) : listener.handleEvent && listener.handleEvent(transformedEvent), once && this._deleteListenerRecord(type, listener, capture);
|
|
3673
3678
|
};
|
|
3674
|
-
|
|
3679
|
+
wrappedMap.set(capture, {
|
|
3680
|
+
wrappedListener: wrappedListener,
|
|
3681
|
+
options: options
|
|
3682
|
+
}), this._nativeAddEventListener(type, wrappedListener, options);
|
|
3675
3683
|
}
|
|
3676
3684
|
removeEventListener(type, listener, options) {
|
|
3677
|
-
var _a;
|
|
3685
|
+
var _a, _b;
|
|
3678
3686
|
if (!listener) return;
|
|
3679
|
-
const
|
|
3680
|
-
|
|
3687
|
+
const capture = this._resolveCapture(options),
|
|
3688
|
+
wrappedRecord = null === (_b = null === (_a = this._listenerMap.get(type)) || void 0 === _a ? void 0 : _a.get(listener)) || void 0 === _b ? void 0 : _b.get(capture);
|
|
3689
|
+
wrappedRecord && (this._nativeRemoveEventListener(type, wrappedRecord.wrappedListener, capture), this._deleteListenerRecord(type, listener, capture));
|
|
3681
3690
|
}
|
|
3682
3691
|
dispatchEvent(event) {
|
|
3683
3692
|
return this._nativeDispatchEvent(event);
|
|
3684
3693
|
}
|
|
3685
3694
|
clearAllEventListeners() {
|
|
3686
|
-
this._listenerMap.forEach((
|
|
3687
|
-
|
|
3688
|
-
|
|
3695
|
+
this._listenerMap.forEach((listenerMap, type) => {
|
|
3696
|
+
listenerMap.forEach(wrappedMap => {
|
|
3697
|
+
wrappedMap.forEach((wrappedRecord, capture) => {
|
|
3698
|
+
this._nativeRemoveEventListener(type, wrappedRecord.wrappedListener, capture);
|
|
3699
|
+
});
|
|
3689
3700
|
});
|
|
3690
3701
|
}), this._listenerMap.clear();
|
|
3691
3702
|
}
|
|
3703
|
+
_resolveCapture(options) {
|
|
3704
|
+
return "boolean" == typeof options ? options : !!(null == options ? void 0 : options.capture);
|
|
3705
|
+
}
|
|
3706
|
+
_resolveOnce(options) {
|
|
3707
|
+
return "object" == typeof options && !!(null == options ? void 0 : options.once);
|
|
3708
|
+
}
|
|
3709
|
+
_getOrCreateListenerTypeMap(type) {
|
|
3710
|
+
let listenerTypeMap = this._listenerMap.get(type);
|
|
3711
|
+
return listenerTypeMap || (listenerTypeMap = new Map(), this._listenerMap.set(type, listenerTypeMap)), listenerTypeMap;
|
|
3712
|
+
}
|
|
3713
|
+
_getOrCreateWrappedMap(listenerTypeMap, listener) {
|
|
3714
|
+
let wrappedMap = listenerTypeMap.get(listener);
|
|
3715
|
+
return wrappedMap || (wrappedMap = new Map(), listenerTypeMap.set(listener, wrappedMap)), wrappedMap;
|
|
3716
|
+
}
|
|
3717
|
+
_deleteListenerRecord(type, listener, capture) {
|
|
3718
|
+
const listenerTypeMap = this._listenerMap.get(type);
|
|
3719
|
+
if (!listenerTypeMap) return;
|
|
3720
|
+
const wrappedMap = listenerTypeMap.get(listener);
|
|
3721
|
+
wrappedMap && (wrappedMap.delete(capture), 0 === wrappedMap.size && listenerTypeMap.delete(listener), 0 === listenerTypeMap.size && this._listenerMap.delete(type));
|
|
3722
|
+
}
|
|
3692
3723
|
_nativeAddEventListener(type, listener, options) {
|
|
3693
3724
|
throw new Error("_nativeAddEventListener must be implemented by derived classes");
|
|
3694
3725
|
}
|
|
@@ -10202,7 +10233,9 @@
|
|
|
10202
10233
|
var _a;
|
|
10203
10234
|
if (event.manager !== this) throw new Error("It is illegal to free an event not managed by this EventManager!");
|
|
10204
10235
|
const constructor = event.constructor;
|
|
10205
|
-
this.eventPool.has(constructor) || this.eventPool.
|
|
10236
|
+
this.eventPool.has(constructor) || (this.eventPool.get(constructor).forEach(e => {
|
|
10237
|
+
e.eventPhase = event.NONE, e.currentTarget = null, e.path = [], e.detailPath = [], e.target = null;
|
|
10238
|
+
}), this.eventPool.set(constructor, [])), null === (_a = this.eventPool.get(constructor)) || void 0 === _a || _a.push(event);
|
|
10206
10239
|
}
|
|
10207
10240
|
notifyListeners(e, type) {
|
|
10208
10241
|
const listeners = e.currentTarget._events[type];
|
|
@@ -12806,7 +12839,7 @@
|
|
|
12806
12839
|
});
|
|
12807
12840
|
}
|
|
12808
12841
|
release() {
|
|
12809
|
-
this.releaseStatus = "released", this.stopAnimates(), application.graphicService.onRelease(this);
|
|
12842
|
+
this.releaseStatus = "released", this.stopAnimates(), application.graphicService.onRelease(this), super.release();
|
|
12810
12843
|
}
|
|
12811
12844
|
_emitCustomEvent(type, context) {
|
|
12812
12845
|
var _a, _b;
|
|
@@ -20213,12 +20246,12 @@
|
|
|
20213
20246
|
throw new Error("暂不支持");
|
|
20214
20247
|
}
|
|
20215
20248
|
release() {
|
|
20216
|
-
var _a, _b;
|
|
20249
|
+
var _a, _b, _d;
|
|
20217
20250
|
super.release(), this.hooks.beforeRender.unTap("constructor", this.beforeRender), this.hooks.afterRender.unTap("constructor", this.afterRender), this.eventSystem && this.eventSystem.release(), this.layerService.releaseStage(this), this.pluginService.release(), this.forEach(layer => {
|
|
20218
20251
|
layer.release();
|
|
20219
20252
|
}), this.interactiveLayer && (this.interactiveLayer.forEachChildren(item => {
|
|
20220
20253
|
item.setStage && item.setStage(null, null), this.interactiveLayer.removeChild(item);
|
|
20221
|
-
}), this.interactiveLayer.release()), this.window.release(), null === (_a = this._ticker) || void 0 === _a || _a.remTimeline(null == this ? void 0 : this.timeline), null === (_b = this._ticker) || void 0 === _b || _b.removeListener("tick", this.afterTickCb), this.renderService.renderTreeRoots = [];
|
|
20254
|
+
}), this.interactiveLayer.release()), this.window.release(), null === (_a = this._ticker) || void 0 === _a || _a.remTimeline(null == this ? void 0 : this.timeline), null === (_b = this._ticker) || void 0 === _b || _b.removeListener("tick", this.afterTickCb), this.params.ticker || null === (_d = this._ticker) || void 0 === _d || _d.release(), this.renderService.renderTreeRoots = [];
|
|
20222
20255
|
}
|
|
20223
20256
|
setStage(stage) {}
|
|
20224
20257
|
dirty(b, matrix) {
|
|
@@ -24444,7 +24477,7 @@
|
|
|
24444
24477
|
this._sliderRenderBounds = null, this._sliderLimitRange = null;
|
|
24445
24478
|
}
|
|
24446
24479
|
release(all) {
|
|
24447
|
-
super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).
|
|
24480
|
+
super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).removeEventListener("touchmove", this._handleTouchMove, {
|
|
24448
24481
|
passive: !1
|
|
24449
24482
|
}), this._clearDragEvents();
|
|
24450
24483
|
}
|
|
@@ -26027,17 +26060,21 @@
|
|
|
26027
26060
|
} = this.attribute.label;
|
|
26028
26061
|
textStyle = isFunction$4(textStyle) ? merge({}, DEFAULT_AXIS_THEME.label.style, textStyle(tickDatum, index, tickData, layer)) : textStyle;
|
|
26029
26062
|
const labelAlign = this.getLabelAlign(vector, inside, textStyle.angle);
|
|
26030
|
-
|
|
26063
|
+
textStyle = merge(labelAlign, textStyle), isFunction$4(textStyle.text) && (textStyle.text = textStyle.text({
|
|
26031
26064
|
label: tickDatum.label,
|
|
26032
26065
|
value: tickDatum.rawValue,
|
|
26033
26066
|
index: tickDatum.index,
|
|
26034
26067
|
layer: layer
|
|
26035
|
-
}))
|
|
26068
|
+
}));
|
|
26069
|
+
let reactStyle = textStyle.react;
|
|
26070
|
+
return isFunction$4(reactStyle) && (reactStyle = reactStyle(tickDatum, index, tickData, layer)), Object.assign(Object.assign(Object.assign(Object.assign({}, this.getLabelPosition(point, vector, textContent, textStyle)), {
|
|
26036
26071
|
text: null != text ? text : textContent,
|
|
26037
26072
|
_originText: tickDatum.label,
|
|
26038
26073
|
lineHeight: null == textStyle ? void 0 : textStyle.fontSize,
|
|
26039
26074
|
type: type
|
|
26040
|
-
}), textStyle)
|
|
26075
|
+
}), textStyle), {
|
|
26076
|
+
react: reactStyle
|
|
26077
|
+
});
|
|
26041
26078
|
}
|
|
26042
26079
|
getLabelPosition(point, vector, text, style) {
|
|
26043
26080
|
return point;
|
|
@@ -27066,6 +27103,8 @@
|
|
|
27066
27103
|
this.status === STATUS$1.RUNNING && (this.tickCounts++, this.timelines.forEach(timeline => {
|
|
27067
27104
|
timeline.tick(delta);
|
|
27068
27105
|
}), this.emit("tick", delta));
|
|
27106
|
+
}, this._handleGraphTick = () => {
|
|
27107
|
+
this.initHandler(!1);
|
|
27069
27108
|
}, this.init(), this.lastFrameTime = -1, this.tickCounts = 0, this.stage = stage, this.autoStop = !0, this.interval = 16, this.computeTimeOffsetAndJitter();
|
|
27070
27109
|
}
|
|
27071
27110
|
bindStage(stage) {
|
|
@@ -27075,9 +27114,7 @@
|
|
|
27075
27114
|
this.timeOffset = Math.floor(Math.random() * this.interval), this._jitter = Math.min(Math.max(.2 * this.interval, 6), .7 * this.interval);
|
|
27076
27115
|
}
|
|
27077
27116
|
init() {
|
|
27078
|
-
this.interval = 16, this.status = STATUS$1.INITIAL, application.global.hooks.onSetEnv.tap("graph-ticker",
|
|
27079
|
-
this.initHandler(!1);
|
|
27080
|
-
}), application.global.env && this.initHandler(!1);
|
|
27117
|
+
this.interval = 16, this.status = STATUS$1.INITIAL, application.global.hooks.onSetEnv.tap("graph-ticker", this._handleGraphTick), application.global.env && this.initHandler(!1);
|
|
27081
27118
|
}
|
|
27082
27119
|
addTimeline(timeline) {
|
|
27083
27120
|
this.timelines.push(timeline);
|
|
@@ -27150,7 +27187,7 @@
|
|
|
27150
27187
|
}
|
|
27151
27188
|
release() {
|
|
27152
27189
|
var _a;
|
|
27153
|
-
this.stop(), this.timelines = [], null === (_a = this.tickerHandler) || void 0 === _a || _a.release(), this.tickerHandler = null, this.lastFrameTime = -1;
|
|
27190
|
+
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);
|
|
27154
27191
|
}
|
|
27155
27192
|
checkSkip(delta) {
|
|
27156
27193
|
var _a, _b, _c;
|
|
@@ -27410,7 +27447,7 @@
|
|
|
27410
27447
|
let parsedFromProps = null,
|
|
27411
27448
|
props = params.to,
|
|
27412
27449
|
from = params.from;
|
|
27413
|
-
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from), this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
|
|
27450
|
+
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from), parsedFromProps.attrOutChannel && graphic.setAttributes(parsedFromProps.attrOutChannel), this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
|
|
27414
27451
|
let totalDelay = 0;
|
|
27415
27452
|
oneByOneDelay && (totalDelay = oneByOneDelay * (count - index - 1));
|
|
27416
27453
|
const delayAfterValue = isFunction$4(delayAfter) ? delayAfter(null === (_h = null === (_g = graphic.context) || void 0 === _g ? void 0 : _g.data) || void 0 === _h ? void 0 : _h[0], graphic, {}) : delayAfter;
|
|
@@ -27473,7 +27510,7 @@
|
|
|
27473
27510
|
let parsedFromProps = null,
|
|
27474
27511
|
props = effect.to,
|
|
27475
27512
|
from = effect.from;
|
|
27476
|
-
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from);
|
|
27513
|
+
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from), parsedFromProps.attrOutChannel && graphic.setAttributes(parsedFromProps.attrOutChannel);
|
|
27477
27514
|
const custom = null !== (_a = effect.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[type],
|
|
27478
27515
|
customType = effect.custom ? effect.customType : getCustomType(custom);
|
|
27479
27516
|
this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
|
|
@@ -27492,22 +27529,31 @@
|
|
|
27492
27529
|
animate.play(customAnimate);
|
|
27493
27530
|
}
|
|
27494
27531
|
createPropsFromChannel(channel, graphic) {
|
|
27532
|
+
var _a;
|
|
27495
27533
|
const props = {};
|
|
27496
27534
|
let from = null;
|
|
27497
|
-
|
|
27498
|
-
|
|
27499
|
-
|
|
27500
|
-
|
|
27501
|
-
}
|
|
27535
|
+
if (!channel) return {
|
|
27536
|
+
from: from,
|
|
27537
|
+
props: props,
|
|
27538
|
+
attrOutChannel: null
|
|
27539
|
+
};
|
|
27540
|
+
const attrOutChannel = {};
|
|
27541
|
+
let hasAttrs = !1;
|
|
27542
|
+
const diffAttrs = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.diffAttrs;
|
|
27543
|
+
if (Array.isArray(channel) && (channel = channel.reduce((res, key) => (void 0 === diffAttrs[key] || (res[key] = {
|
|
27544
|
+
to: diffAttrs[key]
|
|
27545
|
+
}), res), {})), Object.keys(channel).forEach(key => {
|
|
27502
27546
|
var _a, _b, _c, _d;
|
|
27503
27547
|
const config = channel[key];
|
|
27504
27548
|
void 0 !== config.to && ("function" == typeof config.to ? props[key] = config.to(null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0], graphic, {}) : props[key] = config.to), void 0 !== config.from && (from || (from = {}), "function" == typeof config.from ? from[key] = config.from(null === (_d = null === (_c = graphic.context) || void 0 === _c ? void 0 : _c.data) || void 0 === _d ? void 0 : _d[0], graphic, {}) : from[key] = config.from);
|
|
27505
|
-
}), {
|
|
27506
|
-
|
|
27507
|
-
props
|
|
27508
|
-
}
|
|
27549
|
+
}), diffAttrs) for (const key in diffAttrs) {
|
|
27550
|
+
const value = diffAttrs[key];
|
|
27551
|
+
void 0 !== value && (props.hasOwnProperty(key) || (attrOutChannel[key] = value, hasAttrs = !0));
|
|
27552
|
+
}
|
|
27553
|
+
return {
|
|
27509
27554
|
from: from,
|
|
27510
|
-
props: props
|
|
27555
|
+
props: props,
|
|
27556
|
+
attrOutChannel: hasAttrs ? attrOutChannel : null
|
|
27511
27557
|
};
|
|
27512
27558
|
}
|
|
27513
27559
|
resolveValue(value, graphic, defaultValue) {
|
|
@@ -35620,7 +35666,7 @@
|
|
|
35620
35666
|
};
|
|
35621
35667
|
}
|
|
35622
35668
|
release(all) {
|
|
35623
|
-
super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).
|
|
35669
|
+
super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).removeEventListener("touchmove", this._handleTouchMove, {
|
|
35624
35670
|
passive: !1
|
|
35625
35671
|
}), this._clearAllDragEvents();
|
|
35626
35672
|
}
|
|
@@ -60209,11 +60255,11 @@
|
|
|
60209
60255
|
onUpdate(end, ratio, out) {
|
|
60210
60256
|
if (this.from.x !== this.to.x) {
|
|
60211
60257
|
const x = end ? this.to.x : this.from.x + Math.floor((this.to.x - this.from.x) * ratio);
|
|
60212
|
-
this.params.table.scrollLeft = x;
|
|
60258
|
+
this.params.table.scrollLeft = x, 1 === ratio && -1 !== this.to.targetCol && this.params.table.scrollToCol(this.to.targetCol, !1);
|
|
60213
60259
|
}
|
|
60214
60260
|
if (this.from.y !== this.to.y) {
|
|
60215
60261
|
const y = end ? this.to.y : this.from.y + Math.floor((this.to.y - this.from.y) * ratio);
|
|
60216
|
-
this.params.table.scrollTop = y;
|
|
60262
|
+
this.params.table.scrollTop = y, 1 === ratio && -1 !== this.to.targetRow && this.params.table.scrollToRow(this.to.targetRow, !1);
|
|
60217
60263
|
}
|
|
60218
60264
|
}
|
|
60219
60265
|
}
|
|
@@ -60245,7 +60291,9 @@
|
|
|
60245
60291
|
colDecimal && (left += colDecimal * cellRect.width), rowDecimal && (top += rowDecimal * cellRect.height);
|
|
60246
60292
|
const to = {
|
|
60247
60293
|
x: isNumber$2(col) ? left - this.table.getFrozenColsWidth() : this.table.scrollLeft,
|
|
60248
|
-
y: isNumber$2(row) ? top - this.table.getFrozenRowsHeight() : this.table.scrollTop
|
|
60294
|
+
y: isNumber$2(row) ? top - this.table.getFrozenRowsHeight() : this.table.scrollTop,
|
|
60295
|
+
targetCol: null != col ? col : -1,
|
|
60296
|
+
targetRow: null != row ? row : -1
|
|
60249
60297
|
},
|
|
60250
60298
|
duration = isBoolean$2(animationOption) ? animationOption ? 3e3 : 0 : null !== (_a = null == animationOption ? void 0 : animationOption.duration) && void 0 !== _a ? _a : 3e3,
|
|
60251
60299
|
easing = isBoolean$2(animationOption) ? animationOption ? "linear" : "" : null !== (_b = null == animationOption ? void 0 : animationOption.easing) && void 0 !== _b ? _b : "linear";
|
|
@@ -60332,7 +60380,7 @@
|
|
|
60332
60380
|
}
|
|
60333
60381
|
constructor(container, options = {}) {
|
|
60334
60382
|
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;
|
|
60335
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.22.13-alpha.
|
|
60383
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.22.13-alpha.10", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env$1.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");
|
|
60336
60384
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
60337
60385
|
options: options,
|
|
60338
60386
|
container: container
|
|
@@ -61261,17 +61309,18 @@
|
|
|
61261
61309
|
this.release();
|
|
61262
61310
|
}
|
|
61263
61311
|
release() {
|
|
61264
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
61312
|
+
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;
|
|
61313
|
+
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();
|
|
61265
61314
|
const internalProps = this.internalProps;
|
|
61266
61315
|
if (this.isReleased) return;
|
|
61267
|
-
null === (
|
|
61316
|
+
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 => {
|
|
61268
61317
|
null == legend || legend.release();
|
|
61269
|
-
}), null === (
|
|
61318
|
+
}), 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 => {
|
|
61270
61319
|
var _a;
|
|
61271
61320
|
return null === (_a = null == releaseObj ? void 0 : releaseObj.release) || void 0 === _a ? void 0 : _a.call(releaseObj);
|
|
61272
61321
|
}), internalProps.releaseList = null), this.scenegraph.stage.release(), this.scenegraph.proxy.release();
|
|
61273
|
-
const parentElement = null === (
|
|
61274
|
-
parentElement && !this.options.canvas && parentElement.removeChild(internalProps.element), null === (
|
|
61322
|
+
const parentElement = null === (_x = internalProps.element) || void 0 === _x ? void 0 : _x.parentElement;
|
|
61323
|
+
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();
|
|
61275
61324
|
}
|
|
61276
61325
|
fireListeners(type, event) {
|
|
61277
61326
|
return super.fireListeners(type, event);
|
|
@@ -62440,6 +62489,7 @@
|
|
|
62440
62489
|
});
|
|
62441
62490
|
}
|
|
62442
62491
|
scrollToCell(cellAddr, animationOption) {
|
|
62492
|
+
var _a;
|
|
62443
62493
|
if (animationOption) return void this.animationManager.scrollTo(cellAddr, animationOption);
|
|
62444
62494
|
const drawRange = this.getDrawRange();
|
|
62445
62495
|
if (isValid$2(cellAddr.col) && cellAddr.col >= this.frozenColCount) {
|
|
@@ -62449,8 +62499,10 @@
|
|
|
62449
62499
|
}
|
|
62450
62500
|
if (isValid$2(cellAddr.row) && cellAddr.row >= this.frozenRowCount) {
|
|
62451
62501
|
const frozenHeight = this.getFrozenRowsHeight(),
|
|
62452
|
-
|
|
62453
|
-
|
|
62502
|
+
rowInt = Math.floor(cellAddr.row),
|
|
62503
|
+
rowFloat = cellAddr.row - rowInt;
|
|
62504
|
+
let top = this.internalProps._rowHeightsMap.getSumInRange(0, rowInt - 1);
|
|
62505
|
+
rowFloat > 0 && (top += (null !== (_a = this.internalProps._rowHeightsMap.get(rowInt)) && void 0 !== _a ? _a : this.getRowHeight(rowInt)) * rowFloat), this.scrollTop = Math.min(top - frozenHeight, this.getAllRowsHeight() - drawRange.height);
|
|
62454
62506
|
}
|
|
62455
62507
|
this.render();
|
|
62456
62508
|
}
|
|
@@ -91428,7 +91480,7 @@
|
|
|
91428
91480
|
importStyle();
|
|
91429
91481
|
}
|
|
91430
91482
|
|
|
91431
|
-
const version = "1.22.13-alpha.
|
|
91483
|
+
const version = "1.22.13-alpha.10";
|
|
91432
91484
|
importStyles();
|
|
91433
91485
|
|
|
91434
91486
|
exports.TYPES = index;
|