@visactor/vchart-extension 2.1.5-alpha.0 → 2.1.5
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/build/index.js +21 -47
- package/build/index.min.js +1 -1
- package/cjs/charts/axis-3d/axis-3d-mixin.js +1 -1
- package/cjs/charts/axis-3d/band-axis.js +2 -1
- package/cjs/charts/axis-3d/index.js +1 -1
- package/cjs/charts/axis-3d/linear-axis.js +1 -1
- package/cjs/charts/axis-3d/log-axis.js +1 -1
- package/cjs/charts/axis-3d/symlog-axis.js +1 -1
- package/cjs/charts/axis-3d/theme.js +1 -1
- package/cjs/charts/axis-3d/time-axis.js +1 -1
- package/cjs/charts/axis-3d/util.js +1 -1
- package/cjs/charts/bar-3d/animation.js +1 -1
- package/cjs/charts/bar-3d/chart-spec-transformer.js +1 -2
- package/cjs/charts/bar-3d/chart.js +1 -1
- package/cjs/charts/bar-3d/constant.js +1 -1
- package/cjs/charts/bar-3d/index.js +1 -1
- package/cjs/charts/bar-3d/interface.js +1 -1
- package/cjs/charts/bar-3d/series-spec-transformer.js +1 -1
- package/cjs/charts/bar-3d/series.js +1 -1
- package/cjs/charts/bar-3d/theme.js +1 -1
- package/esm/charts/axis-3d/axis-3d-mixin.js +1 -1
- package/esm/charts/axis-3d/band-axis.js +2 -1
- package/esm/charts/axis-3d/index.js +1 -1
- package/esm/charts/axis-3d/linear-axis.js +1 -1
- package/esm/charts/axis-3d/log-axis.js +1 -1
- package/esm/charts/axis-3d/symlog-axis.js +1 -1
- package/esm/charts/axis-3d/theme.js +1 -1
- package/esm/charts/axis-3d/time-axis.js +1 -1
- package/esm/charts/axis-3d/util.js +1 -1
- package/esm/charts/bar-3d/animation.js +1 -1
- package/esm/charts/bar-3d/chart-spec-transformer.js +1 -2
- package/esm/charts/bar-3d/chart.js +1 -1
- package/esm/charts/bar-3d/constant.js +1 -1
- package/esm/charts/bar-3d/index.js +1 -1
- package/esm/charts/bar-3d/interface.js +1 -1
- package/esm/charts/bar-3d/series-spec-transformer.js +1 -1
- package/esm/charts/bar-3d/series.js +1 -1
- package/esm/charts/bar-3d/theme.js +1 -1
- package/package.json +8 -8
package/build/index.js
CHANGED
|
@@ -2914,7 +2914,7 @@
|
|
|
2914
2914
|
constructor() {
|
|
2915
2915
|
super(), this._uid = Generator.GenAutoIncrementId(), this._firstChild = null, this._lastChild = null, this.parent = null, this._count = 1;
|
|
2916
2916
|
}
|
|
2917
|
-
onParentSharedStateTreeChanged(_stage, _layer
|
|
2917
|
+
onParentSharedStateTreeChanged(_stage, _layer) {}
|
|
2918
2918
|
forEachChildren(cb, reverse = !1) {
|
|
2919
2919
|
if (reverse) {
|
|
2920
2920
|
let child = this._lastChild,
|
|
@@ -7415,17 +7415,14 @@
|
|
|
7415
7415
|
}
|
|
7416
7416
|
return null === (_a = this.stage) || void 0 === _a ? void 0 : _a.rootSharedStateScope;
|
|
7417
7417
|
}
|
|
7418
|
-
|
|
7418
|
+
syncSharedStateScopeBindingFromTree(markDirty = !0) {
|
|
7419
7419
|
var _a;
|
|
7420
|
+
const nextScope = this.resolveBoundSharedStateScope();
|
|
7420
7421
|
return this.boundSharedStateScope === nextScope ? (this.syncSharedStateActiveRegistrations(), !1) : (this.boundSharedStateScope = nextScope, this.boundSharedStateRevision = void 0, this.compiledStateDefinitions = void 0, this.compiledStateDefinitionsCacheKey = void 0, this.stateEngine = void 0, this.stateEngineCompiledDefinitions = void 0, this.syncSharedStateActiveRegistrations(), markDirty && (null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) && this.markSharedStateDirty(), !0);
|
|
7421
7422
|
}
|
|
7422
|
-
|
|
7423
|
-
const nextScope = void 0 === inheritedSharedStateScope ? this.resolveBoundSharedStateScope() : null != inheritedSharedStateScope ? inheritedSharedStateScope : void 0;
|
|
7424
|
-
return this.syncSharedStateScopeBinding(nextScope, markDirty);
|
|
7425
|
-
}
|
|
7426
|
-
syncSharedStateScopeBindingOnTreeChange(markDirty = !0, inheritedSharedStateScope) {
|
|
7423
|
+
syncSharedStateScopeBindingOnTreeChange(markDirty = !0) {
|
|
7427
7424
|
var _a, _b;
|
|
7428
|
-
return !!((null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) || this.boundSharedStateScope || (null === (_b = this.registeredActiveScopes) || void 0 === _b ? void 0 : _b.size) || this.sharedStateDirty) && this.syncSharedStateScopeBindingFromTree(markDirty
|
|
7425
|
+
return !!((null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) || this.boundSharedStateScope || (null === (_b = this.registeredActiveScopes) || void 0 === _b ? void 0 : _b.size) || this.sharedStateDirty) && this.syncSharedStateScopeBindingFromTree(markDirty);
|
|
7429
7426
|
}
|
|
7430
7427
|
syncSharedStateActiveRegistrations() {
|
|
7431
7428
|
var _a;
|
|
@@ -7433,7 +7430,6 @@
|
|
|
7433
7430
|
if (!(null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) || !this.boundSharedStateScope) return (null == previousScopes ? void 0 : previousScopes.size) && (previousScopes.forEach(scope => {
|
|
7434
7431
|
scope.subtreeActiveDescendants.delete(this);
|
|
7435
7432
|
}), previousScopes.clear()), void (this.registeredActiveScopes = void 0);
|
|
7436
|
-
if ((null == previousScopes ? void 0 : previousScopes.size) && this.isSharedStateScopeChainRegistered(previousScopes)) return;
|
|
7437
7433
|
const nextScopes = new Set(collectSharedStateScopeChain(this.boundSharedStateScope));
|
|
7438
7434
|
null == previousScopes || previousScopes.forEach(scope => {
|
|
7439
7435
|
nextScopes.has(scope) || scope.subtreeActiveDescendants.delete(this);
|
|
@@ -7441,15 +7437,6 @@
|
|
|
7441
7437
|
scope.subtreeActiveDescendants.add(this);
|
|
7442
7438
|
}), this.registeredActiveScopes = nextScopes;
|
|
7443
7439
|
}
|
|
7444
|
-
isSharedStateScopeChainRegistered(previousScopes) {
|
|
7445
|
-
let scope = this.boundSharedStateScope,
|
|
7446
|
-
scopeCount = 0;
|
|
7447
|
-
for (; scope;) {
|
|
7448
|
-
if (!previousScopes.has(scope)) return !1;
|
|
7449
|
-
scopeCount += 1, scope = scope.parentScope;
|
|
7450
|
-
}
|
|
7451
|
-
return scopeCount === previousScopes.size;
|
|
7452
|
-
}
|
|
7453
7440
|
clearSharedStateActiveRegistrations() {
|
|
7454
7441
|
const previousScopes = this.registeredActiveScopes;
|
|
7455
7442
|
previousScopes && (previousScopes.forEach(scope => {
|
|
@@ -7459,8 +7446,8 @@
|
|
|
7459
7446
|
markSharedStateDirty() {
|
|
7460
7447
|
this.sharedStateDirty = !0, enqueueGraphicSharedStateRefresh(this.stage, this), scheduleStageSharedStateRefresh(this.stage);
|
|
7461
7448
|
}
|
|
7462
|
-
onParentSharedStateTreeChanged(stage, layer
|
|
7463
|
-
this.stage === stage && this.layer === layer ? this.syncSharedStateScopeBindingOnTreeChange(
|
|
7449
|
+
onParentSharedStateTreeChanged(stage, layer) {
|
|
7450
|
+
this.stage === stage && this.layer === layer ? this.syncSharedStateScopeBindingOnTreeChange() : this.setStage(stage, layer);
|
|
7464
7451
|
}
|
|
7465
7452
|
refreshSharedStateBeforeRender() {
|
|
7466
7453
|
var _a;
|
|
@@ -8111,10 +8098,6 @@
|
|
|
8111
8098
|
var _a;
|
|
8112
8099
|
return null === (_a = this.states) || void 0 === _a ? void 0 : _a[stateName];
|
|
8113
8100
|
}
|
|
8114
|
-
setStateDefinitionsWithCompiled(definitions, compiledDefinitions) {
|
|
8115
|
-
var _a;
|
|
8116
|
-
this.states = definitions, this.localStateDefinitionsSource !== definitions && (this.localStateDefinitionsSource = definitions, this.localStateDefinitionsVersion = (null !== (_a = this.localStateDefinitionsVersion) && void 0 !== _a ? _a : 0) + 1), this.compiledStateDefinitions = compiledDefinitions, this.compiledStateDefinitionsCacheKey = `local:${this.localStateDefinitionsVersion}`;
|
|
8117
|
-
}
|
|
8118
8101
|
getStateResolveBaseAttrs() {
|
|
8119
8102
|
var _a;
|
|
8120
8103
|
return null !== (_a = this.baseAttributes) && void 0 !== _a ? _a : this.attribute;
|
|
@@ -8462,12 +8445,12 @@
|
|
|
8462
8445
|
this._globalTransMatrix.translate(scrollX, scrollY);
|
|
8463
8446
|
}
|
|
8464
8447
|
}
|
|
8465
|
-
setStage(stage, layer
|
|
8448
|
+
setStage(stage, layer) {
|
|
8466
8449
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
8467
8450
|
const graphicService = null !== (_c = null !== (_a = null == stage ? void 0 : stage.graphicService) && void 0 !== _a ? _a : null === (_b = this.stage) || void 0 === _b ? void 0 : _b.graphicService) && void 0 !== _c ? _c : application.graphicService,
|
|
8468
8451
|
previousStage = this.stage;
|
|
8469
8452
|
if (this.stage !== stage || this.layer !== layer) {
|
|
8470
|
-
if (this.stage = stage, this.layer = layer, ((null === (_d = this.currentStates) || void 0 === _d ? void 0 : _d.length) || this.boundSharedStateScope || (null === (_e = this.registeredActiveScopes) || void 0 === _e ? void 0 : _e.size) || this.sharedStateDirty) && this.syncSharedStateScopeBindingOnTreeChange(!0
|
|
8453
|
+
if (this.stage = stage, this.layer = layer, ((null === (_d = this.currentStates) || void 0 === _d ? void 0 : _d.length) || this.boundSharedStateScope || (null === (_e = this.registeredActiveScopes) || void 0 === _e ? void 0 : _e.size) || this.sharedStateDirty) && this.syncSharedStateScopeBindingOnTreeChange(!0), this.setStageToShadowRoot(stage, layer), this.mayHaveTrackedAnimates() && this.hasAnyTrackedAnimate()) {
|
|
8471
8454
|
const previousTimeline = null === (_f = null == previousStage ? void 0 : previousStage.getTimeline) || void 0 === _f ? void 0 : _f.call(previousStage),
|
|
8472
8455
|
nextTimeline = null === (_g = null == stage ? void 0 : stage.getTimeline) || void 0 === _g ? void 0 : _g.call(stage),
|
|
8473
8456
|
detachedStageAnimates = [];
|
|
@@ -8484,7 +8467,7 @@
|
|
|
8484
8467
|
}
|
|
8485
8468
|
return this._onSetStage && this._onSetStage(this, stage, layer), void (null === (_h = null == graphicService ? void 0 : graphicService.onSetStage) || void 0 === _h || _h.call(graphicService, this, stage));
|
|
8486
8469
|
}
|
|
8487
|
-
((null === (_j = this.currentStates) || void 0 === _j ? void 0 : _j.length) || this.boundSharedStateScope || (null === (_k = this.registeredActiveScopes) || void 0 === _k ? void 0 : _k.size) || this.sharedStateDirty) && this.syncSharedStateScopeBindingOnTreeChange(!0
|
|
8470
|
+
((null === (_j = this.currentStates) || void 0 === _j ? void 0 : _j.length) || this.boundSharedStateScope || (null === (_k = this.registeredActiveScopes) || void 0 === _k ? void 0 : _k.size) || this.sharedStateDirty) && this.syncSharedStateScopeBindingOnTreeChange(!0);
|
|
8488
8471
|
}
|
|
8489
8472
|
detachStageForRelease() {
|
|
8490
8473
|
var _a, _b, _c;
|
|
@@ -8906,13 +8889,13 @@
|
|
|
8906
8889
|
child.setStage(null, null);
|
|
8907
8890
|
}), this.addUpdateBoundTag();
|
|
8908
8891
|
}
|
|
8909
|
-
setStage(stage, layer
|
|
8892
|
+
setStage(stage, layer) {
|
|
8910
8893
|
var _a, _b, _c, _d, _e, _f;
|
|
8911
8894
|
const graphicService = null !== (_c = null !== (_a = null == stage ? void 0 : stage.graphicService) && void 0 !== _a ? _a : null === (_b = this.stage) || void 0 === _b ? void 0 : _b.graphicService) && void 0 !== _c ? _c : application.graphicService,
|
|
8912
8895
|
needsSharedStateTreeSync = this.hasSharedStateDefinitions() || this.sharedStateScope || (null === (_d = this.currentStates) || void 0 === _d ? void 0 : _d.length) || this.boundSharedStateScope || (null === (_e = this.registeredActiveScopes) || void 0 === _e ? void 0 : _e.size) || this.sharedStateDirty;
|
|
8913
|
-
if (this.stage !== stage) return this.stage = stage, this.layer = layer, needsSharedStateTreeSync && (this.ensureSharedStateScopeBound(), this.syncSharedStateScopeBindingOnTreeChange(!0
|
|
8896
|
+
if (this.stage !== stage) return this.stage = stage, this.layer = layer, needsSharedStateTreeSync && (this.ensureSharedStateScopeBound(), this.syncSharedStateScopeBindingOnTreeChange(!0)), this.setStageToShadowRoot(stage, layer), this._onSetStage && this._onSetStage(this, stage, layer), null === (_f = null == graphicService ? void 0 : graphicService.onSetStage) || void 0 === _f || _f.call(graphicService, this, stage), void this.notifyChildrenSharedStateTreeChanged();
|
|
8914
8897
|
const layerChanged = this.layer !== layer;
|
|
8915
|
-
layerChanged && (this.layer = layer), needsSharedStateTreeSync ? (this.ensureSharedStateScopeBound(), this.syncSharedStateScopeBindingOnTreeChange(!0
|
|
8898
|
+
layerChanged && (this.layer = layer), needsSharedStateTreeSync ? (this.ensureSharedStateScopeBound(), this.syncSharedStateScopeBindingOnTreeChange(!0), this.notifyChildrenSharedStateTreeChanged()) : layerChanged && this.notifyChildrenSharedStateTreeChanged();
|
|
8916
8899
|
}
|
|
8917
8900
|
addUpdatePositionTag() {
|
|
8918
8901
|
super.addUpdatePositionTag(), this.forEachChildren(g => {
|
|
@@ -8971,26 +8954,17 @@
|
|
|
8971
8954
|
hasSharedStateDefinitions() {
|
|
8972
8955
|
return !!this._sharedStateDefinitions && Object.keys(this._sharedStateDefinitions).length > 0;
|
|
8973
8956
|
}
|
|
8974
|
-
|
|
8975
|
-
var _a;
|
|
8976
|
-
return this.sharedStateScope ? this.sharedStateScope : void 0 !== inheritedSharedStateScope ? inheritedSharedStateScope : null !== (_a = this.resolveBoundSharedStateScope()) && void 0 !== _a ? _a : null;
|
|
8977
|
-
}
|
|
8978
|
-
notifyChildrenSharedStateTreeChanged(inheritedSharedStateScope) {
|
|
8979
|
-
const childSharedStateScope = this.resolveChildSharedStateScope(inheritedSharedStateScope);
|
|
8957
|
+
notifyChildrenSharedStateTreeChanged() {
|
|
8980
8958
|
this.forEachChildren(item => {
|
|
8981
|
-
this.
|
|
8959
|
+
this.syncChildSharedStateTreeBinding(item);
|
|
8982
8960
|
});
|
|
8983
8961
|
}
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
"function" != typeof graphic.setStage || child.onParentSharedStateTreeChanged !== Graphic.prototype.onParentSharedStateTreeChanged && child.onParentSharedStateTreeChanged !== Group.prototype.onParentSharedStateTreeChanged || graphic.stage === this.stage && graphic.layer === this.layer ? child.onParentSharedStateTreeChanged(this.stage, this.layer, inheritedSharedStateScope) : graphic.setStage(this.stage, this.layer, inheritedSharedStateScope);
|
|
8987
|
-
}
|
|
8988
|
-
syncChildSharedStateTreeBinding(child, inheritedSharedStateScope) {
|
|
8989
|
-
void 0 === inheritedSharedStateScope && (inheritedSharedStateScope = this.resolveChildSharedStateScope()), this.setStageToChild(child, inheritedSharedStateScope);
|
|
8962
|
+
syncChildSharedStateTreeBinding(child) {
|
|
8963
|
+
child.onParentSharedStateTreeChanged(this.stage, this.layer);
|
|
8990
8964
|
}
|
|
8991
|
-
onParentSharedStateTreeChanged(stage, layer
|
|
8965
|
+
onParentSharedStateTreeChanged(stage, layer) {
|
|
8992
8966
|
var _a;
|
|
8993
|
-
this.stage === stage && this.layer === layer ? (this.ensureSharedStateScopeBound(), this.syncSharedStateScopeBindingOnTreeChange(!!(null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length)
|
|
8967
|
+
this.stage === stage && this.layer === layer ? (this.ensureSharedStateScopeBound(), this.syncSharedStateScopeBindingOnTreeChange(!!(null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length)), this.notifyChildrenSharedStateTreeChanged()) : this.setStage(stage, layer);
|
|
8994
8968
|
}
|
|
8995
8969
|
}
|
|
8996
8970
|
Group.NOWORK_ANIMATE_ATTR = NOWORK_ANIMATE_ATTR;
|
|
@@ -10342,7 +10316,7 @@
|
|
|
10342
10316
|
}
|
|
10343
10317
|
|
|
10344
10318
|
var _a;
|
|
10345
|
-
const factoryRegistryKey = Symbol.for("@visactor/vchart/factory-registry@2.1.
|
|
10319
|
+
const factoryRegistryKey = Symbol.for("@visactor/vchart/factory-registry@2.1.5"),
|
|
10346
10320
|
globalFactoryRegistry = globalThis;
|
|
10347
10321
|
const factoryRegistry = null !== (_a = globalFactoryRegistry[factoryRegistryKey]) && void 0 !== _a ? _a : globalFactoryRegistry[factoryRegistryKey] = {
|
|
10348
10322
|
charts: {},
|
|
@@ -22808,7 +22782,7 @@
|
|
|
22808
22782
|
release(forceReleaseVRenderComponents = !0) {
|
|
22809
22783
|
forceReleaseVRenderComponents && [...this._components, ...this._regions, ...this._series].forEach(m => {
|
|
22810
22784
|
m.beforeRelease();
|
|
22811
|
-
}), super.release(), this.clear(), [...this._components, ...this._regions, ...this._series].forEach(m => {
|
|
22785
|
+
}), this._event.release(), super.release(), this.clear(), [...this._components, ...this._regions, ...this._series].forEach(m => {
|
|
22812
22786
|
m.release();
|
|
22813
22787
|
}), this._components = this._regions = this._series = [], this._spec = {}, this._dataSet = this._globalScale = this._layoutFunc = null, this._layoutTag = !1, this._idMap.clear();
|
|
22814
22788
|
}
|