@visactor/vrender-components 1.1.0-alpha.17 → 1.1.0-alpha.19

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 CHANGED
@@ -1,4 +1,4 @@
1
- export declare const version = "1.1.0-alpha.17";
1
+ export declare const version = "1.1.0-alpha.19";
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.17", __exportStar(require("./core/base"), exports),
20
+ }), exports.version = void 0, exports.version = "1.1.0-alpha.19", __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,gBAAgB,CAAC;AAExC,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.17\";\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,gBAAgB,CAAC;AAExC,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.19\";\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"]}
@@ -26,4 +26,4 @@ Object.defineProperty(exports, "__esModule", {
26
26
  }
27
27
  }
28
28
  };
29
- //# sourceMappingURL=config.js.map
29
+ //# sourceMappingURL=config.js.map
@@ -18,4 +18,4 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
20
  }), __exportStar(require("./indicator"), exports), __exportStar(require("./type"), exports);
21
- //# sourceMappingURL=index.js.map
21
+ //# sourceMappingURL=index.js.map
@@ -101,4 +101,4 @@ class Indicator extends base_1.AbstractComponent {
101
101
  }
102
102
 
103
103
  exports.Indicator = Indicator;
104
- //# sourceMappingURL=indicator.js.map
104
+ //# sourceMappingURL=indicator.js.map
@@ -11,4 +11,4 @@ function loadIndicatorComponent() {
11
11
  }
12
12
 
13
13
  exports.loadIndicatorComponent = loadIndicatorComponent;
14
- //# sourceMappingURL=register.js.map
14
+ //# sourceMappingURL=register.js.map
@@ -3,4 +3,4 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  });
6
- //# sourceMappingURL=type.js.map
6
+ //# sourceMappingURL=type.js.map
package/cjs/jsx/index.js CHANGED
@@ -18,4 +18,4 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
20
  }), __exportStar(require("./component-type"), exports);
21
- //# sourceMappingURL=index.js.map
21
+ //# sourceMappingURL=index.js.map
package/cjs/label/arc.js CHANGED
@@ -516,4 +516,4 @@ const registerArcDataLabel = () => {
516
516
  };
517
517
 
518
518
  exports.registerArcDataLabel = registerArcDataLabel;
519
- //# sourceMappingURL=arc.js.map
519
+ //# sourceMappingURL=arc.js.map
package/cjs/label/base.js CHANGED
@@ -625,4 +625,4 @@ exports.LabelBase = LabelBase, LabelBase.defaultAttributes = {
625
625
  offset: 0,
626
626
  pickable: !1
627
627
  };
628
- //# sourceMappingURL=base.js.map
628
+ //# sourceMappingURL=base.js.map
@@ -13,4 +13,4 @@ exports.registerLabelComponent = registerLabelComponent;
13
13
  const getLabelComponent = type => labelComponentMap[type];
14
14
 
15
15
  exports.getLabelComponent = getLabelComponent;
16
- //# sourceMappingURL=data-label-register.js.map
16
+ //# sourceMappingURL=data-label-register.js.map
@@ -110,4 +110,4 @@ class DataLabel extends base_1.AbstractComponent {
110
110
  exports.DataLabel = DataLabel, DataLabel.defaultAttributes = {
111
111
  pickable: !1
112
112
  };
113
- //# sourceMappingURL=dataLabel.js.map
113
+ //# sourceMappingURL=dataLabel.js.map
package/dist/index.es.js CHANGED
@@ -5735,13 +5735,11 @@ class Graphic extends Node {
5735
5735
  };
5736
5736
  }
5737
5737
  recomputeCurrentStatePatch() {
5738
- var _a, _b, _c, _d;
5738
+ var _a, _b;
5739
5739
  if (!(null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length)) return this.effectiveStates = [], this.resolvedStatePatch = void 0, void this.syncSharedStateActiveRegistrations();
5740
- const stateResolveBaseAttrs = null !== (_b = this.baseAttributes) && void 0 !== _b ? _b : this.attribute,
5741
- stateModel = this.createStateModel();
5742
- null === (_c = this.stateEngine) || void 0 === _c || _c.setResolveContext(this, stateResolveBaseAttrs);
5743
- const transition = stateModel.useStates(this.currentStates),
5744
- effectiveStates = null !== (_d = transition.effectiveStates) && void 0 !== _d ? _d : transition.states,
5740
+ const stateResolveBaseAttrs = this.getStateResolveBaseAttrs(),
5741
+ transition = this.createStateModel(stateResolveBaseAttrs).useStates(this.currentStates),
5742
+ effectiveStates = null !== (_b = transition.effectiveStates) && void 0 !== _b ? _b : transition.states,
5745
5743
  resolvedStateAttrs = this.stateEngine && this.compiledStateDefinitions ? Object.assign({}, this.stateEngine.resolvedPatch) : this.getStateStyleResolver(this.stateMergeMode).resolve(stateResolveBaseAttrs, this.states, this.stateProxy, transition.states, this.stateSort);
5746
5744
  this.currentStates = transition.states, this.effectiveStates = [...effectiveStates], this.resolvedStatePatch = resolvedStateAttrs, this.syncSharedStateActiveRegistrations();
5747
5745
  }
@@ -6334,7 +6332,15 @@ class Graphic extends Node {
6334
6332
  var _a;
6335
6333
  return null === (_a = this.states) || void 0 === _a ? void 0 : _a[stateName];
6336
6334
  }
6337
- createStateModel() {
6335
+ getStateResolveBaseAttrs() {
6336
+ var _a;
6337
+ return null !== (_a = this.baseAttributes) && void 0 !== _a ? _a : this.attribute;
6338
+ }
6339
+ syncStateResolveContext(stateResolveBaseAttrs = this.getStateResolveBaseAttrs()) {
6340
+ var _a;
6341
+ return null === (_a = this.stateEngine) || void 0 === _a || _a.setResolveContext(this, stateResolveBaseAttrs), stateResolveBaseAttrs;
6342
+ }
6343
+ createStateModel(stateResolveBaseAttrs = this.getStateResolveBaseAttrs()) {
6338
6344
  const {
6339
6345
  compiledDefinitions: compiledDefinitions,
6340
6346
  stateProxyEligibility: stateProxyEligibility,
@@ -6347,7 +6353,7 @@ class Graphic extends Node {
6347
6353
  stateProxyEligibility: stateProxyEligibility,
6348
6354
  states: this.states,
6349
6355
  mergeMode: this.stateMergeMode
6350
- }), this.stateEngineCompiledDefinitions = compiledDefinitions, this.stateEngineStateProxy = this.stateProxy, this.stateEngineStateSort = this.stateSort, this.stateEngineMergeMode = this.stateMergeMode, this.stateEngineStateProxyModeKey = stateProxyModeKey) : (this.stateEngine = void 0, this.stateEngineCompiledDefinitions = void 0, this.stateEngineStateProxyModeKey = void 0), new StateModel({
6356
+ }), this.stateEngineCompiledDefinitions = compiledDefinitions, this.stateEngineStateProxy = this.stateProxy, this.stateEngineStateSort = this.stateSort, this.stateEngineMergeMode = this.stateMergeMode, this.stateEngineStateProxyModeKey = stateProxyModeKey) : (this.stateEngine = void 0, this.stateEngineCompiledDefinitions = void 0, this.stateEngineStateProxyModeKey = void 0), this.syncStateResolveContext(stateResolveBaseAttrs), new StateModel({
6351
6357
  states: this.states,
6352
6358
  currentStates: this.currentStates,
6353
6359
  stateSort: this.stateSort,
@@ -6416,6 +6422,70 @@ class Graphic extends Node {
6416
6422
  resolvedStateAttrs: resolvedStateAttrs
6417
6423
  };
6418
6424
  }
6425
+ resolveGraphicStateTransition(states, previousStates, forceResolverRefresh = !1) {
6426
+ var _a, _b;
6427
+ let transition = this.resolveSimpleLocalStateTransition(states, previousStates);
6428
+ const isSimpleLocalTransition = !!transition;
6429
+ let resolvedStateAttrs;
6430
+ if (transition) resolvedStateAttrs = transition.resolvedStateAttrs;else {
6431
+ const stateResolveBaseAttrs = this.getStateResolveBaseAttrs(),
6432
+ stateModel = this.createStateModel(stateResolveBaseAttrs);
6433
+ forceResolverRefresh && (null === (_a = this.stateEngine) || void 0 === _a || _a.invalidateResolverCache()), transition = stateModel.useStates(states), resolvedStateAttrs = this.stateEngine && this.compiledStateDefinitions ? Object.assign({}, this.stateEngine.resolvedPatch) : this.getStateStyleResolver(this.stateMergeMode).resolve(stateResolveBaseAttrs, this.states, this.stateProxy, transition.states, this.stateSort);
6434
+ }
6435
+ return {
6436
+ transition: transition,
6437
+ effectiveStates: null !== (_b = transition.effectiveStates) && void 0 !== _b ? _b : transition.states,
6438
+ resolvedStateAttrs: resolvedStateAttrs,
6439
+ isSimpleLocalTransition: isSimpleLocalTransition
6440
+ };
6441
+ }
6442
+ normalizeSetStatesOptions(options) {
6443
+ return options && "object" == typeof options ? {
6444
+ hasAnimation: options.animate,
6445
+ animateSameStatePatchChange: !0 === options.animateSameStatePatchChange,
6446
+ shouldRefreshSameStatePatch: !0
6447
+ } : {
6448
+ hasAnimation: "boolean" == typeof options ? options : void 0,
6449
+ animateSameStatePatchChange: !1,
6450
+ shouldRefreshSameStatePatch: !1
6451
+ };
6452
+ }
6453
+ sameStatePatches(left, right) {
6454
+ const leftRecord = null != left ? left : {},
6455
+ rightRecord = null != right ? right : {},
6456
+ keys = new Set([...Object.keys(leftRecord), ...Object.keys(rightRecord)]);
6457
+ for (const key of keys) {
6458
+ if (Object.prototype.hasOwnProperty.call(leftRecord, key) !== Object.prototype.hasOwnProperty.call(rightRecord, key)) return !1;
6459
+ if (!areAttributeValuesEqual(leftRecord[key], rightRecord[key])) return !1;
6460
+ }
6461
+ return !0;
6462
+ }
6463
+ commitSameStatePatchRefresh(states, hasAnimation, animateSameStatePatchChange = !1) {
6464
+ var _a;
6465
+ const previousStates = null !== (_a = this.currentStates) && void 0 !== _a ? _a : EMPTY_STATE_NAMES,
6466
+ previousResolvedStatePatch = this.resolvedStatePatch,
6467
+ {
6468
+ transition: transition,
6469
+ effectiveStates: effectiveStates,
6470
+ resolvedStateAttrs: resolvedStateAttrs,
6471
+ isSimpleLocalTransition: isSimpleLocalTransition
6472
+ } = this.resolveGraphicStateTransition(states, previousStates, !0),
6473
+ patchChanged = !this.sameStatePatches(previousResolvedStatePatch, resolvedStateAttrs);
6474
+ if ((!patchChanged || this.beforeStateUpdate(resolvedStateAttrs, previousStates, transition.states, hasAnimation, !1)) && (this.currentStates = transition.states, this.effectiveStates = isSimpleLocalTransition ? effectiveStates : [...effectiveStates], this.resolvedStatePatch = resolvedStateAttrs, this.sharedStateDirty = !1, this.syncSharedStateActiveRegistrations(), patchChanged)) {
6475
+ if (this.stage) {
6476
+ const perfMonitor = getActiveStageStatePerfMonitor(this.stage);
6477
+ null == perfMonitor || perfMonitor.incrementCounter("stateCommits"), null == perfMonitor || perfMonitor.recordEvent("state-commit", {
6478
+ graphicId: this._uid,
6479
+ targetStates: [...transition.states]
6480
+ });
6481
+ }
6482
+ hasAnimation && animateSameStatePatchChange ? (this._syncFinalAttributeFromStaticTruth(), this.applyStateAttrs(resolvedStateAttrs, transition.states, hasAnimation, !1, void 0, this.buildRemovedStateAnimationAttrs(resolvedStateAttrs, previousResolvedStatePatch))) : (this.stopStateAnimates(), this.attributeMayContainTransientAttrs ? this._restoreAttributeFromStaticTruth({
6483
+ type: AttributeUpdateType.STATE
6484
+ }) : this.restoreAttributeFromStatePatchDelta(previousResolvedStatePatch, this.resolvedStatePatch, {
6485
+ type: AttributeUpdateType.STATE
6486
+ }), this.emitStateUpdateEvent());
6487
+ }
6488
+ }
6419
6489
  resolveStateAnimateConfig(animateConfig) {
6420
6490
  var _a, _b, _c;
6421
6491
  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;
@@ -6491,34 +6561,35 @@ class Graphic extends Node {
6491
6561
  const transition = this.createStateModel().addState(stateName, keepCurrentStates);
6492
6562
  transition.changed && this.useStates(transition.states, hasAnimation);
6493
6563
  }
6494
- setStates(states, hasAnimation) {
6564
+ setStates(states, options) {
6495
6565
  var _a, _b, _c;
6496
- const nextStates = (null == states ? void 0 : states.length) ? states : EMPTY_STATE_NAMES,
6566
+ const {
6567
+ hasAnimation: hasAnimation,
6568
+ animateSameStatePatchChange: animateSameStatePatchChange,
6569
+ shouldRefreshSameStatePatch: shouldRefreshSameStatePatch
6570
+ } = this.normalizeSetStatesOptions(options),
6571
+ nextStates = (null == states ? void 0 : states.length) ? states : EMPTY_STATE_NAMES,
6497
6572
  hasCurrentState = !!((null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) || (null === (_b = this.effectiveStates) || void 0 === _b ? void 0 : _b.length) || this.resolvedStatePatch || (null === (_c = this.registeredActiveScopes) || void 0 === _c ? void 0 : _c.size));
6498
- if (nextStates.length) this.sameStateNames(this.currentStates, nextStates) ? this.sharedStateDirty && this.refreshSharedStateBeforeRender() : this.useStates(nextStates, hasAnimation);else {
6573
+ if (nextStates.length) {
6574
+ if (this.sameStateNames(this.currentStates, nextStates)) return shouldRefreshSameStatePatch ? void this.commitSameStatePatchRefresh(nextStates, hasAnimation, animateSameStatePatchChange) : void (this.sharedStateDirty && this.refreshSharedStateBeforeRender());
6575
+ this.useStates(nextStates, hasAnimation);
6576
+ } else {
6499
6577
  if (!hasCurrentState && !this.sharedStateDirty) return;
6500
6578
  this.clearStates(hasAnimation);
6501
6579
  }
6502
6580
  }
6503
6581
  useStates(states, hasAnimation) {
6504
- var _a, _b, _c, _d;
6582
+ var _a;
6505
6583
  if (!states.length) return void this.clearStates(hasAnimation);
6506
6584
  const previousStates = null !== (_a = this.currentStates) && void 0 !== _a ? _a : EMPTY_STATE_NAMES,
6507
- previousResolvedStatePatch = this.resolvedStatePatch;
6508
- let transition = this.resolveSimpleLocalStateTransition(states, previousStates);
6509
- const isSimpleLocalTransition = !!transition;
6510
- let resolvedStateAttrs;
6511
- if (transition) {
6512
- if (!transition.changed) return;
6513
- resolvedStateAttrs = transition.resolvedStateAttrs;
6514
- } else {
6515
- const stateResolveBaseAttrs = null !== (_b = this.baseAttributes) && void 0 !== _b ? _b : this.attribute,
6516
- stateModel = this.createStateModel();
6517
- if (null === (_c = this.stateEngine) || void 0 === _c || _c.setResolveContext(this, stateResolveBaseAttrs), transition = stateModel.useStates(states), !transition.changed && this.sameStateNames(previousStates, transition.states)) return;
6518
- resolvedStateAttrs = this.stateEngine && this.compiledStateDefinitions ? Object.assign({}, this.stateEngine.resolvedPatch) : this.getStateStyleResolver(this.stateMergeMode).resolve(stateResolveBaseAttrs, this.states, this.stateProxy, transition.states, this.stateSort);
6519
- }
6520
- const effectiveStates = null !== (_d = transition.effectiveStates) && void 0 !== _d ? _d : transition.states;
6521
- if (this.beforeStateUpdate(resolvedStateAttrs, previousStates, transition.states, hasAnimation, !1)) {
6585
+ previousResolvedStatePatch = this.resolvedStatePatch,
6586
+ {
6587
+ transition: transition,
6588
+ effectiveStates: effectiveStates,
6589
+ resolvedStateAttrs: resolvedStateAttrs,
6590
+ isSimpleLocalTransition: isSimpleLocalTransition
6591
+ } = this.resolveGraphicStateTransition(states, previousStates);
6592
+ if ((transition.changed || !this.sameStateNames(previousStates, transition.states)) && this.beforeStateUpdate(resolvedStateAttrs, previousStates, transition.states, hasAnimation, !1)) {
6522
6593
  if (this.currentStates = transition.states, this.effectiveStates = isSimpleLocalTransition ? effectiveStates : [...effectiveStates], this.resolvedStatePatch = resolvedStateAttrs, this.sharedStateDirty = !1, this.syncSharedStateActiveRegistrations(), this.stage) {
6523
6594
  const perfMonitor = getActiveStageStatePerfMonitor(this.stage);
6524
6595
  null == perfMonitor || perfMonitor.incrementCounter("stateCommits"), null == perfMonitor || perfMonitor.recordEvent("state-commit", {
@@ -6534,10 +6605,10 @@ class Graphic extends Node {
6534
6605
  }
6535
6606
  }
6536
6607
  invalidateResolver() {
6537
- var _a, _b, _c;
6608
+ var _a, _b;
6538
6609
  if (!this.stateEngine || !(null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) || !this.compiledStateDefinitions) return;
6539
- const stateResolveBaseAttrs = null !== (_b = this.baseAttributes) && void 0 !== _b ? _b : this.attribute;
6540
- this.stateEngine.setResolveContext(this, stateResolveBaseAttrs), this.resolverEpoch = (null !== (_c = this.resolverEpoch) && void 0 !== _c ? _c : 0) + 1, this.stateEngine.invalidateResolverCache();
6610
+ this.syncStateResolveContext();
6611
+ this.resolverEpoch = (null !== (_b = this.resolverEpoch) && void 0 !== _b ? _b : 0) + 1, this.stateEngine.invalidateResolverCache();
6541
6612
  const transition = this.stateEngine.applyStates(this.currentStates),
6542
6613
  resolvedStateAttrs = Object.assign({}, this.stateEngine.resolvedPatch);
6543
6614
  this.effectiveStates = [...transition.effectiveStates], this.resolvedStatePatch = resolvedStateAttrs, this.sharedStateDirty = !1, this.syncSharedStateActiveRegistrations(), this.stopStateAnimates(), this._restoreAttributeFromStaticTruth({
@@ -36697,6 +36768,6 @@ TableSeriesNumber.defaultAttributes = {
36697
36768
  select: true
36698
36769
  };
36699
36770
 
36700
- const version = "1.1.0-alpha.17";
36771
+ const version = "1.1.0-alpha.19";
36701
36772
 
36702
36773
  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 };
package/es/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const version = "1.1.0-alpha.17";
1
+ export declare const version = "1.1.0-alpha.19";
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.17";
1
+ export const version = "1.1.0-alpha.19";
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,gBAAgB,CAAC;AAExC,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.17\";\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,gBAAgB,CAAC;AAExC,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.19\";\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"]}
@@ -22,4 +22,4 @@ export const DEFAULT_INDICATOR_THEME = {
22
22
  }
23
23
  }
24
24
  };
25
- //# sourceMappingURL=config.js.map
25
+ //# sourceMappingURL=config.js.map
@@ -1,4 +1,4 @@
1
1
  export * from "./indicator";
2
2
 
3
3
  export * from "./type";
4
- //# sourceMappingURL=index.js.map
4
+ //# sourceMappingURL=index.js.map
@@ -98,4 +98,4 @@ export class Indicator extends AbstractComponent {
98
98
  }));
99
99
  }
100
100
  }
101
- //# sourceMappingURL=indicator.js.map
101
+ //# sourceMappingURL=indicator.js.map
@@ -3,4 +3,4 @@ import { registerGroup, registerRichtext, registerText } from "@visactor/vrender
3
3
  export function loadIndicatorComponent() {
4
4
  registerGroup(), registerText(), registerRichtext();
5
5
  }
6
- //# sourceMappingURL=register.js.map
6
+ //# sourceMappingURL=register.js.map
@@ -1,2 +1,2 @@
1
1
  export { };
2
- //# sourceMappingURL=type.js.map
2
+ //# sourceMappingURL=type.js.map
package/es/jsx/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export * from "./component-type";
2
- //# sourceMappingURL=index.js.map
2
+ //# sourceMappingURL=index.js.map
package/es/label/arc.js CHANGED
@@ -503,4 +503,4 @@ ArcLabel.defaultAttributes = {
503
503
  export const registerArcDataLabel = () => {
504
504
  registerLabelComponent("arc", ArcLabel);
505
505
  };
506
- //# sourceMappingURL=arc.js.map
506
+ //# sourceMappingURL=arc.js.map
package/es/label/base.js CHANGED
@@ -637,4 +637,4 @@ LabelBase.defaultAttributes = {
637
637
  offset: 0,
638
638
  pickable: !1
639
639
  };
640
- //# sourceMappingURL=base.js.map
640
+ //# sourceMappingURL=base.js.map
@@ -5,4 +5,4 @@ export const registerLabelComponent = (type, LabelClass) => {
5
5
  };
6
6
 
7
7
  export const getLabelComponent = type => labelComponentMap[type];
8
- //# sourceMappingURL=data-label-register.js.map
8
+ //# sourceMappingURL=data-label-register.js.map
@@ -113,4 +113,4 @@ export class DataLabel extends AbstractComponent {
113
113
  DataLabel.defaultAttributes = {
114
114
  pickable: !1
115
115
  };
116
- //# sourceMappingURL=dataLabel.js.map
116
+ //# sourceMappingURL=dataLabel.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vrender-components",
3
- "version": "1.1.0-alpha.17",
3
+ "version": "1.1.0-alpha.19",
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.17",
18
- "@visactor/vrender-kits": "1.1.0-alpha.17",
19
- "@visactor/vrender-animate": "1.1.0-alpha.17"
17
+ "@visactor/vrender-core": "1.1.0-alpha.19",
18
+ "@visactor/vrender-kits": "1.1.0-alpha.19",
19
+ "@visactor/vrender-animate": "1.1.0-alpha.19"
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",
34
33
  "@internal/eslint-config": "0.0.1",
35
- "@internal/bundler": "0.0.1"
34
+ "@internal/bundler": "0.0.1",
35
+ "@internal/ts-config": "0.0.1"
36
36
  },
37
37
  "keywords": [
38
38
  "VisActor",