@visactor/vrender-components 1.1.0-alpha.5 → 1.1.0-alpha.7

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.
@@ -27,4 +27,5 @@ exports.DEFAULT_BRUSH_ATTRIBUTES = {
27
27
  minX: -1 / 0,
28
28
  maxX: 1 / 0
29
29
  }
30
- }, exports.DEFAULT_SIZE_THRESHOLD = 5;
30
+ }, exports.DEFAULT_SIZE_THRESHOLD = 5;
31
+ //# sourceMappingURL=config.js.map
@@ -17,5 +17,4 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
17
17
 
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
- }), __exportStar(require("./checkbox"), exports), __exportStar(require("./type"), exports);
21
- //# sourceMappingURL=index.js.map
20
+ }), __exportStar(require("./checkbox"), exports), __exportStar(require("./type"), exports);
package/cjs/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const version = "1.1.0-alpha.5";
1
+ export declare const version = "1.1.0-alpha.7";
2
2
  export * from './core/base';
3
3
  export * from './core/type';
4
4
  export * from './scrollbar';
package/cjs/index.js CHANGED
@@ -17,7 +17,7 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
17
17
 
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
- }), exports.version = void 0, exports.version = "1.1.0-alpha.5", __exportStar(require("./core/base"), exports),
20
+ }), exports.version = void 0, exports.version = "1.1.0-alpha.7", __exportStar(require("./core/base"), exports),
21
21
  __exportStar(require("./core/type"), exports), __exportStar(require("./scrollbar"), exports),
22
22
  __exportStar(require("./tag"), exports), __exportStar(require("./poptip"), exports),
23
23
  __exportStar(require("./crosshair"), exports), __exportStar(require("./label"), exports),
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,eAAe,CAAC;AAEvC,8CAA4B;AAC5B,8CAA4B;AAC5B,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,8CAA4B;AAC5B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,4CAA0B;AAC1B,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,6CAA2B;AAC3B,8CAA4B;AAC5B,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB;AACxB,8CAA4B;AAC5B,4CAA0B;AAC1B,yCAAuB;AACvB,2CAAyB;AACzB,+CAA6B;AAC7B,wDAAsC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.1.0-alpha.5\";\n\nexport * from './core/base';\nexport * from './core/type';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './timeline';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\nexport * from './radio';\nexport * from './empty-tip';\nexport * from './weather';\nexport * from './util';\nexport * from './switch';\nexport * from './label-item';\nexport * from './table-series-number';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,eAAe,CAAC;AAEvC,8CAA4B;AAC5B,8CAA4B;AAC5B,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,8CAA4B;AAC5B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,4CAA0B;AAC1B,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,6CAA2B;AAC3B,8CAA4B;AAC5B,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB;AACxB,8CAA4B;AAC5B,4CAA0B;AAC1B,yCAAuB;AACvB,2CAAyB;AACzB,+CAA6B;AAC7B,wDAAsC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.1.0-alpha.7\";\n\nexport * from './core/base';\nexport * from './core/type';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './timeline';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\nexport * from './radio';\nexport * from './empty-tip';\nexport * from './weather';\nexport * from './util';\nexport * from './switch';\nexport * from './label-item';\nexport * from './table-series-number';\n"]}
package/dist/index.es.js CHANGED
@@ -5240,11 +5240,23 @@ class StateTransitionOrchestrator {
5240
5240
  if (!hasAnimation) return plan;
5241
5241
  const noWorkAnimateAttr = Object.assign(Object.assign({}, null !== (_a = options.noWorkAnimateAttr) && void 0 !== _a ? _a : {}), normalizeNoAnimateAttrConfig(null === (_b = options.animateConfig) || void 0 === _b ? void 0 : _b.noAnimateAttrs)),
5242
5242
  isClear = !0 === options.isClear,
5243
- getDefaultAttribute = options.getDefaultAttribute;
5243
+ getDefaultAttribute = options.getDefaultAttribute,
5244
+ shouldSkipDefaultAttribute = options.shouldSkipDefaultAttribute,
5245
+ assignTransitionAttr = (key, value) => {
5246
+ if (noWorkAnimateAttr[key]) return plan.jumpAttrs[key] = value, void (plan.noAnimateAttrs[key] = value);
5247
+ if (isClear && void 0 === value) {
5248
+ if (null == shouldSkipDefaultAttribute ? void 0 : shouldSkipDefaultAttribute(key, targetAttrs)) return;
5249
+ plan.animateAttrs[key] = getDefaultAttribute ? getDefaultAttribute(key) : value;
5250
+ } else plan.animateAttrs[key] = value;
5251
+ };
5244
5252
  for (const key in targetAttrs) {
5245
5253
  if (!Object.prototype.hasOwnProperty.call(targetAttrs, key)) continue;
5246
- const value = targetAttrs[key];
5247
- noWorkAnimateAttr[key] ? (plan.jumpAttrs[key] = value, plan.noAnimateAttrs[key] = value) : plan.animateAttrs[key] = isClear && void 0 === value && getDefaultAttribute ? getDefaultAttribute(key) : value;
5254
+ assignTransitionAttr(key, targetAttrs[key]);
5255
+ }
5256
+ const extraAnimateAttrs = options.extraAnimateAttrs;
5257
+ if (extraAnimateAttrs) for (const key in extraAnimateAttrs) {
5258
+ const hasTargetAttr = Object.prototype.hasOwnProperty.call(targetAttrs, key);
5259
+ !Object.prototype.hasOwnProperty.call(extraAnimateAttrs, key) || hasTargetAttr && void 0 !== targetAttrs[key] || assignTransitionAttr(key, extraAnimateAttrs[key]);
5248
5260
  }
5249
5261
  return plan;
5250
5262
  }
@@ -5271,12 +5283,14 @@ class StateTransitionOrchestrator {
5271
5283
  }), plan;
5272
5284
  }
5273
5285
  applyClearTransition(graphic, targetAttrs, hasAnimation, stateNames, options = {}) {
5274
- var _a, _b;
5286
+ var _a, _b, _c, _d;
5275
5287
  const plan = this.analyzeTransition({}, targetAttrs, stateNames, hasAnimation, {
5276
5288
  noWorkAnimateAttr: null === (_a = graphic.getNoWorkAnimateAttr) || void 0 === _a ? void 0 : _a.call(graphic),
5277
5289
  isClear: !0,
5278
5290
  getDefaultAttribute: null === (_b = graphic.getDefaultAttribute) || void 0 === _b ? void 0 : _b.bind(graphic),
5279
- animateConfig: options.animateConfig
5291
+ shouldSkipDefaultAttribute: null !== (_c = options.shouldSkipDefaultAttribute) && void 0 !== _c ? _c : null === (_d = graphic.shouldSkipStateTransitionDefaultAttribute) || void 0 === _d ? void 0 : _d.bind(graphic),
5292
+ animateConfig: options.animateConfig,
5293
+ extraAnimateAttrs: options.extraAnimateAttrs
5280
5294
  });
5281
5295
  return this.applyTransition(graphic, plan, hasAnimation, options);
5282
5296
  }
@@ -5592,6 +5606,23 @@ class Graphic extends Node {
5592
5606
  "deep" === this.stateMergeMode && isPlainObjectValue(previousValue) && isPlainObjectValue(nextValue) ? snapshot[key] = deepMergeAttributeValue(previousValue, nextValue) : snapshot[key] = cloneAttributeValue(nextValue);
5593
5607
  }), snapshot) : snapshot;
5594
5608
  }
5609
+ buildRemovedStateAnimationAttrs(targetStateAttrs, previousResolvedStatePatch) {
5610
+ const extraAttrs = {};
5611
+ if (!previousResolvedStatePatch) return extraAttrs;
5612
+ const snapshot = this.buildStaticAttributeSnapshot(),
5613
+ staticTargetAttrs = snapshot;
5614
+ return Object.keys(previousResolvedStatePatch).forEach(key => {
5615
+ const hasTargetAttr = Object.prototype.hasOwnProperty.call(targetStateAttrs, key);
5616
+ if (hasTargetAttr && void 0 !== targetStateAttrs[key]) return;
5617
+ const assignFallbackAttr = value => {
5618
+ void 0 === value && this.shouldSkipStateTransitionDefaultAttribute(key, staticTargetAttrs) || (extraAttrs[key] = void 0 === value ? value : cloneAttributeValue(value));
5619
+ };
5620
+ if (hasTargetAttr) assignFallbackAttr(this.getStateTransitionDefaultAttribute(key, staticTargetAttrs));else if (Object.prototype.hasOwnProperty.call(snapshot, key)) {
5621
+ const snapshotValue = snapshot[key];
5622
+ assignFallbackAttr(void 0 === snapshotValue ? this.getStateTransitionDefaultAttribute(key, staticTargetAttrs) : snapshotValue);
5623
+ } else assignFallbackAttr(this.getStateTransitionDefaultAttribute(key, staticTargetAttrs));
5624
+ }), extraAttrs;
5625
+ }
5595
5626
  syncObjectToSnapshot(target, snapshot) {
5596
5627
  const delta = new Map();
5597
5628
  return new Set([...Object.keys(target), ...Object.keys(snapshot)]).forEach(key => {
@@ -6013,21 +6044,31 @@ class Graphic extends Node {
6013
6044
  var _a, _b, _c;
6014
6045
  return null !== (_c = null !== (_a = null != animateConfig ? animateConfig : this.stateAnimateConfig) && void 0 !== _a ? _a : null === (_b = this.context) || void 0 === _b ? void 0 : _b.stateAnimateConfig) && void 0 !== _c ? _c : DefaultStateAnimateConfig;
6015
6046
  }
6016
- applyStateAttrs(attrs, stateNames, hasAnimation, isClear, animateConfig) {
6047
+ applyStateAttrs(attrs, stateNames, hasAnimation, isClear, animateConfig, extraAnimateAttrs) {
6017
6048
  const resolvedAnimateConfig = hasAnimation ? this.resolveStateAnimateConfig(animateConfig) : void 0,
6018
6049
  transitionOptions = resolvedAnimateConfig ? {
6019
- animateConfig: resolvedAnimateConfig
6050
+ animateConfig: resolvedAnimateConfig,
6051
+ extraAnimateAttrs: extraAnimateAttrs,
6052
+ shouldSkipDefaultAttribute: this.shouldSkipStateTransitionDefaultAttribute.bind(this)
6020
6053
  } : void 0;
6021
6054
  if (isClear) return void this.getStateTransitionOrchestrator().applyClearTransition(this, attrs, hasAnimation, stateNames, transitionOptions);
6022
6055
  const plan = this.getStateTransitionOrchestrator().analyzeTransition({}, attrs, stateNames, hasAnimation, {
6023
6056
  noWorkAnimateAttr: this.getNoWorkAnimateAttr(),
6024
- animateConfig: resolvedAnimateConfig
6057
+ animateConfig: resolvedAnimateConfig,
6058
+ extraAnimateAttrs: extraAnimateAttrs,
6059
+ shouldSkipDefaultAttribute: this.shouldSkipStateTransitionDefaultAttribute.bind(this)
6025
6060
  });
6026
6061
  this.getStateTransitionOrchestrator().applyTransition(this, plan, hasAnimation, transitionOptions);
6027
6062
  }
6028
6063
  updateNormalAttrs(stateAttrs) {
6029
6064
  this._deprecatedNormalAttrsView = cloneAttributeValue(this.baseAttributes);
6030
6065
  }
6066
+ getStateTransitionDefaultAttribute(key, targetAttrs) {
6067
+ return this.getDefaultAttribute(key);
6068
+ }
6069
+ shouldSkipStateTransitionDefaultAttribute(_key, _targetAttrs) {
6070
+ return !1;
6071
+ }
6031
6072
  stopStateAnimates(type = "end") {
6032
6073
  const stopAnimationState = this.stopAnimationState;
6033
6074
  if ("function" == typeof stopAnimationState) return void stopAnimationState.call(this, "state", type);
@@ -6044,13 +6085,14 @@ class Graphic extends Node {
6044
6085
  clearStates(hasAnimation) {
6045
6086
  var _a, _b, _c;
6046
6087
  const previousStates = this.currentStates ? this.currentStates.slice() : [],
6088
+ previousResolvedStatePatch = this.resolvedStatePatch ? cloneAttributeValue(this.resolvedStatePatch) : void 0,
6047
6089
  transition = this.createStateModel().clearStates();
6048
6090
  if (!transition.changed && 0 === previousStates.length) return this.currentStates = [], this.effectiveStates = [], this.resolvedStatePatch = void 0, this.sharedStateDirty = !1, void this.clearSharedStateActiveRegistrations();
6049
6091
  const resolvedStateAttrs = cloneAttributeValue(null !== (_a = this.baseAttributes) && void 0 !== _a ? _a : {});
6050
6092
  transition.changed && !this.beforeStateUpdate(resolvedStateAttrs, previousStates, transition.states, hasAnimation, !0) || (this.currentStates = transition.states, this.effectiveStates = [], this.resolvedStatePatch = void 0, this.sharedStateDirty = !1, this.clearSharedStateActiveRegistrations(), null === (_b = getStageStatePerfMonitor(this.stage)) || void 0 === _b || _b.incrementCounter("stateCommits"), null === (_c = getStageStatePerfMonitor(this.stage)) || void 0 === _c || _c.recordEvent("state-commit", {
6051
6093
  graphicId: this._uid,
6052
6094
  targetStates: []
6053
- }), hasAnimation ? (this._syncFinalAttributeFromStaticTruth(), this.applyStateAttrs(resolvedStateAttrs, transition.states, hasAnimation, !0)) : (this.stopStateAnimates(), this._restoreAttributeFromStaticTruth({
6095
+ }), hasAnimation ? (this._syncFinalAttributeFromStaticTruth(), this.applyStateAttrs(resolvedStateAttrs, transition.states, hasAnimation, !0, void 0, this.buildRemovedStateAnimationAttrs(resolvedStateAttrs, previousResolvedStatePatch))) : (this.stopStateAnimates(), this._restoreAttributeFromStaticTruth({
6054
6096
  type: AttributeUpdateType.STATE
6055
6097
  }), this._emitCustomEvent("afterStateUpdate", {
6056
6098
  type: AttributeUpdateType.STATE
@@ -6072,6 +6114,7 @@ class Graphic extends Node {
6072
6114
  var _a, _b, _c, _d, _e;
6073
6115
  if (!states.length) return void this.clearStates(hasAnimation);
6074
6116
  const previousStates = this.currentStates ? this.currentStates.slice() : [],
6117
+ previousResolvedStatePatch = this.resolvedStatePatch ? cloneAttributeValue(this.resolvedStatePatch) : void 0,
6075
6118
  stateResolveBaseAttrs = null !== (_a = this.baseAttributes) && void 0 !== _a ? _a : this.attribute,
6076
6119
  stateModel = this.createStateModel();
6077
6120
  null === (_b = this.stateEngine) || void 0 === _b || _b.setResolveContext(this, stateResolveBaseAttrs);
@@ -6082,7 +6125,7 @@ class Graphic extends Node {
6082
6125
  this.beforeStateUpdate(resolvedStateAttrs, previousStates, transition.states, hasAnimation, !1) && (this.currentStates = transition.states, this.effectiveStates = [...effectiveStates], this.resolvedStatePatch = Object.assign({}, resolvedStateAttrs), this.sharedStateDirty = !1, this.syncSharedStateActiveRegistrations(), null === (_d = getStageStatePerfMonitor(this.stage)) || void 0 === _d || _d.incrementCounter("stateCommits"), null === (_e = getStageStatePerfMonitor(this.stage)) || void 0 === _e || _e.recordEvent("state-commit", {
6083
6126
  graphicId: this._uid,
6084
6127
  targetStates: [...transition.states]
6085
- }), hasAnimation ? (this._syncFinalAttributeFromStaticTruth(), this.applyStateAttrs(resolvedStateAttrs, transition.states, hasAnimation)) : (this.stopStateAnimates(), this._restoreAttributeFromStaticTruth({
6128
+ }), hasAnimation ? (this._syncFinalAttributeFromStaticTruth(), this.applyStateAttrs(resolvedStateAttrs, transition.states, hasAnimation, !1, void 0, this.buildRemovedStateAnimationAttrs(resolvedStateAttrs, previousResolvedStatePatch))) : (this.stopStateAnimates(), this._restoreAttributeFromStaticTruth({
6086
6129
  type: AttributeUpdateType.STATE
6087
6130
  }), this._emitCustomEvent("afterStateUpdate", {
6088
6131
  type: AttributeUpdateType.STATE
@@ -7501,6 +7544,52 @@ class Rect extends Graphic {
7501
7544
  needUpdateTag(key) {
7502
7545
  return super.needUpdateTag(key, RECT_UPDATE_TAG_KEY);
7503
7546
  }
7547
+ shouldSkipStateTransitionDefaultAttribute(key, targetAttrs) {
7548
+ var _a;
7549
+ const attrs = null !== (_a = null != targetAttrs ? targetAttrs : this.baseAttributes) && void 0 !== _a ? _a : this.attribute,
7550
+ hasValue = attrKey => null != attrs[attrKey],
7551
+ isNilValue = attrKey => null == attrs[attrKey];
7552
+ switch (key) {
7553
+ case "width":
7554
+ return isNilValue("width") && hasValue("x") && hasValue("x1");
7555
+ case "height":
7556
+ return isNilValue("height") && hasValue("y") && hasValue("y1");
7557
+ case "x1":
7558
+ return isNilValue("x1") && hasValue("x") && hasValue("width");
7559
+ case "y1":
7560
+ return isNilValue("y1") && hasValue("y") && hasValue("height");
7561
+ default:
7562
+ return !1;
7563
+ }
7564
+ }
7565
+ getStateTransitionDefaultAttribute(key, targetAttrs) {
7566
+ var _a;
7567
+ const attrs = null !== (_a = null != targetAttrs ? targetAttrs : this.baseAttributes) && void 0 !== _a ? _a : this.attribute,
7568
+ getNumber = attrKey => {
7569
+ const value = attrs[attrKey];
7570
+ return "number" == typeof value && Number.isFinite(value) ? value : void 0;
7571
+ },
7572
+ x = getNumber("x"),
7573
+ y = getNumber("y"),
7574
+ x1 = getNumber("x1"),
7575
+ y1 = getNumber("y1"),
7576
+ width = getNumber("width"),
7577
+ height = getNumber("height");
7578
+ switch (key) {
7579
+ case "width":
7580
+ if (null == width && null != x && null != x1) return x1 - x;
7581
+ break;
7582
+ case "height":
7583
+ if (null == height && null != y && null != y1) return y1 - y;
7584
+ break;
7585
+ case "x1":
7586
+ if (null == x1 && null != x && null != width) return x + width;
7587
+ break;
7588
+ case "y1":
7589
+ if (null == y1 && null != y && null != height) return y + height;
7590
+ }
7591
+ return super.getStateTransitionDefaultAttribute(key, targetAttrs);
7592
+ }
7504
7593
  toCustomPath() {
7505
7594
  let path = super.toCustomPath();
7506
7595
  if (path) return path;
@@ -19698,7 +19787,7 @@ class Animate {
19698
19787
  this.target = target;
19699
19788
  const trackerTarget = this.target;
19700
19789
  return "function" == typeof trackerTarget.trackAnimate ? trackerTarget.trackAnimate(this) : (this.target.animates || (this.target.animates = new Map()), this.target.animates.set(this.id, this)), this.onRemove(() => {
19701
- this.stop(), "function" == typeof trackerTarget.restoreStaticAttribute && trackerTarget.restoreStaticAttribute(), "function" == typeof trackerTarget.untrackAnimate ? trackerTarget.untrackAnimate(this.id) : this.target.animates.delete(this.id);
19790
+ this.stop(), this.__skipRestoreStaticAttributeOnRemove || "function" != typeof trackerTarget.restoreStaticAttribute || trackerTarget.restoreStaticAttribute(), "function" == typeof trackerTarget.untrackAnimate ? trackerTarget.untrackAnimate(this.id) : this.target.animates.delete(this.id);
19702
19791
  }), this.target.onAnimateBind && !this.slience && this.target.onAnimateBind(this), this.target.animationAttribute || (this.target.animationAttribute = {}), this;
19703
19792
  }
19704
19793
  to(props, duration = 300, easing = "linear") {
@@ -19834,7 +19923,7 @@ class Animate {
19834
19923
  if (nextTime >= this._startTime + this._totalDuration) {
19835
19924
  null === (_a = this._lastStep) || void 0 === _a || _a.onUpdate(!0, 1, {}), null === (_b = this._lastStep) || void 0 === _b || _b.onEnd(), this.onEnd(), this.status = AnimateStatus.END;
19836
19925
  const trackerTarget = this.target;
19837
- return void ("function" == typeof (null == trackerTarget ? void 0 : trackerTarget.restoreStaticAttribute) && trackerTarget.restoreStaticAttribute());
19926
+ return "function" == typeof (null == trackerTarget ? void 0 : trackerTarget.restoreStaticAttribute) && trackerTarget.restoreStaticAttribute(), void (this.__skipRestoreStaticAttributeOnRemove = !0);
19838
19927
  }
19839
19928
  this.status = AnimateStatus.RUNNING, this.currentTime <= this._startTime && this.onStart(), this.currentTime = nextTime;
19840
19929
  let cycleTime = nextTime - this._startTime,
@@ -20080,6 +20169,9 @@ class AnimationTransitionRegistry {
20080
20169
  })), this.registerTransition("state", "*", () => ({
20081
20170
  allowTransition: !0,
20082
20171
  stopOriginalTransition: !1
20172
+ })), this.registerTransition("state", "state", () => ({
20173
+ allowTransition: !0,
20174
+ stopOriginalTransition: !0
20083
20175
  })), this.registerTransition("state", "disappear", () => ({
20084
20176
  allowTransition: !0,
20085
20177
  stopOriginalTransition: !0
@@ -20385,7 +20477,7 @@ class AnimateExecutor {
20385
20477
  stop(type, callEnd = !0) {
20386
20478
  for (; this._animates.length > 0;) {
20387
20479
  const animate = this._animates.pop();
20388
- !1 === callEnd && (animate.status = AnimateStatus.END), null == animate || animate.stop(type);
20480
+ !1 === callEnd && (animate.status = AnimateStatus.END, animate.__skipRestoreStaticAttributeOnRemove = !0), null == animate || animate.stop(type);
20389
20481
  }
20390
20482
  this._animates = [], this._activeCount = 0, this._started && (this._started = !1, callEnd && this.onEnd());
20391
20483
  }
@@ -35548,6 +35640,6 @@ TableSeriesNumber.defaultAttributes = {
35548
35640
  select: true
35549
35641
  };
35550
35642
 
35551
- const version = "1.1.0-alpha.5";
35643
+ const version = "1.1.0-alpha.7";
35552
35644
 
35553
35645
  export { AXIS_ELEMENT_NAME, AbstractComponent, ArcInfo, ArcLabel, ArcSegment, AxisStateValue, BasePlayer, Brush, CheckBox, CircleAxis, CircleAxisGrid, CircleCrosshair, ColorContinuousLegend, ContinuousPlayer, DEFAULT_ITEM_SPACE_COL, DEFAULT_ITEM_SPACE_ROW, DEFAULT_LABEL_SPACE, DEFAULT_PAGER_SPACE, DEFAULT_SHAPE_SIZE, DEFAULT_SHAPE_SPACE, DEFAULT_STATES$1 as DEFAULT_STATES, DEFAULT_TITLE_SPACE, DEFAULT_VALUE_SPACE, DataLabel, DataZoom, DataZoomActiveTag, DirectionEnum, DiscreteLegend, DiscretePlayer, EmptyTip, GroupTransition, IDataZoomEvent, IDataZoomInteractiveEvent, IMarkAreaLabelPosition, IMarkCommonArcLabelPosition, IMarkLineLabelPosition, IMarkPointItemPosition, IOperateType, Indicator, LEGEND_ELEMENT_NAME, LabelBase, LegendEvent, LegendStateValue, LineAxis, LineAxisGrid, LineCrosshair, LineLabel, LinkPath, MarkArcArea, MarkArcLine, MarkArea, MarkLine, MarkPoint, Pager, PlayerEventEnum, PolygonCrosshair, PolygonSectorCrosshair, PopTip, Radio, RectCrosshair, RectLabel, SLIDER_ELEMENT_NAME, ScrollBar, SectorCrosshair, Segment, SeriesNumberCellStateValue, SeriesNumberEvent, SizeContinuousLegend, Slider, StoryLabelItem, Switch, SymbolLabel, TableSeriesNumber, Tag, Timeline, Title, Tooltip, TopZIndex, VTag, WeatherBox, alignTextInLine, angle, angleLabelOrientAttribute, angleTo, cartesianTicks, clampRadian, computeOffsetForlimit, continuousTicks, contrastAccessibilityChecker, convertDomainToTickData, createTextGraphicByType, deltaXYToAngle, fuzzyEqualNumber, getAxisBreakSymbolAttrs, getCircleLabelPosition, getCirclePoints, getCircleVerticalVector, getElMap, getHorizontalPath, getMarksByName, getNoneGroupMarksByName, getPolarAngleLabelPosition, getPolygonPath, getSizeHandlerPath, getTextAlignAttrOfVerticalDir, getTextType, getVerticalCoord, getVerticalPath, hasOverlap, htmlAttributeTransform, initTextMeasure, installPoptipToApp, installScrollbarToApp, isInRange, isPostiveXAxis, isRichText, isVisible, labelSmartInvert, length, limitShapeInBounds, linearDiscreteTicks, loadPoptip, loadScrollbar, measureTextSize, normalize, polarAngleAxisDiscreteTicks, polarTicks, reactAttributeTransform, registerArcDataLabel, registerLineDataLabel, registerMarkArcAreaAnimate, registerMarkArcLineAnimate, registerMarkAreaAnimate, registerMarkLineAnimate, registerMarkPointAnimate, registerRectDataLabel, registerSymbolDataLabel, removeRepeatPoint, richTextAttributeTransform, scale, setPoptipTheme, smartInvertStrategy, tan2AngleToAngle, textIntersect, ticks, traverseGroup, version };
@@ -24,4 +24,5 @@ export const DEFAULT_BRUSH_ATTRIBUTES = {
24
24
  }
25
25
  };
26
26
 
27
- export const DEFAULT_SIZE_THRESHOLD = 5;
27
+ export const DEFAULT_SIZE_THRESHOLD = 5;
28
+ //# sourceMappingURL=config.js.map
@@ -1,4 +1,3 @@
1
1
  export * from "./checkbox";
2
2
 
3
- export * from "./type";
4
- //# sourceMappingURL=index.js.map
3
+ export * from "./type";
package/es/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const version = "1.1.0-alpha.5";
1
+ export declare const version = "1.1.0-alpha.7";
2
2
  export * from './core/base';
3
3
  export * from './core/type';
4
4
  export * from './scrollbar';
package/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export const version = "1.1.0-alpha.5";
1
+ export const version = "1.1.0-alpha.7";
2
2
 
3
3
  export * from "./core/base";
4
4
 
package/es/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC;AAEvC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.1.0-alpha.5\";\n\nexport * from './core/base';\nexport * from './core/type';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './timeline';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\nexport * from './radio';\nexport * from './empty-tip';\nexport * from './weather';\nexport * from './util';\nexport * from './switch';\nexport * from './label-item';\nexport * from './table-series-number';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC;AAEvC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.1.0-alpha.7\";\n\nexport * from './core/base';\nexport * from './core/type';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './timeline';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\nexport * from './radio';\nexport * from './empty-tip';\nexport * from './weather';\nexport * from './util';\nexport * from './switch';\nexport * from './label-item';\nexport * from './table-series-number';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vrender-components",
3
- "version": "1.1.0-alpha.5",
3
+ "version": "1.1.0-alpha.7",
4
4
  "description": "components library for dp visualization",
5
5
  "sideEffects": false,
6
6
  "main": "cjs/index.js",
@@ -14,9 +14,9 @@
14
14
  "dependencies": {
15
15
  "@visactor/vutils": "~1.0.12",
16
16
  "@visactor/vscale": "~1.0.12",
17
- "@visactor/vrender-core": "1.1.0-alpha.5",
18
- "@visactor/vrender-kits": "1.1.0-alpha.5",
19
- "@visactor/vrender-animate": "1.1.0-alpha.5"
17
+ "@visactor/vrender-core": "1.1.0-alpha.7",
18
+ "@visactor/vrender-kits": "1.1.0-alpha.7",
19
+ "@visactor/vrender-animate": "1.1.0-alpha.7"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@rushstack/eslint-patch": "~1.1.4",
@@ -30,9 +30,9 @@
30
30
  "vite": "3.2.6",
31
31
  "typescript": "4.9.5",
32
32
  "cross-env": "^7.0.3",
33
+ "@internal/ts-config": "0.0.1",
33
34
  "@internal/bundler": "0.0.1",
34
- "@internal/eslint-config": "0.0.1",
35
- "@internal/ts-config": "0.0.1"
35
+ "@internal/eslint-config": "0.0.1"
36
36
  },
37
37
  "keywords": [
38
38
  "VisActor",