@visactor/vtable-calendar 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/dist/vtable-calendar.js +19 -14
- package/dist/vtable-calendar.min.js +1 -1
- package/package.json +5 -5
package/dist/vtable-calendar.js
CHANGED
|
@@ -21404,7 +21404,7 @@
|
|
|
21404
21404
|
this._sliderRenderBounds = null, this._sliderLimitRange = null;
|
|
21405
21405
|
}
|
|
21406
21406
|
release(all) {
|
|
21407
|
-
super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).
|
|
21407
|
+
super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).removeEventListener("touchmove", this._handleTouchMove, {
|
|
21408
21408
|
passive: !1
|
|
21409
21409
|
}), this._clearDragEvents();
|
|
21410
21410
|
}
|
|
@@ -22987,17 +22987,21 @@
|
|
|
22987
22987
|
} = this.attribute.label;
|
|
22988
22988
|
textStyle = isFunction$3(textStyle) ? merge({}, DEFAULT_AXIS_THEME.label.style, textStyle(tickDatum, index, tickData, layer)) : textStyle;
|
|
22989
22989
|
const labelAlign = this.getLabelAlign(vector, inside, textStyle.angle);
|
|
22990
|
-
|
|
22990
|
+
textStyle = merge(labelAlign, textStyle), isFunction$3(textStyle.text) && (textStyle.text = textStyle.text({
|
|
22991
22991
|
label: tickDatum.label,
|
|
22992
22992
|
value: tickDatum.rawValue,
|
|
22993
22993
|
index: tickDatum.index,
|
|
22994
22994
|
layer: layer
|
|
22995
|
-
}))
|
|
22995
|
+
}));
|
|
22996
|
+
let reactStyle = textStyle.react;
|
|
22997
|
+
return isFunction$3(reactStyle) && (reactStyle = reactStyle(tickDatum, index, tickData, layer)), Object.assign(Object.assign(Object.assign(Object.assign({}, this.getLabelPosition(point, vector, textContent, textStyle)), {
|
|
22996
22998
|
text: null != text ? text : textContent,
|
|
22997
22999
|
_originText: tickDatum.label,
|
|
22998
23000
|
lineHeight: null == textStyle ? void 0 : textStyle.fontSize,
|
|
22999
23001
|
type: type
|
|
23000
|
-
}), textStyle)
|
|
23002
|
+
}), textStyle), {
|
|
23003
|
+
react: reactStyle
|
|
23004
|
+
});
|
|
23001
23005
|
}
|
|
23002
23006
|
getLabelPosition(point, vector, text, style) {
|
|
23003
23007
|
return point;
|
|
@@ -24026,6 +24030,8 @@
|
|
|
24026
24030
|
this.status === STATUS$1.RUNNING && (this.tickCounts++, this.timelines.forEach(timeline => {
|
|
24027
24031
|
timeline.tick(delta);
|
|
24028
24032
|
}), this.emit("tick", delta));
|
|
24033
|
+
}, this._handleGraphTick = () => {
|
|
24034
|
+
this.initHandler(!1);
|
|
24029
24035
|
}, this.init(), this.lastFrameTime = -1, this.tickCounts = 0, this.stage = stage, this.autoStop = !0, this.interval = 16, this.computeTimeOffsetAndJitter();
|
|
24030
24036
|
}
|
|
24031
24037
|
bindStage(stage) {
|
|
@@ -24035,9 +24041,7 @@
|
|
|
24035
24041
|
this.timeOffset = Math.floor(Math.random() * this.interval), this._jitter = Math.min(Math.max(.2 * this.interval, 6), .7 * this.interval);
|
|
24036
24042
|
}
|
|
24037
24043
|
init() {
|
|
24038
|
-
this.interval = 16, this.status = STATUS$1.INITIAL, application.global.hooks.onSetEnv.tap("graph-ticker",
|
|
24039
|
-
this.initHandler(!1);
|
|
24040
|
-
}), application.global.env && this.initHandler(!1);
|
|
24044
|
+
this.interval = 16, this.status = STATUS$1.INITIAL, application.global.hooks.onSetEnv.tap("graph-ticker", this._handleGraphTick), application.global.env && this.initHandler(!1);
|
|
24041
24045
|
}
|
|
24042
24046
|
addTimeline(timeline) {
|
|
24043
24047
|
this.timelines.push(timeline);
|
|
@@ -24110,7 +24114,7 @@
|
|
|
24110
24114
|
}
|
|
24111
24115
|
release() {
|
|
24112
24116
|
var _a;
|
|
24113
|
-
this.stop(), this.timelines = [], null === (_a = this.tickerHandler) || void 0 === _a || _a.release(), this.tickerHandler = null, this.lastFrameTime = -1;
|
|
24117
|
+
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);
|
|
24114
24118
|
}
|
|
24115
24119
|
checkSkip(delta) {
|
|
24116
24120
|
var _a, _b, _c;
|
|
@@ -56508,7 +56512,7 @@
|
|
|
56508
56512
|
}
|
|
56509
56513
|
constructor(container, options = {}) {
|
|
56510
56514
|
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;
|
|
56511
|
-
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.
|
|
56515
|
+
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");
|
|
56512
56516
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
56513
56517
|
options: options,
|
|
56514
56518
|
container: container
|
|
@@ -57447,17 +57451,18 @@
|
|
|
57447
57451
|
this.release();
|
|
57448
57452
|
}
|
|
57449
57453
|
release() {
|
|
57450
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
57454
|
+
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;
|
|
57455
|
+
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();
|
|
57451
57456
|
const internalProps = this.internalProps;
|
|
57452
57457
|
if (this.isReleased) return;
|
|
57453
|
-
null === (
|
|
57458
|
+
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 => {
|
|
57454
57459
|
null == legend || legend.release();
|
|
57455
|
-
}), null === (
|
|
57460
|
+
}), 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 => {
|
|
57456
57461
|
var _a;
|
|
57457
57462
|
return null === (_a = null == releaseObj ? void 0 : releaseObj.release) || void 0 === _a ? void 0 : _a.call(releaseObj);
|
|
57458
57463
|
}), internalProps.releaseList = null), this.scenegraph.stage.release(), this.scenegraph.proxy.release();
|
|
57459
|
-
const parentElement = null === (
|
|
57460
|
-
parentElement && !this.options.canvas && parentElement.removeChild(internalProps.element), null === (
|
|
57464
|
+
const parentElement = null === (_x = internalProps.element) || void 0 === _x ? void 0 : _x.parentElement;
|
|
57465
|
+
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();
|
|
57461
57466
|
}
|
|
57462
57467
|
fireListeners(type, event) {
|
|
57463
57468
|
return super.fireListeners(type, event);
|