@visactor/vrender 1.1.0-alpha.23 → 1.1.0-alpha.24

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/index.js CHANGED
@@ -5202,6 +5202,7 @@
5202
5202
  cornerRadius: 0,
5203
5203
  padRadius: 0,
5204
5204
  padAngle: 0,
5205
+ clipRange: 1,
5205
5206
  cap: !1,
5206
5207
  forceShowCap: !1
5207
5208
  });
@@ -8809,6 +8810,7 @@
8809
8810
  FULL_STATE_DEFINITION_KEYS = new Set(["name", "patch", "priority", "exclude", "suppress", "resolver", "declaredAffectedKeys"]),
8810
8811
  point = new Point(),
8811
8812
  EMPTY_STATE_NAMES = [],
8813
+ deprecatedLocalStateFallbackWarningStateNames = new Set(),
8812
8814
  BROAD_UPDATE_CATEGORY = UpdateCategory.PAINT | UpdateCategory.SHAPE | UpdateCategory.BOUNDS | UpdateCategory.TRANSFORM | UpdateCategory.LAYOUT;
8813
8815
  function isPlainObjectValue(value) {
8814
8816
  return "object" == typeof value && null != value && !Array.isArray(value);
@@ -8983,6 +8985,12 @@
8983
8985
  var _a, _b;
8984
8986
  return this.localStateDefinitionsSource !== this.states && (this.localStateDefinitionsSource = this.states, this.localFallbackVersion = (null !== (_a = this.localFallbackVersion) && void 0 !== _a ? _a : 0) + 1), null !== (_b = this.localFallbackVersion) && void 0 !== _b ? _b : 0;
8985
8987
  }
8988
+ warnDeprecatedLocalStatesFallback(stateNames) {
8989
+ for (let index = 0; index < stateNames.length; index++) {
8990
+ const stateName = stateNames[index];
8991
+ deprecatedLocalStateFallbackWarningStateNames.has(stateName) || (deprecatedLocalStateFallbackWarningStateNames.add(stateName), console.warn(`[VRender] graphic.states fallback for missing shared state definition "${stateName}" is deprecated. Move the state definition to sharedStateDefinitions or use stateProxy for dynamic per-graphic styles.`));
8992
+ }
8993
+ }
8986
8994
  resolveEffectiveCompiledDefinitions() {
8987
8995
  this.syncSharedStateScopeBindingFromTree(!1);
8988
8996
  const boundScope = this.boundSharedStateScope;
@@ -9017,6 +9025,7 @@
9017
9025
  stateProxyModeKey: sharedStateProxyModeKey,
9018
9026
  stateProxyEligibility: sharedStateProxyEligibility
9019
9027
  };
9028
+ this.warnDeprecatedLocalStatesFallback(missingStateNames);
9020
9029
  const localStatesVersion = this.getLocalStatesVersion(),
9021
9030
  stateProxyModeKey = this.stateProxy ? `missing:${missingStateNames.sort().join("|")}` : "none",
9022
9031
  cacheKey = `shared:${boundScope.revision}:fallback:${localStatesVersion}:${stateProxyModeKey}`;
@@ -9907,8 +9916,7 @@
9907
9916
  invalidateResolver() {
9908
9917
  var _a, _b;
9909
9918
  if (!this.stateEngine || !(null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) || !this.compiledStateDefinitions) return;
9910
- this.syncStateResolveContext();
9911
- this.resolverEpoch = (null !== (_b = this.resolverEpoch) && void 0 !== _b ? _b : 0) + 1, this.stateEngine.invalidateResolverCache();
9919
+ this.syncStateResolveContext(), this.resolverEpoch = (null !== (_b = this.resolverEpoch) && void 0 !== _b ? _b : 0) + 1, this.stateEngine.invalidateResolverCache();
9912
9920
  const transition = this.stateEngine.applyStates(this.currentStates),
9913
9921
  resolvedStateAttrs = Object.assign({}, this.stateEngine.resolvedPatch);
9914
9922
  this.effectiveStates = [...transition.effectiveStates], this.resolvedStatePatch = resolvedStateAttrs, this.sharedStateDirty = !1, this.syncSharedStateActiveRegistrations(), this.stopStateAnimates(), this._restoreAttributeFromStaticTruth({
@@ -12831,7 +12839,7 @@
12831
12839
  return new Area(attributes);
12832
12840
  }
12833
12841
 
12834
- const ARC_UPDATE_TAG_KEY = ["innerRadius", "outerRadius", "startAngle", "endAngle", "cornerRadius", "padAngle", "padRadius", "cap", ...GRAPHIC_UPDATE_TAG_KEY];
12842
+ const ARC_UPDATE_TAG_KEY = ["innerRadius", "outerRadius", "startAngle", "endAngle", "cornerRadius", "padAngle", "padRadius", "clipRange", "cap", ...GRAPHIC_UPDATE_TAG_KEY];
12835
12843
  class Arc extends Graphic {
12836
12844
  constructor(params) {
12837
12845
  super(params), this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
@@ -12875,11 +12883,12 @@
12875
12883
  endAngle = arcTheme.endAngle
12876
12884
  } = this.attribute;
12877
12885
  const {
12878
- cap = arcTheme.cap
12886
+ cap = arcTheme.cap,
12887
+ clipRange = arcTheme.clipRange
12879
12888
  } = this.attribute,
12880
- sign = endAngle - startAngle >= 0 ? 1 : -1,
12881
- deltaAngle = endAngle - startAngle;
12882
- if (startAngle = clampAngleByRadian(startAngle), endAngle = startAngle + deltaAngle, cap && abs(deltaAngle) < pi2 - epsilon) {
12889
+ sign = endAngle - startAngle >= 0 ? 1 : -1;
12890
+ let deltaAngle = endAngle - startAngle;
12891
+ if (deltaAngle *= Math.max(0, Math.min(clipRange, 1)), startAngle = clampAngleByRadian(startAngle), endAngle = startAngle + deltaAngle, cap && abs(deltaAngle) > epsilon && abs(deltaAngle) < pi2 - epsilon) {
12883
12892
  let startCap = 1,
12884
12893
  endCap = 1;
12885
12894
  cap.length && (startCap = Number(cap[0]), endCap = Number(cap[1]));
@@ -21196,7 +21205,7 @@
21196
21205
  };
21197
21206
  }
21198
21207
 
21199
- var __rest$g = undefined && undefined.__rest || function (s, e) {
21208
+ var __rest$f = undefined && undefined.__rest || function (s, e) {
21200
21209
  var t = {};
21201
21210
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
21202
21211
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -21294,7 +21303,7 @@
21294
21303
  {
21295
21304
  textConfig = []
21296
21305
  } = _a,
21297
- rest = __rest$g(_a, ["textConfig"]);
21306
+ rest = __rest$f(_a, ["textConfig"]);
21298
21307
  if ("Backspace" === ev.type && !textConfig.length) return;
21299
21308
  let str = ev.data;
21300
21309
  this.isComposing || "Backspace" === ev.type || str || (str = "\n"), this.selectionStartCursorIdx > this.cursorIndex && ([this.cursorIndex, this.selectionStartCursorIdx] = [this.selectionStartCursorIdx, this.cursorIndex]);
@@ -22316,77 +22325,82 @@
22316
22325
  return instance;
22317
22326
  }
22318
22327
 
22319
- let loadArcModule = !1;
22328
+ function isBindingContextLoaded(loadedContexts, context) {
22329
+ const key = "object" == typeof context && null !== context || "function" == typeof context ? context : loadedContexts;
22330
+ return !!loadedContexts.has(key) || (loadedContexts.add(key), !1);
22331
+ }
22332
+
22333
+ const loadedArcModuleContexts = new WeakSet();
22320
22334
  function bindArcRenderModule({
22321
22335
  bind: bind
22322
22336
  }) {
22323
- loadArcModule || (loadArcModule = !0, bind(DefaultCanvasArcRender).toSelf().inSingletonScope(), bind(ArcRender).to(DefaultCanvasArcRender).inSingletonScope(), bind(GraphicRender).toService(ArcRender), bind(ArcRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ArcRenderContribution));
22337
+ isBindingContextLoaded(loadedArcModuleContexts, bind) || (bind(DefaultCanvasArcRender).toSelf().inSingletonScope(), bind(ArcRender).to(DefaultCanvasArcRender).inSingletonScope(), bind(GraphicRender).toService(ArcRender), bind(ArcRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ArcRenderContribution));
22324
22338
  }
22325
22339
  const arcModule = bindArcRenderModule;
22326
22340
 
22327
- let loadRectModule = !1;
22341
+ const loadedRectModuleContexts = new WeakSet();
22328
22342
  function bindRectRenderModule({
22329
22343
  bind: bind
22330
22344
  }) {
22331
- loadRectModule || (loadRectModule = !0, bind(DefaultCanvasRectRender).toDynamicValue(({
22345
+ isBindingContextLoaded(loadedRectModuleContexts, bind) || (bind(DefaultCanvasRectRender).toDynamicValue(({
22332
22346
  container: container
22333
22347
  }) => new DefaultCanvasRectRender(createContributionProvider$1(RectRenderContribution, container))).inSingletonScope(), bind(RectRender).toService(DefaultCanvasRectRender), bind(GraphicRender).toService(RectRender), bind(SplitRectAfterRenderContribution).toSelf(), bind(SplitRectBeforeRenderContribution).toSelf(), bind(RectRenderContribution).toService(SplitRectAfterRenderContribution), bind(RectRenderContribution).toService(SplitRectBeforeRenderContribution), bind(RectRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, RectRenderContribution));
22334
22348
  }
22335
22349
  const rectModule = bindRectRenderModule;
22336
22350
 
22337
- let loadLineModule = !1;
22351
+ const loadedLineModuleContexts = new WeakSet();
22338
22352
  function bindLineRenderModule({
22339
22353
  bind: bind
22340
22354
  }) {
22341
- loadLineModule || (loadLineModule = !0, bind(DefaultCanvasLineRender).toSelf().inSingletonScope(), bind(DefaultIncrementalCanvasLineRender).toSelf().inSingletonScope(), bind(LineRender).to(DefaultCanvasLineRender).inSingletonScope(), bind(GraphicRender).toService(LineRender));
22355
+ isBindingContextLoaded(loadedLineModuleContexts, bind) || (bind(DefaultCanvasLineRender).toSelf().inSingletonScope(), bind(DefaultIncrementalCanvasLineRender).toSelf().inSingletonScope(), bind(LineRender).to(DefaultCanvasLineRender).inSingletonScope(), bind(GraphicRender).toService(LineRender));
22342
22356
  }
22343
22357
  const lineModule = bindLineRenderModule;
22344
22358
 
22345
- let loadAreaModule = !1;
22359
+ const loadedAreaModuleContexts = new WeakSet();
22346
22360
  function bindAreaRenderModule({
22347
22361
  bind: bind
22348
22362
  }) {
22349
- loadAreaModule || (loadAreaModule = !0, bind(DefaultCanvasAreaRender).toSelf().inSingletonScope(), bind(AreaRender).to(DefaultCanvasAreaRender).inSingletonScope(), bind(GraphicRender).toService(AreaRender), bind(AreaRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, AreaRenderContribution), bind(DefaultIncrementalCanvasAreaRender).toSelf().inSingletonScope());
22363
+ isBindingContextLoaded(loadedAreaModuleContexts, bind) || (bind(DefaultCanvasAreaRender).toSelf().inSingletonScope(), bind(AreaRender).to(DefaultCanvasAreaRender).inSingletonScope(), bind(GraphicRender).toService(AreaRender), bind(AreaRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, AreaRenderContribution), bind(DefaultIncrementalCanvasAreaRender).toSelf().inSingletonScope());
22350
22364
  }
22351
22365
  const areaModule = bindAreaRenderModule;
22352
22366
 
22353
- let loadSymbolModule = !1;
22367
+ const loadedSymbolModuleContexts = new WeakSet();
22354
22368
  function bindSymbolRenderModule({
22355
22369
  bind: bind
22356
22370
  }) {
22357
- loadSymbolModule || (loadSymbolModule = !0, bind(DefaultCanvasSymbolRender).toSelf().inSingletonScope(), bind(SymbolRender).to(DefaultCanvasSymbolRender).inSingletonScope(), bind(GraphicRender).toService(SymbolRender), bind(SymbolRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, SymbolRenderContribution));
22371
+ isBindingContextLoaded(loadedSymbolModuleContexts, bind) || (bind(DefaultCanvasSymbolRender).toSelf().inSingletonScope(), bind(SymbolRender).to(DefaultCanvasSymbolRender).inSingletonScope(), bind(GraphicRender).toService(SymbolRender), bind(SymbolRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, SymbolRenderContribution));
22358
22372
  }
22359
22373
  const symbolModule = bindSymbolRenderModule;
22360
22374
 
22361
- let loadCircleModule = !1;
22375
+ const loadedCircleModuleContexts = new WeakSet();
22362
22376
  function bindCircleRenderModule({
22363
22377
  bind: bind
22364
22378
  }) {
22365
- loadCircleModule || (loadCircleModule = !0, bind(DefaultCanvasCircleRender).toSelf().inSingletonScope(), bind(CircleRender).to(DefaultCanvasCircleRender).inSingletonScope(), bind(GraphicRender).toService(CircleRender), bind(CircleRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, CircleRenderContribution));
22379
+ isBindingContextLoaded(loadedCircleModuleContexts, bind) || (bind(DefaultCanvasCircleRender).toSelf().inSingletonScope(), bind(CircleRender).to(DefaultCanvasCircleRender).inSingletonScope(), bind(GraphicRender).toService(CircleRender), bind(CircleRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, CircleRenderContribution));
22366
22380
  }
22367
22381
  const circleModule = bindCircleRenderModule;
22368
22382
 
22369
- let loadTextModule = !1;
22383
+ const loadedTextModuleContexts = new WeakSet();
22370
22384
  function bindTextRenderModule({
22371
22385
  bind: bind
22372
22386
  }) {
22373
- loadTextModule || (loadTextModule = !0, bind(TextRender).to(DefaultCanvasTextRender).inSingletonScope(), bind(GraphicRender).toService(TextRender), bind(TextRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, TextRenderContribution));
22387
+ isBindingContextLoaded(loadedTextModuleContexts, bind) || (bind(TextRender).to(DefaultCanvasTextRender).inSingletonScope(), bind(GraphicRender).toService(TextRender), bind(TextRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, TextRenderContribution));
22374
22388
  }
22375
22389
  const textModule = bindTextRenderModule;
22376
22390
 
22377
- let loadPathModule = !1;
22391
+ const loadedPathModuleContexts = new WeakSet();
22378
22392
  function bindPathRenderModule({
22379
22393
  bind: bind
22380
22394
  }) {
22381
- loadPathModule || (loadPathModule = !0, bind(DefaultCanvasPathRender).toSelf().inSingletonScope(), bind(PathRender).to(DefaultCanvasPathRender).inSingletonScope(), bind(GraphicRender).toService(PathRender), bind(PathRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PathRenderContribution));
22395
+ isBindingContextLoaded(loadedPathModuleContexts, bind) || (bind(DefaultCanvasPathRender).toSelf().inSingletonScope(), bind(PathRender).to(DefaultCanvasPathRender).inSingletonScope(), bind(GraphicRender).toService(PathRender), bind(PathRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PathRenderContribution));
22382
22396
  }
22383
22397
  const pathModule = bindPathRenderModule;
22384
22398
 
22385
- let loadPolygonModule = !1;
22399
+ const loadedPolygonModuleContexts = new WeakSet();
22386
22400
  function bindPolygonRenderModule({
22387
22401
  bind: bind
22388
22402
  }) {
22389
- loadPolygonModule || (loadPolygonModule = !0, bind(PolygonRender).to(DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
22403
+ isBindingContextLoaded(loadedPolygonModuleContexts, bind) || (bind(PolygonRender).to(DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
22390
22404
  }
22391
22405
  const polygonModule = bindPolygonRenderModule;
22392
22406
 
@@ -22427,11 +22441,11 @@
22427
22441
  }
22428
22442
  }
22429
22443
 
22430
- let loadStarModule = !1;
22444
+ const loadedStarModuleContexts = new WeakSet();
22431
22445
  function bindStarRenderModule({
22432
22446
  bind: bind
22433
22447
  }) {
22434
- loadStarModule || (loadStarModule = !0, bind(DefaultCanvasStarRender).toDynamicValue(({
22448
+ isBindingContextLoaded(loadedStarModuleContexts, bind) || (bind(DefaultCanvasStarRender).toDynamicValue(({
22435
22449
  container: container
22436
22450
  }) => new DefaultCanvasStarRender(createContributionProvider$1(StarRenderContribution, container))).inSingletonScope(), bind(StarRender).toService(DefaultCanvasStarRender), bind(GraphicRender).toService(StarRender));
22437
22451
  }
@@ -22464,11 +22478,11 @@
22464
22478
  }
22465
22479
  }
22466
22480
 
22467
- let loadGlyphModule = !1;
22481
+ const loadedGlyphModuleContexts = new WeakSet();
22468
22482
  function bindGlyphRenderModule({
22469
22483
  bind: bind
22470
22484
  }) {
22471
- loadGlyphModule || (loadGlyphModule = !0, bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender));
22485
+ isBindingContextLoaded(loadedGlyphModuleContexts, bind) || (bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender));
22472
22486
  }
22473
22487
  const glyphModule = bindGlyphRenderModule;
22474
22488
 
@@ -22524,19 +22538,19 @@
22524
22538
  }
22525
22539
  }
22526
22540
 
22527
- let loadRichtextModule = !1;
22541
+ const loadedRichtextModuleContexts = new WeakSet();
22528
22542
  function bindRichtextRenderModule({
22529
22543
  bind: bind
22530
22544
  }) {
22531
- loadRichtextModule || (loadRichtextModule = !0, bind(RichTextRender).to(DefaultCanvasRichTextRender).inSingletonScope(), bind(GraphicRender).toService(RichTextRender));
22545
+ isBindingContextLoaded(loadedRichtextModuleContexts, bind) || (bind(RichTextRender).to(DefaultCanvasRichTextRender).inSingletonScope(), bind(GraphicRender).toService(RichTextRender));
22532
22546
  }
22533
22547
  const richtextModule = bindRichtextRenderModule;
22534
22548
 
22535
- let loadImageModule = !1;
22549
+ const loadedImageModuleContexts = new WeakSet();
22536
22550
  function bindImageRenderModule({
22537
22551
  bind: bind
22538
22552
  }) {
22539
- loadImageModule || (loadImageModule = !0, bind(ImageRender).to(DefaultCanvasImageRender).inSingletonScope(), bind(GraphicRender).toService(ImageRender), bind(ImageRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ImageRenderContribution));
22553
+ isBindingContextLoaded(loadedImageModuleContexts, bind) || (bind(ImageRender).to(DefaultCanvasImageRender).inSingletonScope(), bind(GraphicRender).toService(ImageRender), bind(ImageRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ImageRenderContribution));
22540
22554
  }
22541
22555
  const imageModule = bindImageRenderModule;
22542
22556
 
@@ -22663,11 +22677,11 @@
22663
22677
  }
22664
22678
  }
22665
22679
 
22666
- let loadRect3dModule = !1;
22680
+ const loadedRect3dModuleContexts = new WeakSet();
22667
22681
  function bindRect3dRenderModule({
22668
22682
  bind: bind
22669
22683
  }) {
22670
- loadRect3dModule || (loadRect3dModule = !0, bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender));
22684
+ isBindingContextLoaded(loadedRect3dModuleContexts, bind) || (bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender));
22671
22685
  }
22672
22686
  const rect3dModule = bindRect3dRenderModule;
22673
22687
 
@@ -22792,11 +22806,11 @@
22792
22806
  }
22793
22807
  }
22794
22808
 
22795
- let loadArc3dModule = !1;
22809
+ const loadedArc3dModuleContexts = new WeakSet();
22796
22810
  function bindArc3dRenderModule({
22797
22811
  bind: bind
22798
22812
  }) {
22799
- loadArc3dModule || (loadArc3dModule = !0, bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender));
22813
+ isBindingContextLoaded(loadedArc3dModuleContexts, bind) || (bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender));
22800
22814
  }
22801
22815
  const arc3dModule = bindArc3dRenderModule;
22802
22816
 
@@ -22831,11 +22845,11 @@
22831
22845
  }
22832
22846
  }
22833
22847
 
22834
- let loadPyramid3dModule = !1;
22848
+ const loadedPyramid3dModuleContexts = new WeakSet();
22835
22849
  function bindPyramid3dRenderModule({
22836
22850
  bind: bind
22837
22851
  }) {
22838
- loadPyramid3dModule || (loadPyramid3dModule = !0, bind(Pyramid3dRender).to(DefaultCanvasPyramid3dRender).inSingletonScope(), bind(GraphicRender).toService(Pyramid3dRender));
22852
+ isBindingContextLoaded(loadedPyramid3dModuleContexts, bind) || (bind(Pyramid3dRender).to(DefaultCanvasPyramid3dRender).inSingletonScope(), bind(GraphicRender).toService(Pyramid3dRender));
22839
22853
  }
22840
22854
  const pyramid3dModule = bindPyramid3dRenderModule;
22841
22855
 
@@ -31547,7 +31561,7 @@
31547
31561
  }, params);
31548
31562
  };
31549
31563
 
31550
- var __rest$f = undefined && undefined.__rest || function (s, e) {
31564
+ var __rest$e = undefined && undefined.__rest || function (s, e) {
31551
31565
  var t = {};
31552
31566
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
31553
31567
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -31571,7 +31585,7 @@
31571
31585
  animation: animation,
31572
31586
  timeline: timeline
31573
31587
  } = _a,
31574
- props = __rest$f(_a, ["key", "name", "id", "attribute", "stateProxy", "animation", "timeline"]);
31588
+ props = __rest$e(_a, ["key", "name", "id", "attribute", "stateProxy", "animation", "timeline"]);
31575
31589
  let c = type;
31576
31590
  isString$1(type) && (c = graphicCreator$1[type]);
31577
31591
  const childrenList = [];
@@ -33022,187 +33036,6 @@
33022
33036
  loadLottieModule || (loadLottieModule = !0, container.bind(DefaultCanvasLottieRender).toDynamicValue(() => new DefaultCanvasLottieRender(createContributionProvider(RectRenderContribution, container))).inSingletonScope(), container.bind(GraphicRender).toService(DefaultCanvasLottieRender));
33023
33037
  }
33024
33038
 
33025
- var VRenderKitsRuntime = /*#__PURE__*/Object.freeze({
33026
- __proto__: null,
33027
- BrowserEnvContribution: BrowserEnvContribution,
33028
- CanvasArc3dPicker: CanvasArc3dPicker,
33029
- CanvasArcPicker: CanvasArcPicker,
33030
- CanvasAreaPicker: CanvasAreaPicker,
33031
- CanvasCirclePicker: CanvasCirclePicker,
33032
- CanvasGifImagePicker: CanvasGifImagePicker,
33033
- CanvasGlyphPicker: CanvasGlyphPicker,
33034
- CanvasGroupPicker: CanvasGroupPicker,
33035
- CanvasImagePicker: CanvasImagePicker,
33036
- CanvasLinePicker: CanvasLinePicker,
33037
- CanvasLottiePicker: CanvasLottiePicker,
33038
- CanvasPathPicker: CanvasPathPicker,
33039
- CanvasPickerContribution: CanvasPickerContribution,
33040
- CanvasPolygonPicker: CanvasPolygonPicker,
33041
- CanvasPyramid3dPicker: CanvasPyramid3dPicker,
33042
- CanvasRect3dPicker: CanvasRect3dPicker,
33043
- CanvasRectPicker: CanvasRectPicker,
33044
- CanvasRichTextPicker: CanvasRichTextPicker,
33045
- CanvasStarPicker: CanvasStarPicker,
33046
- CanvasSymbolPicker: CanvasSymbolPicker,
33047
- CanvasTextPicker: CanvasTextPicker,
33048
- DragNDrop: DragNDrop,
33049
- Fragment: Fragment,
33050
- Gesture: Gesture,
33051
- GifImage: GifImage,
33052
- Lottie: Lottie,
33053
- MathArcPicker: MathArcPicker,
33054
- MathAreaPicker: MathAreaPicker,
33055
- MathCirclePicker: MathCirclePicker,
33056
- MathGlyphPicker: MathGlyphPicker,
33057
- MathImagePicker: MathImagePicker,
33058
- MathLinePicker: MathLinePicker,
33059
- MathPathPicker: MathPathPicker,
33060
- MathPickerContribution: MathPickerContribution,
33061
- MathPolygonPicker: MathPolygonPicker,
33062
- MathRectPicker: MathRectPicker,
33063
- MathRichTextPicker: MathRichTextPicker,
33064
- MathSymbolPicker: MathSymbolPicker,
33065
- MathTextPicker: MathTextPicker,
33066
- REACT_TO_CANOPUS_EVENTS: REACT_TO_CANOPUS_EVENTS,
33067
- REACT_TO_CANOPUS_EVENTS_LIST: REACT_TO_CANOPUS_EVENTS_LIST,
33068
- VArc: VArc,
33069
- VArc3d: VArc3d,
33070
- VArea: VArea,
33071
- VCircle: VCircle,
33072
- VGlyph: VGlyph,
33073
- VGroup: VGroup,
33074
- VImage: VImage,
33075
- VLine: VLine,
33076
- VPath: VPath,
33077
- VPolygon: VPolygon,
33078
- VPyramid3d: VPyramid3d,
33079
- VRect: VRect,
33080
- VRect3d: VRect3d,
33081
- VRichText: VRichText,
33082
- VSymbol: VSymbol,
33083
- VText: VText,
33084
- _registerArc: _registerArc,
33085
- alternatingWave: alternatingWave,
33086
- bindArc3dCanvasPickerContribution: bindArc3dCanvasPickerContribution,
33087
- bindArcCanvasPickerContribution: bindArcCanvasPickerContribution,
33088
- bindArcMathPickerContribution: bindArcMathPickerContribution,
33089
- bindAreaCanvasPickerContribution: bindAreaCanvasPickerContribution,
33090
- bindAreaMathPickerContribution: bindAreaMathPickerContribution,
33091
- bindBrowserEnv: bindBrowserEnv,
33092
- bindCircleCanvasPickerContribution: bindCircleCanvasPickerContribution,
33093
- bindCircleMathPickerContribution: bindCircleMathPickerContribution,
33094
- bindFeishuEnv: bindFeishuEnv,
33095
- bindGifImageCanvasPickerContribution: bindGifImageCanvasPickerContribution,
33096
- bindGifImageRenderContribution: bindGifImageRenderContribution,
33097
- bindGlyphCanvasPickerContribution: bindGlyphCanvasPickerContribution,
33098
- bindGlyphMathPickerContribution: bindGlyphMathPickerContribution,
33099
- bindHarmonyEnv: bindHarmonyEnv,
33100
- bindImageCanvasPickerContribution: bindImageCanvasPickerContribution,
33101
- bindImageMathPickerContribution: bindImageMathPickerContribution,
33102
- bindLineCanvasPickerContribution: bindLineCanvasPickerContribution,
33103
- bindLineMathPickerContribution: bindLineMathPickerContribution,
33104
- bindLottieCanvasPickerContribution: bindLottieCanvasPickerContribution,
33105
- bindLottieRenderContribution: bindLottieRenderContribution,
33106
- bindLynxEnv: bindLynxEnv,
33107
- bindMathPicker: bindMathPicker,
33108
- bindNodeEnv: bindNodeEnv,
33109
- bindPathCanvasPickerContribution: bindPathCanvasPickerContribution,
33110
- bindPathMathPickerContribution: bindPathMathPickerContribution,
33111
- bindPolygonCanvasPickerContribution: bindPolygonCanvasPickerContribution,
33112
- bindPolygonMathPickerContribution: bindPolygonMathPickerContribution,
33113
- bindPyramid3dCanvasPickerContribution: bindPyramid3dCanvasPickerContribution,
33114
- bindRect3dCanvasPickerContribution: bindRect3dCanvasPickerContribution,
33115
- bindRectCanvasPickerContribution: bindRectCanvasPickerContribution,
33116
- bindRectMathPickerContribution: bindRectMathPickerContribution,
33117
- bindRichTextMathPickerContribution: bindRichTextMathPickerContribution,
33118
- bindRichtextCanvasPickerContribution: bindRichtextCanvasPickerContribution,
33119
- bindSymbolCanvasPickerContribution: bindSymbolCanvasPickerContribution,
33120
- bindSymbolMathPickerContribution: bindSymbolMathPickerContribution,
33121
- bindTTEnv: bindTTEnv,
33122
- bindTaroEnv: bindTaroEnv,
33123
- bindTextCanvasPickerContribution: bindTextCanvasPickerContribution,
33124
- bindTextMathPickerContribution: bindTextMathPickerContribution,
33125
- bindWxEnv: bindWxEnv,
33126
- centerToCorner: centerToCorner,
33127
- columnCenterToEdge: columnCenterToEdge,
33128
- columnEdgeToCenter: columnEdgeToCenter,
33129
- columnLeftToRight: columnLeftToRight,
33130
- columnRightToLeft: columnRightToLeft,
33131
- cornerToCenter: cornerToCenter,
33132
- createGifImage: createGifImage,
33133
- createImageElement: createImageElement$1,
33134
- createLottie: createLottie,
33135
- decodeReactDom: decodeReactDom,
33136
- diagonalCenterToEdge: diagonalCenterToEdge,
33137
- diagonalTopLeftToBottomRight: diagonalTopLeftToBottomRight,
33138
- initAllEnv: initAllEnv,
33139
- initBrowserEnv: initBrowserEnv,
33140
- initFeishuEnv: initFeishuEnv,
33141
- initHarmonyEnv: initHarmonyEnv,
33142
- initLynxEnv: initLynxEnv,
33143
- initNodeEnv: initNodeEnv,
33144
- initTTEnv: initTTEnv,
33145
- initTaroEnv: initTaroEnv,
33146
- initWxEnv: initWxEnv,
33147
- installBrowserEnvToApp: installBrowserEnvToApp,
33148
- installBrowserPickersToApp: installBrowserPickersToApp,
33149
- installDefaultGraphicsToApp: installDefaultGraphicsToApp,
33150
- installFeishuEnvToApp: installFeishuEnvToApp,
33151
- installHarmonyEnvToApp: installHarmonyEnvToApp,
33152
- installLynxEnvToApp: installLynxEnvToApp,
33153
- installMathPickersToApp: installMathPickersToApp,
33154
- installNodeEnvToApp: installNodeEnvToApp,
33155
- installNodePickersToApp: installNodePickersToApp,
33156
- installTTEnvToApp: installTTEnvToApp,
33157
- installTaroEnvToApp: installTaroEnvToApp,
33158
- installWxEnvToApp: installWxEnvToApp,
33159
- jsx: jsx,
33160
- loadAllEnv: loadAllEnv,
33161
- loadAllModule: loadAllModule,
33162
- loadBrowserEnv: loadBrowserEnv,
33163
- loadFeishuEnv: loadFeishuEnv,
33164
- loadHarmonyEnv: loadHarmonyEnv,
33165
- loadLynxEnv: loadLynxEnv,
33166
- loadMathPicker: loadMathPicker,
33167
- loadNodeEnv: loadNodeEnv,
33168
- loadTTEnv: loadTTEnv,
33169
- loadTaroEnv: loadTaroEnv,
33170
- loadWxEnv: loadWxEnv,
33171
- particleEffect: particleEffect,
33172
- pulseWave: pulseWave,
33173
- randomOpacity: randomOpacity,
33174
- registerArc: registerArc,
33175
- registerArc3d: registerArc3d,
33176
- registerArea: registerArea,
33177
- registerCircle: registerCircle,
33178
- registerGifGraphic: registerGifGraphic,
33179
- registerGifImage: registerGifImage,
33180
- registerGlyph: registerGlyph,
33181
- registerGroup: registerGroup,
33182
- registerImage: registerImage,
33183
- registerLine: registerLine,
33184
- registerPath: registerPath,
33185
- registerPolygon: registerPolygon,
33186
- registerPyramid3d: registerPyramid3d,
33187
- registerRect: registerRect,
33188
- registerRect3d: registerRect3d,
33189
- registerRichtext: registerRichtext,
33190
- registerShadowRoot: registerShadowRoot,
33191
- registerStar: registerStar,
33192
- registerSymbol: registerSymbol,
33193
- registerText: registerText,
33194
- registerWrapText: registerWrapText,
33195
- rippleEffect: rippleEffect,
33196
- rotationScan: rotationScan,
33197
- roughModule: roughModule,
33198
- rowBottomToTop: rowBottomToTop,
33199
- rowCenterToEdge: rowCenterToEdge,
33200
- rowEdgeToCenter: rowEdgeToCenter,
33201
- rowTopToBottom: rowTopToBottom,
33202
- snakeWave: snakeWave,
33203
- spiralEffect: spiralEffect
33204
- });
33205
-
33206
33039
  class Easing {
33207
33040
  constructor() {}
33208
33041
  static linear(t) {
@@ -37549,36 +37382,40 @@
37549
37382
  super(from, to, duration, easing, params);
37550
37383
  }
37551
37384
  onBind() {
37552
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
37385
+ 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;
37553
37386
  let from, to;
37554
37387
  super.onBind();
37555
37388
  const attrs = this.target.getFinalAttribute(),
37556
- fromAttrs = null !== (_a = this.target.attribute) && void 0 !== _a ? _a : {};
37557
- switch (null === (_b = this.params) || void 0 === _b ? void 0 : _b.direction) {
37389
+ fromAttrs = null !== (_a = this.target.attribute) && void 0 !== _a ? _a : {},
37390
+ options = null === (_b = this.params) || void 0 === _b ? void 0 : _b.options,
37391
+ direction = null !== (_d = null === (_c = this.params) || void 0 === _c ? void 0 : _c.direction) && void 0 !== _d ? _d : null == options ? void 0 : options.direction,
37392
+ fromScaleX = null !== (_j = null !== (_g = null !== (_f = null === (_e = this.params) || void 0 === _e ? void 0 : _e.fromScaleX) && void 0 !== _f ? _f : null == options ? void 0 : options.fromScaleX) && void 0 !== _g ? _g : null === (_h = this.params) || void 0 === _h ? void 0 : _h.fromScale) && void 0 !== _j ? _j : null == options ? void 0 : options.fromScale,
37393
+ fromScaleY = null !== (_p = null !== (_m = null !== (_l = null === (_k = this.params) || void 0 === _k ? void 0 : _k.fromScaleY) && void 0 !== _l ? _l : null == options ? void 0 : options.fromScaleY) && void 0 !== _m ? _m : null === (_o = this.params) || void 0 === _o ? void 0 : _o.fromScale) && void 0 !== _p ? _p : null == options ? void 0 : options.fromScale;
37394
+ switch (direction) {
37558
37395
  case "x":
37559
37396
  from = {
37560
- scaleX: null !== (_c = fromAttrs.scaleX) && void 0 !== _c ? _c : 0
37397
+ scaleX: null !== (_q = null != fromScaleX ? fromScaleX : fromAttrs.scaleX) && void 0 !== _q ? _q : 0
37561
37398
  }, to = {
37562
- scaleX: null !== (_d = null == attrs ? void 0 : attrs.scaleX) && void 0 !== _d ? _d : 1
37399
+ scaleX: null !== (_r = null == attrs ? void 0 : attrs.scaleX) && void 0 !== _r ? _r : 1
37563
37400
  }, this._updateFunction = this.updateX;
37564
37401
  break;
37565
37402
  case "y":
37566
37403
  from = {
37567
- scaleY: null !== (_e = fromAttrs.scaleY) && void 0 !== _e ? _e : 0
37404
+ scaleY: null !== (_s = null != fromScaleY ? fromScaleY : fromAttrs.scaleY) && void 0 !== _s ? _s : 0
37568
37405
  }, to = {
37569
- scaleY: null !== (_f = null == attrs ? void 0 : attrs.scaleY) && void 0 !== _f ? _f : 1
37406
+ scaleY: null !== (_t = null == attrs ? void 0 : attrs.scaleY) && void 0 !== _t ? _t : 1
37570
37407
  }, this._updateFunction = this.updateY;
37571
37408
  break;
37572
37409
  default:
37573
37410
  from = {
37574
- scaleX: null !== (_g = fromAttrs.scaleX) && void 0 !== _g ? _g : 0,
37575
- scaleY: null !== (_h = fromAttrs.scaleY) && void 0 !== _h ? _h : 0
37411
+ scaleX: null !== (_u = null != fromScaleX ? fromScaleX : fromAttrs.scaleX) && void 0 !== _u ? _u : 0,
37412
+ scaleY: null !== (_v = null != fromScaleY ? fromScaleY : fromAttrs.scaleY) && void 0 !== _v ? _v : 0
37576
37413
  }, to = {
37577
- scaleX: null !== (_j = null == attrs ? void 0 : attrs.scaleX) && void 0 !== _j ? _j : 1,
37578
- scaleY: null !== (_k = null == attrs ? void 0 : attrs.scaleY) && void 0 !== _k ? _k : 1
37414
+ scaleX: null !== (_w = null == attrs ? void 0 : attrs.scaleX) && void 0 !== _w ? _w : 1,
37415
+ scaleY: null !== (_x = null == attrs ? void 0 : attrs.scaleY) && void 0 !== _x ? _x : 1
37579
37416
  }, this._updateFunction = this.updateXY;
37580
37417
  }
37581
- null === (_m = (_l = this.target).applyFinalAttributeToAttribute) || void 0 === _m || _m.call(_l), this.props = to, this.from = from, this.to = to, !1 !== (null === (_o = this.params.controlOptions) || void 0 === _o ? void 0 : _o.immediatelyApply) && applyAppearStartAttributes(this.target, from);
37418
+ null === (_z = (_y = this.target).applyFinalAttributeToAttribute) || void 0 === _z || _z.call(_y), this.props = to, this.from = from, this.to = to, !1 !== (null === (_0 = this.params.controlOptions) || void 0 === _0 ? void 0 : _0.immediatelyApply) && applyAppearStartAttributes(this.target, from);
37582
37419
  }
37583
37420
  onEnd(cb) {
37584
37421
  super.onEnd(cb);
@@ -40698,7 +40535,7 @@
40698
40535
  registerGroup(), registerRect(), registerSymbol(), registerRichtext(), registerText();
40699
40536
  }
40700
40537
 
40701
- var __rest$e = undefined && undefined.__rest || function (s, e) {
40538
+ var __rest$d = undefined && undefined.__rest || function (s, e) {
40702
40539
  var t = {};
40703
40540
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
40704
40541
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -40752,7 +40589,7 @@
40752
40589
  const {
40753
40590
  visible: shapeVisible
40754
40591
  } = shape,
40755
- shapeStyle = __rest$e(shape, ["visible"]);
40592
+ shapeStyle = __rest$d(shape, ["visible"]);
40756
40593
  if (isBoolean$1(shapeVisible)) {
40757
40594
  const size = (null == shapeStyle ? void 0 : shapeStyle.size) || 10,
40758
40595
  maxSize = isNumber$2(size) ? size : Math.max(size[0], size[1]);
@@ -40853,7 +40690,7 @@
40853
40690
  const {
40854
40691
  visible: bgVisible
40855
40692
  } = panel,
40856
- backgroundStyle = __rest$e(panel, ["visible"]);
40693
+ backgroundStyle = __rest$d(panel, ["visible"]);
40857
40694
  if (visible && isBoolean$1(bgVisible)) {
40858
40695
  const bgRect = this.createOrUpdateChild("tag-panel", Object.assign(Object.assign({}, backgroundStyle), {
40859
40696
  visible: bgVisible && !!text,
@@ -40935,7 +40772,7 @@
40935
40772
  merge(theme.poptip, DEFAULT_THEME, defaultPoptipTheme);
40936
40773
  }
40937
40774
 
40938
- var __rest$d = undefined && undefined.__rest || function (s, e) {
40775
+ var __rest$c = undefined && undefined.__rest || function (s, e) {
40939
40776
  var t = {};
40940
40777
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
40941
40778
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -41044,7 +40881,7 @@
41044
40881
  visible: bgVisible,
41045
40882
  square: square
41046
40883
  } = panel,
41047
- backgroundStyle = __rest$d(panel, ["visible", "square"]);
40884
+ backgroundStyle = __rest$c(panel, ["visible", "square"]);
41048
40885
  if (square) {
41049
40886
  const maxWH = max(popTipWidth, poptipHeight);
41050
40887
  popTipWidth = maxWH;
@@ -43025,7 +42862,7 @@
43025
42862
  registerGroup(), registerPath();
43026
42863
  }
43027
42864
 
43028
- var __rest$c = undefined && undefined.__rest || function (s, e) {
42865
+ var __rest$b = undefined && undefined.__rest || function (s, e) {
43029
42866
  var t = {};
43030
42867
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
43031
42868
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -43132,7 +42969,7 @@
43132
42969
  style: style,
43133
42970
  state: state
43134
42971
  } = _a,
43135
- restLineAttrs = __rest$c(_a, ["startSymbol", "endSymbol", "style", "state"]),
42972
+ restLineAttrs = __rest$b(_a, ["startSymbol", "endSymbol", "style", "state"]),
43136
42973
  lineAttrs = Object.assign({
43137
42974
  startSymbol: startSymbol,
43138
42975
  endSymbol: endSymbol,
@@ -43173,7 +43010,7 @@
43173
43010
  state = {},
43174
43011
  maxWidth: maxWidth
43175
43012
  } = _d,
43176
- restAttrs = __rest$c(_d, ["position", "space", "textStyle", "autoRotate", "shape", "background", "state", "maxWidth"]);
43013
+ restAttrs = __rest$b(_d, ["position", "space", "textStyle", "autoRotate", "shape", "background", "state", "maxWidth"]);
43177
43014
  let percent = .5;
43178
43015
  "start" === position ? percent = 0 : "end" === position && (percent = 1);
43179
43016
  const {
@@ -43275,7 +43112,7 @@
43275
43112
  text: textContent = "",
43276
43113
  maxWidth: maxWidth
43277
43114
  } = _c,
43278
- restAttrs = __rest$c(_c, ["position", "space", "autoRotate", "textStyle", "background", "formatMethod", "text", "maxWidth"]),
43115
+ restAttrs = __rest$b(_c, ["position", "space", "autoRotate", "textStyle", "background", "formatMethod", "text", "maxWidth"]),
43279
43116
  point = this.getTickCoord(0);
43280
43117
  "bottom" === orient || "top" === orient ? point.x = position : point.y = position;
43281
43118
  let tickLength = 0;
@@ -43647,7 +43484,7 @@
43647
43484
  });
43648
43485
  }
43649
43486
 
43650
- var __rest$b = undefined && undefined.__rest || function (s, e) {
43487
+ var __rest$a = undefined && undefined.__rest || function (s, e) {
43651
43488
  var t = {};
43652
43489
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
43653
43490
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -43706,7 +43543,7 @@
43706
43543
  background: background,
43707
43544
  state = {}
43708
43545
  } = _d,
43709
- restAttrs = __rest$b(_d, ["space", "textStyle", "shape", "background", "state"]);
43546
+ restAttrs = __rest$a(_d, ["space", "textStyle", "shape", "background", "state"]);
43710
43547
  let titlePoint = center,
43711
43548
  labelHeight = 0;
43712
43549
  (null === (_a = this.attribute.label) || void 0 === _a ? void 0 : _a.visible) && !1 === this.attribute.label.inside && (labelHeight = get$1(this.attribute.label, "style.fontSize", 12) + get$1(this.attribute.label, "space", 4));
@@ -45265,15 +45102,6 @@
45265
45102
  return "left" === align ? 0 : "right" === align ? 1 : .5;
45266
45103
  }
45267
45104
 
45268
- var __rest$a = undefined && undefined.__rest || function (s, e) {
45269
- var t = {};
45270
- for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
45271
- if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
45272
- var i = 0;
45273
- for (p = Object.getOwnPropertySymbols(s); i < p.length; i++) e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]) && (t[p[i]] = s[p[i]]);
45274
- }
45275
- return t;
45276
- };
45277
45105
  class LabelUpdate extends AComponentAnimate {
45278
45106
  onBind() {
45279
45107
  const animator = createComponentAnimator(this.target);
@@ -45289,8 +45117,8 @@
45289
45117
  } = this.params,
45290
45118
  diff = {};
45291
45119
  for (const key in curText.attribute) prevText.attribute[key] !== curText.attribute[key] && (diff[key] = curText.attribute[key]);
45292
- const rest = __rest$a(diff, ["text"]);
45293
- animator.animate(prevText, {
45120
+ const rest = Object.assign({}, diff);
45121
+ delete rest.text, animator.animate(prevText, {
45294
45122
  type: "to",
45295
45123
  to: rest,
45296
45124
  duration: duration,
@@ -48752,6 +48580,10 @@
48752
48580
  }
48753
48581
  }
48754
48582
 
48583
+ function getSegmentLineGraphics(segment) {
48584
+ var _a;
48585
+ return segment ? [...(null !== (_a = segment.lines) && void 0 !== _a ? _a : []), segment.line].filter(Boolean) : [];
48586
+ }
48755
48587
  function graphicFadeIn(graphic, delay, duration, easing) {
48756
48588
  var _a, _b, _c, _d, _e;
48757
48589
  if (!graphic) return;
@@ -48770,7 +48602,7 @@
48770
48602
  }, duration, easing);
48771
48603
  }
48772
48604
  function segmentFadeIn(segment, delay, duration, easing) {
48773
- segment && (graphicFadeIn(segment.startSymbol, delay, duration, easing), segment.lines.forEach(line => graphicFadeIn(line, delay, duration, easing)), graphicFadeIn(segment.line, delay, duration, easing), graphicFadeIn(segment.endSymbol, delay, duration, easing));
48605
+ segment && (graphicFadeIn(segment.startSymbol, delay, duration, easing), getSegmentLineGraphics(segment).forEach(line => graphicFadeIn(line, delay, duration, easing)), graphicFadeIn(segment.endSymbol, delay, duration, easing));
48774
48606
  }
48775
48607
  function tagFadeIn(tag, delay, duration, easing) {
48776
48608
  tag && (graphicFadeIn(tag.getTextShape(), delay, duration, easing), graphicFadeIn(tag.getBgRect(), delay, duration, easing));
@@ -48789,7 +48621,7 @@
48789
48621
  }, duration, easing));
48790
48622
  }
48791
48623
  function segmentFadeOut(segment, delay, duration, easing) {
48792
- segment && (graphicFadeOut(segment.startSymbol, delay, duration, easing), segment.lines.forEach(line => graphicFadeOut(line, delay, duration, easing)), graphicFadeOut(segment.line, delay, duration, easing), graphicFadeOut(segment.endSymbol, delay, duration, easing));
48624
+ segment && (graphicFadeOut(segment.startSymbol, delay, duration, easing), getSegmentLineGraphics(segment).forEach(line => graphicFadeOut(line, delay, duration, easing)), graphicFadeOut(segment.endSymbol, delay, duration, easing));
48793
48625
  }
48794
48626
  function tagFadeOut(tag, delay, duration, easing) {
48795
48627
  tag && (graphicFadeOut(tag.getTextShape(), delay, duration, easing), graphicFadeOut(tag.getBgRect(), delay, duration, easing));
@@ -48800,12 +48632,14 @@
48800
48632
  lineDuration = .7 * duration,
48801
48633
  endSymbolDuration = .1 * duration,
48802
48634
  labelDuration = .1 * duration;
48803
- graphicFadeIn(line.startSymbol, delay, startSymbolDuration, easing), line.lines.forEach(line => commitUpdateAnimationTarget(line, {
48635
+ graphicFadeIn(line.startSymbol, delay, startSymbolDuration, easing);
48636
+ const lines = getSegmentLineGraphics(line);
48637
+ lines.forEach(line => commitUpdateAnimationTarget(line, {
48804
48638
  clipRange: 1
48805
48639
  }, {
48806
48640
  clipRange: 0
48807
- })), line.lines.forEach((l, index) => {
48808
- const stepDuration = lineDuration / line.lines.length;
48641
+ })), lines.forEach((l, index) => {
48642
+ const stepDuration = lineDuration / lines.length;
48809
48643
  l.animate().wait(delay + startSymbolDuration + index * stepDuration).to({
48810
48644
  clipRange: 1
48811
48645
  }, stepDuration, easing);
@@ -48862,12 +48696,14 @@
48862
48696
  decorativeDuration = .05 * duration,
48863
48697
  endSymbolDuration = .1 * duration,
48864
48698
  labelDuration = .1 * duration;
48865
- graphicFadeIn(itemLine.startSymbol, delay, startSymbolDuration, easing), itemLine.lines.forEach(line => commitUpdateAnimationTarget(line, {
48699
+ graphicFadeIn(itemLine.startSymbol, delay, startSymbolDuration, easing);
48700
+ const lines = getSegmentLineGraphics(itemLine);
48701
+ lines.forEach(line => commitUpdateAnimationTarget(line, {
48866
48702
  clipRange: 1
48867
48703
  }, {
48868
48704
  clipRange: 0
48869
- })), itemLine.lines.forEach((l, index) => {
48870
- const stepDuration = lineDuration / itemLine.lines.length;
48705
+ })), lines.forEach((l, index) => {
48706
+ const stepDuration = lineDuration / lines.length;
48871
48707
  l.animate().wait(delay + startSymbolDuration + index * stepDuration).to({
48872
48708
  clipRange: 1
48873
48709
  }, stepDuration, easing);
@@ -55881,14 +55717,13 @@
55881
55717
  const BOOTSTRAP_STATE = Symbol.for('vrender.bootstrap.state');
55882
55718
  const installBrowserEnvToAppWithParams = installBrowserEnvToApp;
55883
55719
  const installNodeEnvToAppWithParams = installNodeEnvToApp;
55884
- const runtimeKits = VRenderKitsRuntime;
55885
55720
  const miniEnvBootstraps = {
55886
- taro: { installEnv: runtimeKits.installTaroEnvToApp, loadEnv: runtimeKits.loadTaroEnv },
55887
- feishu: { installEnv: runtimeKits.installFeishuEnvToApp, loadEnv: runtimeKits.loadFeishuEnv },
55888
- tt: { installEnv: runtimeKits.installTTEnvToApp, loadEnv: runtimeKits.loadTTEnv },
55889
- wx: { installEnv: runtimeKits.installWxEnvToApp, loadEnv: runtimeKits.loadWxEnv },
55890
- lynx: { installEnv: runtimeKits.installLynxEnvToApp, loadEnv: runtimeKits.loadLynxEnv },
55891
- harmony: { installEnv: runtimeKits.installHarmonyEnvToApp, loadEnv: runtimeKits.loadHarmonyEnv }
55721
+ taro: { installEnv: installTaroEnvToApp, loadEnv: loadTaroEnv },
55722
+ feishu: { installEnv: installFeishuEnvToApp, loadEnv: loadFeishuEnv },
55723
+ tt: { installEnv: installTTEnvToApp, loadEnv: loadTTEnv },
55724
+ wx: { installEnv: installWxEnvToApp, loadEnv: loadWxEnv },
55725
+ lynx: { installEnv: installLynxEnvToApp, loadEnv: loadLynxEnv },
55726
+ harmony: { installEnv: installHarmonyEnvToApp, loadEnv: loadHarmonyEnv }
55892
55727
  };
55893
55728
  const pluginRegistrations = [
55894
55729
  registerFlexLayoutPlugin,
@@ -56033,7 +55868,7 @@
56033
55868
  const bootstrap = miniEnvBootstraps[env];
56034
55869
  bootstrap.installEnv(app, envParams);
56035
55870
  installDefaultGraphicsToApp(app);
56036
- runtimeKits.installMathPickersToApp(app);
55871
+ installMathPickersToApp(app);
56037
55872
  bootstrap.loadEnv();
56038
55873
  legacyGraphicRegistrations.forEach(register => register());
56039
55874
  syncLegacyRenderersToApp(app);
@@ -56264,7 +56099,7 @@
56264
56099
  return resolveLegacyApp().createStage(params);
56265
56100
  }
56266
56101
 
56267
- const version = "1.1.0-alpha.23";
56102
+ const version = "1.1.0-alpha.24";
56268
56103
 
56269
56104
  exports.AComponentAnimate = AComponentAnimate;
56270
56105
  exports.ACustomAnimate = ACustomAnimate;