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

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.
Files changed (66) hide show
  1. package/cjs/entries/bootstrap-browser-lite.d.ts +2 -0
  2. package/cjs/entries/bootstrap-browser-lite.js +27 -0
  3. package/cjs/entries/bootstrap-browser-lite.js.map +1 -0
  4. package/cjs/entries/bootstrap-browser.d.ts +2 -0
  5. package/cjs/entries/bootstrap-browser.js +19 -0
  6. package/cjs/entries/bootstrap-browser.js.map +1 -0
  7. package/cjs/entries/bootstrap-common.d.ts +3 -0
  8. package/cjs/entries/bootstrap-common.js +44 -0
  9. package/cjs/entries/bootstrap-common.js.map +1 -0
  10. package/cjs/entries/bootstrap-utils.d.ts +7 -0
  11. package/cjs/entries/bootstrap-utils.js +44 -0
  12. package/cjs/entries/bootstrap-utils.js.map +1 -0
  13. package/cjs/entries/bootstrap.js +33 -86
  14. package/cjs/entries/bootstrap.js.map +1 -1
  15. package/cjs/entries/browser.js +3 -26
  16. package/cjs/entries/browser.js.map +1 -1
  17. package/cjs/entries/shared-browser-lite.d.ts +12 -0
  18. package/cjs/entries/shared-browser-lite.js +31 -0
  19. package/cjs/entries/shared-browser-lite.js.map +1 -0
  20. package/cjs/entries/shared-browser.d.ts +12 -0
  21. package/cjs/entries/shared-browser.js +30 -0
  22. package/cjs/entries/shared-browser.js.map +1 -0
  23. package/cjs/entries/shared-registry.d.ts +16 -0
  24. package/cjs/entries/shared-registry.js +87 -0
  25. package/cjs/entries/shared-registry.js.map +1 -0
  26. package/cjs/entries/shared.d.ts +3 -7
  27. package/cjs/entries/shared.js +6 -69
  28. package/cjs/entries/shared.js.map +1 -1
  29. package/cjs/index.d.ts +1 -1
  30. package/cjs/index.js +1 -1
  31. package/cjs/index.js.map +1 -1
  32. package/dist/index.es.js +507 -1523
  33. package/dist/index.js +508 -1524
  34. package/dist/index.min.js +1 -1
  35. package/es/entries/bootstrap-browser-lite.d.ts +2 -0
  36. package/es/entries/bootstrap-browser-lite.js +51 -0
  37. package/es/entries/bootstrap-browser-lite.js.map +1 -0
  38. package/es/entries/bootstrap-browser.d.ts +2 -0
  39. package/es/entries/bootstrap-browser.js +15 -0
  40. package/es/entries/bootstrap-browser.js.map +1 -0
  41. package/es/entries/bootstrap-common.d.ts +3 -0
  42. package/es/entries/bootstrap-common.js +58 -0
  43. package/es/entries/bootstrap-common.js.map +1 -0
  44. package/es/entries/bootstrap-utils.d.ts +7 -0
  45. package/es/entries/bootstrap-utils.js +38 -0
  46. package/es/entries/bootstrap-utils.js.map +1 -0
  47. package/es/entries/bootstrap.js +78 -50
  48. package/es/entries/bootstrap.js.map +1 -1
  49. package/es/entries/browser.js +1 -3
  50. package/es/entries/browser.js.map +1 -1
  51. package/es/entries/shared-browser-lite.d.ts +12 -0
  52. package/es/entries/shared-browser-lite.js +28 -0
  53. package/es/entries/shared-browser-lite.js.map +1 -0
  54. package/es/entries/shared-browser.d.ts +12 -0
  55. package/es/entries/shared-browser.js +28 -0
  56. package/es/entries/shared-browser.js.map +1 -0
  57. package/es/entries/shared-registry.d.ts +16 -0
  58. package/es/entries/shared-registry.js +79 -0
  59. package/es/entries/shared-registry.js.map +1 -0
  60. package/es/entries/shared.d.ts +3 -7
  61. package/es/entries/shared.js +6 -69
  62. package/es/entries/shared.js.map +1 -1
  63. package/es/index.d.ts +1 -1
  64. package/es/index.js +1 -1
  65. package/es/index.js.map +1 -1
  66. package/package.json +56 -7
package/dist/index.es.js CHANGED
@@ -163,7 +163,7 @@ class EventListenerManager {
163
163
  }
164
164
  }
165
165
 
166
- var __awaiter$8 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
166
+ var __awaiter$7 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
167
167
  return new (P || (P = Promise))(function (resolve, reject) {
168
168
  function fulfilled(value) {
169
169
  try {
@@ -332,7 +332,7 @@ class DefaultGlobal extends EventListenerManager {
332
332
  return this._env || this.setEnv("browser"), this.envContribution.loadBlob(url);
333
333
  }
334
334
  loadFont(name, source, descriptors) {
335
- return __awaiter$8(this, void 0, void 0, function* () {
335
+ return __awaiter$7(this, void 0, void 0, function* () {
336
336
  return this._env || this.setEnv("browser"), this.envContribution.loadFont(name, source, descriptors);
337
337
  });
338
338
  }
@@ -718,14 +718,14 @@ var isObject$1 = isObject;
718
718
  const isObjectLike = value => "object" == typeof value && null !== value;
719
719
  var isObjectLike$1 = isObjectLike;
720
720
 
721
- const isPlainObject$3 = function (value) {
721
+ const isPlainObject$2 = function (value) {
722
722
  if (!isObjectLike$1(value) || !isType$1(value, "Object")) return !1;
723
723
  if (null === Object.getPrototypeOf(value)) return !0;
724
724
  let proto = value;
725
725
  for (; null !== Object.getPrototypeOf(proto);) proto = Object.getPrototypeOf(proto);
726
726
  return Object.getPrototypeOf(value) === proto;
727
727
  };
728
- var isPlainObject$4 = isPlainObject$3;
728
+ var isPlainObject$3 = isPlainObject$2;
729
729
 
730
730
  const isUndefined = value => void 0 === value;
731
731
  var isUndefined$1 = isUndefined;
@@ -840,7 +840,7 @@ function baseMergeDeep(target, source, key, shallowArray = !1, skipTargetArray =
840
840
  const length = objValue.length;
841
841
  for (; ++index < length;) newValue[index] = objValue[index];
842
842
  }
843
- } else isPlainObject$4(srcValue) ? (newValue = null != objValue ? objValue : {}, "function" != typeof objValue && "object" == typeof objValue || (newValue = {})) : isCommon = !1;
843
+ } else isPlainObject$3(srcValue) ? (newValue = null != objValue ? objValue : {}, "function" != typeof objValue && "object" == typeof objValue || (newValue = {})) : isCommon = !1;
844
844
  isCommon && baseMerge(newValue, srcValue, shallowArray, skipTargetArray), assignMergeValue(target, key, newValue);
845
845
  }
846
846
  function assignMergeValue(target, key, value) {
@@ -877,7 +877,7 @@ function isEqual(a, b, options) {
877
877
  for (let i = a.length - 1; i >= 0; i--) if (!isEqual(a[i], b[i], options)) return !1;
878
878
  return !0;
879
879
  }
880
- if (!isPlainObject$4(a)) return !1;
880
+ if (!isPlainObject$3(a)) return !1;
881
881
  const ka = objectKeys(a),
882
882
  kb = objectKeys(b);
883
883
  if (ka.length !== kb.length) return !1;
@@ -2662,7 +2662,7 @@ const styleStringToObject = (styleStr = "") => {
2662
2662
  };
2663
2663
  const lowerCamelCaseToMiddle = str => str.replace(/([A-Z])/g, "-$1").toLowerCase();
2664
2664
 
2665
- var __awaiter$7 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
2665
+ var __awaiter$6 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
2666
2666
  return new (P || (P = Promise))(function (resolve, reject) {
2667
2667
  function fulfilled(value) {
2668
2668
  try {
@@ -2712,6 +2712,7 @@ class Node extends EventEmitter {
2712
2712
  constructor() {
2713
2713
  super(), this._uid = Generator.GenAutoIncrementId(), this._firstChild = null, this._lastChild = null, this.parent = null, this._count = 1;
2714
2714
  }
2715
+ onParentSharedStateTreeChanged(_stage, _layer) {}
2715
2716
  forEachChildren(cb, reverse = !1) {
2716
2717
  if (reverse) {
2717
2718
  let child = this._lastChild,
@@ -2730,7 +2731,7 @@ class Node extends EventEmitter {
2730
2731
  }
2731
2732
  }
2732
2733
  forEachChildrenAsync(cb, reverse = !1) {
2733
- return __awaiter$7(this, void 0, void 0, function* () {
2734
+ return __awaiter$6(this, void 0, void 0, function* () {
2734
2735
  if (reverse) {
2735
2736
  let child = this._lastChild,
2736
2737
  i = 0;
@@ -5196,6 +5197,7 @@ const DefaultArcAttribute = Object.assign(Object.assign({}, DefaultAttribute), {
5196
5197
  cornerRadius: 0,
5197
5198
  padRadius: 0,
5198
5199
  padAngle: 0,
5200
+ clipRange: 1,
5199
5201
  cap: !1,
5200
5202
  forceShowCap: !1
5201
5203
  });
@@ -6286,7 +6288,7 @@ function isXML(str) {
6286
6288
  return str.startsWith("<");
6287
6289
  }
6288
6290
 
6289
- var __awaiter$6 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
6291
+ var __awaiter$5 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
6290
6292
  return new (P || (P = Promise))(function (resolve, reject) {
6291
6293
  function fulfilled(value) {
6292
6294
  try {
@@ -6315,7 +6317,7 @@ function incrementalAddTo(group, graphic) {
6315
6317
  group.incrementalAppendChild(graphic);
6316
6318
  }
6317
6319
  function waitForAllSubLayers(stage) {
6318
- return __awaiter$6(this, void 0, void 0, function* () {
6320
+ return __awaiter$5(this, void 0, void 0, function* () {
6319
6321
  const promiseList = [],
6320
6322
  layers = stage.getChildren();
6321
6323
  yield new Promise(resolve => {
@@ -7897,8 +7899,8 @@ function createConicalGradient(context, stops, x, y, deltaAngle, startAngle, end
7897
7899
  return conicalCanvas.width = imageData.width, conicalCanvas.height = imageData.height, conicalCtx.putImageData(imageData, 0, 0), pattern = context.createPattern(conicalCanvas, "no-repeat"), pattern && ConicalPatternStore.Set(stops, x, y, startAngle, endAngle, pattern, width, height), pattern;
7898
7900
  }
7899
7901
 
7900
- const FULL_DEFINITION_KEYS$1 = new Set(["name", "patch", "priority", "exclude", "suppress", "resolver", "declaredAffectedKeys"]);
7901
- function isPlainObject$2(value) {
7902
+ const FULL_DEFINITION_KEYS = new Set(["name", "patch", "priority", "exclude", "suppress", "resolver", "declaredAffectedKeys"]);
7903
+ function isPlainObject$1(value) {
7902
7904
  return null != value && "object" == typeof value && !Array.isArray(value);
7903
7905
  }
7904
7906
  function normalizePatch(value) {
@@ -7944,12 +7946,11 @@ class StateDefinitionCompiler {
7944
7946
  priority: 0,
7945
7947
  patch: void 0
7946
7948
  };
7947
- if ((isPlainObject$2(value) ? Object.keys(value) : []).some(key => FULL_DEFINITION_KEYS$1.has(key))) {
7949
+ if ((isPlainObject$1(value) ? Object.keys(value) : []).some(key => FULL_DEFINITION_KEYS.has(key))) {
7948
7950
  const definition = value;
7949
7951
  return {
7950
7952
  name: null !== (_a = definition.name) && void 0 !== _a ? _a : name,
7951
7953
  priority: null !== (_b = definition.priority) && void 0 !== _b ? _b : 0,
7952
- rank: definition.rank,
7953
7954
  patch: normalizePatch(definition.patch),
7954
7955
  resolver: definition.resolver,
7955
7956
  declaredAffectedKeys: definition.declaredAffectedKeys,
@@ -7969,281 +7970,40 @@ class StateDefinitionCompiler {
7969
7970
  rawRelationMap.set(name, new Set(definition[relation]));
7970
7971
  }), compiled.forEach((definition, origin) => {
7971
7972
  const closure = new Set(),
7972
- walk = (stateName, stack) => {
7973
+ walk = (stateName, visiting) => {
7973
7974
  const nextStates = rawRelationMap.get(stateName);
7974
7975
  nextStates && nextStates.size && nextStates.forEach(nextState => {
7975
- nextState !== origin ? stack.includes(nextState) ? console.warn(`[StateDefinitionCompiler] circular ${relation} relation detected: ${stack.join(" -> ")} -> ${nextState}`) : closure.has(nextState) || (closure.add(nextState), walk(nextState, stack.concat(nextState))) : console.warn(`[StateDefinitionCompiler] circular ${relation} relation detected: ${stack.join(" -> ")} -> ${origin}`);
7976
+ nextState === origin || visiting.has(nextState) || closure.has(nextState) || (closure.add(nextState), visiting.add(nextState), walk(nextState, visiting), visiting.delete(nextState));
7976
7977
  });
7977
7978
  };
7978
- walk(origin, [origin]), definition[relation] = closure;
7979
+ walk(origin, new Set([origin])), definition[relation] = closure;
7979
7980
  });
7980
7981
  }
7981
7982
  }
7982
7983
 
7983
- var UpdateCategory;
7984
- !function (UpdateCategory) {
7985
- UpdateCategory[UpdateCategory.NONE = 0] = "NONE", UpdateCategory[UpdateCategory.PAINT = 1] = "PAINT", UpdateCategory[UpdateCategory.SHAPE = 2] = "SHAPE", UpdateCategory[UpdateCategory.BOUNDS = 4] = "BOUNDS", UpdateCategory[UpdateCategory.TRANSFORM = 8] = "TRANSFORM", UpdateCategory[UpdateCategory.LAYOUT = 16] = "LAYOUT", UpdateCategory[UpdateCategory.PICK = 32] = "PICK";
7986
- }(UpdateCategory || (UpdateCategory = {}));
7987
- const ATTRIBUTE_CATEGORY = {
7988
- fill: UpdateCategory.PAINT,
7989
- opacity: UpdateCategory.PAINT,
7990
- fillOpacity: UpdateCategory.PAINT,
7991
- strokeOpacity: UpdateCategory.PAINT,
7992
- lineDash: UpdateCategory.PAINT,
7993
- lineDashOffset: UpdateCategory.PAINT,
7994
- lineCap: UpdateCategory.PAINT,
7995
- lineJoin: UpdateCategory.PAINT,
7996
- miterLimit: UpdateCategory.PAINT,
7997
- shadowColor: UpdateCategory.PAINT,
7998
- x: UpdateCategory.TRANSFORM | UpdateCategory.BOUNDS,
7999
- y: UpdateCategory.TRANSFORM | UpdateCategory.BOUNDS,
8000
- scaleX: UpdateCategory.TRANSFORM | UpdateCategory.BOUNDS,
8001
- scaleY: UpdateCategory.TRANSFORM | UpdateCategory.BOUNDS,
8002
- angle: UpdateCategory.TRANSFORM | UpdateCategory.BOUNDS,
8003
- anchor: UpdateCategory.TRANSFORM | UpdateCategory.BOUNDS,
8004
- anchor3d: UpdateCategory.TRANSFORM | UpdateCategory.BOUNDS,
8005
- postMatrix: UpdateCategory.TRANSFORM | UpdateCategory.BOUNDS,
8006
- layout: UpdateCategory.LAYOUT,
8007
- zIndex: UpdateCategory.PAINT,
8008
- visible: UpdateCategory.PAINT | UpdateCategory.PICK,
8009
- lineWidth: UpdateCategory.SHAPE | UpdateCategory.BOUNDS | UpdateCategory.PICK,
8010
- width: UpdateCategory.SHAPE | UpdateCategory.BOUNDS,
8011
- height: UpdateCategory.SHAPE | UpdateCategory.BOUNDS
8012
- };
8013
- const ATTRIBUTE_DELTA_CLASSIFIER = {
8014
- stroke: (prev, next) => (null != prev && !1 !== prev) !== (null != next && !1 !== next) ? UpdateCategory.PAINT | UpdateCategory.BOUNDS | UpdateCategory.PICK : UpdateCategory.PAINT,
8015
- shadowBlur: (prev, next) => {
8016
- const prevBlur = Number(null != prev ? prev : 0),
8017
- nextBlur = Number(null != next ? next : 0);
8018
- return prevBlur !== nextBlur && (prevBlur > 0 || nextBlur > 0) ? UpdateCategory.PAINT | UpdateCategory.BOUNDS : UpdateCategory.PAINT;
8019
- }
8020
- };
8021
- function classifyAttributeDelta(key, prev, next) {
8022
- var _a;
8023
- const dynamicClassifier = ATTRIBUTE_DELTA_CLASSIFIER[key];
8024
- return dynamicClassifier ? dynamicClassifier(prev, next) : null !== (_a = ATTRIBUTE_CATEGORY[key]) && void 0 !== _a ? _a : UpdateCategory.PAINT;
8025
- }
8026
- function classifyAffectedKeyConservatively(key) {
8027
- var _a;
8028
- return "stroke" === key ? UpdateCategory.PAINT | UpdateCategory.BOUNDS | UpdateCategory.PICK : "shadowBlur" === key ? UpdateCategory.PAINT | UpdateCategory.BOUNDS : null !== (_a = ATTRIBUTE_CATEGORY[key]) && void 0 !== _a ? _a : UpdateCategory.PAINT;
8029
- }
8030
- function classifyAffectedKeys(keys) {
8031
- let category = UpdateCategory.NONE;
8032
- for (const key of keys) category |= classifyAffectedKeyConservatively(key);
8033
- return category;
8034
- }
8035
-
8036
- const STAGE_PERF_MONITOR = Symbol("vrender.statePerfMonitor");
8037
- function createReasonBreakdown() {
8038
- return {
8039
- config_disabled: 0,
8040
- context_disabled: 0,
8041
- non_batch_operation: 0,
8042
- mixed_update_category: 0,
8043
- resolver_unstable_keys: 0,
8044
- graphic_unavailable: 0
8045
- };
8046
- }
8047
- function createEmptyStatePerfSnapshot() {
8048
- return {
8049
- counters: {
8050
- stateCommits: 0,
8051
- sharedRefreshCommits: 0,
8052
- deferredJobsCreated: 0,
8053
- deferredJobsCompleted: 0,
8054
- deferredJobsCancelled: 0,
8055
- deferredJobsCoalesced: 0,
8056
- deferredGraphicsCommitted: 0,
8057
- deferredBudgetYields: 0,
8058
- deferredIneligibleGraphics: 0
8059
- },
8060
- deferredIneligibleByReason: createReasonBreakdown(),
8061
- categoryBreakdown: {
8062
- paint: 0,
8063
- transform: 0,
8064
- shape: 0,
8065
- bounds: 0,
8066
- layout: 0,
8067
- pick: 0
8068
- },
8069
- refresh: {
8070
- queuedGraphics: 0,
8071
- flushedGraphics: 0,
8072
- ensureFreshCalls: 0,
8073
- renderScheduled: 0
8074
- },
8075
- resolver: {
8076
- cacheHits: 0,
8077
- cacheMisses: 0,
8078
- invalidations: 0
8079
- },
8080
- cost: {
8081
- resolverTotalMs: 0,
8082
- resolverMaxMs: 0,
8083
- patchTotalMs: 0,
8084
- patchMaxMs: 0,
8085
- sharedRefreshTotalMs: 0,
8086
- sharedRefreshMaxMs: 0,
8087
- batchSliceTotalMs: 0,
8088
- batchSliceMaxMs: 0
8089
- },
8090
- allocationHints: {
8091
- patchObjectsCreated: 0,
8092
- batchEntriesCreated: 0,
8093
- refreshQueuePushes: 0
8094
- },
8095
- batch: {
8096
- pendingJobs: 0,
8097
- maxPendingJobs: 0,
8098
- maxGraphicsInJob: 0,
8099
- maxFrameSliceCost: 0
8100
- },
8101
- events: []
8102
- };
8103
- }
8104
- function cloneSnapshot(snapshot) {
8105
- return {
8106
- counters: Object.assign({}, snapshot.counters),
8107
- deferredIneligibleByReason: Object.assign({}, snapshot.deferredIneligibleByReason),
8108
- categoryBreakdown: Object.assign({}, snapshot.categoryBreakdown),
8109
- refresh: Object.assign({}, snapshot.refresh),
8110
- resolver: Object.assign({}, snapshot.resolver),
8111
- cost: Object.assign({}, snapshot.cost),
8112
- allocationHints: Object.assign({}, snapshot.allocationHints),
8113
- batch: Object.assign({}, snapshot.batch),
8114
- events: snapshot.events ? snapshot.events.slice() : []
8115
- };
8116
- }
8117
- function isDeferredStateContextConfig(value) {
8118
- return !!value && (Object.prototype.hasOwnProperty.call(value, "deferred") || Object.prototype.hasOwnProperty.call(value, "localEnabled"));
8119
- }
8120
- function normalizeDeferredStateOwnerConfig(value) {
8121
- if (value) return isDeferredStateContextConfig(value) ? value : {
8122
- deferred: value
8123
- };
8124
- }
8125
- function normalizeDeferredStateConfig(config) {
8126
- var _a, _b, _c;
8127
- return {
8128
- enabled: null !== (_a = null == config ? void 0 : config.enabled) && void 0 !== _a && _a,
8129
- frameBudget: null !== (_b = null == config ? void 0 : config.frameBudget) && void 0 !== _b ? _b : 8,
8130
- maxGraphicsPerFrame: null !== (_c = null == config ? void 0 : config.maxGraphicsPerFrame) && void 0 !== _c ? _c : 100
8131
- };
8132
- }
8133
- function fingerprintDeferredStateConfig(config) {
8134
- return `${config.enabled ? 1 : 0}:${config.frameBudget}:${config.maxGraphicsPerFrame}`;
8135
- }
8136
- class StatePerfMonitor {
8137
- constructor(configSource) {
8138
- this.configSource = configSource, this.snapshot = createEmptyStatePerfSnapshot();
8139
- }
8140
- setConfig(config) {
8141
- this.configSource = config;
8142
- }
8143
- getSnapshot() {
8144
- return cloneSnapshot(this.snapshot);
8145
- }
8146
- reset() {
8147
- const next = createEmptyStatePerfSnapshot();
8148
- Object.assign(this.snapshot.counters, next.counters), Object.assign(this.snapshot.deferredIneligibleByReason, next.deferredIneligibleByReason), Object.assign(this.snapshot.categoryBreakdown, next.categoryBreakdown), Object.assign(this.snapshot.refresh, next.refresh), Object.assign(this.snapshot.resolver, next.resolver), Object.assign(this.snapshot.cost, next.cost), Object.assign(this.snapshot.allocationHints, next.allocationHints), Object.assign(this.snapshot.batch, next.batch), this.snapshot.events = [];
8149
- }
8150
- incrementCounter(key, delta = 1) {
8151
- this.isEnabled() && (this.snapshot.counters[key] += delta);
8152
- }
8153
- recordDeferredIneligible(reason, delta = 1) {
8154
- this.isEnabled() && (this.snapshot.deferredIneligibleByReason[reason] += delta, this.snapshot.counters.deferredIneligibleGraphics += delta, this.recordEvent("deferred-ineligible", {
8155
- reason: reason,
8156
- count: delta
8157
- }));
8158
- }
8159
- recordCategory(category) {
8160
- this.isEnabled() && (category & UpdateCategory.PAINT && (this.snapshot.categoryBreakdown.paint += 1), category & UpdateCategory.TRANSFORM && (this.snapshot.categoryBreakdown.transform += 1), category & UpdateCategory.SHAPE && (this.snapshot.categoryBreakdown.shape += 1), category & UpdateCategory.BOUNDS && (this.snapshot.categoryBreakdown.bounds += 1), category & UpdateCategory.LAYOUT && (this.snapshot.categoryBreakdown.layout += 1), category & UpdateCategory.PICK && (this.snapshot.categoryBreakdown.pick += 1));
8161
- }
8162
- recordRefresh(key, delta = 1) {
8163
- this.isEnabled() && (this.snapshot.refresh[key] += delta);
8164
- }
8165
- recordResolver(key, delta = 1) {
8166
- this.isEnabled() && (this.snapshot.resolver[key] += delta);
8167
- }
8168
- recordCost(kind, durationMs) {
8169
- if (this.isEnabled()) {
8170
- if ("resolver" === kind) return this.snapshot.cost.resolverTotalMs += durationMs, void (this.snapshot.cost.resolverMaxMs = Math.max(this.snapshot.cost.resolverMaxMs, durationMs));
8171
- if ("patch" === kind) return this.snapshot.cost.patchTotalMs += durationMs, void (this.snapshot.cost.patchMaxMs = Math.max(this.snapshot.cost.patchMaxMs, durationMs));
8172
- if ("sharedRefresh" === kind) return this.snapshot.cost.sharedRefreshTotalMs += durationMs, void (this.snapshot.cost.sharedRefreshMaxMs = Math.max(this.snapshot.cost.sharedRefreshMaxMs, durationMs));
8173
- this.snapshot.cost.batchSliceTotalMs += durationMs, this.snapshot.cost.batchSliceMaxMs = Math.max(this.snapshot.cost.batchSliceMaxMs, durationMs), this.snapshot.batch.maxFrameSliceCost = Math.max(this.snapshot.batch.maxFrameSliceCost, durationMs);
8174
- }
8175
- }
8176
- recordAllocation(key, delta = 1) {
8177
- this.isEnabled() && (this.snapshot.allocationHints[key] += delta);
8178
- }
8179
- updateBatchPending(pendingJobs) {
8180
- this.isEnabled() && (this.snapshot.batch.pendingJobs = pendingJobs, this.snapshot.batch.maxPendingJobs = Math.max(this.snapshot.batch.maxPendingJobs, pendingJobs));
8181
- }
8182
- updateMaxGraphicsInJob(count) {
8183
- this.isEnabled() && (this.snapshot.batch.maxGraphicsInJob = Math.max(this.snapshot.batch.maxGraphicsInJob, count));
8184
- }
8185
- recordEvent(type, detail) {
8186
- var _a, _b, _c;
8187
- if (!this.shouldRecordEvents()) return;
8188
- const events = null !== (_a = this.snapshot.events) && void 0 !== _a ? _a : this.snapshot.events = [];
8189
- events.push({
8190
- type: type,
8191
- at: Date.now(),
8192
- detail: detail
8193
- });
8194
- const max = null !== (_c = null === (_b = this.getConfig()) || void 0 === _b ? void 0 : _b.maxEventRecords) && void 0 !== _c ? _c : 100;
8195
- events.length > max && events.splice(0, events.length - max);
8196
- }
8197
- isEnabled() {
8198
- var _a;
8199
- return !0 === (null === (_a = this.getConfig()) || void 0 === _a ? void 0 : _a.enabled);
8200
- }
8201
- shouldRecordEvents() {
8202
- const config = this.getConfig();
8203
- return !!(null == config ? void 0 : config.enabled) && !!config.recordEvents;
8204
- }
8205
- getConfig() {
8206
- return "function" == typeof this.configSource ? this.configSource() : this.configSource;
8207
- }
8208
- }
8209
- function ensureStageStatePerfMonitor(stage) {
8210
- const stageAny = stage;
8211
- return stageAny[STAGE_PERF_MONITOR] || (stageAny[STAGE_PERF_MONITOR] = new StatePerfMonitor(() => stage.statePerfConfig)), stageAny[STAGE_PERF_MONITOR];
8212
- }
8213
- function getStageStatePerfMonitor(stage) {
8214
- if (stage) return stage[STAGE_PERF_MONITOR];
8215
- }
8216
- function getActiveStageStatePerfMonitor(stage) {
8217
- var _a;
8218
- if (!stage) return;
8219
- const current = getStageStatePerfMonitor(stage);
8220
- return current || (!0 === (null === (_a = stage.statePerfConfig) || void 0 === _a ? void 0 : _a.enabled) ? ensureStageStatePerfMonitor(stage) : void 0);
8221
- }
8222
-
8223
- function isPlainObject$1(value) {
7984
+ function isPlainObject(value) {
8224
7985
  return null != value && "object" == typeof value && !Array.isArray(value);
8225
7986
  }
8226
- function cloneValue$1(value) {
8227
- if (!isPlainObject$1(value)) return value;
7987
+ function cloneValue(value) {
7988
+ if (!isPlainObject(value)) return value;
8228
7989
  const clone = {};
8229
7990
  return Object.keys(value).forEach(key => {
8230
- clone[key] = cloneValue$1(value[key]);
7991
+ clone[key] = cloneValue(value[key]);
8231
7992
  }), clone;
8232
7993
  }
8233
- function deepMerge$1(base, value) {
7994
+ function deepMerge(base, value) {
8234
7995
  var _a;
8235
- const result = null !== (_a = cloneValue$1(base)) && void 0 !== _a ? _a : {};
7996
+ const result = null !== (_a = cloneValue(base)) && void 0 !== _a ? _a : {};
8236
7997
  return Object.keys(value).forEach(key => {
8237
7998
  const nextValue = value[key],
8238
7999
  previousValue = result[key];
8239
- isPlainObject$1(previousValue) && isPlainObject$1(nextValue) ? result[key] = deepMerge$1(previousValue, nextValue) : result[key] = cloneValue$1(nextValue);
8000
+ isPlainObject(previousValue) && isPlainObject(nextValue) ? result[key] = deepMerge(previousValue, nextValue) : result[key] = cloneValue(nextValue);
8240
8001
  }), result;
8241
8002
  }
8242
- const FULL_DEFINITION_KEYS = new Set(["name", "patch", "priority", "exclude", "suppress", "resolver", "declaredAffectedKeys"]);
8243
8003
  class StateEngine {
8244
8004
  constructor(options) {
8245
8005
  var _a;
8246
- this._activeStates = [], this._effectiveStates = [], this._suppressed = [], this._resolvedPatch = {}, this.resolverPatchCache = new Map(), this.resolverCacheKey = "", this.resolverCacheValid = !1, this.baseAttributes = {}, this.compiledDefinitions = options.compiledDefinitions, this.stateSort = options.stateSort, this.stateProxy = options.stateProxy, this.stateProxyEligibility = options.stateProxyEligibility, this.states = options.states, this.mergeMode = null !== (_a = options.mergeMode) && void 0 !== _a ? _a : "shallow";
8006
+ this._activeStates = [], this._effectiveStates = [], this._suppressed = [], this._resolvedPatch = {}, this.resolverPatchCache = new Map(), this.resolverCacheKey = "", this.resolverCacheValid = !1, this.baseAttributes = {}, this.compiledDefinitions = options.compiledDefinitions, this.stateSort = options.stateSort, this.mergeMode = null !== (_a = options.mergeMode) && void 0 !== _a ? _a : "shallow";
8247
8007
  }
8248
8008
  get activeStates() {
8249
8009
  return this._activeStates;
@@ -8313,23 +8073,11 @@ class StateEngine {
8313
8073
  };
8314
8074
  }
8315
8075
  invalidateResolverCache() {
8316
- var _a, _b;
8317
- this.resolverPatchCache.clear(), this.resolverCacheKey = "", this.resolverCacheValid = !1, null === (_b = getActiveStageStatePerfMonitor(null === (_a = this.graphic) || void 0 === _a ? void 0 : _a.stage)) || void 0 === _b || _b.recordResolver("invalidations");
8076
+ this.resolverPatchCache.clear(), this.resolverCacheKey = "", this.resolverCacheValid = !1;
8318
8077
  }
8319
8078
  hasState(stateName) {
8320
8079
  return !!this._activeStates.length && (null == stateName || this._activeStates.includes(stateName));
8321
8080
  }
8322
- getCompatPatch(stateName) {
8323
- var _a, _b, _c;
8324
- const targetStates = this._activeStates.length ? this._activeStates : this._effectiveStates,
8325
- canUseStateProxy = this.canUseStateProxy(stateName),
8326
- proxyPatch = canUseStateProxy ? null === (_a = this.stateProxy) || void 0 === _a ? void 0 : _a.call(this, stateName, targetStates) : void 0;
8327
- if (this.stateProxy && canUseStateProxy) return null != proxyPatch ? proxyPatch : void 0;
8328
- const value = null === (_b = this.states) || void 0 === _b ? void 0 : _b[stateName];
8329
- if (null == value) return;
8330
- if (!isPlainObject$1(value)) return value;
8331
- return Object.keys(value).some(key => FULL_DEFINITION_KEYS.has(key)) ? cloneValue$1(null !== (_c = value.patch) && void 0 !== _c ? _c : void 0) : value;
8332
- }
8333
8081
  sortStates(states) {
8334
8082
  const withDefinition = [],
8335
8083
  withoutDefinition = [];
@@ -8360,68 +8108,33 @@ class StateEngine {
8360
8108
  };
8361
8109
  }
8362
8110
  recomputePatch(effectiveStates) {
8363
- var _a;
8364
- const perfMonitor = getActiveStageStatePerfMonitor(null === (_a = this.graphic) || void 0 === _a ? void 0 : _a.stage),
8365
- patchStart = perfMonitor ? performance.now() : 0;
8366
- let resolverCost = 0;
8367
8111
  const cacheKey = effectiveStates.join(","),
8368
- nextPatch = {};
8369
- if (null == perfMonitor || perfMonitor.recordAllocation("patchObjectsCreated"), this.resolverCacheValid && this.resolverCacheKey === cacheKey ? effectiveStates.forEach(stateName => {
8370
- var _a;
8371
- const canUseStateProxy = this.canUseStateProxy(stateName),
8372
- proxyPatch = canUseStateProxy ? null === (_a = this.stateProxy) || void 0 === _a ? void 0 : _a.call(this, stateName, effectiveStates) : void 0;
8373
- if (this.stateProxy && canUseStateProxy) return void (null != proxyPatch && this.mergeInto(nextPatch, proxyPatch));
8374
- const definition = this.compiledDefinitions.get(stateName);
8375
- if (definition) {
8376
- if (definition.patch && this.mergeInto(nextPatch, definition.patch), definition.hasResolver) {
8377
- const cachedPatch = this.resolverPatchCache.get(stateName);
8378
- cachedPatch && (null == perfMonitor || perfMonitor.recordResolver("cacheHits"), this.mergeInto(nextPatch, cachedPatch));
8379
- }
8380
- } else {
8381
- const compatPatch = this.getCompatPatch(stateName);
8382
- compatPatch && this.mergeInto(nextPatch, compatPatch);
8383
- }
8384
- }) : (this.resolverPatchCache.clear(), this.resolverCacheKey = cacheKey, effectiveStates.forEach(stateName => {
8112
+ nextPatch = {},
8113
+ useResolverCache = this.resolverCacheValid && this.resolverCacheKey === cacheKey;
8114
+ useResolverCache || (this.resolverPatchCache.clear(), this.resolverCacheKey = cacheKey), effectiveStates.forEach(stateName => {
8385
8115
  var _a;
8386
- const canUseStateProxy = this.canUseStateProxy(stateName),
8387
- proxyPatch = canUseStateProxy ? null === (_a = this.stateProxy) || void 0 === _a ? void 0 : _a.call(this, stateName, effectiveStates) : void 0;
8388
- if (this.stateProxy && canUseStateProxy) return void (null != proxyPatch && this.mergeInto(nextPatch, proxyPatch));
8389
8116
  const definition = this.compiledDefinitions.get(stateName);
8390
- if (definition) {
8391
- if (definition.patch && this.mergeInto(nextPatch, definition.patch), definition.hasResolver && definition.resolver) {
8392
- null == perfMonitor || perfMonitor.recordResolver("cacheMisses");
8393
- const resolverStart = perfMonitor ? performance.now() : 0,
8394
- resolverPatch = definition.resolver({
8395
- graphic: this.graphic,
8396
- activeStates: this._activeStates,
8397
- effectiveStates: this._effectiveStates,
8398
- baseAttributes: this.baseAttributes,
8399
- resolvedPatch: nextPatch
8400
- });
8401
- if (perfMonitor) {
8402
- const duration = performance.now() - resolverStart;
8403
- resolverCost += duration, perfMonitor.recordCost("resolver", duration);
8404
- }
8405
- resolverPatch && (this.resolverPatchCache.set(stateName, resolverPatch), this.mergeInto(nextPatch, resolverPatch));
8406
- }
8407
- } else {
8408
- const compatPatch = this.getCompatPatch(stateName);
8409
- compatPatch && this.mergeInto(nextPatch, compatPatch);
8117
+ if (definition && (definition.patch && this.mergeInto(nextPatch, definition.patch), definition.hasResolver)) {
8118
+ const resolverPatch = useResolverCache ? this.resolverPatchCache.get(stateName) : null === (_a = definition.resolver) || void 0 === _a ? void 0 : _a.call(definition, {
8119
+ graphic: this.graphic,
8120
+ activeStates: this._activeStates,
8121
+ effectiveStates: this._effectiveStates,
8122
+ baseAttributes: this.baseAttributes,
8123
+ resolvedPatch: nextPatch
8124
+ });
8125
+ resolverPatch && (useResolverCache || this.resolverPatchCache.set(stateName, resolverPatch), this.mergeInto(nextPatch, resolverPatch));
8410
8126
  }
8411
- }), this.resolverCacheValid = !0), this._resolvedPatch = nextPatch, perfMonitor) {
8412
- const totalCost = performance.now() - patchStart;
8413
- perfMonitor.recordCost("patch", Math.max(0, totalCost - resolverCost));
8414
- }
8127
+ }), useResolverCache || (this.resolverCacheValid = !0), this._resolvedPatch = nextPatch;
8415
8128
  }
8416
8129
  mergeInto(target, patch) {
8417
8130
  "deep" !== this.mergeMode ? Object.keys(patch).forEach(key => {
8418
- target[key] = cloneValue$1(patch[key]);
8131
+ target[key] = cloneValue(patch[key]);
8419
8132
  }) : Object.keys(patch).forEach(key => {
8420
8133
  var _a;
8421
8134
  const nextValue = patch[key],
8422
8135
  previousValue = target[key],
8423
8136
  baseValue = null === (_a = this.baseAttributes) || void 0 === _a ? void 0 : _a[key];
8424
- isPlainObject$1(previousValue) && isPlainObject$1(nextValue) ? target[key] = deepMerge$1(previousValue, nextValue) : !isPlainObject$1(previousValue) && isPlainObject$1(baseValue) && isPlainObject$1(nextValue) ? target[key] = deepMerge$1(baseValue, nextValue) : target[key] = cloneValue$1(nextValue);
8137
+ isPlainObject(previousValue) && isPlainObject(nextValue) ? target[key] = deepMerge(previousValue, nextValue) : !isPlainObject(previousValue) && isPlainObject(baseValue) && isPlainObject(nextValue) ? target[key] = deepMerge(baseValue, nextValue) : target[key] = cloneValue(nextValue);
8425
8138
  });
8426
8139
  }
8427
8140
  sameArray(left, right) {
@@ -8429,186 +8142,50 @@ class StateEngine {
8429
8142
  for (let index = 0; index < left.length; index++) if (left[index] !== right[index]) return !1;
8430
8143
  return !0;
8431
8144
  }
8432
- canUseStateProxy(stateName) {
8433
- return !!this.stateProxy && (!this.stateProxyEligibility || this.stateProxyEligibility(stateName));
8434
- }
8435
8145
  }
8436
8146
 
8437
- class StateModel {
8438
- constructor(options = {}) {
8439
- var _a;
8440
- this.exclusiveGroupMap = new Map(), this.exclusiveGroups = new Map(), this.states = options.states, this.currentStates = options.currentStates ? [...options.currentStates] : void 0, this.stateSort = options.stateSort, this.stateProxy = options.stateProxy, this.stateEngine = options.stateEngine, this.stateEngine && options.currentStates && !this.sameStates(this.stateEngine.activeStates, options.currentStates) && this.stateEngine.applyStates(options.currentStates);
8441
- const exclusiveGroups = null !== (_a = options.exclusiveGroups) && void 0 !== _a ? _a : {};
8442
- for (const groupName in exclusiveGroups) Object.prototype.hasOwnProperty.call(exclusiveGroups, groupName) && this.registerExclusiveGroup(groupName, exclusiveGroups[groupName]);
8443
- }
8444
- getCurrentStates() {
8445
- return this.currentStates ? [...this.currentStates] : [];
8446
- }
8447
- hasState(stateName) {
8448
- return this.stateEngine ? this.stateEngine.hasState(stateName) : !(!this.currentStates || !this.currentStates.length) && (null == stateName || this.currentStates.includes(stateName));
8449
- }
8450
- getState(stateName) {
8451
- var _a;
8452
- return null === (_a = this.states) || void 0 === _a ? void 0 : _a[stateName];
8453
- }
8454
- useStates(states) {
8455
- var _a;
8456
- if (this.stateEngine) {
8457
- const result = this.stateEngine.applyStates(states);
8458
- return this.currentStates = [...result.activeStates], {
8459
- changed: result.changed,
8460
- states: [...result.activeStates],
8461
- effectiveStates: [...result.effectiveStates]
8462
- };
8463
- }
8464
- if (!states.length) return this.clearStates();
8465
- const previousStates = null !== (_a = this.currentStates) && void 0 !== _a ? _a : [],
8466
- changed = previousStates.length !== states.length || states.some((stateName, index) => previousStates[index] !== stateName),
8467
- nextStates = this.sortStates(states);
8468
- return changed && (this.currentStates = nextStates), {
8469
- changed: changed,
8470
- states: changed ? [...nextStates] : [...previousStates]
8471
- };
8472
- }
8473
- clearStates() {
8474
- if (this.stateEngine) {
8475
- const result = this.stateEngine.clearStates();
8476
- return this.currentStates = [], {
8477
- changed: result.changed,
8478
- states: [],
8479
- effectiveStates: []
8480
- };
8481
- }
8482
- const changed = this.hasState();
8483
- return this.currentStates = [], {
8484
- changed: changed,
8485
- states: []
8486
- };
8487
- }
8488
- addState(stateName, keepCurrentStates) {
8489
- var _a;
8490
- if (this.stateEngine) {
8491
- const result = this.stateEngine.addState(stateName, keepCurrentStates);
8492
- return this.currentStates = [...result.activeStates], {
8493
- changed: result.changed,
8494
- states: [...result.activeStates],
8495
- effectiveStates: [...result.effectiveStates]
8496
- };
8497
- }
8498
- if (this.currentStates && this.currentStates.includes(stateName) && (keepCurrentStates || 1 === this.currentStates.length)) return {
8499
- changed: !1,
8500
- states: this.getCurrentStates()
8501
- };
8502
- const nextStates = keepCurrentStates && (null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) ? this.currentStates.concat([stateName]) : [stateName];
8503
- return this.useStates(nextStates);
8504
- }
8505
- removeState(stateName) {
8506
- if (this.stateEngine) {
8507
- const result = this.stateEngine.removeState(stateName);
8508
- return this.currentStates = [...result.activeStates], {
8509
- changed: result.changed,
8510
- states: [...result.activeStates],
8511
- effectiveStates: [...result.effectiveStates]
8512
- };
8513
- }
8514
- if (!this.currentStates) return {
8515
- changed: !1,
8516
- states: []
8517
- };
8518
- const filter = Array.isArray(stateName) ? s => !stateName.includes(s) : s => s !== stateName,
8519
- nextStates = this.currentStates.filter(filter);
8520
- return nextStates.length === this.currentStates.length ? {
8521
- changed: !1,
8522
- states: this.getCurrentStates()
8523
- } : this.useStates(nextStates);
8524
- }
8525
- toggleState(stateName) {
8526
- if (this.stateEngine) {
8527
- const result = this.stateEngine.toggleState(stateName);
8528
- return this.currentStates = [...result.activeStates], {
8529
- changed: result.changed,
8530
- states: [...result.activeStates],
8531
- effectiveStates: [...result.effectiveStates]
8532
- };
8533
- }
8534
- if (this.hasState(stateName)) return this.removeState(stateName);
8535
- const nextStates = this.currentStates ? this.currentStates.slice() : [];
8536
- return nextStates.includes(stateName) || nextStates.push(stateName), this.useStates(nextStates);
8537
- }
8538
- sortStates(states) {
8539
- return this.stateEngine ? [...this.stateEngine.activeStates] : this.stateSort ? [...states].sort(this.stateSort) : [...states];
8540
- }
8541
- registerExclusiveGroup(groupName, states) {
8542
- const uniqueStates = Array.from(new Set(states));
8543
- this.exclusiveGroups.set(groupName, uniqueStates), uniqueStates.forEach(stateName => this.exclusiveGroupMap.set(stateName, groupName));
8544
- }
8545
- getExclusiveGroup(stateName) {
8546
- return this.exclusiveGroupMap.get(stateName);
8547
- }
8548
- getMutuallyExclusiveStates(stateName) {
8549
- var _a;
8550
- const groupName = this.getExclusiveGroup(stateName);
8551
- return groupName ? (null !== (_a = this.exclusiveGroups.get(groupName)) && void 0 !== _a ? _a : []).filter(name => name !== stateName) : [];
8552
- }
8553
- isMutuallyExclusive(stateA, stateB) {
8554
- const groupName = this.getExclusiveGroup(stateA);
8555
- return !!groupName && groupName === this.getExclusiveGroup(stateB) && stateA !== stateB;
8556
- }
8557
- get effectiveStates() {
8558
- var _a, _b, _c;
8559
- return null !== (_c = null !== (_b = null === (_a = this.stateEngine) || void 0 === _a ? void 0 : _a.effectiveStates) && void 0 !== _b ? _b : this.currentStates) && void 0 !== _c ? _c : [];
8560
- }
8561
- get resolvedPatch() {
8562
- var _a;
8563
- return null === (_a = this.stateEngine) || void 0 === _a ? void 0 : _a.resolvedPatch;
8564
- }
8565
- sameStates(left, right) {
8566
- if (left.length !== right.length) return !1;
8567
- for (let index = 0; index < left.length; index++) if (left[index] !== right[index]) return !1;
8568
- return !0;
8569
- }
8570
- }
8571
-
8572
- function isPlainObject(value) {
8573
- return null != value && "object" == typeof value && !Array.isArray(value);
8574
- }
8575
- function cloneValue(value) {
8576
- if (!isPlainObject(value)) return value;
8577
- const clone = {};
8578
- for (const key in value) Object.prototype.hasOwnProperty.call(value, key) && (clone[key] = cloneValue(value[key]));
8579
- return clone;
8580
- }
8581
- function deepMerge(base, value) {
8582
- const result = cloneValue(base) || {};
8583
- for (const key in value) {
8584
- if (!Object.prototype.hasOwnProperty.call(value, key)) continue;
8585
- const nextValue = value[key],
8586
- previousValue = result[key];
8587
- isPlainObject(previousValue) && isPlainObject(nextValue) ? result[key] = deepMerge(previousValue, nextValue) : result[key] = cloneValue(nextValue);
8588
- }
8589
- return result;
8590
- }
8591
- class StateStyleResolver {
8592
- constructor(options = {}) {
8593
- this.options = options;
8594
- }
8595
- resolve(normalAttrs, states, stateProxy, currentStates, stateSort) {
8596
- var _a;
8597
- const mergeMode = null !== (_a = this.options.mergeMode) && void 0 !== _a ? _a : "shallow",
8598
- sortedStates = stateSort ? currentStates.slice().sort(stateSort) : currentStates.slice(),
8599
- resolvedAttrs = {};
8600
- return sortedStates.forEach(stateName => {
8601
- const attrs = stateProxy ? stateProxy(stateName, sortedStates) : null == states ? void 0 : states[stateName];
8602
- if (null != attrs) for (const key in attrs) {
8603
- if (!Object.prototype.hasOwnProperty.call(attrs, key)) continue;
8604
- const nextValue = attrs[key];
8605
- if ("deep" === mergeMode && isPlainObject(nextValue) && (isPlainObject(resolvedAttrs[key]) || isPlainObject(normalAttrs[key]))) {
8606
- const baseValue = isPlainObject(resolvedAttrs[key]) ? resolvedAttrs[key] : isPlainObject(normalAttrs[key]) ? normalAttrs[key] : {};
8607
- resolvedAttrs[key] = deepMerge(baseValue, nextValue);
8608
- } else resolvedAttrs[key] = cloneValue(nextValue);
8609
- }
8610
- }), resolvedAttrs;
8147
+ var UpdateCategory;
8148
+ !function (UpdateCategory) {
8149
+ UpdateCategory[UpdateCategory.NONE = 0] = "NONE", UpdateCategory[UpdateCategory.PAINT = 1] = "PAINT", UpdateCategory[UpdateCategory.SHAPE = 2] = "SHAPE", UpdateCategory[UpdateCategory.BOUNDS = 4] = "BOUNDS", UpdateCategory[UpdateCategory.TRANSFORM = 8] = "TRANSFORM", UpdateCategory[UpdateCategory.LAYOUT = 16] = "LAYOUT", UpdateCategory[UpdateCategory.PICK = 32] = "PICK";
8150
+ }(UpdateCategory || (UpdateCategory = {}));
8151
+ const ATTRIBUTE_CATEGORY = {
8152
+ fill: UpdateCategory.PAINT,
8153
+ opacity: UpdateCategory.PAINT,
8154
+ fillOpacity: UpdateCategory.PAINT,
8155
+ strokeOpacity: UpdateCategory.PAINT,
8156
+ lineDash: UpdateCategory.PAINT,
8157
+ lineDashOffset: UpdateCategory.PAINT,
8158
+ lineCap: UpdateCategory.PAINT,
8159
+ lineJoin: UpdateCategory.PAINT,
8160
+ miterLimit: UpdateCategory.PAINT,
8161
+ shadowColor: UpdateCategory.PAINT,
8162
+ x: UpdateCategory.TRANSFORM | UpdateCategory.BOUNDS,
8163
+ y: UpdateCategory.TRANSFORM | UpdateCategory.BOUNDS,
8164
+ scaleX: UpdateCategory.TRANSFORM | UpdateCategory.BOUNDS,
8165
+ scaleY: UpdateCategory.TRANSFORM | UpdateCategory.BOUNDS,
8166
+ angle: UpdateCategory.TRANSFORM | UpdateCategory.BOUNDS,
8167
+ anchor: UpdateCategory.TRANSFORM | UpdateCategory.BOUNDS,
8168
+ anchor3d: UpdateCategory.TRANSFORM | UpdateCategory.BOUNDS,
8169
+ postMatrix: UpdateCategory.TRANSFORM | UpdateCategory.BOUNDS,
8170
+ layout: UpdateCategory.LAYOUT,
8171
+ zIndex: UpdateCategory.PAINT,
8172
+ visible: UpdateCategory.PAINT | UpdateCategory.PICK,
8173
+ lineWidth: UpdateCategory.SHAPE | UpdateCategory.BOUNDS | UpdateCategory.PICK,
8174
+ width: UpdateCategory.SHAPE | UpdateCategory.BOUNDS,
8175
+ height: UpdateCategory.SHAPE | UpdateCategory.BOUNDS
8176
+ };
8177
+ const ATTRIBUTE_DELTA_CLASSIFIER = {
8178
+ stroke: (prev, next) => (null != prev && !1 !== prev) !== (null != next && !1 !== next) ? UpdateCategory.PAINT | UpdateCategory.BOUNDS | UpdateCategory.PICK : UpdateCategory.PAINT,
8179
+ shadowBlur: (prev, next) => {
8180
+ const prevBlur = Number(null != prev ? prev : 0),
8181
+ nextBlur = Number(null != next ? next : 0);
8182
+ return prevBlur !== nextBlur && (prevBlur > 0 || nextBlur > 0) ? UpdateCategory.PAINT | UpdateCategory.BOUNDS : UpdateCategory.PAINT;
8611
8183
  }
8184
+ };
8185
+ function classifyAttributeDelta(key, prev, next) {
8186
+ var _a;
8187
+ const dynamicClassifier = ATTRIBUTE_DELTA_CLASSIFIER[key];
8188
+ return dynamicClassifier ? dynamicClassifier(prev, next) : null !== (_a = ATTRIBUTE_CATEGORY[key]) && void 0 !== _a ? _a : UpdateCategory.PAINT;
8612
8189
  }
8613
8190
 
8614
8191
  function hasOwnKeys(value) {
@@ -8618,25 +8195,22 @@ function normalizeNoAnimateAttrConfig(config) {
8618
8195
  return config ? Array.isArray(config) ? config.reduce((acc, key) => (acc[key] = 1, acc), {}) : Object.keys(config).reduce((acc, key) => (config[key] && (acc[key] = 1), acc), {}) : {};
8619
8196
  }
8620
8197
  class StateTransitionOrchestrator {
8621
- analyzeTransition(_currentAttrs, targetAttrs, stateNames, hasAnimation, options = {}) {
8198
+ analyzeTransition(targetAttrs, hasAnimation, options = {}) {
8622
8199
  var _a, _b;
8623
8200
  const plan = {
8624
- stateNames: stateNames,
8625
8201
  targetAttrs: Object.assign({}, targetAttrs),
8626
8202
  animateAttrs: {},
8627
- jumpAttrs: {},
8628
8203
  noAnimateAttrs: {}
8629
8204
  };
8630
8205
  if (!hasAnimation) return plan;
8631
8206
  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)),
8632
8207
  isClear = !0 === options.isClear,
8633
- getDefaultAttribute = options.getDefaultAttribute,
8208
+ readDefaultAttribute = options.getDefaultAttribute,
8634
8209
  shouldSkipDefaultAttribute = options.shouldSkipDefaultAttribute,
8635
8210
  assignTransitionAttr = (key, value) => {
8636
- if (noWorkAnimateAttr[key]) return plan.jumpAttrs[key] = value, void (plan.noAnimateAttrs[key] = value);
8637
- if (isClear && void 0 === value) {
8211
+ if (noWorkAnimateAttr[key]) plan.noAnimateAttrs[key] = value;else if (isClear && void 0 === value) {
8638
8212
  if (null == shouldSkipDefaultAttribute ? void 0 : shouldSkipDefaultAttribute(key, targetAttrs)) return;
8639
- plan.animateAttrs[key] = getDefaultAttribute ? getDefaultAttribute(key) : value;
8213
+ plan.animateAttrs[key] = readDefaultAttribute(key);
8640
8214
  } else plan.animateAttrs[key] = value;
8641
8215
  };
8642
8216
  for (const key in targetAttrs) {
@@ -8672,13 +8246,13 @@ class StateTransitionOrchestrator {
8672
8246
  type: AttributeUpdateType.STATE
8673
8247
  }), plan;
8674
8248
  }
8675
- applyClearTransition(graphic, targetAttrs, hasAnimation, stateNames, options = {}) {
8676
- var _a, _b, _c, _d;
8677
- const plan = this.analyzeTransition({}, targetAttrs, stateNames, hasAnimation, {
8678
- noWorkAnimateAttr: null === (_a = graphic.getNoWorkAnimateAttr) || void 0 === _a ? void 0 : _a.call(graphic),
8249
+ applyClearTransition(graphic, targetAttrs, hasAnimation, options = {}) {
8250
+ var _a;
8251
+ const plan = this.analyzeTransition(targetAttrs, hasAnimation, {
8252
+ noWorkAnimateAttr: graphic.getNoWorkAnimateAttr(),
8679
8253
  isClear: !0,
8680
- getDefaultAttribute: null === (_b = graphic.getDefaultAttribute) || void 0 === _b ? void 0 : _b.bind(graphic),
8681
- shouldSkipDefaultAttribute: null !== (_c = options.shouldSkipDefaultAttribute) && void 0 !== _c ? _c : null === (_d = graphic.shouldSkipStateTransitionDefaultAttribute) || void 0 === _d ? void 0 : _d.bind(graphic),
8254
+ getDefaultAttribute: graphic.getDefaultAttribute.bind(graphic),
8255
+ shouldSkipDefaultAttribute: null !== (_a = options.shouldSkipDefaultAttribute) && void 0 !== _a ? _a : graphic.shouldSkipStateTransitionDefaultAttribute.bind(graphic),
8682
8256
  animateConfig: options.animateConfig,
8683
8257
  extraAnimateAttrs: options.extraAnimateAttrs
8684
8258
  });
@@ -8687,23 +8261,11 @@ class StateTransitionOrchestrator {
8687
8261
  }
8688
8262
 
8689
8263
  const compiler = new StateDefinitionCompiler();
8690
- function copyDefinitions(definitions) {
8691
- return definitions ? Object.assign({}, definitions) : {};
8692
- }
8693
8264
  function buildEffectiveSourceDefinitions(parentScope, localStateDefinitions, themeStateDefinitions) {
8694
- const merged = copyDefinitions(parentScope ? parentScope.effectiveSourceDefinitions : themeStateDefinitions);
8695
- return localStateDefinitions && Object.keys(localStateDefinitions).forEach(stateName => {
8696
- merged[stateName] = localStateDefinitions[stateName];
8697
- }), merged;
8698
- }
8699
- function initializeScope(scope, revision = 0) {
8700
- var _a;
8701
- const effectiveSourceDefinitions = buildEffectiveSourceDefinitions(scope.parentScope, scope.localStateDefinitions, scope.themeStateDefinitions);
8702
- return scope.effectiveSourceDefinitions = effectiveSourceDefinitions, scope.effectiveCompiledDefinitions = compiler.compile(effectiveSourceDefinitions), scope.parentRevisionAtBuild = null === (_a = scope.parentScope) || void 0 === _a ? void 0 : _a.revision, scope.revision = revision, scope.dirty = !1, scope;
8265
+ return Object.assign({}, parentScope ? parentScope.effectiveSourceDefinitions : themeStateDefinitions, localStateDefinitions);
8703
8266
  }
8704
8267
  function createRootSharedStateScope(stage, themeStateDefinitions) {
8705
- return initializeScope({
8706
- ownerKind: "root",
8268
+ return rebuildSharedStateScope({
8707
8269
  ownerStage: stage,
8708
8270
  themeStateDefinitions: themeStateDefinitions,
8709
8271
  effectiveSourceDefinitions: {},
@@ -8714,9 +8276,7 @@ function createRootSharedStateScope(stage, themeStateDefinitions) {
8714
8276
  }, 0);
8715
8277
  }
8716
8278
  function createGroupSharedStateScope(group, parentScope, localStateDefinitions) {
8717
- return initializeScope({
8718
- ownerKind: "group",
8719
- ownerGroup: group,
8279
+ return rebuildSharedStateScope({
8720
8280
  ownerStage: group.stage,
8721
8281
  parentScope: parentScope,
8722
8282
  localStateDefinitions: localStateDefinitions,
@@ -8736,14 +8296,13 @@ function setSharedStateScopeLocalDefinitions(scope, localStateDefinitions) {
8736
8296
  function setRootSharedStateScopeThemeDefinitions(scope, themeStateDefinitions) {
8737
8297
  return scope.themeStateDefinitions !== themeStateDefinitions && (scope.themeStateDefinitions = themeStateDefinitions, rebuildSharedStateScope(scope), !0);
8738
8298
  }
8739
- function rebuildSharedStateScope(scope) {
8299
+ function rebuildSharedStateScope(scope, revision = scope.revision + 1) {
8740
8300
  var _a;
8741
8301
  const effectiveSourceDefinitions = buildEffectiveSourceDefinitions(scope.parentScope, scope.localStateDefinitions, scope.themeStateDefinitions);
8742
- return scope.effectiveSourceDefinitions = effectiveSourceDefinitions, scope.effectiveCompiledDefinitions = compiler.compile(effectiveSourceDefinitions), scope.parentRevisionAtBuild = null === (_a = scope.parentScope) || void 0 === _a ? void 0 : _a.revision, scope.revision += 1, scope.dirty = !1, scope;
8302
+ return scope.effectiveSourceDefinitions = effectiveSourceDefinitions, scope.effectiveCompiledDefinitions = compiler.compile(effectiveSourceDefinitions), scope.parentRevisionAtBuild = null === (_a = scope.parentScope) || void 0 === _a ? void 0 : _a.revision, scope.revision = revision, scope.dirty = !1, scope;
8743
8303
  }
8744
8304
  function ensureSharedStateScopeFresh(scope) {
8745
- var _a;
8746
- if (scope) return null === (_a = getActiveStageStatePerfMonitor(scope.ownerStage)) || void 0 === _a || _a.recordRefresh("ensureFreshCalls"), scope.parentScope && ensureSharedStateScopeFresh(scope.parentScope), (scope.dirty || scope.parentScope && scope.parentRevisionAtBuild !== scope.parentScope.revision) && rebuildSharedStateScope(scope), scope;
8305
+ if (scope) return scope.parentScope && ensureSharedStateScopeFresh(scope.parentScope), (scope.dirty || scope.parentScope && scope.parentRevisionAtBuild !== scope.parentScope.revision) && rebuildSharedStateScope(scope), scope;
8747
8306
  }
8748
8307
  function collectSharedStateScopeChain(scope) {
8749
8308
  const chain = [];
@@ -8753,43 +8312,27 @@ function collectSharedStateScopeChain(scope) {
8753
8312
  }
8754
8313
 
8755
8314
  function scheduleStageSharedStateRefresh(stage) {
8756
- var _a;
8757
- stage && "released" !== stage.releaseStatus && (null === (_a = getActiveStageStatePerfMonitor(stage)) || void 0 === _a || _a.recordRefresh("renderScheduled"), stage.renderNextFrame());
8315
+ stage && "released" !== stage.releaseStatus && stage.renderNextFrame();
8758
8316
  }
8759
8317
  function enqueueGraphicSharedStateRefresh(stage, graphic) {
8760
8318
  var _a;
8761
8319
  if (!stage) return;
8762
- const pending = null !== (_a = stage._pendingSharedStateRefreshGraphics) && void 0 !== _a ? _a : stage._pendingSharedStateRefreshGraphics = new Set();
8763
- if (!pending.has(graphic)) {
8764
- pending.add(graphic);
8765
- const perfMonitor = getActiveStageStatePerfMonitor(stage);
8766
- null == perfMonitor || perfMonitor.recordRefresh("queuedGraphics"), null == perfMonitor || perfMonitor.recordAllocation("refreshQueuePushes");
8767
- }
8320
+ (null !== (_a = stage._pendingSharedStateRefreshGraphics) && void 0 !== _a ? _a : stage._pendingSharedStateRefreshGraphics = new Set()).add(graphic);
8768
8321
  }
8769
8322
  function markScopeActiveDescendantsDirty(scope, stage) {
8770
- let marked = !1;
8771
- scope.subtreeActiveDescendants.forEach(graphic => {
8323
+ scope.subtreeActiveDescendants.size && (scope.subtreeActiveDescendants.forEach(graphic => {
8772
8324
  var _a;
8773
8325
  graphic.sharedStateDirty = !0;
8774
- enqueueGraphicSharedStateRefresh(null !== (_a = null != stage ? stage : graphic.stage) && void 0 !== _a ? _a : scope.ownerStage, graphic), marked = !0;
8775
- }), marked && scheduleStageSharedStateRefresh(null != stage ? stage : scope.ownerStage);
8326
+ enqueueGraphicSharedStateRefresh(null !== (_a = null != stage ? stage : graphic.stage) && void 0 !== _a ? _a : scope.ownerStage, graphic);
8327
+ }), scheduleStageSharedStateRefresh(null != stage ? stage : scope.ownerStage));
8776
8328
  }
8777
8329
  function flushStageSharedStateRefresh(stage) {
8778
8330
  const pending = stage._pendingSharedStateRefreshGraphics;
8779
8331
  if (!pending || !pending.size) return;
8780
- const perfMonitor = getActiveStageStatePerfMonitor(stage),
8781
- start = perfMonitor ? performance.now() : 0,
8782
- graphics = Array.from(pending.values());
8783
- pending.clear(), null == perfMonitor || perfMonitor.recordRefresh("flushedGraphics", graphics.length), graphics.forEach(graphic => {
8784
- if ("released" === graphic.releaseStatus) return;
8785
- if (graphic.stage !== stage) return;
8786
- if (!graphic.sharedStateDirty) return;
8787
- const refresh = graphic.refreshSharedStateBeforeRender;
8788
- "function" == typeof refresh && (refresh.call(graphic), null == perfMonitor || perfMonitor.incrementCounter("sharedRefreshCommits"));
8789
- }), perfMonitor && (perfMonitor.recordCost("sharedRefresh", performance.now() - start), perfMonitor.recordEvent("shared-refresh-flush", {
8790
- stageId: stage._uid,
8791
- flushedGraphics: graphics.length
8792
- }));
8332
+ const graphics = Array.from(pending.values());
8333
+ pending.clear(), graphics.forEach(graphic => {
8334
+ "released" !== graphic.releaseStatus && graphic.stage === stage && graphic.sharedStateDirty && graphic.refreshSharedStateBeforeRender();
8335
+ });
8793
8336
  }
8794
8337
 
8795
8338
  const _tempBounds$1 = new AABBBounds(),
@@ -8800,7 +8343,6 @@ const tempConstantXYKey = ["x", "y"],
8800
8343
  tempConstantScaleXYKey = ["scaleX", "scaleY"],
8801
8344
  tempConstantAngleKey = ["angle"],
8802
8345
  builtinTextureTypes = new Set(["circle", "diamond", "rect", "vertical-line", "horizontal-line", "bias-lr", "bias-rl", "grid", "wave"]),
8803
- FULL_STATE_DEFINITION_KEYS = new Set(["name", "patch", "priority", "exclude", "suppress", "resolver", "declaredAffectedKeys"]),
8804
8346
  point = new Point(),
8805
8347
  EMPTY_STATE_NAMES = [],
8806
8348
  BROAD_UPDATE_CATEGORY = UpdateCategory.PAINT | UpdateCategory.SHAPE | UpdateCategory.BOUNDS | UpdateCategory.TRANSFORM | UpdateCategory.LAYOUT;
@@ -8916,11 +8458,6 @@ class Graphic extends Node {
8916
8458
  getAttributes() {
8917
8459
  return this.attribute;
8918
8460
  }
8919
- getStateStyleResolver(mergeMode) {
8920
- return "deep" === mergeMode ? (this.deepStateStyleResolver || (this.deepStateStyleResolver = new StateStyleResolver({
8921
- mergeMode: "deep"
8922
- })), this.deepStateStyleResolver) : (this.stateStyleResolver || (this.stateStyleResolver = new StateStyleResolver()), this.stateStyleResolver);
8923
- }
8924
8461
  getStateTransitionOrchestrator() {
8925
8462
  return this.stateTransitionOrchestrator || (this.stateTransitionOrchestrator = new StateTransitionOrchestrator()), this.stateTransitionOrchestrator;
8926
8463
  }
@@ -8936,7 +8473,7 @@ class Graphic extends Node {
8936
8473
  syncSharedStateScopeBindingFromTree(markDirty = !0) {
8937
8474
  var _a;
8938
8475
  const nextScope = this.resolveBoundSharedStateScope();
8939
- return this.boundSharedStateScope === nextScope ? (this.syncSharedStateActiveRegistrations(), !1) : (this.boundSharedStateScope = nextScope, this.boundSharedStateRevision = void 0, this.localFallbackCompiledDefinitions = void 0, this.compiledStateDefinitions = void 0, this.compiledStateDefinitionsCacheKey = void 0, this.stateEngine = void 0, this.stateEngineCompiledDefinitions = void 0, this.stateEngineStateProxyModeKey = void 0, this.syncSharedStateActiveRegistrations(), markDirty && (null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) && this.markSharedStateDirty(), !0);
8476
+ return this.boundSharedStateScope === nextScope ? (this.syncSharedStateActiveRegistrations(), !1) : (this.boundSharedStateScope = nextScope, this.boundSharedStateRevision = void 0, this.compiledStateDefinitions = void 0, this.compiledStateDefinitionsCacheKey = void 0, this.stateEngine = void 0, this.stateEngineCompiledDefinitions = void 0, this.syncSharedStateActiveRegistrations(), markDirty && (null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) && this.markSharedStateDirty(), !0);
8940
8477
  }
8941
8478
  syncSharedStateScopeBindingOnTreeChange(markDirty = !0) {
8942
8479
  var _a, _b;
@@ -8975,7 +8512,7 @@ class Graphic extends Node {
8975
8512
  }
8976
8513
  getLocalStatesVersion() {
8977
8514
  var _a, _b;
8978
- 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;
8515
+ return this.localStateDefinitionsSource !== this.states && (this.localStateDefinitionsSource = this.states, this.localStateDefinitionsVersion = (null !== (_a = this.localStateDefinitionsVersion) && void 0 !== _a ? _a : 0) + 1), null !== (_b = this.localStateDefinitionsVersion) && void 0 !== _b ? _b : 0;
8979
8516
  }
8980
8517
  resolveEffectiveCompiledDefinitions() {
8981
8518
  this.syncSharedStateScopeBindingFromTree(!1);
@@ -8984,49 +8521,24 @@ class Graphic extends Node {
8984
8521
  const hasStates = !!this.states && Object.keys(this.states).length > 0;
8985
8522
  if (!boundScope) {
8986
8523
  if (!hasStates) return {
8987
- compiledDefinitions: void 0,
8988
- stateProxyModeKey: "none"
8524
+ compiledDefinitions: void 0
8989
8525
  };
8990
8526
  const cacheKey = `local:${this.getLocalStatesVersion()}`;
8991
8527
  return this.compiledStateDefinitions && this.compiledStateDefinitionsCacheKey === cacheKey || (this.compiledStateDefinitions = new StateDefinitionCompiler().compile(this.states), this.compiledStateDefinitionsCacheKey = cacheKey), {
8992
- compiledDefinitions: this.compiledStateDefinitions,
8993
- stateProxyModeKey: this.stateProxy ? "legacy-all" : "none"
8528
+ compiledDefinitions: this.compiledStateDefinitions
8994
8529
  };
8995
8530
  }
8996
- const sharedCompiledDefinitions = boundScope.effectiveCompiledDefinitions,
8997
- sharedStateProxyModeKey = this.stateProxy ? "shared-missing-only" : "none",
8998
- sharedStateProxyEligibility = this.stateProxy ? stateName => !sharedCompiledDefinitions.has(stateName) : void 0;
8999
- if (!hasStates) return this.localFallbackCompiledDefinitions = void 0, {
9000
- compiledDefinitions: sharedCompiledDefinitions,
9001
- stateProxyModeKey: sharedStateProxyModeKey,
9002
- stateProxyEligibility: sharedStateProxyEligibility
9003
- };
9004
- const localStates = this.states,
9005
- missingLocalStateDefinitions = {},
9006
- missingStateNames = [];
9007
- if (Object.keys(localStates).forEach(stateName => {
9008
- sharedCompiledDefinitions.has(stateName) || (missingLocalStateDefinitions[stateName] = localStates[stateName], missingStateNames.push(stateName));
9009
- }), !missingStateNames.length) return this.localFallbackCompiledDefinitions = void 0, {
9010
- compiledDefinitions: sharedCompiledDefinitions,
9011
- stateProxyModeKey: sharedStateProxyModeKey,
9012
- stateProxyEligibility: sharedStateProxyEligibility
9013
- };
9014
- const localStatesVersion = this.getLocalStatesVersion(),
9015
- stateProxyModeKey = this.stateProxy ? `missing:${missingStateNames.sort().join("|")}` : "none",
9016
- cacheKey = `shared:${boundScope.revision}:fallback:${localStatesVersion}:${stateProxyModeKey}`;
9017
- return this.localFallbackCompiledDefinitions && this.compiledStateDefinitionsCacheKey === cacheKey || (this.localFallbackCompiledDefinitions = new StateDefinitionCompiler().compile(Object.assign(Object.assign({}, boundScope.effectiveSourceDefinitions), missingLocalStateDefinitions)), this.compiledStateDefinitionsCacheKey = cacheKey), {
9018
- compiledDefinitions: this.localFallbackCompiledDefinitions,
9019
- stateProxyModeKey: stateProxyModeKey,
9020
- stateProxyEligibility: sharedStateProxyEligibility
8531
+ return {
8532
+ compiledDefinitions: boundScope.effectiveCompiledDefinitions
9021
8533
  };
9022
8534
  }
9023
8535
  recomputeCurrentStatePatch() {
9024
8536
  var _a, _b;
9025
8537
  if (!(null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length)) return this.effectiveStates = [], this.resolvedStatePatch = void 0, void this.syncSharedStateActiveRegistrations();
9026
8538
  const stateResolveBaseAttrs = this.getStateResolveBaseAttrs(),
9027
- transition = this.createStateModel(stateResolveBaseAttrs).useStates(this.currentStates),
8539
+ transition = this.resolveUseStatesTransition(this.currentStates, stateResolveBaseAttrs),
9028
8540
  effectiveStates = null !== (_b = transition.effectiveStates) && void 0 !== _b ? _b : transition.states,
9029
- resolvedStateAttrs = this.stateEngine && this.compiledStateDefinitions ? Object.assign({}, this.stateEngine.resolvedPatch) : this.getStateStyleResolver(this.stateMergeMode).resolve(stateResolveBaseAttrs, this.states, this.stateProxy, transition.states, this.stateSort);
8541
+ resolvedStateAttrs = this.stateEngine && this.compiledStateDefinitions ? Object.assign({}, this.stateEngine.resolvedPatch) : {};
9030
8542
  this.currentStates = transition.states, this.effectiveStates = [...effectiveStates], this.resolvedStatePatch = resolvedStateAttrs, this.syncSharedStateActiveRegistrations();
9031
8543
  }
9032
8544
  buildStaticAttributeSnapshot() {
@@ -9090,12 +8602,7 @@ class Graphic extends Node {
9090
8602
  return nextCategory & UpdateCategory.PICK && (nextCategory |= UpdateCategory.BOUNDS), nextCategory === UpdateCategory.PAINT && this.needUpdateTag(key) && (nextCategory = UpdateCategory.SHAPE | UpdateCategory.BOUNDS), category | nextCategory;
9091
8603
  }
9092
8604
  submitUpdateByCategory(category, forceUpdateTag = !1) {
9093
- var _a;
9094
8605
  if (forceUpdateTag) return this.addUpdateShapeAndBoundsTag(), this.addUpdatePositionTag(), void this.addUpdateLayoutTag();
9095
- if (category !== UpdateCategory.NONE) {
9096
- const stage = this.stage;
9097
- stage && (null === (_a = getActiveStageStatePerfMonitor(stage)) || void 0 === _a || _a.recordCategory(category));
9098
- }
9099
8606
  (category & BROAD_UPDATE_CATEGORY) !== BROAD_UPDATE_CATEGORY ? (category & UpdateCategory.SHAPE ? this.addUpdateShapeAndBoundsTag() : category & UpdateCategory.BOUNDS && this.addUpdateBoundTag(), category & UpdateCategory.PAINT && this.addUpdatePaintTag(), category & UpdateCategory.TRANSFORM && this.addUpdatePositionTag(), category & UpdateCategory.LAYOUT && this.addUpdateLayoutTag()) : this.addBroadUpdateTag();
9100
8607
  }
9101
8608
  submitUpdateByDelta(delta, forceUpdateTag = !1) {
@@ -9634,103 +9141,94 @@ class Graphic extends Node {
9634
9141
  var _a;
9635
9142
  return null === (_a = this.stateEngine) || void 0 === _a || _a.setResolveContext(this, stateResolveBaseAttrs), stateResolveBaseAttrs;
9636
9143
  }
9637
- createStateModel(stateResolveBaseAttrs = this.getStateResolveBaseAttrs()) {
9144
+ ensureStateEngine(stateResolveBaseAttrs = this.getStateResolveBaseAttrs()) {
9638
9145
  const {
9639
- compiledDefinitions: compiledDefinitions,
9640
- stateProxyEligibility: stateProxyEligibility,
9641
- stateProxyModeKey: stateProxyModeKey
9146
+ compiledDefinitions: compiledDefinitions
9642
9147
  } = this.resolveEffectiveCompiledDefinitions();
9643
- return this.compiledStateDefinitions = compiledDefinitions, compiledDefinitions ? this.stateEngine && this.stateEngineCompiledDefinitions === compiledDefinitions && this.stateEngineStateProxy === this.stateProxy && this.stateEngineStateSort === this.stateSort && this.stateEngineMergeMode === this.stateMergeMode && this.stateEngineStateProxyModeKey === stateProxyModeKey || (this.stateEngine = new StateEngine({
9148
+ return this.compiledStateDefinitions = compiledDefinitions, compiledDefinitions ? this.stateEngine && this.stateEngineCompiledDefinitions === compiledDefinitions && this.stateEngineStateSort === this.stateSort && this.stateEngineMergeMode === this.stateMergeMode || (this.stateEngine = new StateEngine({
9644
9149
  compiledDefinitions: compiledDefinitions,
9645
9150
  stateSort: this.stateSort,
9646
- stateProxy: this.stateProxy,
9647
- stateProxyEligibility: stateProxyEligibility,
9648
- states: this.states,
9649
9151
  mergeMode: this.stateMergeMode
9650
- }), 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({
9651
- states: this.states,
9652
- currentStates: this.currentStates,
9653
- stateSort: this.stateSort,
9654
- stateProxy: this.stateProxy,
9655
- stateEngine: this.stateEngine
9656
- });
9152
+ }), this.stateEngineCompiledDefinitions = compiledDefinitions, this.stateEngineStateSort = this.stateSort, this.stateEngineMergeMode = this.stateMergeMode) : (this.stateEngine = void 0, this.stateEngineCompiledDefinitions = void 0), this.syncStateResolveContext(stateResolveBaseAttrs), this.stateEngine && this.currentStates && !this.sameStateNames(this.stateEngine.activeStates, this.currentStates) && this.stateEngine.applyStates(this.currentStates), this.stateEngine;
9657
9153
  }
9658
- resolveSimpleLocalStateTransition(states, previousStates) {
9154
+ toGraphicStateTransition(result) {
9155
+ return {
9156
+ changed: result.changed,
9157
+ states: [...result.activeStates],
9158
+ effectiveStates: [...result.effectiveStates]
9159
+ };
9160
+ }
9161
+ sortLocalStates(states) {
9162
+ return this.stateSort ? [...states].sort(this.stateSort) : [...states];
9163
+ }
9164
+ resolveLocalUseStatesTransition(states) {
9659
9165
  var _a;
9660
- if (!this.states || this.stateProxy || this.stateSort || "deep" === this.stateMergeMode || this.parent || (null === (_a = this.stage) || void 0 === _a ? void 0 : _a.rootSharedStateScope) || this.boundSharedStateScope) return null;
9661
- if (1 === states.length) {
9662
- const stateName = states[0],
9663
- hasDefinition = Object.prototype.hasOwnProperty.call(this.states, stateName),
9664
- nextStates = [stateName],
9665
- changed = !this.sameStateNames(previousStates, nextStates),
9666
- resolvedStateAttrs = {};
9667
- if (hasDefinition) {
9668
- const attrs = this.states[stateName];
9669
- if (null != attrs) {
9670
- if (!isPlainObjectValue(attrs)) return null;
9671
- const keys = Object.keys(attrs);
9672
- for (let keyIndex = 0; keyIndex < keys.length; keyIndex++) {
9673
- const key = keys[keyIndex];
9674
- if (FULL_STATE_DEFINITION_KEYS.has(key)) return null;
9675
- const attrValue = attrs[key];
9676
- resolvedStateAttrs[key] = isPlainObjectValue(attrValue) ? cloneAttributeValue(attrValue) : attrValue;
9677
- }
9678
- }
9679
- }
9680
- return {
9681
- changed: changed,
9682
- states: nextStates,
9683
- effectiveStates: nextStates,
9684
- resolvedStateAttrs: resolvedStateAttrs
9685
- };
9686
- }
9687
- const uniqueStates = Array.from(new Set(states)),
9688
- withDefinition = [],
9689
- withoutDefinition = [];
9690
- for (let i = 0; i < uniqueStates.length; i++) {
9691
- const stateName = uniqueStates[i];
9692
- Object.prototype.hasOwnProperty.call(this.states, stateName) ? withDefinition.push(stateName) : withoutDefinition.push(stateName);
9693
- }
9694
- withDefinition.sort((left, right) => left.localeCompare(right));
9695
- const nextStates = withDefinition.concat(withoutDefinition),
9696
- changed = !this.sameStateNames(previousStates, nextStates),
9697
- resolvedStateAttrs = {};
9698
- for (let i = 0; i < nextStates.length; i++) {
9699
- const stateName = nextStates[i];
9700
- if (!Object.prototype.hasOwnProperty.call(this.states, stateName)) continue;
9701
- const attrs = this.states[stateName];
9702
- if (null == attrs) continue;
9703
- if (!isPlainObjectValue(attrs)) return null;
9704
- const keys = Object.keys(attrs);
9705
- for (let keyIndex = 0; keyIndex < keys.length; keyIndex++) {
9706
- const key = keys[keyIndex];
9707
- if (FULL_STATE_DEFINITION_KEYS.has(key)) return null;
9708
- const attrValue = attrs[key];
9709
- resolvedStateAttrs[key] = isPlainObjectValue(attrValue) ? cloneAttributeValue(attrValue) : attrValue;
9710
- }
9711
- }
9166
+ if (!states.length) return this.resolveLocalClearStatesTransition();
9167
+ const previousStates = null !== (_a = this.currentStates) && void 0 !== _a ? _a : EMPTY_STATE_NAMES,
9168
+ changed = previousStates.length !== states.length || states.some((stateName, index) => previousStates[index] !== stateName),
9169
+ nextStates = this.sortLocalStates(states);
9712
9170
  return {
9713
9171
  changed: changed,
9714
- states: nextStates,
9715
- effectiveStates: nextStates,
9716
- resolvedStateAttrs: resolvedStateAttrs
9172
+ states: changed ? nextStates : [...previousStates]
9717
9173
  };
9718
9174
  }
9719
- resolveGraphicStateTransition(states, previousStates, forceResolverRefresh = !1) {
9720
- var _a, _b;
9721
- let transition = this.resolveSimpleLocalStateTransition(states, previousStates);
9722
- const isSimpleLocalTransition = !!transition;
9723
- let resolvedStateAttrs;
9724
- if (transition) resolvedStateAttrs = transition.resolvedStateAttrs;else {
9725
- const stateResolveBaseAttrs = this.getStateResolveBaseAttrs(),
9726
- stateModel = this.createStateModel(stateResolveBaseAttrs);
9727
- 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);
9728
- }
9175
+ resolveLocalClearStatesTransition() {
9176
+ return {
9177
+ changed: this.hasState(),
9178
+ states: []
9179
+ };
9180
+ }
9181
+ resolveUseStatesTransition(states, stateResolveBaseAttrs = this.getStateResolveBaseAttrs()) {
9182
+ const stateEngine = this.ensureStateEngine(stateResolveBaseAttrs);
9183
+ return stateEngine ? this.toGraphicStateTransition(stateEngine.applyStates(states)) : this.resolveLocalUseStatesTransition(states);
9184
+ }
9185
+ resolveClearStatesTransition() {
9186
+ const stateEngine = this.ensureStateEngine();
9187
+ return stateEngine ? this.toGraphicStateTransition(stateEngine.clearStates()) : this.resolveLocalClearStatesTransition();
9188
+ }
9189
+ resolveAddStateTransition(stateName, keepCurrentStates) {
9190
+ var _a;
9191
+ const stateEngine = this.ensureStateEngine();
9192
+ if (stateEngine) return this.toGraphicStateTransition(stateEngine.addState(stateName, keepCurrentStates));
9193
+ if (this.currentStates && this.currentStates.includes(stateName) && (keepCurrentStates || 1 === this.currentStates.length)) return {
9194
+ changed: !1,
9195
+ states: [...this.currentStates]
9196
+ };
9197
+ const nextStates = keepCurrentStates && (null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) ? this.currentStates.concat([stateName]) : [stateName];
9198
+ return this.resolveLocalUseStatesTransition(nextStates);
9199
+ }
9200
+ resolveRemoveStateTransition(stateName) {
9201
+ const stateEngine = this.ensureStateEngine();
9202
+ if (stateEngine) return this.toGraphicStateTransition(stateEngine.removeState(stateName));
9203
+ if (!this.currentStates) return {
9204
+ changed: !1,
9205
+ states: []
9206
+ };
9207
+ const filter = Array.isArray(stateName) ? s => !stateName.includes(s) : s => s !== stateName,
9208
+ nextStates = this.currentStates.filter(filter);
9209
+ return nextStates.length === this.currentStates.length ? {
9210
+ changed: !1,
9211
+ states: [...this.currentStates]
9212
+ } : this.resolveLocalUseStatesTransition(nextStates);
9213
+ }
9214
+ resolveToggleStateTransition(stateName) {
9215
+ const stateEngine = this.ensureStateEngine();
9216
+ if (stateEngine) return this.toGraphicStateTransition(stateEngine.toggleState(stateName));
9217
+ if (this.hasState(stateName)) return this.resolveRemoveStateTransition(stateName);
9218
+ const nextStates = this.currentStates ? this.currentStates.slice() : [];
9219
+ return nextStates.push(stateName), this.resolveLocalUseStatesTransition(nextStates);
9220
+ }
9221
+ resolveGraphicStateTransition(states, forceResolverRefresh = !1) {
9222
+ var _a;
9223
+ const stateResolveBaseAttrs = this.getStateResolveBaseAttrs(),
9224
+ stateEngine = this.ensureStateEngine(stateResolveBaseAttrs);
9225
+ forceResolverRefresh && (null == stateEngine || stateEngine.invalidateResolverCache());
9226
+ const transition = stateEngine ? this.toGraphicStateTransition(stateEngine.applyStates(states)) : this.resolveLocalUseStatesTransition(states),
9227
+ resolvedStateAttrs = this.stateEngine && this.compiledStateDefinitions ? Object.assign({}, this.stateEngine.resolvedPatch) : {};
9729
9228
  return {
9730
9229
  transition: transition,
9731
- effectiveStates: null !== (_b = transition.effectiveStates) && void 0 !== _b ? _b : transition.states,
9732
- resolvedStateAttrs: resolvedStateAttrs,
9733
- isSimpleLocalTransition: isSimpleLocalTransition
9230
+ effectiveStates: null !== (_a = transition.effectiveStates) && void 0 !== _a ? _a : transition.states,
9231
+ resolvedStateAttrs: resolvedStateAttrs
9734
9232
  };
9735
9233
  }
9736
9234
  normalizeSetStatesOptions(options) {
@@ -9761,24 +9259,14 @@ class Graphic extends Node {
9761
9259
  {
9762
9260
  transition: transition,
9763
9261
  effectiveStates: effectiveStates,
9764
- resolvedStateAttrs: resolvedStateAttrs,
9765
- isSimpleLocalTransition: isSimpleLocalTransition
9766
- } = this.resolveGraphicStateTransition(states, previousStates, !0),
9262
+ resolvedStateAttrs: resolvedStateAttrs
9263
+ } = this.resolveGraphicStateTransition(states, !0),
9767
9264
  patchChanged = !this.sameStatePatches(previousResolvedStatePatch, resolvedStateAttrs);
9768
- 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)) {
9769
- if (this.stage) {
9770
- const perfMonitor = getActiveStageStatePerfMonitor(this.stage);
9771
- null == perfMonitor || perfMonitor.incrementCounter("stateCommits"), null == perfMonitor || perfMonitor.recordEvent("state-commit", {
9772
- graphicId: this._uid,
9773
- targetStates: [...transition.states]
9774
- });
9775
- }
9776
- hasAnimation && animateSameStatePatchChange ? (this._syncFinalAttributeFromStaticTruth(), this.applyStateAttrs(resolvedStateAttrs, transition.states, hasAnimation, !1, void 0, this.buildRemovedStateAnimationAttrs(resolvedStateAttrs, previousResolvedStatePatch))) : (this.stopStateAnimates(), this.attributeMayContainTransientAttrs ? this._restoreAttributeFromStaticTruth({
9777
- type: AttributeUpdateType.STATE
9778
- }) : this.restoreAttributeFromStatePatchDelta(previousResolvedStatePatch, this.resolvedStatePatch, {
9779
- type: AttributeUpdateType.STATE
9780
- }), this.emitStateUpdateEvent());
9781
- }
9265
+ patchChanged && !this.beforeStateUpdate(resolvedStateAttrs, previousStates, transition.states, hasAnimation, !1) || (this.currentStates = transition.states, this.effectiveStates = [...effectiveStates], this.resolvedStatePatch = resolvedStateAttrs, this.sharedStateDirty = !1, this.syncSharedStateActiveRegistrations(), patchChanged && (hasAnimation && animateSameStatePatchChange ? (this._syncFinalAttributeFromStaticTruth(), this.applyStateAttrs(resolvedStateAttrs, transition.states, hasAnimation, !1, void 0, this.buildRemovedStateAnimationAttrs(resolvedStateAttrs, previousResolvedStatePatch))) : (this.stopStateAnimates(), this.attributeMayContainTransientAttrs ? this._restoreAttributeFromStaticTruth({
9266
+ type: AttributeUpdateType.STATE
9267
+ }) : this.restoreAttributeFromStatePatchDelta(previousResolvedStatePatch, this.resolvedStatePatch, {
9268
+ type: AttributeUpdateType.STATE
9269
+ }), this.emitStateUpdateEvent())));
9782
9270
  }
9783
9271
  resolveStateAnimateConfig(animateConfig) {
9784
9272
  var _a, _b, _c;
@@ -9791,8 +9279,8 @@ class Graphic extends Node {
9791
9279
  extraAnimateAttrs: extraAnimateAttrs,
9792
9280
  shouldSkipDefaultAttribute: this.shouldSkipStateTransitionDefaultAttribute.bind(this)
9793
9281
  } : void 0;
9794
- if (isClear) return void this.getStateTransitionOrchestrator().applyClearTransition(this, attrs, hasAnimation, stateNames, transitionOptions);
9795
- const plan = this.getStateTransitionOrchestrator().analyzeTransition({}, attrs, stateNames, hasAnimation, {
9282
+ if (isClear) return void this.getStateTransitionOrchestrator().applyClearTransition(this, attrs, hasAnimation, transitionOptions);
9283
+ const plan = this.getStateTransitionOrchestrator().analyzeTransition(attrs, hasAnimation, {
9796
9284
  noWorkAnimateAttr: this.getNoWorkAnimateAttr(),
9797
9285
  animateConfig: resolvedAnimateConfig,
9798
9286
  extraAnimateAttrs: extraAnimateAttrs,
@@ -9816,43 +9304,29 @@ class Graphic extends Node {
9816
9304
  animate.stateNames && stateAnimates.push(animate);
9817
9305
  }), stateAnimates.forEach(animate => animate.stop(type));
9818
9306
  }
9819
- getNormalAttribute(key) {
9820
- var _a, _b;
9821
- const value = this.attribute[key];
9822
- return this.hasAnyTrackedAnimate() ? null === (_a = this.finalAttribute) || void 0 === _a ? void 0 : _a[key] : null != value ? value : null === (_b = this.finalAttribute) || void 0 === _b ? void 0 : _b[key];
9823
- }
9824
9307
  clearStates(hasAnimation) {
9825
9308
  var _a, _b, _c;
9826
9309
  const previousStates = null !== (_a = this.currentStates) && void 0 !== _a ? _a : EMPTY_STATE_NAMES,
9827
9310
  previousResolvedStatePatch = this.resolvedStatePatch,
9828
- transition = this.createStateModel().clearStates();
9311
+ transition = this.resolveClearStatesTransition();
9829
9312
  if (!transition.changed && 0 === previousStates.length) return this.currentStates = [], this.effectiveStates = [], this.resolvedStatePatch = void 0, this.sharedStateDirty = !1, void this.clearSharedStateActiveRegistrations();
9830
9313
  const resolvedStateAttrs = hasAnimation || this.hasCustomEvent("beforeStateUpdate") ? cloneAttributeValue(null !== (_b = this.baseAttributes) && void 0 !== _b ? _b : {}) : null !== (_c = this.baseAttributes) && void 0 !== _c ? _c : {};
9831
- if (!transition.changed || this.beforeStateUpdate(resolvedStateAttrs, previousStates, transition.states, hasAnimation, !0)) {
9832
- if (this.currentStates = transition.states, this.effectiveStates = [], this.resolvedStatePatch = void 0, this.sharedStateDirty = !1, this.clearSharedStateActiveRegistrations(), this.stage) {
9833
- const perfMonitor = getActiveStageStatePerfMonitor(this.stage);
9834
- null == perfMonitor || perfMonitor.incrementCounter("stateCommits"), null == perfMonitor || perfMonitor.recordEvent("state-commit", {
9835
- graphicId: this._uid,
9836
- targetStates: []
9837
- });
9838
- }
9839
- hasAnimation ? (this._syncFinalAttributeFromStaticTruth(), this.applyStateAttrs(resolvedStateAttrs, transition.states, hasAnimation, !0, void 0, this.buildRemovedStateAnimationAttrs(resolvedStateAttrs, previousResolvedStatePatch))) : (this.stopStateAnimates(), this.attributeMayContainTransientAttrs ? this._restoreAttributeFromStaticTruth({
9840
- type: AttributeUpdateType.STATE
9841
- }) : this.restoreAttributeFromStatePatchDelta(previousResolvedStatePatch, void 0, {
9842
- type: AttributeUpdateType.STATE
9843
- }), this.emitStateUpdateEvent());
9844
- }
9314
+ 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(), hasAnimation ? (this._syncFinalAttributeFromStaticTruth(), this.applyStateAttrs(resolvedStateAttrs, transition.states, hasAnimation, !0, void 0, this.buildRemovedStateAnimationAttrs(resolvedStateAttrs, previousResolvedStatePatch))) : (this.stopStateAnimates(), this.attributeMayContainTransientAttrs ? this._restoreAttributeFromStaticTruth({
9315
+ type: AttributeUpdateType.STATE
9316
+ }) : this.restoreAttributeFromStatePatchDelta(previousResolvedStatePatch, void 0, {
9317
+ type: AttributeUpdateType.STATE
9318
+ }), this.emitStateUpdateEvent()));
9845
9319
  }
9846
9320
  removeState(stateName, hasAnimation) {
9847
- const transition = this.createStateModel().removeState(stateName);
9321
+ const transition = this.resolveRemoveStateTransition(stateName);
9848
9322
  transition.changed && this.useStates(transition.states, hasAnimation);
9849
9323
  }
9850
9324
  toggleState(stateName, hasAnimation) {
9851
- const transition = this.createStateModel().toggleState(stateName);
9325
+ const transition = this.resolveToggleStateTransition(stateName);
9852
9326
  transition.changed && this.useStates(transition.states, hasAnimation);
9853
9327
  }
9854
9328
  addState(stateName, keepCurrentStates, hasAnimation) {
9855
- const transition = this.createStateModel().addState(stateName, keepCurrentStates);
9329
+ const transition = this.resolveAddStateTransition(stateName, keepCurrentStates);
9856
9330
  transition.changed && this.useStates(transition.states, hasAnimation);
9857
9331
  }
9858
9332
  setStates(states, options) {
@@ -9880,29 +9354,18 @@ class Graphic extends Node {
9880
9354
  {
9881
9355
  transition: transition,
9882
9356
  effectiveStates: effectiveStates,
9883
- resolvedStateAttrs: resolvedStateAttrs,
9884
- isSimpleLocalTransition: isSimpleLocalTransition
9885
- } = this.resolveGraphicStateTransition(states, previousStates);
9886
- if ((transition.changed || !this.sameStateNames(previousStates, transition.states)) && this.beforeStateUpdate(resolvedStateAttrs, previousStates, transition.states, hasAnimation, !1)) {
9887
- if (this.currentStates = transition.states, this.effectiveStates = isSimpleLocalTransition ? effectiveStates : [...effectiveStates], this.resolvedStatePatch = resolvedStateAttrs, this.sharedStateDirty = !1, this.syncSharedStateActiveRegistrations(), this.stage) {
9888
- const perfMonitor = getActiveStageStatePerfMonitor(this.stage);
9889
- null == perfMonitor || perfMonitor.incrementCounter("stateCommits"), null == perfMonitor || perfMonitor.recordEvent("state-commit", {
9890
- graphicId: this._uid,
9891
- targetStates: [...transition.states]
9892
- });
9893
- }
9894
- hasAnimation ? (this._syncFinalAttributeFromStaticTruth(), this.applyStateAttrs(resolvedStateAttrs, transition.states, hasAnimation, !1, void 0, this.buildRemovedStateAnimationAttrs(resolvedStateAttrs, previousResolvedStatePatch))) : (this.stopStateAnimates(), this.attributeMayContainTransientAttrs ? this._restoreAttributeFromStaticTruth({
9895
- type: AttributeUpdateType.STATE
9896
- }) : this.restoreAttributeFromStatePatchDelta(previousResolvedStatePatch, this.resolvedStatePatch, {
9897
- type: AttributeUpdateType.STATE
9898
- }), this.emitStateUpdateEvent());
9899
- }
9357
+ resolvedStateAttrs: resolvedStateAttrs
9358
+ } = this.resolveGraphicStateTransition(states);
9359
+ !transition.changed && this.sameStateNames(previousStates, transition.states) || this.beforeStateUpdate(resolvedStateAttrs, previousStates, transition.states, hasAnimation, !1) && (this.currentStates = transition.states, this.effectiveStates = [...effectiveStates], this.resolvedStatePatch = resolvedStateAttrs, this.sharedStateDirty = !1, this.syncSharedStateActiveRegistrations(), hasAnimation ? (this._syncFinalAttributeFromStaticTruth(), this.applyStateAttrs(resolvedStateAttrs, transition.states, hasAnimation, !1, void 0, this.buildRemovedStateAnimationAttrs(resolvedStateAttrs, previousResolvedStatePatch))) : (this.stopStateAnimates(), this.attributeMayContainTransientAttrs ? this._restoreAttributeFromStaticTruth({
9360
+ type: AttributeUpdateType.STATE
9361
+ }) : this.restoreAttributeFromStatePatchDelta(previousResolvedStatePatch, this.resolvedStatePatch, {
9362
+ type: AttributeUpdateType.STATE
9363
+ }), this.emitStateUpdateEvent()));
9900
9364
  }
9901
9365
  invalidateResolver() {
9902
9366
  var _a, _b;
9903
9367
  if (!this.stateEngine || !(null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) || !this.compiledStateDefinitions) return;
9904
- this.syncStateResolveContext();
9905
- this.resolverEpoch = (null !== (_b = this.resolverEpoch) && void 0 !== _b ? _b : 0) + 1, this.stateEngine.invalidateResolverCache();
9368
+ this.syncStateResolveContext(), this.resolverEpoch = (null !== (_b = this.resolverEpoch) && void 0 !== _b ? _b : 0) + 1, this.stateEngine.invalidateResolverCache();
9906
9369
  const transition = this.stateEngine.applyStates(this.currentStates),
9907
9370
  resolvedStateAttrs = Object.assign({}, this.stateEngine.resolvedPatch);
9908
9371
  this.effectiveStates = [...transition.effectiveStates], this.resolvedStatePatch = resolvedStateAttrs, this.sharedStateDirty = !1, this.syncSharedStateActiveRegistrations(), this.stopStateAnimates(), this._restoreAttributeFromStaticTruth({
@@ -10043,7 +9506,7 @@ class Graphic extends Node {
10043
9506
  }
10044
9507
  detachStageForRelease() {
10045
9508
  var _a, _b, _c;
10046
- (null === (_a = this.registeredActiveScopes) || void 0 === _a ? void 0 : _a.size) && this.clearSharedStateActiveRegistrations(), (this.mayHaveTrackedAnimates() || this.shadowRoot) && this.stopAnimates(), this.boundSharedStateScope = void 0, this.boundSharedStateRevision = void 0, this.localFallbackCompiledDefinitions = void 0, this.compiledStateDefinitions = void 0, this.compiledStateDefinitionsCacheKey = void 0, this.stateEngine = void 0, this.stateEngineCompiledDefinitions = void 0, this.stateEngineStateProxyModeKey = void 0, this.sharedStateDirty = !1, this.stage = null, this.layer = null, this.shadowRoot && (null === (_c = (_b = this.shadowRoot).detachStageForRelease) || void 0 === _c || _c.call(_b));
9509
+ (null === (_a = this.registeredActiveScopes) || void 0 === _a ? void 0 : _a.size) && this.clearSharedStateActiveRegistrations(), (this.mayHaveTrackedAnimates() || this.shadowRoot) && this.stopAnimates(), this.boundSharedStateScope = void 0, this.boundSharedStateRevision = void 0, this.compiledStateDefinitions = void 0, this.compiledStateDefinitionsCacheKey = void 0, this.stateEngine = void 0, this.stateEngineCompiledDefinitions = void 0, this.sharedStateDirty = !1, this.stage = null, this.layer = null, this.shadowRoot && (null === (_c = (_b = this.shadowRoot).detachStageForRelease) || void 0 === _c || _c.call(_b));
10047
9510
  }
10048
9511
  setStageToShadowRoot(stage, layer) {
10049
9512
  this.shadowRoot && this.shadowRoot.setStage(stage, layer);
@@ -11556,15 +11019,11 @@ class Glyph extends Graphic {
11556
11019
  const previousStates = this.currentStates ? this.currentStates.slice() : [];
11557
11020
  if (!((null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) !== states.length || states.some((stateName, index) => this.currentStates[index] !== stateName))) return;
11558
11021
  this.stopStateAnimates(), this.stateSort && (states = states.sort(this.stateSort));
11559
- const stateAttrs = {},
11560
- subAttrs = this.subGraphic.map(() => ({}));
11022
+ const stateAttrs = {};
11561
11023
  states.forEach(stateName => {
11562
- var _a;
11563
11024
  const attrs = this.glyphStateProxy ? this.glyphStateProxy(stateName, states) : this.glyphStates[stateName];
11564
- attrs && (Object.assign(stateAttrs, attrs.attributes), (null === (_a = attrs.subAttributes) || void 0 === _a ? void 0 : _a.length) && subAttrs.forEach((subAttrs, index) => {
11565
- Object.assign(subAttrs, attrs.subAttributes[index]);
11566
- }));
11567
- }), this.beforeStateUpdate(stateAttrs, previousStates, states, hasAnimation, !1) && (this.updateNormalAttrs(stateAttrs), this.currentStates = states, this.applyStateAttrs(stateAttrs, states, hasAnimation));
11025
+ attrs && Object.assign(stateAttrs, attrs.attributes);
11026
+ }), this.beforeStateUpdate(stateAttrs, previousStates, states, hasAnimation, !1) && (this.currentStates = states, this.applyStateAttrs(stateAttrs, states, hasAnimation));
11568
11027
  }
11569
11028
  clearStates(hasAnimation) {
11570
11029
  this.stopStateAnimates();
@@ -11573,7 +11032,6 @@ class Glyph extends Graphic {
11573
11032
  if (!this.beforeStateUpdate(this.normalAttrs, previousStates, [], hasAnimation, !0)) return;
11574
11033
  this.currentStates = [], this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, !0);
11575
11034
  } else this.currentStates = [];
11576
- this.normalAttrs = null;
11577
11035
  }
11578
11036
  clone() {
11579
11037
  const glyph = new Glyph(Object.assign({}, this.attribute));
@@ -12825,7 +12283,7 @@ function createArea(attributes) {
12825
12283
  return new Area(attributes);
12826
12284
  }
12827
12285
 
12828
- const ARC_UPDATE_TAG_KEY = ["innerRadius", "outerRadius", "startAngle", "endAngle", "cornerRadius", "padAngle", "padRadius", "cap", ...GRAPHIC_UPDATE_TAG_KEY];
12286
+ const ARC_UPDATE_TAG_KEY = ["innerRadius", "outerRadius", "startAngle", "endAngle", "cornerRadius", "padAngle", "padRadius", "clipRange", "cap", ...GRAPHIC_UPDATE_TAG_KEY];
12829
12287
  class Arc extends Graphic {
12830
12288
  constructor(params) {
12831
12289
  super(params), this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
@@ -12869,11 +12327,12 @@ class Arc extends Graphic {
12869
12327
  endAngle = arcTheme.endAngle
12870
12328
  } = this.attribute;
12871
12329
  const {
12872
- cap = arcTheme.cap
12330
+ cap = arcTheme.cap,
12331
+ clipRange = arcTheme.clipRange
12873
12332
  } = this.attribute,
12874
- sign = endAngle - startAngle >= 0 ? 1 : -1,
12875
- deltaAngle = endAngle - startAngle;
12876
- if (startAngle = clampAngleByRadian(startAngle), endAngle = startAngle + deltaAngle, cap && abs(deltaAngle) < pi2 - epsilon) {
12333
+ sign = endAngle - startAngle >= 0 ? 1 : -1;
12334
+ let deltaAngle = endAngle - startAngle;
12335
+ if (deltaAngle *= Math.max(0, Math.min(clipRange, 1)), startAngle = clampAngleByRadian(startAngle), endAngle = startAngle + deltaAngle, cap && abs(deltaAngle) > epsilon && abs(deltaAngle) < pi2 - epsilon) {
12877
12336
  let startCap = 1,
12878
12337
  endCap = 1;
12879
12338
  cap.length && (startCap = Number(cap[0]), endCap = Number(cap[1]));
@@ -13163,7 +12622,7 @@ var GroupUpdateAABBBoundsMode;
13163
12622
  }(GroupUpdateAABBBoundsMode || (GroupUpdateAABBBoundsMode = {}));
13164
12623
  class Group extends Graphic {
13165
12624
  constructor(params) {
13166
- super(params), this.type = "group", this.parent = null, this.isContainer = !0, this._hasSharedStateDefinitions = !1, this.numberType = GROUP_NUMBER_TYPE, this._childUpdateTag = UpdateTag.UPDATE_BOUNDS;
12625
+ super(params), this.type = "group", this.parent = null, this.isContainer = !0, this.numberType = GROUP_NUMBER_TYPE, this._childUpdateTag = UpdateTag.UPDATE_BOUNDS;
13167
12626
  }
13168
12627
  get sharedStateDefinitions() {
13169
12628
  return this._sharedStateDefinitions;
@@ -13171,7 +12630,7 @@ class Group extends Graphic {
13171
12630
  set sharedStateDefinitions(value) {
13172
12631
  if (this._sharedStateDefinitions === value) return;
13173
12632
  const previousScope = this.sharedStateScope;
13174
- this._sharedStateDefinitions = value, this._hasSharedStateDefinitions = !!value && Object.keys(value).length > 0, this.ensureSharedStateScopeBound(), this.sharedStateScope && (setSharedStateScopeLocalDefinitions(this.sharedStateScope, value), markScopeActiveDescendantsDirty(this.sharedStateScope, this.stage)), previousScope !== this.sharedStateScope && this.notifyChildrenSharedStateTreeChanged();
12633
+ this._sharedStateDefinitions = value, this.ensureSharedStateScopeBound(), this.sharedStateScope && (setSharedStateScopeLocalDefinitions(this.sharedStateScope, value), markScopeActiveDescendantsDirty(this.sharedStateScope, this.stage)), previousScope !== this.sharedStateScope && this.notifyChildrenSharedStateTreeChanged();
13175
12634
  }
13176
12635
  setMode(mode) {
13177
12636
  "3d" === mode ? this.set3dMode() : this.set2dMode();
@@ -13275,17 +12734,17 @@ class Group extends Graphic {
13275
12734
  }
13276
12735
  incrementalAppendChild(node) {
13277
12736
  const data = super.appendChild(node);
13278
- return data && (!this.stage || data.stage === this.stage && data.layer === this.layer ? data.onParentSharedStateTreeChanged && data.onParentSharedStateTreeChanged(this.stage, this.layer) : data.setStage(this.stage, this.layer)), this.addUpdateBoundTag(), this.getGraphicService().onAddIncremental(node, this, this.stage), data;
12737
+ return data && this.syncChildSharedStateTreeBinding(data), this.addUpdateBoundTag(), this.getGraphicService().onAddIncremental(node, this, this.stage), data;
13279
12738
  }
13280
12739
  incrementalClearChild() {
13281
12740
  super.removeAllChild(), this.addUpdateBoundTag(), this.getGraphicService().onClearIncremental(this, this.stage);
13282
12741
  }
13283
12742
  _updateChildToStage(child) {
13284
- return child && (!this.stage || child.stage === this.stage && child.layer === this.layer ? child.onParentSharedStateTreeChanged && child.onParentSharedStateTreeChanged(this.stage, this.layer) : child.setStage(this.stage, this.layer)), this.addUpdateBoundTag(), child;
12743
+ return child && this.syncChildSharedStateTreeBinding(child), this.addUpdateBoundTag(), child;
13285
12744
  }
13286
12745
  appendChild(node, addStage = !0) {
13287
12746
  const data = super.appendChild(node);
13288
- return data && (addStage && this.stage && (data.stage !== this.stage || data.layer !== this.layer) ? data.setStage(this.stage, this.layer) : data.onParentSharedStateTreeChanged && data.onParentSharedStateTreeChanged(this.stage, this.layer)), this.addUpdateBoundTag(), data;
12747
+ return data && addStage && this.syncChildSharedStateTreeBinding(data), this.addUpdateBoundTag(), data;
13289
12748
  }
13290
12749
  insertBefore(newNode, referenceNode) {
13291
12750
  return this._updateChildToStage(super.insertBefore(newNode, referenceNode));
@@ -13297,9 +12756,8 @@ class Group extends Graphic {
13297
12756
  return this._updateChildToStage(super.insertInto(newNode, idx));
13298
12757
  }
13299
12758
  removeChild(child, highPerformance = !1) {
13300
- var _a;
13301
12759
  const data = super.removeChild(child);
13302
- return data ? highPerformance ? (null === (_a = child.detachStageForRelease) || void 0 === _a || _a.call(child), data) : (this.getGraphicService().onRemove(child), child.setStage(null, null), this.addUpdateBoundTag(), data) : data;
12760
+ return data ? highPerformance ? (child.detachStageForRelease(), data) : (this.getGraphicService().onRemove(child), child.setStage(null, null), this.addUpdateBoundTag(), data) : data;
13303
12761
  }
13304
12762
  removeAllChild(deep = !1) {
13305
12763
  const children = this.children.slice();
@@ -13312,14 +12770,10 @@ class Group extends Graphic {
13312
12770
  setStage(stage, layer) {
13313
12771
  var _a, _b, _c, _d, _e, _f;
13314
12772
  const graphicService = null !== (_c = null !== (_a = null == stage ? void 0 : stage.graphicService) && void 0 !== _a ? _a : null === (_b = this.stage) || void 0 === _b ? void 0 : _b.graphicService) && void 0 !== _c ? _c : application.graphicService,
13315
- needsSharedStateTreeSync = this._hasSharedStateDefinitions || this.sharedStateScope || (null === (_d = this.currentStates) || void 0 === _d ? void 0 : _d.length) || this.boundSharedStateScope || (null === (_e = this.registeredActiveScopes) || void 0 === _e ? void 0 : _e.size) || this.sharedStateDirty;
13316
- if (this.stage !== stage) return this.stage = stage, this.layer = layer, needsSharedStateTreeSync && (this.ensureSharedStateScopeBound(), this.syncSharedStateScopeBindingOnTreeChange(!0)), this.setStageToShadowRoot(stage, layer), this._onSetStage && this._onSetStage(this, stage, layer), null === (_f = null == graphicService ? void 0 : graphicService.onSetStage) || void 0 === _f || _f.call(graphicService, this, stage), void this.forEachChildren(item => {
13317
- item.setStage(stage, this.layer);
13318
- });
12773
+ needsSharedStateTreeSync = this.hasSharedStateDefinitions() || this.sharedStateScope || (null === (_d = this.currentStates) || void 0 === _d ? void 0 : _d.length) || this.boundSharedStateScope || (null === (_e = this.registeredActiveScopes) || void 0 === _e ? void 0 : _e.size) || this.sharedStateDirty;
12774
+ if (this.stage !== stage) return this.stage = stage, this.layer = layer, needsSharedStateTreeSync && (this.ensureSharedStateScopeBound(), this.syncSharedStateScopeBindingOnTreeChange(!0)), this.setStageToShadowRoot(stage, layer), this._onSetStage && this._onSetStage(this, stage, layer), null === (_f = null == graphicService ? void 0 : graphicService.onSetStage) || void 0 === _f || _f.call(graphicService, this, stage), void this.notifyChildrenSharedStateTreeChanged();
13319
12775
  const layerChanged = this.layer !== layer;
13320
- layerChanged && (this.layer = layer), needsSharedStateTreeSync ? (this.ensureSharedStateScopeBound(), this.syncSharedStateScopeBindingOnTreeChange(!0), this.notifyChildrenSharedStateTreeChanged()) : layerChanged && this.forEachChildren(item => {
13321
- item.onParentSharedStateTreeChanged && item.onParentSharedStateTreeChanged(stage, this.layer);
13322
- });
12776
+ layerChanged && (this.layer = layer), needsSharedStateTreeSync ? (this.ensureSharedStateScopeBound(), this.syncSharedStateScopeBindingOnTreeChange(!0), this.notifyChildrenSharedStateTreeChanged()) : layerChanged && this.notifyChildrenSharedStateTreeChanged();
13323
12777
  }
13324
12778
  addUpdatePositionTag() {
13325
12779
  super.addUpdatePositionTag(), this.forEachChildren(g => {
@@ -13366,24 +12820,26 @@ class Group extends Graphic {
13366
12820
  }
13367
12821
  detachStageForRelease() {
13368
12822
  super.detachStageForRelease(), this.sharedStateScope = void 0, this.forEachChildren(item => {
13369
- var _a;
13370
- null === (_a = item.detachStageForRelease) || void 0 === _a || _a.call(item);
12823
+ item.detachStageForRelease();
13371
12824
  });
13372
12825
  }
13373
12826
  ensureSharedStateScopeBound() {
13374
12827
  var _a, _b, _c;
13375
12828
  if (!this.hasSharedStateDefinitions()) return void (this.sharedStateScope = void 0);
13376
12829
  const parentScope = null !== (_b = null === (_a = this.parent) || void 0 === _a ? void 0 : _a.sharedStateScope) && void 0 !== _b ? _b : null === (_c = this.stage) || void 0 === _c ? void 0 : _c.rootSharedStateScope;
13377
- this.sharedStateScope ? (this.sharedStateScope.ownerGroup = this, this.sharedStateScope.ownerStage = this.stage, setSharedStateScopeParent(this.sharedStateScope, parentScope), this.sharedStateScope.localStateDefinitions !== this._sharedStateDefinitions && setSharedStateScopeLocalDefinitions(this.sharedStateScope, this._sharedStateDefinitions)) : this.sharedStateScope = createGroupSharedStateScope(this, parentScope, this._sharedStateDefinitions);
12830
+ this.sharedStateScope ? (this.sharedStateScope.ownerStage = this.stage, setSharedStateScopeParent(this.sharedStateScope, parentScope), this.sharedStateScope.localStateDefinitions !== this._sharedStateDefinitions && setSharedStateScopeLocalDefinitions(this.sharedStateScope, this._sharedStateDefinitions)) : this.sharedStateScope = createGroupSharedStateScope(this, parentScope, this._sharedStateDefinitions);
13378
12831
  }
13379
12832
  hasSharedStateDefinitions() {
13380
- return this._hasSharedStateDefinitions;
12833
+ return !!this._sharedStateDefinitions && Object.keys(this._sharedStateDefinitions).length > 0;
13381
12834
  }
13382
12835
  notifyChildrenSharedStateTreeChanged() {
13383
12836
  this.forEachChildren(item => {
13384
- item.onParentSharedStateTreeChanged && item.onParentSharedStateTreeChanged(this.stage, this.layer);
12837
+ this.syncChildSharedStateTreeBinding(item);
13385
12838
  });
13386
12839
  }
12840
+ syncChildSharedStateTreeBinding(child) {
12841
+ child.onParentSharedStateTreeChanged(this.stage, this.layer);
12842
+ }
13387
12843
  onParentSharedStateTreeChanged(stage, layer) {
13388
12844
  var _a;
13389
12845
  this.stage === stage && this.layer === layer ? (this.ensureSharedStateScopeBound(), this.syncSharedStateScopeBindingOnTreeChange(!!(null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length)), this.notifyChildrenSharedStateTreeChanged()) : this.setStage(stage, layer);
@@ -14298,7 +13754,7 @@ class DefaultGlobalPickerService {
14298
13754
  }
14299
13755
  }
14300
13756
 
14301
- var __awaiter$5 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
13757
+ var __awaiter$4 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
14302
13758
  return new (P || (P = Promise))(function (resolve, reject) {
14303
13759
  function fulfilled(value) {
14304
13760
  try {
@@ -14368,7 +13824,7 @@ function foreach(graphic, defaultZIndex, cb, reverse = !1, sort3d = !1) {
14368
13824
  } else graphic.forEachChildren(cb, reverse);
14369
13825
  }
14370
13826
  function foreachAsync(graphic, defaultZIndex, cb, reverse = !1) {
14371
- return __awaiter$5(this, void 0, void 0, function* () {
13827
+ return __awaiter$4(this, void 0, void 0, function* () {
14372
13828
  yield graphic.forEachChildrenAsync(cb, reverse);
14373
13829
  });
14374
13830
  }
@@ -14941,9 +14397,6 @@ class RendererRegistry {
14941
14397
  register(key, renderer) {
14942
14398
  this.entries.set(key, renderer), this.cache.delete(key);
14943
14399
  }
14944
- registerMany(entries) {
14945
- for (const [key, renderer] of entries) this.register(key, renderer);
14946
- }
14947
14400
  get(key) {
14948
14401
  if (this.cache.has(key)) return this.cache.get(key);
14949
14402
  const entry = this.entries.get(key);
@@ -14966,9 +14419,6 @@ class PickerRegistry {
14966
14419
  register(key, picker) {
14967
14420
  this.entries.set(key, picker);
14968
14421
  }
14969
- registerMany(entries) {
14970
- for (const [key, picker] of entries) this.register(key, picker);
14971
- }
14972
14422
  get(key) {
14973
14423
  return this.entries.get(key);
14974
14424
  }
@@ -15010,9 +14460,6 @@ class ContributionRegistry {
15010
14460
  const current = null !== (_a = this.entries.get(key)) && void 0 !== _a ? _a : [];
15011
14461
  current.push(contribution), this.entries.set(key, current);
15012
14462
  }
15013
- registerMany(entries) {
15014
- for (const [key, contribution] of entries) this.register(key, contribution);
15015
- }
15016
14463
  get(key) {
15017
14464
  var _a;
15018
14465
  return [...(null !== (_a = this.entries.get(key)) && void 0 !== _a ? _a : [])];
@@ -15030,8 +14477,8 @@ const EMPTY_AUTO_ENABLE_PROVIDER = {
15030
14477
  };
15031
14478
  class DefaultPluginService {
15032
14479
  constructor(autoEnablePlugins = EMPTY_AUTO_ENABLE_PROVIDER, deps = {}) {
15033
- var _a, _b, _c;
15034
- this.autoEnablePlugins = autoEnablePlugins, this.onStartupFinishedPlugin = [], this.onRegisterPlugin = [], this.actived = !1, this.pluginRegistry = null !== (_a = deps.pluginRegistry) && void 0 !== _a ? _a : new PluginRegistry(), this.autoEnablePlugins = null !== (_c = null !== (_b = deps.autoEnablePlugins) && void 0 !== _b ? _b : this.autoEnablePlugins) && void 0 !== _c ? _c : EMPTY_AUTO_ENABLE_PROVIDER;
14480
+ var _a;
14481
+ this.autoEnablePlugins = autoEnablePlugins, this.onStartupFinishedPlugin = [], this.onRegisterPlugin = [], this.actived = !1, this.pluginRegistry = null !== (_a = deps.pluginRegistry) && void 0 !== _a ? _a : new PluginRegistry();
15035
14482
  }
15036
14483
  active(stage, params) {
15037
14484
  this.stage = stage, this.actived = !0;
@@ -15180,29 +14627,28 @@ const globalBounds = new AABBBounds();
15180
14627
  class DirtyBoundsPlugin {
15181
14628
  constructor() {
15182
14629
  this.name = "DirtyBoundsPlugin", this.activeEvent = "onRegister", this._uid = Generator.GenAutoIncrementId(), this.key = this.name + this._uid, this.dirtyBoundsHooksRegistered = !1, this.handlePaintOnlyUpdate = graphic => {
15183
- var _a, _b, _c, _d;
14630
+ var _a;
15184
14631
  const stage = this.pluginService.stage;
15185
14632
  if (!stage || stage !== graphic.stage || !stage.renderCount) return;
15186
14633
  const owner = null !== (_a = graphic.glyphHost) && void 0 !== _a ? _a : graphic;
15187
14634
  if (!(owner._updateTag & UpdateTag.UPDATE_PAINT) || owner._updateTag & UpdateTag.UPDATE_BOUNDS) return;
15188
14635
  const ownerBounds = this.ensurePaintDirtyBoundsCache(owner);
15189
- ownerBounds && !ownerBounds.empty() && stage.dirty(ownerBounds), null === (_b = owner.clearUpdatePaintTag) || void 0 === _b || _b.call(owner);
14636
+ ownerBounds && !ownerBounds.empty() && stage.dirty(ownerBounds), owner.clearUpdatePaintTag();
15190
14637
  const shadowRoot = owner.shadowRoot;
15191
14638
  if (!shadowRoot) return;
15192
14639
  const shadowBounds = this.ensurePaintDirtyBoundsCache(shadowRoot);
15193
- shadowBounds && !shadowBounds.empty() && stage.dirty(shadowBounds), null === (_d = (_c = shadowRoot).clearUpdatePaintTag) || void 0 === _d || _d.call(_c);
14640
+ shadowBounds && !shadowBounds.empty() && stage.dirty(shadowBounds), shadowRoot.clearUpdatePaintTag();
15194
14641
  };
15195
14642
  }
15196
14643
  ensurePaintDirtyBoundsCache(graphic) {
15197
- var _a, _b;
14644
+ var _a;
15198
14645
  const owner = graphic;
15199
- owner._AABBBounds && "function" == typeof owner._AABBBounds.empty && !owner._AABBBounds.empty() || "function" != typeof owner.doUpdateAABBBounds || owner.doUpdateAABBBounds("imprecise" === (null === (_a = owner.attribute) || void 0 === _a ? void 0 : _a.boundsMode));
15200
- return owner._globalAABBBounds && "function" == typeof owner._globalAABBBounds.empty && !owner._globalAABBBounds.empty() || "function" != typeof owner.tryUpdateGlobalAABBBounds || owner.tryUpdateGlobalAABBBounds(), null !== (_b = owner._globalAABBBounds) && void 0 !== _b ? _b : owner.globalAABBBounds;
14646
+ return owner._AABBBounds.empty() && owner.doUpdateAABBBounds("imprecise" === (null === (_a = owner.attribute) || void 0 === _a ? void 0 : _a.boundsMode)), owner._globalAABBBounds && !owner._globalAABBBounds.empty() || owner.tryUpdateGlobalAABBBounds(), owner._globalAABBBounds;
15201
14647
  }
15202
14648
  getRemoveDirtyBounds(graphic) {
15203
14649
  var _a;
15204
14650
  const cachedBounds = (null !== (_a = graphic.glyphHost) && void 0 !== _a ? _a : graphic)._globalAABBBounds;
15205
- if (cachedBounds && "function" == typeof cachedBounds.empty && !cachedBounds.empty()) return cachedBounds;
14651
+ if (cachedBounds && !cachedBounds.empty()) return cachedBounds;
15206
14652
  }
15207
14653
  registerDirtyBoundsHooks(stage) {
15208
14654
  this.dirtyBoundsHooksRegistered || (stage.graphicService.hooks.onAttributeUpdate.tap(this.key, this.handlePaintOnlyUpdate), stage.graphicService.hooks.beforeUpdateAABBBounds.tap(this.key, (graphic, stage, willUpdate, bounds) => {
@@ -15255,256 +14701,6 @@ function getCurrentEnv() {
15255
14701
  return isBrowserEnv() ? "browser" : "node";
15256
14702
  }
15257
14703
 
15258
- var __awaiter$4 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
15259
- return new (P || (P = Promise))(function (resolve, reject) {
15260
- function fulfilled(value) {
15261
- try {
15262
- step(generator.next(value));
15263
- } catch (e) {
15264
- reject(e);
15265
- }
15266
- }
15267
- function rejected(value) {
15268
- try {
15269
- step(generator.throw(value));
15270
- } catch (e) {
15271
- reject(e);
15272
- }
15273
- }
15274
- function step(result) {
15275
- var value;
15276
- result.done ? resolve(result.value) : (value = result.value, value instanceof P ? value : new P(function (resolve) {
15277
- resolve(value);
15278
- })).then(fulfilled, rejected);
15279
- }
15280
- step((generator = generator.apply(thisArg, _arguments || [])).next());
15281
- });
15282
- };
15283
- function isRenderableGraphic(graphic) {
15284
- return !!graphic.stage && "released" !== graphic.releaseStatus;
15285
- }
15286
- function createTargetStatesKey(targetStates) {
15287
- return targetStates.length ? targetStates.join("|") : "__clear__";
15288
- }
15289
- function createIntentKey(contextOwnerId, configFingerprint, targetStatesKey) {
15290
- return `${contextOwnerId}:${configFingerprint}:${targetStatesKey}`;
15291
- }
15292
- function hasMeaningfulDeferredConfig(config) {
15293
- const normalized = normalizeDeferredStateOwnerConfig(config);
15294
- return !!normalized && (null != normalized.localEnabled || null != normalized.deferred);
15295
- }
15296
- function getGraphicCompiledDefinitions(graphic) {
15297
- const graphicAny = graphic;
15298
- if ("function" == typeof graphicAny.resolveEffectiveCompiledDefinitions) {
15299
- const result = graphicAny.resolveEffectiveCompiledDefinitions();
15300
- return {
15301
- compiledDefinitions: result.compiledDefinitions,
15302
- stateProxyEligibility: result.stateProxyEligibility
15303
- };
15304
- }
15305
- return {};
15306
- }
15307
- function getCurrentStateNames(graphic) {
15308
- var _a, _b;
15309
- return null !== (_b = null === (_a = graphic.currentStates) || void 0 === _a ? void 0 : _a.slice()) && void 0 !== _b ? _b : [];
15310
- }
15311
- class StateBatchScheduler {
15312
- constructor(stage, perfMonitor) {
15313
- this.stage = stage, this.perfMonitor = perfMonitor, this.jobsByIntentKey = new Map(), this.pendingIntentByGraphic = new Map(), this.nextJobId = 1, this.runningJobs = new Map();
15314
- }
15315
- schedule(graphics, targetStates) {
15316
- const batchOperation = graphics.length > 1;
15317
- graphics.forEach(graphic => {
15318
- const eligibility = this.resolveEligibility(graphic, targetStates, batchOperation, !0);
15319
- if ("reason" in eligibility) return this.removeGraphicFromPending(graphic), void ("graphic_unavailable" !== eligibility.reason && this.commitSynchronously(graphic, targetStates));
15320
- this.enqueueDeferredIntent(graphic, targetStates, eligibility.context, eligibility.targetStatesKey);
15321
- });
15322
- }
15323
- release() {
15324
- var _a;
15325
- this.jobsByIntentKey.forEach(job => {
15326
- job.status = "cancelled";
15327
- }), this.jobsByIntentKey.clear(), this.pendingIntentByGraphic.clear(), this.runningJobs.clear(), null === (_a = this.perfMonitor) || void 0 === _a || _a.updateBatchPending(0);
15328
- }
15329
- resolveEligibility(graphic, targetStates, batchOperation, recordObservability) {
15330
- var _a, _b, _c, _d, _e, _f;
15331
- if (!isRenderableGraphic(graphic)) return recordObservability && (null === (_a = this.perfMonitor) || void 0 === _a || _a.recordDeferredIneligible("graphic_unavailable")), {
15332
- eligible: !1,
15333
- reason: "graphic_unavailable"
15334
- };
15335
- if (!batchOperation) return recordObservability && (null === (_b = this.perfMonitor) || void 0 === _b || _b.recordDeferredIneligible("non_batch_operation")), {
15336
- eligible: !1,
15337
- reason: "non_batch_operation"
15338
- };
15339
- const context = this.resolveDeferredContext(graphic);
15340
- if (!context) return recordObservability && (null === (_c = this.perfMonitor) || void 0 === _c || _c.recordDeferredIneligible("graphic_unavailable")), {
15341
- eligible: !1,
15342
- reason: "graphic_unavailable"
15343
- };
15344
- if (!context.config.enabled) {
15345
- const normalizedOwnerConfig = normalizeDeferredStateOwnerConfig(context.contextOwner.deferredStateConfig),
15346
- reason = !1 === (null == normalizedOwnerConfig ? void 0 : normalizedOwnerConfig.localEnabled) ? "context_disabled" : "config_disabled";
15347
- return recordObservability && (null === (_d = this.perfMonitor) || void 0 === _d || _d.recordDeferredIneligible(reason)), {
15348
- eligible: !1,
15349
- reason: reason
15350
- };
15351
- }
15352
- const classification = this.classifyGraphicTargetStates(graphic, targetStates);
15353
- return classification.reason ? (recordObservability && (null === (_e = this.perfMonitor) || void 0 === _e || _e.recordDeferredIneligible(classification.reason)), {
15354
- eligible: !1,
15355
- reason: classification.reason
15356
- }) : classification.category !== UpdateCategory.PAINT ? (recordObservability && (null === (_f = this.perfMonitor) || void 0 === _f || _f.recordDeferredIneligible("mixed_update_category")), {
15357
- eligible: !1,
15358
- reason: "mixed_update_category"
15359
- }) : {
15360
- eligible: !0,
15361
- context: context,
15362
- targetStatesKey: createTargetStatesKey(targetStates)
15363
- };
15364
- }
15365
- resolveDeferredContext(graphic) {
15366
- var _a;
15367
- const stage = graphic.stage;
15368
- if (!stage) return;
15369
- let owner = stage,
15370
- config = normalizeDeferredStateConfig(void 0);
15371
- const ownerConfigs = [stage],
15372
- parents = [];
15373
- let parent = graphic.parent;
15374
- for (; parent && parent !== stage;) parents.push(parent), parent = parent.parent;
15375
- parents.reverse().forEach(current => ownerConfigs.push(current)), ownerConfigs.forEach(current => {
15376
- const deferredStateConfig = normalizeDeferredStateOwnerConfig(current.deferredStateConfig);
15377
- deferredStateConfig && (deferredStateConfig.deferred && (config = Object.assign(Object.assign({}, config), deferredStateConfig.deferred)), null != deferredStateConfig.localEnabled && (config.enabled = deferredStateConfig.localEnabled), hasMeaningfulDeferredConfig(current.deferredStateConfig) && (owner = current));
15378
- });
15379
- const normalized = normalizeDeferredStateConfig(config);
15380
- return {
15381
- contextOwner: owner,
15382
- contextOwnerId: null !== (_a = owner._uid) && void 0 !== _a ? _a : 0,
15383
- config: normalized,
15384
- configFingerprint: fingerprintDeferredStateConfig(normalized)
15385
- };
15386
- }
15387
- classifyGraphicTargetStates(graphic, targetStates) {
15388
- const {
15389
- compiledDefinitions: compiledDefinitions,
15390
- stateProxyEligibility: stateProxyEligibility
15391
- } = getGraphicCompiledDefinitions(graphic),
15392
- candidateStates = Array.from(new Set([...getCurrentStateNames(graphic), ...targetStates]));
15393
- let category = UpdateCategory.NONE;
15394
- return candidateStates.forEach(stateName => {
15395
- if (null == stateProxyEligibility ? void 0 : stateProxyEligibility(stateName)) return void (category = UpdateCategory.NONE);
15396
- const definition = null == compiledDefinitions ? void 0 : compiledDefinitions.get(stateName);
15397
- definition && (definition.hasResolver && 0 === definition.affectedKeys.size ? category = UpdateCategory.NONE : category |= classifyAffectedKeys(definition.affectedKeys));
15398
- }), candidateStates.some(stateName => null == stateProxyEligibility ? void 0 : stateProxyEligibility(stateName)) || candidateStates.some(stateName => {
15399
- const definition = null == compiledDefinitions ? void 0 : compiledDefinitions.get(stateName);
15400
- return !!(null == definition ? void 0 : definition.hasResolver) && 0 === definition.affectedKeys.size;
15401
- }) ? {
15402
- category: UpdateCategory.NONE,
15403
- reason: "resolver_unstable_keys"
15404
- } : {
15405
- category: category === UpdateCategory.NONE ? UpdateCategory.PAINT : category
15406
- };
15407
- }
15408
- enqueueDeferredIntent(graphic, targetStates, context, targetStatesKey) {
15409
- var _a, _b, _c, _d, _e, _f;
15410
- const nextIntentKey = createIntentKey(context.contextOwnerId, context.configFingerprint, targetStatesKey),
15411
- prevIntentKey = this.pendingIntentByGraphic.get(graphic);
15412
- if (prevIntentKey === nextIntentKey) return void (null === (_a = this.perfMonitor) || void 0 === _a || _a.incrementCounter("deferredJobsCoalesced"));
15413
- prevIntentKey && this.removeGraphicFromIntentJob(graphic, prevIntentKey);
15414
- let job = this.jobsByIntentKey.get(nextIntentKey);
15415
- job ? null === (_d = this.perfMonitor) || void 0 === _d || _d.incrementCounter("deferredJobsCoalesced") : (job = {
15416
- id: this.nextJobId++,
15417
- kind: "apply_states",
15418
- intentKey: nextIntentKey,
15419
- status: "pending",
15420
- targetStates: [...targetStates],
15421
- targetStatesKey: targetStatesKey,
15422
- pendingGraphics: new Set(),
15423
- orderedGraphics: [],
15424
- config: context.config,
15425
- contextOwner: context.contextOwner,
15426
- contextOwnerId: context.contextOwnerId,
15427
- configFingerprint: context.configFingerprint,
15428
- createdAt: Date.now(),
15429
- processedCount: 0
15430
- }, this.jobsByIntentKey.set(nextIntentKey, job), null === (_b = this.perfMonitor) || void 0 === _b || _b.incrementCounter("deferredJobsCreated"), null === (_c = this.perfMonitor) || void 0 === _c || _c.updateBatchPending(this.jobsByIntentKey.size)), job.pendingGraphics.has(graphic) || (job.pendingGraphics.add(graphic), job.orderedGraphics.push(graphic), this.pendingIntentByGraphic.set(graphic, nextIntentKey), null === (_e = this.perfMonitor) || void 0 === _e || _e.recordAllocation("batchEntriesCreated"), null === (_f = this.perfMonitor) || void 0 === _f || _f.updateMaxGraphicsInJob(job.pendingGraphics.size)), this.ensureJobRunning(job);
15431
- }
15432
- removeGraphicFromPending(graphic) {
15433
- const prevIntentKey = this.pendingIntentByGraphic.get(graphic);
15434
- prevIntentKey && this.removeGraphicFromIntentJob(graphic, prevIntentKey);
15435
- }
15436
- removeGraphicFromIntentJob(graphic, intentKey) {
15437
- var _a, _b, _c;
15438
- const job = this.jobsByIntentKey.get(intentKey);
15439
- job ? (job.pendingGraphics.delete(graphic), this.pendingIntentByGraphic.get(graphic) === intentKey && this.pendingIntentByGraphic.delete(graphic), 0 === job.pendingGraphics.size && "completed" !== job.status && (job.status = "cancelled", this.jobsByIntentKey.delete(intentKey), null === (_a = this.perfMonitor) || void 0 === _a || _a.incrementCounter("deferredJobsCancelled"), null === (_b = this.perfMonitor) || void 0 === _b || _b.recordEvent("deferred-job-cancel", {
15440
- intentKey: intentKey,
15441
- jobId: job.id
15442
- }), null === (_c = this.perfMonitor) || void 0 === _c || _c.updateBatchPending(this.jobsByIntentKey.size))) : this.pendingIntentByGraphic.delete(graphic);
15443
- }
15444
- ensureJobRunning(job) {
15445
- if (this.runningJobs.has(job.intentKey)) return;
15446
- const runner = this.runJob(job).then(() => {
15447
- this.runningJobs.delete(job.intentKey);
15448
- }, () => {
15449
- this.runningJobs.delete(job.intentKey);
15450
- });
15451
- this.runningJobs.set(job.intentKey, runner);
15452
- }
15453
- runJob(job) {
15454
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
15455
- return __awaiter$4(this, void 0, void 0, function* () {
15456
- if ("cancelled" === job.status) return;
15457
- if (yield this.waitForNextFrame(), "cancelled" === job.status) return;
15458
- job.status = "running", null === (_a = this.perfMonitor) || void 0 === _a || _a.recordEvent("deferred-job-start", {
15459
- intentKey: job.intentKey,
15460
- jobId: job.id
15461
- });
15462
- let index = 0,
15463
- frameStart = performance.now(),
15464
- processedInFrame = 0,
15465
- committedInSlice = 0;
15466
- for (; index < job.orderedGraphics.length;) {
15467
- if ("cancelled" === job.status) return;
15468
- processedInFrame > 0 && (processedInFrame >= job.config.maxGraphicsPerFrame || performance.now() - frameStart >= job.config.frameBudget) && (null === (_b = this.perfMonitor) || void 0 === _b || _b.incrementCounter("deferredBudgetYields"), null === (_c = this.perfMonitor) || void 0 === _c || _c.recordCost("batchSlice", performance.now() - frameStart), null === (_d = this.perfMonitor) || void 0 === _d || _d.recordEvent("deferred-job-yield", {
15469
- intentKey: job.intentKey,
15470
- jobId: job.id,
15471
- processedInFrame: processedInFrame
15472
- }), committedInSlice > 0 && this.stage.renderNextFrame(), yield this.waitForNextFrame(), frameStart = performance.now(), processedInFrame = 0, committedInSlice = 0);
15473
- const graphic = job.orderedGraphics[index++];
15474
- if (!job.pendingGraphics.has(graphic)) continue;
15475
- if (!isRenderableGraphic(graphic)) {
15476
- job.pendingGraphics.delete(graphic), this.pendingIntentByGraphic.get(graphic) === job.intentKey && this.pendingIntentByGraphic.delete(graphic);
15477
- continue;
15478
- }
15479
- if (this.pendingIntentByGraphic.get(graphic) !== job.intentKey) {
15480
- job.pendingGraphics.delete(graphic);
15481
- continue;
15482
- }
15483
- const nextEligibility = this.resolveEligibility(graphic, job.targetStates, !0, !1);
15484
- if (!nextEligibility.eligible) {
15485
- job.pendingGraphics.delete(graphic), this.pendingIntentByGraphic.delete(graphic), this.commitSynchronously(graphic, job.targetStates);
15486
- continue;
15487
- }
15488
- createIntentKey(nextEligibility.context.contextOwnerId, nextEligibility.context.configFingerprint, nextEligibility.targetStatesKey) === job.intentKey ? (this.commitSynchronously(graphic, job.targetStates), job.pendingGraphics.delete(graphic), this.pendingIntentByGraphic.delete(graphic), job.processedCount += 1, processedInFrame += 1, committedInSlice += 1, null === (_e = this.perfMonitor) || void 0 === _e || _e.incrementCounter("deferredGraphicsCommitted")) : (job.pendingGraphics.delete(graphic), this.pendingIntentByGraphic.delete(graphic), this.enqueueDeferredIntent(graphic, job.targetStates, nextEligibility.context, nextEligibility.targetStatesKey));
15489
- }
15490
- processedInFrame > 0 && (null === (_f = this.perfMonitor) || void 0 === _f || _f.recordCost("batchSlice", performance.now() - frameStart), this.stage.renderNextFrame()), 0 === job.pendingGraphics.size && this.jobsByIntentKey.get(job.intentKey) === job && (job.status = "completed", this.jobsByIntentKey.delete(job.intentKey), null === (_g = this.perfMonitor) || void 0 === _g || _g.incrementCounter("deferredJobsCompleted"), null === (_h = this.perfMonitor) || void 0 === _h || _h.recordEvent("deferred-job-complete", {
15491
- intentKey: job.intentKey,
15492
- jobId: job.id,
15493
- processedCount: job.processedCount
15494
- }), null === (_j = this.perfMonitor) || void 0 === _j || _j.updateBatchPending(this.jobsByIntentKey.size));
15495
- });
15496
- }
15497
- waitForNextFrame() {
15498
- const stageGlobal = this.stage.global;
15499
- return (null == stageGlobal ? void 0 : stageGlobal.getSpecifiedPerformanceRAF) ? stageGlobal.getSpecifiedPerformanceRAF(this.stage.rafId).wait() : new Promise(resolve => {
15500
- null == stageGlobal || stageGlobal.getSpecifiedRequestAnimationFrame(this.stage.rafId)(() => resolve());
15501
- });
15502
- }
15503
- commitSynchronously(graphic, targetStates) {
15504
- isRenderableGraphic(graphic) && (targetStates.length ? graphic.useStates(targetStates, !1) : graphic.clearStates(!1));
15505
- }
15506
- }
15507
-
15508
14704
  const DefaultConfig = {
15509
14705
  WIDTH: 500,
15510
14706
  HEIGHT: 500,
@@ -15621,10 +14817,9 @@ class Stage extends Group {
15621
14817
  main: !0
15622
14818
  })), this.nextFrameRenderLayerSet = new Set(), this.willNextFrameRender = !1, this.theme.onStateDefinitionsChange = () => {
15623
14819
  var _a;
15624
- const definitions = null === (_a = this.theme) || void 0 === _a ? void 0 : _a.stateDefinitions;
15625
- if (!definitions || !Object.keys(definitions).length) return void (this.rootSharedStateScope && (setRootSharedStateScopeThemeDefinitions(this.rootSharedStateScope, definitions), markScopeActiveDescendantsDirty(this.rootSharedStateScope, this)));
15626
- const rootScope = this.ensureRootSharedStateScope(definitions);
15627
- setRootSharedStateScopeThemeDefinitions(rootScope, definitions), markScopeActiveDescendantsDirty(rootScope, this);
14820
+ const definitions = null === (_a = this.theme) || void 0 === _a ? void 0 : _a.stateDefinitions,
14821
+ rootScope = definitions && Object.keys(definitions).length ? this.ensureRootSharedStateScope(definitions) : this.rootSharedStateScope;
14822
+ rootScope && (setRootSharedStateScopeThemeDefinitions(rootScope, definitions), markScopeActiveDescendantsDirty(rootScope, this));
15628
14823
  }, this.renderStyle = params.renderStyle, params.autoRender && this.enableAutoRender(), params.autoRefresh && this.enableAutoRefresh(), !1 === params.disableDirtyBounds && this.enableDirtyBounds(), params.enableHtmlAttribute && this.enableHtmlAttribute(params.enableHtmlAttribute), params.ReactDOM && this.enableReactAttribute(params.ReactDOM), params.enableLayout && this.enableLayout(), this.hooks.beforeRender.tap("constructor", this.beforeRender), this.hooks.afterRender.tap("constructor", this.afterRender), params.beforeRender && this._beforeRenderList.push(params.beforeRender), params.afterRender && this._afterRenderList.push(params.afterRender), this.hooks.afterClearScreen.tap("constructor", this.afterClearScreen), this.hooks.afterClearRect.tap("constructor", this.afterClearRect), this._afterClearScreen = params.afterClearScreen, this._afterClearRect = params.afterClearRect, this.supportInteractiveLayer = !1 !== params.interactiveLayer, params.optimize || (params.optimize = {
15629
14824
  tickRenderMode: "effect"
15630
14825
  }), this.optmize(params.optimize), params.background && isString$1(this._background) && this._background.includes("/") && this.setAttributes({
@@ -15892,18 +15087,6 @@ class Stage extends Group {
15892
15087
  ensureRootSharedStateScope(themeStateDefinitions) {
15893
15088
  return this.rootSharedStateScope ? (this.rootSharedStateScope.ownerStage = this, this.rootSharedStateScope) : (this.rootSharedStateScope = createRootSharedStateScope(this, themeStateDefinitions), this.rootSharedStateScope);
15894
15089
  }
15895
- getStateBatchScheduler() {
15896
- return this._stateBatchScheduler || (this._stateBatchScheduler = new StateBatchScheduler(this, ensureStageStatePerfMonitor(this))), this._stateBatchScheduler;
15897
- }
15898
- scheduleStateBatch(graphics, targetStates) {
15899
- this.getStateBatchScheduler().schedule(graphics, targetStates);
15900
- }
15901
- getStatePerfSnapshot() {
15902
- return ensureStageStatePerfMonitor(this).getSnapshot();
15903
- }
15904
- resetStatePerfSnapshot() {
15905
- ensureStageStatePerfMonitor(this).reset();
15906
- }
15907
15090
  _doRenderInThisFrame() {
15908
15091
  if ("released" === this.releaseStatus) return;
15909
15092
  this.startAnimate();
@@ -15979,12 +15162,12 @@ class Stage extends Group {
15979
15162
  throw new Error("暂不支持");
15980
15163
  }
15981
15164
  release() {
15982
- var _a, _b, _d, _e;
15983
- null === (_a = this._stateBatchScheduler) || void 0 === _a || _a.release(), super.release(), this.hooks.beforeRender.unTap("constructor", this.beforeRender), this.hooks.afterRender.unTap("constructor", this.afterRender), this.eventSystem && this.eventSystem.release(), this.layerService.releaseStage(this), this.pluginService.release(), this.forEach(layer => {
15165
+ var _a, _b, _d;
15166
+ super.release(), this.hooks.beforeRender.unTap("constructor", this.beforeRender), this.hooks.afterRender.unTap("constructor", this.afterRender), this.eventSystem && this.eventSystem.release(), this.layerService.releaseStage(this), this.pluginService.release(), this.forEach(layer => {
15984
15167
  layer.release();
15985
15168
  }), this.interactiveLayer && (this.interactiveLayer.forEachChildren(item => {
15986
15169
  item.setStage && item.setStage(null, null), this.interactiveLayer.removeChild(item);
15987
- }), this.interactiveLayer.release()), this.window.release(), null === (_b = this._ticker) || void 0 === _b || _b.remTimeline(null == this ? void 0 : this.timeline), null === (_d = this._ticker) || void 0 === _d || _d.removeListener("tick", this.afterTickCb), this.params.ticker || null === (_e = this._ticker) || void 0 === _e || _e.release(), this.renderService.renderTreeRoots = [];
15170
+ }), this.interactiveLayer.release()), this.window.release(), null === (_a = this._ticker) || void 0 === _a || _a.remTimeline(null == this ? void 0 : this.timeline), null === (_b = this._ticker) || void 0 === _b || _b.removeListener("tick", this.afterTickCb), this.params.ticker || null === (_d = this._ticker) || void 0 === _d || _d.release(), this.renderService.renderTreeRoots = [];
15988
15171
  }
15989
15172
  setStage(stage) {}
15990
15173
  dirty(b, matrix) {
@@ -20380,24 +19563,16 @@ class BrowserEntry {
20380
19563
  this.context.release();
20381
19564
  }
20382
19565
  }
20383
- function createBrowserApp$1(options = {}) {
19566
+ function createBrowserApp(options = {}) {
20384
19567
  return new BrowserEntry(options);
20385
19568
  }
20386
19569
 
20387
- class NodeEntry extends BrowserEntry {
20388
- constructor(options = {}) {
20389
- super(options);
20390
- }
20391
- }
19570
+ class NodeEntry extends BrowserEntry {}
20392
19571
  function createNodeApp$1(options = {}) {
20393
19572
  return new NodeEntry(options);
20394
19573
  }
20395
19574
 
20396
- class MiniappEntry extends BrowserEntry {
20397
- constructor(options = {}) {
20398
- super(options);
20399
- }
20400
- }
19575
+ class MiniappEntry extends BrowserEntry {}
20401
19576
  function createMiniappApp$1(options = {}) {
20402
19577
  return new MiniappEntry(options);
20403
19578
  }
@@ -21190,7 +20365,7 @@ function mapToCanvasPointForCanvas(nativeEvent) {
21190
20365
  };
21191
20366
  }
21192
20367
 
21193
- var __rest$g = undefined && undefined.__rest || function (s, e) {
20368
+ var __rest$f = undefined && undefined.__rest || function (s, e) {
21194
20369
  var t = {};
21195
20370
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
21196
20371
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -21288,7 +20463,7 @@ class EditModule {
21288
20463
  {
21289
20464
  textConfig = []
21290
20465
  } = _a,
21291
- rest = __rest$g(_a, ["textConfig"]);
20466
+ rest = __rest$f(_a, ["textConfig"]);
21292
20467
  if ("Backspace" === ev.type && !textConfig.length) return;
21293
20468
  let str = ev.data;
21294
20469
  this.isComposing || "Backspace" === ev.type || str || (str = "\n"), this.selectionStartCursorIdx > this.cursorIndex && ([this.cursorIndex, this.selectionStartCursorIdx] = [this.selectionStartCursorIdx, this.cursorIndex]);
@@ -22310,77 +21485,82 @@ function resolveContainerBinding$1(container, serviceIdentifier) {
22310
21485
  return instance;
22311
21486
  }
22312
21487
 
22313
- let loadArcModule = !1;
21488
+ function isBindingContextLoaded(loadedContexts, context) {
21489
+ const key = "object" == typeof context && null !== context || "function" == typeof context ? context : loadedContexts;
21490
+ return !!loadedContexts.has(key) || (loadedContexts.add(key), !1);
21491
+ }
21492
+
21493
+ const loadedArcModuleContexts = new WeakSet();
22314
21494
  function bindArcRenderModule({
22315
21495
  bind: bind
22316
21496
  }) {
22317
- loadArcModule || (loadArcModule = !0, bind(DefaultCanvasArcRender).toSelf().inSingletonScope(), bind(ArcRender).to(DefaultCanvasArcRender).inSingletonScope(), bind(GraphicRender).toService(ArcRender), bind(ArcRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ArcRenderContribution));
21497
+ isBindingContextLoaded(loadedArcModuleContexts, bind) || (bind(DefaultCanvasArcRender).toSelf().inSingletonScope(), bind(ArcRender).to(DefaultCanvasArcRender).inSingletonScope(), bind(GraphicRender).toService(ArcRender), bind(ArcRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ArcRenderContribution));
22318
21498
  }
22319
21499
  const arcModule = bindArcRenderModule;
22320
21500
 
22321
- let loadRectModule = !1;
21501
+ const loadedRectModuleContexts = new WeakSet();
22322
21502
  function bindRectRenderModule({
22323
21503
  bind: bind
22324
21504
  }) {
22325
- loadRectModule || (loadRectModule = !0, bind(DefaultCanvasRectRender).toDynamicValue(({
21505
+ isBindingContextLoaded(loadedRectModuleContexts, bind) || (bind(DefaultCanvasRectRender).toDynamicValue(({
22326
21506
  container: container
22327
21507
  }) => 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));
22328
21508
  }
22329
21509
  const rectModule = bindRectRenderModule;
22330
21510
 
22331
- let loadLineModule = !1;
21511
+ const loadedLineModuleContexts = new WeakSet();
22332
21512
  function bindLineRenderModule({
22333
21513
  bind: bind
22334
21514
  }) {
22335
- loadLineModule || (loadLineModule = !0, bind(DefaultCanvasLineRender).toSelf().inSingletonScope(), bind(DefaultIncrementalCanvasLineRender).toSelf().inSingletonScope(), bind(LineRender).to(DefaultCanvasLineRender).inSingletonScope(), bind(GraphicRender).toService(LineRender));
21515
+ isBindingContextLoaded(loadedLineModuleContexts, bind) || (bind(DefaultCanvasLineRender).toSelf().inSingletonScope(), bind(DefaultIncrementalCanvasLineRender).toSelf().inSingletonScope(), bind(LineRender).to(DefaultCanvasLineRender).inSingletonScope(), bind(GraphicRender).toService(LineRender));
22336
21516
  }
22337
21517
  const lineModule = bindLineRenderModule;
22338
21518
 
22339
- let loadAreaModule = !1;
21519
+ const loadedAreaModuleContexts = new WeakSet();
22340
21520
  function bindAreaRenderModule({
22341
21521
  bind: bind
22342
21522
  }) {
22343
- 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());
21523
+ 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());
22344
21524
  }
22345
21525
  const areaModule = bindAreaRenderModule;
22346
21526
 
22347
- let loadSymbolModule = !1;
21527
+ const loadedSymbolModuleContexts = new WeakSet();
22348
21528
  function bindSymbolRenderModule({
22349
21529
  bind: bind
22350
21530
  }) {
22351
- loadSymbolModule || (loadSymbolModule = !0, bind(DefaultCanvasSymbolRender).toSelf().inSingletonScope(), bind(SymbolRender).to(DefaultCanvasSymbolRender).inSingletonScope(), bind(GraphicRender).toService(SymbolRender), bind(SymbolRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, SymbolRenderContribution));
21531
+ isBindingContextLoaded(loadedSymbolModuleContexts, bind) || (bind(DefaultCanvasSymbolRender).toSelf().inSingletonScope(), bind(SymbolRender).to(DefaultCanvasSymbolRender).inSingletonScope(), bind(GraphicRender).toService(SymbolRender), bind(SymbolRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, SymbolRenderContribution));
22352
21532
  }
22353
21533
  const symbolModule = bindSymbolRenderModule;
22354
21534
 
22355
- let loadCircleModule = !1;
21535
+ const loadedCircleModuleContexts = new WeakSet();
22356
21536
  function bindCircleRenderModule({
22357
21537
  bind: bind
22358
21538
  }) {
22359
- loadCircleModule || (loadCircleModule = !0, bind(DefaultCanvasCircleRender).toSelf().inSingletonScope(), bind(CircleRender).to(DefaultCanvasCircleRender).inSingletonScope(), bind(GraphicRender).toService(CircleRender), bind(CircleRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, CircleRenderContribution));
21539
+ isBindingContextLoaded(loadedCircleModuleContexts, bind) || (bind(DefaultCanvasCircleRender).toSelf().inSingletonScope(), bind(CircleRender).to(DefaultCanvasCircleRender).inSingletonScope(), bind(GraphicRender).toService(CircleRender), bind(CircleRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, CircleRenderContribution));
22360
21540
  }
22361
21541
  const circleModule = bindCircleRenderModule;
22362
21542
 
22363
- let loadTextModule = !1;
21543
+ const loadedTextModuleContexts = new WeakSet();
22364
21544
  function bindTextRenderModule({
22365
21545
  bind: bind
22366
21546
  }) {
22367
- loadTextModule || (loadTextModule = !0, bind(TextRender).to(DefaultCanvasTextRender).inSingletonScope(), bind(GraphicRender).toService(TextRender), bind(TextRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, TextRenderContribution));
21547
+ isBindingContextLoaded(loadedTextModuleContexts, bind) || (bind(TextRender).to(DefaultCanvasTextRender).inSingletonScope(), bind(GraphicRender).toService(TextRender), bind(TextRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, TextRenderContribution));
22368
21548
  }
22369
21549
  const textModule = bindTextRenderModule;
22370
21550
 
22371
- let loadPathModule = !1;
21551
+ const loadedPathModuleContexts = new WeakSet();
22372
21552
  function bindPathRenderModule({
22373
21553
  bind: bind
22374
21554
  }) {
22375
- loadPathModule || (loadPathModule = !0, bind(DefaultCanvasPathRender).toSelf().inSingletonScope(), bind(PathRender).to(DefaultCanvasPathRender).inSingletonScope(), bind(GraphicRender).toService(PathRender), bind(PathRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PathRenderContribution));
21555
+ isBindingContextLoaded(loadedPathModuleContexts, bind) || (bind(DefaultCanvasPathRender).toSelf().inSingletonScope(), bind(PathRender).to(DefaultCanvasPathRender).inSingletonScope(), bind(GraphicRender).toService(PathRender), bind(PathRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PathRenderContribution));
22376
21556
  }
22377
21557
  const pathModule = bindPathRenderModule;
22378
21558
 
22379
- let loadPolygonModule = !1;
21559
+ const loadedPolygonModuleContexts = new WeakSet();
22380
21560
  function bindPolygonRenderModule({
22381
21561
  bind: bind
22382
21562
  }) {
22383
- loadPolygonModule || (loadPolygonModule = !0, bind(PolygonRender).to(DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
21563
+ isBindingContextLoaded(loadedPolygonModuleContexts, bind) || (bind(PolygonRender).to(DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
22384
21564
  }
22385
21565
  const polygonModule = bindPolygonRenderModule;
22386
21566
 
@@ -22421,11 +21601,11 @@ class DefaultCanvasStarRender extends BaseRender {
22421
21601
  }
22422
21602
  }
22423
21603
 
22424
- let loadStarModule = !1;
21604
+ const loadedStarModuleContexts = new WeakSet();
22425
21605
  function bindStarRenderModule({
22426
21606
  bind: bind
22427
21607
  }) {
22428
- loadStarModule || (loadStarModule = !0, bind(DefaultCanvasStarRender).toDynamicValue(({
21608
+ isBindingContextLoaded(loadedStarModuleContexts, bind) || (bind(DefaultCanvasStarRender).toDynamicValue(({
22429
21609
  container: container
22430
21610
  }) => new DefaultCanvasStarRender(createContributionProvider$1(StarRenderContribution, container))).inSingletonScope(), bind(StarRender).toService(DefaultCanvasStarRender), bind(GraphicRender).toService(StarRender));
22431
21611
  }
@@ -22458,11 +21638,11 @@ class DefaultCanvasGlyphRender {
22458
21638
  }
22459
21639
  }
22460
21640
 
22461
- let loadGlyphModule = !1;
21641
+ const loadedGlyphModuleContexts = new WeakSet();
22462
21642
  function bindGlyphRenderModule({
22463
21643
  bind: bind
22464
21644
  }) {
22465
- loadGlyphModule || (loadGlyphModule = !0, bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender));
21645
+ isBindingContextLoaded(loadedGlyphModuleContexts, bind) || (bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender));
22466
21646
  }
22467
21647
  const glyphModule = bindGlyphRenderModule;
22468
21648
 
@@ -22518,19 +21698,19 @@ class DefaultCanvasRichTextRender extends BaseRender {
22518
21698
  }
22519
21699
  }
22520
21700
 
22521
- let loadRichtextModule = !1;
21701
+ const loadedRichtextModuleContexts = new WeakSet();
22522
21702
  function bindRichtextRenderModule({
22523
21703
  bind: bind
22524
21704
  }) {
22525
- loadRichtextModule || (loadRichtextModule = !0, bind(RichTextRender).to(DefaultCanvasRichTextRender).inSingletonScope(), bind(GraphicRender).toService(RichTextRender));
21705
+ isBindingContextLoaded(loadedRichtextModuleContexts, bind) || (bind(RichTextRender).to(DefaultCanvasRichTextRender).inSingletonScope(), bind(GraphicRender).toService(RichTextRender));
22526
21706
  }
22527
21707
  const richtextModule = bindRichtextRenderModule;
22528
21708
 
22529
- let loadImageModule = !1;
21709
+ const loadedImageModuleContexts = new WeakSet();
22530
21710
  function bindImageRenderModule({
22531
21711
  bind: bind
22532
21712
  }) {
22533
- loadImageModule || (loadImageModule = !0, bind(ImageRender).to(DefaultCanvasImageRender).inSingletonScope(), bind(GraphicRender).toService(ImageRender), bind(ImageRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ImageRenderContribution));
21713
+ isBindingContextLoaded(loadedImageModuleContexts, bind) || (bind(ImageRender).to(DefaultCanvasImageRender).inSingletonScope(), bind(GraphicRender).toService(ImageRender), bind(ImageRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ImageRenderContribution));
22534
21714
  }
22535
21715
  const imageModule = bindImageRenderModule;
22536
21716
 
@@ -22657,11 +21837,11 @@ class DefaultCanvasRect3dRender extends Base3dRender {
22657
21837
  }
22658
21838
  }
22659
21839
 
22660
- let loadRect3dModule = !1;
21840
+ const loadedRect3dModuleContexts = new WeakSet();
22661
21841
  function bindRect3dRenderModule({
22662
21842
  bind: bind
22663
21843
  }) {
22664
- loadRect3dModule || (loadRect3dModule = !0, bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender));
21844
+ isBindingContextLoaded(loadedRect3dModuleContexts, bind) || (bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender));
22665
21845
  }
22666
21846
  const rect3dModule = bindRect3dRenderModule;
22667
21847
 
@@ -22786,11 +21966,11 @@ class DefaultCanvasArc3DRender extends BaseRender {
22786
21966
  }
22787
21967
  }
22788
21968
 
22789
- let loadArc3dModule = !1;
21969
+ const loadedArc3dModuleContexts = new WeakSet();
22790
21970
  function bindArc3dRenderModule({
22791
21971
  bind: bind
22792
21972
  }) {
22793
- loadArc3dModule || (loadArc3dModule = !0, bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender));
21973
+ isBindingContextLoaded(loadedArc3dModuleContexts, bind) || (bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender));
22794
21974
  }
22795
21975
  const arc3dModule = bindArc3dRenderModule;
22796
21976
 
@@ -22825,11 +22005,11 @@ class DefaultCanvasPyramid3dRender extends Base3dRender {
22825
22005
  }
22826
22006
  }
22827
22007
 
22828
- let loadPyramid3dModule = !1;
22008
+ const loadedPyramid3dModuleContexts = new WeakSet();
22829
22009
  function bindPyramid3dRenderModule({
22830
22010
  bind: bind
22831
22011
  }) {
22832
- loadPyramid3dModule || (loadPyramid3dModule = !0, bind(Pyramid3dRender).to(DefaultCanvasPyramid3dRender).inSingletonScope(), bind(GraphicRender).toService(Pyramid3dRender));
22012
+ isBindingContextLoaded(loadedPyramid3dModuleContexts, bind) || (bind(Pyramid3dRender).to(DefaultCanvasPyramid3dRender).inSingletonScope(), bind(GraphicRender).toService(Pyramid3dRender));
22833
22013
  }
22834
22014
  const pyramid3dModule = bindPyramid3dRenderModule;
22835
22015
 
@@ -23794,11 +22974,11 @@ var VRenderCore = /*#__PURE__*/Object.freeze({
23794
22974
  configureRuntimeApplicationForApp: configureRuntimeApplicationForApp,
23795
22975
  container: container,
23796
22976
  cornerTangents: cornerTangents,
23797
- createApp: createBrowserApp$1,
22977
+ createApp: createBrowserApp,
23798
22978
  createArc: createArc,
23799
22979
  createArc3d: createArc3d,
23800
22980
  createArea: createArea,
23801
- createBrowserApp: createBrowserApp$1,
22981
+ createBrowserApp: createBrowserApp,
23802
22982
  createCanvasEventTransformer: createCanvasEventTransformer,
23803
22983
  createCircle: createCircle,
23804
22984
  createColor: createColor,
@@ -31541,7 +30721,7 @@ VRichText.Text = function (params) {
31541
30721
  }, params);
31542
30722
  };
31543
30723
 
31544
- var __rest$f = undefined && undefined.__rest || function (s, e) {
30724
+ var __rest$e = undefined && undefined.__rest || function (s, e) {
31545
30725
  var t = {};
31546
30726
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
31547
30727
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -31557,21 +30737,20 @@ function flatten(list, out) {
31557
30737
  function jsx(type, config, ...children) {
31558
30738
  const _a = config || {},
31559
30739
  {
31560
- key: key,
31561
30740
  name: name,
31562
30741
  id: id,
31563
30742
  attribute: attribute,
31564
- stateProxy: stateProxy,
30743
+ states: states,
31565
30744
  animation: animation,
31566
30745
  timeline: timeline
31567
30746
  } = _a,
31568
- props = __rest$f(_a, ["key", "name", "id", "attribute", "stateProxy", "animation", "timeline"]);
30747
+ props = __rest$e(_a, ["name", "id", "attribute", "states", "animation", "timeline"]);
31569
30748
  let c = type;
31570
30749
  isString$1(type) && (c = graphicCreator$1[type]);
31571
30750
  const childrenList = [];
31572
30751
  children.length && flatten(1 === children.length ? children[0] : children, childrenList);
31573
30752
  const g = "Group" === c.name ? new c(attribute) : c(config);
31574
- if (parseToGraphic$1(g, childrenList, props), stateProxy && (g.stateProxy = stateProxy), name && (g.name = name), isArray$1(animation)) {
30753
+ if (parseToGraphic$1(g, childrenList, props), name && (g.name = name), id && (g.id = id), states && (g.states = states), isArray$1(animation)) {
31575
30754
  const animate = g.animate();
31576
30755
  timeline && animate.setTimeline(timeline), animation.forEach(item => {
31577
30756
  animate[item[0]](...item.slice(1));
@@ -31607,7 +30786,7 @@ function decodeReactDom(dom) {
31607
30786
  {
31608
30787
  attribute: attribute,
31609
30788
  children: children,
31610
- stateProxy: stateProxy,
30789
+ states: states,
31611
30790
  id: id,
31612
30791
  name: name
31613
30792
  } = dom.props,
@@ -31615,7 +30794,7 @@ function decodeReactDom(dom) {
31615
30794
  attribute: attribute
31616
30795
  }),
31617
30796
  out = parseToGraphic(g, dom.props, children);
31618
- return out || (stateProxy && (g.stateProxy = stateProxy), g.id = id, g.name = name, parseChildren(children, g), g);
30797
+ return out || (g.id = id, g.name = name, states && (g.states = states), parseChildren(children, g), g);
31619
30798
  }
31620
30799
  function parseChildren(children, g) {
31621
30800
  isArray$1(children) ? children.forEach(item => {
@@ -33016,187 +32195,6 @@ function bindLottieRenderContribution(container) {
33016
32195
  loadLottieModule || (loadLottieModule = !0, container.bind(DefaultCanvasLottieRender).toDynamicValue(() => new DefaultCanvasLottieRender(createContributionProvider(RectRenderContribution, container))).inSingletonScope(), container.bind(GraphicRender).toService(DefaultCanvasLottieRender));
33017
32196
  }
33018
32197
 
33019
- var VRenderKitsRuntime = /*#__PURE__*/Object.freeze({
33020
- __proto__: null,
33021
- BrowserEnvContribution: BrowserEnvContribution,
33022
- CanvasArc3dPicker: CanvasArc3dPicker,
33023
- CanvasArcPicker: CanvasArcPicker,
33024
- CanvasAreaPicker: CanvasAreaPicker,
33025
- CanvasCirclePicker: CanvasCirclePicker,
33026
- CanvasGifImagePicker: CanvasGifImagePicker,
33027
- CanvasGlyphPicker: CanvasGlyphPicker,
33028
- CanvasGroupPicker: CanvasGroupPicker,
33029
- CanvasImagePicker: CanvasImagePicker,
33030
- CanvasLinePicker: CanvasLinePicker,
33031
- CanvasLottiePicker: CanvasLottiePicker,
33032
- CanvasPathPicker: CanvasPathPicker,
33033
- CanvasPickerContribution: CanvasPickerContribution,
33034
- CanvasPolygonPicker: CanvasPolygonPicker,
33035
- CanvasPyramid3dPicker: CanvasPyramid3dPicker,
33036
- CanvasRect3dPicker: CanvasRect3dPicker,
33037
- CanvasRectPicker: CanvasRectPicker,
33038
- CanvasRichTextPicker: CanvasRichTextPicker,
33039
- CanvasStarPicker: CanvasStarPicker,
33040
- CanvasSymbolPicker: CanvasSymbolPicker,
33041
- CanvasTextPicker: CanvasTextPicker,
33042
- DragNDrop: DragNDrop,
33043
- Fragment: Fragment,
33044
- Gesture: Gesture,
33045
- GifImage: GifImage,
33046
- Lottie: Lottie,
33047
- MathArcPicker: MathArcPicker,
33048
- MathAreaPicker: MathAreaPicker,
33049
- MathCirclePicker: MathCirclePicker,
33050
- MathGlyphPicker: MathGlyphPicker,
33051
- MathImagePicker: MathImagePicker,
33052
- MathLinePicker: MathLinePicker,
33053
- MathPathPicker: MathPathPicker,
33054
- MathPickerContribution: MathPickerContribution,
33055
- MathPolygonPicker: MathPolygonPicker,
33056
- MathRectPicker: MathRectPicker,
33057
- MathRichTextPicker: MathRichTextPicker,
33058
- MathSymbolPicker: MathSymbolPicker,
33059
- MathTextPicker: MathTextPicker,
33060
- REACT_TO_CANOPUS_EVENTS: REACT_TO_CANOPUS_EVENTS,
33061
- REACT_TO_CANOPUS_EVENTS_LIST: REACT_TO_CANOPUS_EVENTS_LIST,
33062
- VArc: VArc,
33063
- VArc3d: VArc3d,
33064
- VArea: VArea,
33065
- VCircle: VCircle,
33066
- VGlyph: VGlyph,
33067
- VGroup: VGroup,
33068
- VImage: VImage,
33069
- VLine: VLine,
33070
- VPath: VPath,
33071
- VPolygon: VPolygon,
33072
- VPyramid3d: VPyramid3d,
33073
- VRect: VRect,
33074
- VRect3d: VRect3d,
33075
- VRichText: VRichText,
33076
- VSymbol: VSymbol,
33077
- VText: VText,
33078
- _registerArc: _registerArc,
33079
- alternatingWave: alternatingWave,
33080
- bindArc3dCanvasPickerContribution: bindArc3dCanvasPickerContribution,
33081
- bindArcCanvasPickerContribution: bindArcCanvasPickerContribution,
33082
- bindArcMathPickerContribution: bindArcMathPickerContribution,
33083
- bindAreaCanvasPickerContribution: bindAreaCanvasPickerContribution,
33084
- bindAreaMathPickerContribution: bindAreaMathPickerContribution,
33085
- bindBrowserEnv: bindBrowserEnv,
33086
- bindCircleCanvasPickerContribution: bindCircleCanvasPickerContribution,
33087
- bindCircleMathPickerContribution: bindCircleMathPickerContribution,
33088
- bindFeishuEnv: bindFeishuEnv,
33089
- bindGifImageCanvasPickerContribution: bindGifImageCanvasPickerContribution,
33090
- bindGifImageRenderContribution: bindGifImageRenderContribution,
33091
- bindGlyphCanvasPickerContribution: bindGlyphCanvasPickerContribution,
33092
- bindGlyphMathPickerContribution: bindGlyphMathPickerContribution,
33093
- bindHarmonyEnv: bindHarmonyEnv,
33094
- bindImageCanvasPickerContribution: bindImageCanvasPickerContribution,
33095
- bindImageMathPickerContribution: bindImageMathPickerContribution,
33096
- bindLineCanvasPickerContribution: bindLineCanvasPickerContribution,
33097
- bindLineMathPickerContribution: bindLineMathPickerContribution,
33098
- bindLottieCanvasPickerContribution: bindLottieCanvasPickerContribution,
33099
- bindLottieRenderContribution: bindLottieRenderContribution,
33100
- bindLynxEnv: bindLynxEnv,
33101
- bindMathPicker: bindMathPicker,
33102
- bindNodeEnv: bindNodeEnv,
33103
- bindPathCanvasPickerContribution: bindPathCanvasPickerContribution,
33104
- bindPathMathPickerContribution: bindPathMathPickerContribution,
33105
- bindPolygonCanvasPickerContribution: bindPolygonCanvasPickerContribution,
33106
- bindPolygonMathPickerContribution: bindPolygonMathPickerContribution,
33107
- bindPyramid3dCanvasPickerContribution: bindPyramid3dCanvasPickerContribution,
33108
- bindRect3dCanvasPickerContribution: bindRect3dCanvasPickerContribution,
33109
- bindRectCanvasPickerContribution: bindRectCanvasPickerContribution,
33110
- bindRectMathPickerContribution: bindRectMathPickerContribution,
33111
- bindRichTextMathPickerContribution: bindRichTextMathPickerContribution,
33112
- bindRichtextCanvasPickerContribution: bindRichtextCanvasPickerContribution,
33113
- bindSymbolCanvasPickerContribution: bindSymbolCanvasPickerContribution,
33114
- bindSymbolMathPickerContribution: bindSymbolMathPickerContribution,
33115
- bindTTEnv: bindTTEnv,
33116
- bindTaroEnv: bindTaroEnv,
33117
- bindTextCanvasPickerContribution: bindTextCanvasPickerContribution,
33118
- bindTextMathPickerContribution: bindTextMathPickerContribution,
33119
- bindWxEnv: bindWxEnv,
33120
- centerToCorner: centerToCorner,
33121
- columnCenterToEdge: columnCenterToEdge,
33122
- columnEdgeToCenter: columnEdgeToCenter,
33123
- columnLeftToRight: columnLeftToRight,
33124
- columnRightToLeft: columnRightToLeft,
33125
- cornerToCenter: cornerToCenter,
33126
- createGifImage: createGifImage,
33127
- createImageElement: createImageElement$1,
33128
- createLottie: createLottie,
33129
- decodeReactDom: decodeReactDom,
33130
- diagonalCenterToEdge: diagonalCenterToEdge,
33131
- diagonalTopLeftToBottomRight: diagonalTopLeftToBottomRight,
33132
- initAllEnv: initAllEnv,
33133
- initBrowserEnv: initBrowserEnv,
33134
- initFeishuEnv: initFeishuEnv,
33135
- initHarmonyEnv: initHarmonyEnv,
33136
- initLynxEnv: initLynxEnv,
33137
- initNodeEnv: initNodeEnv,
33138
- initTTEnv: initTTEnv,
33139
- initTaroEnv: initTaroEnv,
33140
- initWxEnv: initWxEnv,
33141
- installBrowserEnvToApp: installBrowserEnvToApp,
33142
- installBrowserPickersToApp: installBrowserPickersToApp,
33143
- installDefaultGraphicsToApp: installDefaultGraphicsToApp,
33144
- installFeishuEnvToApp: installFeishuEnvToApp,
33145
- installHarmonyEnvToApp: installHarmonyEnvToApp,
33146
- installLynxEnvToApp: installLynxEnvToApp,
33147
- installMathPickersToApp: installMathPickersToApp,
33148
- installNodeEnvToApp: installNodeEnvToApp,
33149
- installNodePickersToApp: installNodePickersToApp,
33150
- installTTEnvToApp: installTTEnvToApp,
33151
- installTaroEnvToApp: installTaroEnvToApp,
33152
- installWxEnvToApp: installWxEnvToApp,
33153
- jsx: jsx,
33154
- loadAllEnv: loadAllEnv,
33155
- loadAllModule: loadAllModule,
33156
- loadBrowserEnv: loadBrowserEnv,
33157
- loadFeishuEnv: loadFeishuEnv,
33158
- loadHarmonyEnv: loadHarmonyEnv,
33159
- loadLynxEnv: loadLynxEnv,
33160
- loadMathPicker: loadMathPicker,
33161
- loadNodeEnv: loadNodeEnv,
33162
- loadTTEnv: loadTTEnv,
33163
- loadTaroEnv: loadTaroEnv,
33164
- loadWxEnv: loadWxEnv,
33165
- particleEffect: particleEffect,
33166
- pulseWave: pulseWave,
33167
- randomOpacity: randomOpacity,
33168
- registerArc: registerArc,
33169
- registerArc3d: registerArc3d,
33170
- registerArea: registerArea,
33171
- registerCircle: registerCircle,
33172
- registerGifGraphic: registerGifGraphic,
33173
- registerGifImage: registerGifImage,
33174
- registerGlyph: registerGlyph,
33175
- registerGroup: registerGroup,
33176
- registerImage: registerImage,
33177
- registerLine: registerLine,
33178
- registerPath: registerPath,
33179
- registerPolygon: registerPolygon,
33180
- registerPyramid3d: registerPyramid3d,
33181
- registerRect: registerRect,
33182
- registerRect3d: registerRect3d,
33183
- registerRichtext: registerRichtext,
33184
- registerShadowRoot: registerShadowRoot,
33185
- registerStar: registerStar,
33186
- registerSymbol: registerSymbol,
33187
- registerText: registerText,
33188
- registerWrapText: registerWrapText,
33189
- rippleEffect: rippleEffect,
33190
- rotationScan: rotationScan,
33191
- roughModule: roughModule,
33192
- rowBottomToTop: rowBottomToTop,
33193
- rowCenterToEdge: rowCenterToEdge,
33194
- rowEdgeToCenter: rowEdgeToCenter,
33195
- rowTopToBottom: rowTopToBottom,
33196
- snakeWave: snakeWave,
33197
- spiralEffect: spiralEffect
33198
- });
33199
-
33200
32198
  class Easing {
33201
32199
  constructor() {}
33202
32200
  static linear(t) {
@@ -33431,11 +32429,10 @@ function getAnimationContext(type) {
33431
32429
  }
33432
32430
  function prepareAnimationFrameAttribute(target) {
33433
32431
  const transientTarget = target;
33434
- return transientTarget.attribute || (transientTarget.attribute = {}), transientTarget.attribute === transientTarget.baseAttributes && "function" == typeof transientTarget.detachAttributeFromBaseAttributes && transientTarget.detachAttributeFromBaseAttributes(), transientTarget.attributeMayContainTransientAttrs = !0, transientTarget.attribute;
32432
+ return transientTarget.attribute || (transientTarget.attribute = {}), transientTarget.attribute === transientTarget.baseAttributes && transientTarget.detachAttributeFromBaseAttributes(), transientTarget.attributeMayContainTransientAttrs = !0, transientTarget.attribute;
33435
32433
  }
33436
32434
  function commitAnimationFrameAttribute(target) {
33437
- var _a, _b;
33438
- null === (_b = (_a = target).onAttributeUpdate) || void 0 === _b || _b.call(_a, animateUpdateContext);
32435
+ target.onAttributeUpdate(animateUpdateContext);
33439
32436
  }
33440
32437
  function applyAnimationFrameAttributes(target, attributes) {
33441
32438
  if (!attributes) return;
@@ -33452,11 +32449,9 @@ function applyAnimationFrameNumberAttributes(target, keys, from, to, ratio) {
33452
32449
  commitAnimationFrameAttribute(target);
33453
32450
  }
33454
32451
  function applyAnimationTransientAttributes(target, attributes, type = AttributeUpdateType.ANIMATE_UPDATE) {
33455
- var _a;
33456
32452
  if (!attributes) return;
33457
- const context = getAnimationContext(type),
33458
- transientTarget = target;
33459
- "function" != typeof transientTarget.applyAnimationTransientAttributes ? "function" != typeof transientTarget.applyTransientAttributes ? "function" != typeof transientTarget.setAttributesAndPreventAnimate ? (transientTarget.attribute || (transientTarget.attribute = {}), Object.assign(transientTarget.attribute, attributes), null === (_a = transientTarget.onAttributeUpdate) || void 0 === _a || _a.call(transientTarget, context)) : transientTarget.setAttributesAndPreventAnimate(attributes, !1, context) : transientTarget.applyTransientAttributes(attributes, !1, context) : transientTarget.applyAnimationTransientAttributes(attributes, !1, context);
32453
+ const context = getAnimationContext(type);
32454
+ target.applyAnimationTransientAttributes(attributes, !1, context);
33460
32455
  }
33461
32456
  function applyAppearStartAttributes(target, attributes) {
33462
32457
  applyAnimationTransientAttributes(target, attributes, AttributeUpdateType.ANIMATE_BIND);
@@ -33471,8 +32466,7 @@ class Step {
33471
32466
  constructor(type, props, duration, easing) {
33472
32467
  var _a;
33473
32468
  this._startTime = 0, this._hasFirstRun = !1, this._syncAttributeUpdate = () => {
33474
- var _a, _b, _c, _d, _e, _f;
33475
- null === (_b = (_a = this.target).addUpdateShapeAndBoundsTag) || void 0 === _b || _b.call(_a), null === (_d = (_c = this.target).addUpdatePositionTag) || void 0 === _d || _d.call(_c), null === (_f = (_e = this.target).onAttributeUpdate) || void 0 === _f || _f.call(_e, {
32469
+ this.target.addUpdateShapeAndBoundsTag(), this.target.addUpdatePositionTag(), this.target.onAttributeUpdate({
33476
32470
  type: AttributeUpdateType.ANIMATE_UPDATE
33477
32471
  });
33478
32472
  }, this.type = type, this.props = props, this.duration = duration, this.easing = easing ? "function" == typeof easing ? easing : null !== (_a = Easing[easing]) && void 0 !== _a ? _a : Easing.linear : Easing.linear, "wait" === type && (this.onUpdate = noop), this.id = Generator.GenAutoIncrementId(), this.syncAttributeUpdate = noop;
@@ -33545,15 +32539,10 @@ class Step {
33545
32539
  }
33546
32540
  }
33547
32541
  tryPreventConflict() {
33548
- var _a, _b;
33549
32542
  const animate = this.animate,
33550
32543
  target = this.target,
33551
- forEachTrackedAnimate = null !== (_b = null === (_a = target.forEachTrackedAnimate) || void 0 === _a ? void 0 : _a.bind(target)) && void 0 !== _b ? _b : cb => {
33552
- var _a;
33553
- null === (_a = target.animates) || void 0 === _a || _a.forEach(cb);
33554
- },
33555
32544
  propKeys = this.propKeys;
33556
- forEachTrackedAnimate(a => {
32545
+ target.forEachTrackedAnimate(a => {
33557
32546
  if (a === animate || a.priority > animate.priority || a.priority === 1 / 0) return;
33558
32547
  const fromProps = a.getStartProps();
33559
32548
  let conflictKeys = null;
@@ -33780,19 +32769,13 @@ class FromTo extends ACustomAnimate {
33780
32769
  super(from, to, duration, easing, params), this.from = null != from ? from : {};
33781
32770
  }
33782
32771
  applyTransientFromAttributes() {
33783
- var _a, _b;
33784
- const target = this.target;
33785
- "function" != typeof target.applyTransientAttributes ? (Object.assign(null !== (_a = target.attribute) && void 0 !== _a ? _a : {}, this.from), null === (_b = target.onAttributeUpdate) || void 0 === _b || _b.call(target, {
33786
- type: AttributeUpdateType.ANIMATE_START
33787
- })) : target.applyTransientAttributes(this.from, !1, {
33788
- type: AttributeUpdateType.ANIMATE_START
33789
- });
32772
+ applyAnimationTransientAttributes(this.target, this.from, AttributeUpdateType.ANIMATE_START);
33790
32773
  }
33791
32774
  onBind() {
33792
- var _a, _b, _c, _d, _e;
32775
+ var _a, _b, _c;
33793
32776
  super.onBind(), Object.keys(this.from).forEach(key => {
33794
32777
  null == this.props[key] && (this.props[key] = this.target.getGraphicAttribute(key));
33795
- }), "appear" === (null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.animationState) && (null === (_c = (_b = this.target).applyFinalAttributeToAttribute) || void 0 === _c || _c.call(_b)), !1 !== (null === (_e = null === (_d = this.params) || void 0 === _d ? void 0 : _d.controlOptions) || void 0 === _e ? void 0 : _e.immediatelyApply) && this.applyTransientFromAttributes();
32778
+ }), "appear" === (null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.animationState) && this.target.applyFinalAttributeToAttribute(), !1 !== (null === (_c = null === (_b = this.params) || void 0 === _b ? void 0 : _b.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && this.applyTransientFromAttributes();
33796
32779
  }
33797
32780
  onFirstRun() {
33798
32781
  this.from = Object.assign(Object.assign({}, this.getLastProps()), this.from);
@@ -33853,8 +32836,8 @@ class Animate {
33853
32836
  bind(target) {
33854
32837
  this.target = target;
33855
32838
  const trackerTarget = this.target;
33856
- return "function" == typeof trackerTarget.detachAttributeFromBaseAttributes && trackerTarget.detachAttributeFromBaseAttributes(), "function" == typeof trackerTarget.trackAnimate ? trackerTarget.trackAnimate(this) : (this.target.animates || (this.target.animates = new Map()), this.target.animates.set(this.id, this)), this.onRemove(() => {
33857
- this.stop(), this.__skipRestoreStaticAttributeOnRemove || "function" != typeof trackerTarget.restoreStaticAttribute || trackerTarget.restoreStaticAttribute(), "function" == typeof trackerTarget.untrackAnimate ? trackerTarget.untrackAnimate(this.id) : this.target.animates.delete(this.id);
32839
+ return trackerTarget.detachAttributeFromBaseAttributes(), trackerTarget.trackAnimate(this), this.onRemove(() => {
32840
+ this.stop(), this.__skipRestoreStaticAttributeOnRemove || trackerTarget.restoreStaticAttribute(), trackerTarget.untrackAnimate(this.id);
33858
32841
  }), this.target.onAnimateBind && !this.slience && this.target.onAnimateBind(this), this.target.animationAttribute || (this.target.animationAttribute = {}), this;
33859
32842
  }
33860
32843
  to(props, duration = 300, easing = "linear") {
@@ -33991,8 +32974,7 @@ class Animate {
33991
32974
  if (nextTime < this._startTime) return void (this.currentTime = nextTime);
33992
32975
  if (nextTime >= this._startTime + this._totalDuration) {
33993
32976
  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;
33994
- const trackerTarget = this.target;
33995
- return "function" == typeof (null == trackerTarget ? void 0 : trackerTarget.restoreStaticAttribute) && trackerTarget.restoreStaticAttribute(), void (this.__skipRestoreStaticAttributeOnRemove = !0);
32977
+ return this.target.restoreStaticAttribute(), void (this.__skipRestoreStaticAttributeOnRemove = !0);
33996
32978
  }
33997
32979
  this.status = AnimateStatus.RUNNING, this.currentTime <= this._startTime && this.onStart(), this.currentTime = nextTime;
33998
32980
  let cycleTime = nextTime - this._startTime,
@@ -34684,9 +33666,8 @@ class AnimateExecutor {
34684
33666
  }
34685
33667
  syncFinalAttrsFromContext(graphic) {
34686
33668
  var _a;
34687
- const finalAttrs = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.finalAttrs,
34688
- setFinalAttributes = graphic.setFinalAttributes;
34689
- finalAttrs && "function" == typeof setFinalAttributes && setFinalAttributes.call(graphic, finalAttrs);
33669
+ const finalAttrs = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.finalAttrs;
33670
+ finalAttrs && graphic.setFinalAttributes(finalAttrs);
34690
33671
  }
34691
33672
  executeItem(params, graphic, index = 0, count = 1) {
34692
33673
  if (Array.isArray(params)) {
@@ -34939,8 +33920,7 @@ class GraphicStateExtension {
34939
33920
 
34940
33921
  class AnimateExtension {
34941
33922
  visitTrackedAnimates(cb) {
34942
- const target = this;
34943
- "function" != typeof target.forEachTrackedAnimate ? target.animates && target.animates.forEach(cb) : target.forEachTrackedAnimate(cb);
33923
+ this.forEachTrackedAnimate(cb);
34944
33924
  }
34945
33925
  getAttributes(final = !1) {
34946
33926
  return final && this.finalAttribute ? this.finalAttribute : this.attribute;
@@ -34976,15 +33956,12 @@ class AnimateExtension {
34976
33956
  applyFinalAttributeToAttribute() {
34977
33957
  const finalAttribute = this.getFinalAttribute();
34978
33958
  if (!finalAttribute) return;
34979
- const target = this;
34980
- "function" != typeof target.setAttributesAndPreventAnimate ? console.warn("[AnimateExtension] applyFinalAttributeToAttribute requires target.setAttributesAndPreventAnimate() to avoid committing finalAttribute into base attributes.") : target.setAttributesAndPreventAnimate(finalAttribute, !1, {
33959
+ this.setAttributesAndPreventAnimate(finalAttribute, !1, {
34981
33960
  type: AttributeUpdateType.ANIMATE_BIND
34982
33961
  });
34983
33962
  }
34984
33963
  restoreStaticAttribute() {
34985
- const target = this;
34986
- if ("function" != typeof target._restoreAttributeFromStaticTruth) return "function" == typeof target.onStop ? (console.warn("[AnimateExtension] restoreStaticAttribute is using deprecated target.onStop(); implement _restoreAttributeFromStaticTruth() for explicit transient restore semantics."), void target.onStop()) : void console.warn("[AnimateExtension] restoreStaticAttribute requires target._restoreAttributeFromStaticTruth() or an equivalent transient restore path.");
34987
- target._restoreAttributeFromStaticTruth({
33964
+ this._restoreAttributeFromStaticTruth({
34988
33965
  type: AttributeUpdateType.ANIMATE_END
34989
33966
  });
34990
33967
  }
@@ -35657,7 +34634,7 @@ function buildAnimationStaticCommitAttrs(target, keys, animate, fallbackAttrs) {
35657
34634
  var _a;
35658
34635
  const commitTarget = target,
35659
34636
  contextFinalAttrs = null === (_a = commitTarget.context) || void 0 === _a ? void 0 : _a.finalAttrs,
35660
- finalAttribute = "function" == typeof commitTarget.getFinalAttribute ? commitTarget.getFinalAttribute() : commitTarget.finalAttribute;
34637
+ finalAttribute = commitTarget.getFinalAttribute();
35661
34638
  let commitAttrs = null;
35662
34639
  for (let i = 0; i < keys.length; i++) {
35663
34640
  const key = keys[i];
@@ -35666,9 +34643,8 @@ function buildAnimationStaticCommitAttrs(target, keys, animate, fallbackAttrs) {
35666
34643
  return commitAttrs;
35667
34644
  }
35668
34645
  function commitAnimationStaticAttrs(target, keys, animate, fallbackAttrs) {
35669
- var _a, _b;
35670
34646
  const commitAttrs = buildAnimationStaticCommitAttrs(target, keys, animate, fallbackAttrs);
35671
- return !!commitAttrs && (null === (_b = (_a = target).setFinalAttributes) || void 0 === _b || _b.call(_a, commitAttrs), target.setAttributes(commitAttrs, !1, {
34647
+ return !!commitAttrs && (target.setFinalAttributes(commitAttrs), target.setAttributes(commitAttrs, !1, {
35672
34648
  type: AttributeUpdateType.ANIMATE_END
35673
34649
  }), !0);
35674
34650
  }
@@ -35779,7 +34755,7 @@ class CommonIn extends ACustomAnimate {
35779
34755
  super(from, to, duration, easing, params);
35780
34756
  }
35781
34757
  onBind() {
35782
- var _a, _b, _c, _d, _e;
34758
+ var _a, _b, _c;
35783
34759
  super.onBind();
35784
34760
  const attrs = this.target.getFinalAttribute(),
35785
34761
  fromAttrs = null !== (_a = this.target.attribute) && void 0 !== _a ? _a : {},
@@ -35788,7 +34764,7 @@ class CommonIn extends ACustomAnimate {
35788
34764
  this.keys.forEach(key => {
35789
34765
  var _a, _b, _c;
35790
34766
  to[key] = null !== (_a = null == attrs ? void 0 : attrs[key]) && void 0 !== _a ? _a : 1, from[key] = null !== (_c = null !== (_b = from[key]) && void 0 !== _b ? _b : fromAttrs[key]) && void 0 !== _c ? _c : 0;
35791
- }), null === (_d = (_c = this.target).applyFinalAttributeToAttribute) || void 0 === _d || _d.call(_c), this.props = to, this.propKeys = this.keys, this.from = from, this.to = to, !1 !== (null === (_e = this.params.controlOptions) || void 0 === _e ? void 0 : _e.immediatelyApply) && applyAppearStartAttributes(this.target, from);
34767
+ }), this.target.applyFinalAttributeToAttribute(), this.props = to, this.propKeys = this.keys, this.from = from, this.to = to, !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && applyAppearStartAttributes(this.target, from);
35792
34768
  }
35793
34769
  onUpdate(end, ratio, out) {
35794
34770
  const attrs = {};
@@ -35840,8 +34816,7 @@ class RotateBySphereAnimate extends ACustomAnimate {
35840
34816
  super.onBind(), this.propKeys = ["x", "y", "z", "alpha", "zIndex"];
35841
34817
  }
35842
34818
  onFirstRun() {
35843
- var _a, _b;
35844
- super.onFirstRun(), null === (_b = (_a = this.target).applyFinalAttributeToAttribute) || void 0 === _b || _b.call(_a);
34819
+ super.onFirstRun(), this.target.applyFinalAttributeToAttribute();
35845
34820
  }
35846
34821
  onStart() {
35847
34822
  var _a, _b;
@@ -35850,7 +34825,7 @@ class RotateBySphereAnimate extends ACustomAnimate {
35850
34825
  center: center,
35851
34826
  r: r
35852
34827
  } = "function" == typeof this.params ? this.params() : this.params,
35853
- source = null !== (_a = this.target.finalAttribute) && void 0 !== _a ? _a : this.target.attribute,
34828
+ source = null !== (_a = this.target.getFinalAttribute()) && void 0 !== _a ? _a : this.target.attribute,
35854
34829
  startX = source.x,
35855
34830
  startY = source.y,
35856
34831
  startZ = null !== (_b = source.z) && void 0 !== _b ? _b : 0,
@@ -36049,14 +35024,14 @@ class GrowAngleBase extends ACustomAnimate {
36049
35024
  }
36050
35025
  class GrowAngleIn extends GrowAngleBase {
36051
35026
  onBind() {
36052
- var _a, _b, _c, _d, _e;
35027
+ var _a, _b, _c;
36053
35028
  super.onBind();
36054
35029
  const {
36055
35030
  from: from,
36056
35031
  to: to
36057
35032
  } = growAngleIn(this.target, this.params.options, this.params),
36058
35033
  fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
36059
- this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to, null === (_d = (_c = this.target).applyFinalAttributeToAttribute) || void 0 === _d || _d.call(_c), !1 !== (null === (_e = this.params.controlOptions) || void 0 === _e ? void 0 : _e.immediatelyApply) && applyAppearStartAttributes(this.target, fromAttrs), this.determineUpdateFunction();
35034
+ this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to, this.target.applyFinalAttributeToAttribute(), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && applyAppearStartAttributes(this.target, fromAttrs), this.determineUpdateFunction();
36060
35035
  }
36061
35036
  }
36062
35037
  class GrowAngleOut extends GrowAngleBase {
@@ -36199,14 +35174,14 @@ class GrowCenterIn extends ACustomAnimate {
36199
35174
  super(from, to, duration, easing, params);
36200
35175
  }
36201
35176
  onBind() {
36202
- var _a, _b, _c, _d, _e;
35177
+ var _a, _b, _c;
36203
35178
  super.onBind();
36204
35179
  const {
36205
35180
  from: from,
36206
35181
  to: to
36207
35182
  } = growCenterIn(this.target, this.params.options, this.params),
36208
35183
  fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
36209
- this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to, null === (_d = (_c = this.target).applyFinalAttributeToAttribute) || void 0 === _d || _d.call(_c), !1 !== (null === (_e = this.params.controlOptions) || void 0 === _e ? void 0 : _e.immediatelyApply) && applyAppearStartAttributes(this.target, fromAttrs);
35184
+ this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to, this.target.applyFinalAttributeToAttribute(), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && applyAppearStartAttributes(this.target, fromAttrs);
36210
35185
  }
36211
35186
  onEnd(cb) {
36212
35187
  super.onEnd(cb);
@@ -36304,14 +35279,14 @@ class GrowHeightIn extends ACustomAnimate {
36304
35279
  super(from, to, duration, easing, params);
36305
35280
  }
36306
35281
  onBind() {
36307
- var _a, _b, _c, _d, _e;
35282
+ var _a, _b, _c;
36308
35283
  super.onBind();
36309
35284
  const {
36310
35285
  from: from,
36311
35286
  to: to
36312
35287
  } = growHeightIn(this.target, this.params.options, this.params),
36313
35288
  fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
36314
- this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to, null === (_d = (_c = this.target).applyFinalAttributeToAttribute) || void 0 === _d || _d.call(_c), !1 !== (null === (_e = this.params.controlOptions) || void 0 === _e ? void 0 : _e.immediatelyApply) && applyAppearStartAttributes(this.target, fromAttrs);
35289
+ this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to, this.target.applyFinalAttributeToAttribute(), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && applyAppearStartAttributes(this.target, fromAttrs);
36315
35290
  }
36316
35291
  onEnd(cb) {
36317
35292
  super.onEnd(cb);
@@ -36415,13 +35390,13 @@ class GworPointsBase extends ACustomAnimate {
36415
35390
  }
36416
35391
  class GrowPointsIn extends GworPointsBase {
36417
35392
  onBind() {
36418
- var _a, _b, _c;
35393
+ var _a;
36419
35394
  if (super.onBind(), ["area", "line", "polygon"].includes(this.target.type)) {
36420
35395
  const {
36421
35396
  from: from,
36422
35397
  to: to
36423
35398
  } = growPointsIn(this.target, this.params.options, this.params);
36424
- this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to, null === (_b = (_a = this.target).applyFinalAttributeToAttribute) || void 0 === _b || _b.call(_a), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && applyAppearStartAttributes(this.target, from);
35399
+ this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to, this.target.applyFinalAttributeToAttribute(), !1 !== (null === (_a = this.params.controlOptions) || void 0 === _a ? void 0 : _a.immediatelyApply) && applyAppearStartAttributes(this.target, from);
36425
35400
  } else this.valid = !1;
36426
35401
  }
36427
35402
  }
@@ -36477,13 +35452,13 @@ const changePointsX = (graphic, options, animationParameters) => graphic.getFina
36477
35452
  };
36478
35453
  class GrowPointsXIn extends GworPointsBase {
36479
35454
  onBind() {
36480
- var _a, _b, _c;
35455
+ var _a;
36481
35456
  if (super.onBind(), ["area", "line", "polygon"].includes(this.target.type)) {
36482
35457
  const {
36483
35458
  from: from,
36484
35459
  to: to
36485
35460
  } = growPointsXIn(this.target, this.params.options, this.params);
36486
- this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to, null === (_b = (_a = this.target).applyFinalAttributeToAttribute) || void 0 === _b || _b.call(_a), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && applyAppearStartAttributes(this.target, from);
35461
+ this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to, this.target.applyFinalAttributeToAttribute(), !1 !== (null === (_a = this.params.controlOptions) || void 0 === _a ? void 0 : _a.immediatelyApply) && applyAppearStartAttributes(this.target, from);
36487
35462
  } else this.valid = !1;
36488
35463
  }
36489
35464
  }
@@ -36539,13 +35514,13 @@ const changePointsY = (graphic, options, animationParameters) => graphic.getFina
36539
35514
  };
36540
35515
  class GrowPointsYIn extends GworPointsBase {
36541
35516
  onBind() {
36542
- var _a, _b, _c;
35517
+ var _a;
36543
35518
  if (super.onBind(), ["area", "line", "polygon"].includes(this.target.type)) {
36544
35519
  const {
36545
35520
  from: from,
36546
35521
  to: to
36547
35522
  } = growPointsYIn(this.target, this.params.options, this.params);
36548
- this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to, null === (_b = (_a = this.target).applyFinalAttributeToAttribute) || void 0 === _b || _b.call(_a), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && applyAppearStartAttributes(this.target, from);
35523
+ this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to, this.target.applyFinalAttributeToAttribute(), !1 !== (null === (_a = this.params.controlOptions) || void 0 === _a ? void 0 : _a.immediatelyApply) && applyAppearStartAttributes(this.target, from);
36549
35524
  } else this.valid = !1;
36550
35525
  }
36551
35526
  }
@@ -36650,14 +35625,14 @@ class GrowPointsBase extends ACustomAnimate {
36650
35625
  }
36651
35626
  class GrowRadiusIn extends GrowPointsBase {
36652
35627
  onBind() {
36653
- var _a, _b, _c, _d, _e;
35628
+ var _a, _b, _c;
36654
35629
  super.onBind();
36655
35630
  const {
36656
35631
  from: from,
36657
35632
  to: to
36658
35633
  } = growRadiusIn(this.target, this.params.options, this.params),
36659
35634
  fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
36660
- this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to, null === (_d = (_c = this.target).applyFinalAttributeToAttribute) || void 0 === _d || _d.call(_c), !1 !== (null === (_e = this.params.controlOptions) || void 0 === _e ? void 0 : _e.immediatelyApply) && applyAppearStartAttributes(this.target, fromAttrs);
35635
+ this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to, this.target.applyFinalAttributeToAttribute(), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && applyAppearStartAttributes(this.target, fromAttrs);
36661
35636
  }
36662
35637
  }
36663
35638
  class GrowRadiusOut extends GrowPointsBase {
@@ -36772,14 +35747,14 @@ class GrowWidthIn extends ACustomAnimate {
36772
35747
  super(from, to, duration, easing, params);
36773
35748
  }
36774
35749
  onBind() {
36775
- var _a, _b, _c, _d, _e;
35750
+ var _a, _b, _c;
36776
35751
  super.onBind();
36777
35752
  const {
36778
35753
  from: from,
36779
35754
  to: to
36780
35755
  } = growWidthIn(this.target, this.params.options, this.params),
36781
35756
  fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
36782
- this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to, null === (_d = (_c = this.target).applyFinalAttributeToAttribute) || void 0 === _d || _d.call(_c), !1 !== (null === (_e = this.params.controlOptions) || void 0 === _e ? void 0 : _e.immediatelyApply) && applyAppearStartAttributes(this.target, fromAttrs);
35757
+ this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to, this.target.applyFinalAttributeToAttribute(), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && applyAppearStartAttributes(this.target, fromAttrs);
36783
35758
  }
36784
35759
  onEnd(cb) {
36785
35760
  super.onEnd(cb);
@@ -37543,36 +36518,40 @@ class ScaleIn extends ACustomAnimate {
37543
36518
  super(from, to, duration, easing, params);
37544
36519
  }
37545
36520
  onBind() {
37546
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
36521
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
37547
36522
  let from, to;
37548
36523
  super.onBind();
37549
36524
  const attrs = this.target.getFinalAttribute(),
37550
- fromAttrs = null !== (_a = this.target.attribute) && void 0 !== _a ? _a : {};
37551
- switch (null === (_b = this.params) || void 0 === _b ? void 0 : _b.direction) {
36525
+ fromAttrs = null !== (_a = this.target.attribute) && void 0 !== _a ? _a : {},
36526
+ options = null === (_b = this.params) || void 0 === _b ? void 0 : _b.options,
36527
+ direction = null !== (_d = null === (_c = this.params) || void 0 === _c ? void 0 : _c.direction) && void 0 !== _d ? _d : null == options ? void 0 : options.direction,
36528
+ 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,
36529
+ 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;
36530
+ switch (direction) {
37552
36531
  case "x":
37553
36532
  from = {
37554
- scaleX: null !== (_c = fromAttrs.scaleX) && void 0 !== _c ? _c : 0
36533
+ scaleX: null !== (_q = null != fromScaleX ? fromScaleX : fromAttrs.scaleX) && void 0 !== _q ? _q : 0
37555
36534
  }, to = {
37556
- scaleX: null !== (_d = null == attrs ? void 0 : attrs.scaleX) && void 0 !== _d ? _d : 1
36535
+ scaleX: null !== (_r = null == attrs ? void 0 : attrs.scaleX) && void 0 !== _r ? _r : 1
37557
36536
  }, this._updateFunction = this.updateX;
37558
36537
  break;
37559
36538
  case "y":
37560
36539
  from = {
37561
- scaleY: null !== (_e = fromAttrs.scaleY) && void 0 !== _e ? _e : 0
36540
+ scaleY: null !== (_s = null != fromScaleY ? fromScaleY : fromAttrs.scaleY) && void 0 !== _s ? _s : 0
37562
36541
  }, to = {
37563
- scaleY: null !== (_f = null == attrs ? void 0 : attrs.scaleY) && void 0 !== _f ? _f : 1
36542
+ scaleY: null !== (_t = null == attrs ? void 0 : attrs.scaleY) && void 0 !== _t ? _t : 1
37564
36543
  }, this._updateFunction = this.updateY;
37565
36544
  break;
37566
36545
  default:
37567
36546
  from = {
37568
- scaleX: null !== (_g = fromAttrs.scaleX) && void 0 !== _g ? _g : 0,
37569
- scaleY: null !== (_h = fromAttrs.scaleY) && void 0 !== _h ? _h : 0
36547
+ scaleX: null !== (_u = null != fromScaleX ? fromScaleX : fromAttrs.scaleX) && void 0 !== _u ? _u : 0,
36548
+ scaleY: null !== (_v = null != fromScaleY ? fromScaleY : fromAttrs.scaleY) && void 0 !== _v ? _v : 0
37570
36549
  }, to = {
37571
- scaleX: null !== (_j = null == attrs ? void 0 : attrs.scaleX) && void 0 !== _j ? _j : 1,
37572
- scaleY: null !== (_k = null == attrs ? void 0 : attrs.scaleY) && void 0 !== _k ? _k : 1
36550
+ scaleX: null !== (_w = null == attrs ? void 0 : attrs.scaleX) && void 0 !== _w ? _w : 1,
36551
+ scaleY: null !== (_x = null == attrs ? void 0 : attrs.scaleY) && void 0 !== _x ? _x : 1
37573
36552
  }, this._updateFunction = this.updateXY;
37574
36553
  }
37575
- 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);
36554
+ this.target.applyFinalAttributeToAttribute(), this.props = to, this.from = from, this.to = to, !1 !== (null === (_y = this.params.controlOptions) || void 0 === _y ? void 0 : _y.immediatelyApply) && applyAppearStartAttributes(this.target, from);
37576
36555
  }
37577
36556
  onEnd(cb) {
37578
36557
  super.onEnd(cb);
@@ -38139,9 +37118,7 @@ class Update extends ACustomAnimate {
38139
37118
  const {
38140
37119
  options: options
38141
37120
  } = this.params;
38142
- diffAttrs = filterExcludedChannels(diffAttrs, null == options ? void 0 : options.excludeChannels), this.props = diffAttrs;
38143
- const consumeTransientFromAttrs = this.target.consumeTransientFromAttrsBeforePreventAnimate;
38144
- this.updateFromAttrs = "function" == typeof consumeTransientFromAttrs ? consumeTransientFromAttrs.call(this.target, diffAttrs) : null, this.clipPathSyncKeys = Object.keys(diffAttrs).filter(key => clipPathGeometryAttrs[key]), this.clipPathSyncDisabled = !this.clipPathSyncKeys.length, this.syncParentClipPathToTarget();
37121
+ diffAttrs = filterExcludedChannels(diffAttrs, null == options ? void 0 : options.excludeChannels), this.props = diffAttrs, this.updateFromAttrs = this.target.consumeTransientFromAttrsBeforePreventAnimate(diffAttrs), this.clipPathSyncKeys = Object.keys(diffAttrs).filter(key => clipPathGeometryAttrs[key]), this.clipPathSyncDisabled = !this.clipPathSyncKeys.length, this.syncParentClipPathToTarget();
38145
37122
  }
38146
37123
  trySyncStartProps() {
38147
37124
  const updateFromAttrs = this.updateFromAttrs;
@@ -38159,7 +37136,7 @@ class Update extends ACustomAnimate {
38159
37136
  this.runInterpolateUpdate(this.fromProps, this.props, easedRatio), this.syncParentClipPathToTarget(), this.onUpdate(end, easedRatio, out);
38160
37137
  }
38161
37138
  syncParentClipPathToTarget() {
38162
- var _a, _b, _c, _d;
37139
+ var _a, _b;
38163
37140
  if (this.clipPathSyncDisabled) return;
38164
37141
  const target = this.target,
38165
37142
  parent = target.parent,
@@ -38170,20 +37147,19 @@ class Update extends ACustomAnimate {
38170
37147
  const clipGraphic = path[childIndex];
38171
37148
  if (!(null == clipGraphic ? void 0 : clipGraphic.attribute) || clipGraphic.type !== target.type || !this.isClipPathStaticTarget(clipGraphic)) return;
38172
37149
  const syncAttrs = this.buildClipPathTransientAttrs(clipGraphic);
38173
- syncAttrs && (applyAnimationFrameAttributes(clipGraphic, syncAttrs), null === (_c = clipGraphic.addUpdatePositionTag) || void 0 === _c || _c.call(clipGraphic), null === (_d = clipGraphic.addUpdateShapeAndBoundsTag) || void 0 === _d || _d.call(clipGraphic));
37150
+ syncAttrs && (applyAnimationFrameAttributes(clipGraphic, syncAttrs), clipGraphic.addUpdatePositionTag(), clipGraphic.addUpdateShapeAndBoundsTag());
38174
37151
  }
38175
37152
  getClipPathSyncChildIndex(parent) {
38176
- var _a;
38177
37153
  if (this.clipPathSyncParent === parent && this.clipPathSyncChildIndex >= 0) return this.clipPathSyncChildIndex;
38178
37154
  const target = this.target;
38179
37155
  let childIndex = -1;
38180
- return null === (_a = parent.forEachChildren) || void 0 === _a || _a.call(parent, (child, index) => child === target && (childIndex = index, !0)), this.clipPathSyncParent = parent, this.clipPathSyncChildIndex = childIndex, childIndex;
37156
+ return parent.forEachChildren((child, index) => child === target && (childIndex = index, !0)), this.clipPathSyncParent = parent, this.clipPathSyncChildIndex = childIndex, childIndex;
38181
37157
  }
38182
37158
  isClipPathStaticTarget(clipGraphic) {
38183
37159
  var _a, _b;
38184
37160
  const target = this.target,
38185
37161
  targetFinalAttrs = this.getTargetFinalAttrs(),
38186
- clipGraphicFinalAttrs = "function" == typeof clipGraphic.getFinalAttribute ? clipGraphic.getFinalAttribute() : clipGraphic.finalAttribute,
37162
+ clipGraphicFinalAttrs = clipGraphic.getFinalAttribute(),
38187
37163
  clipFinalAttrs = null !== (_a = null != clipGraphicFinalAttrs ? clipGraphicFinalAttrs : clipGraphic.baseAttributes) && void 0 !== _a ? _a : clipGraphic.attribute,
38188
37164
  keys = null !== (_b = this.clipPathSyncKeys) && void 0 !== _b ? _b : [];
38189
37165
  return !!(keys.length && targetFinalAttrs && clipFinalAttrs) && keys.every(key => {
@@ -38194,7 +37170,7 @@ class Update extends ACustomAnimate {
38194
37170
  getTargetFinalAttrs() {
38195
37171
  var _a, _b, _c;
38196
37172
  const target = this.target;
38197
- return null !== (_c = null !== (_b = null === (_a = target.context) || void 0 === _a ? void 0 : _a.finalAttrs) && void 0 !== _b ? _b : "function" == typeof target.getFinalAttribute ? target.getFinalAttribute() : target.finalAttribute) && void 0 !== _c ? _c : null;
37173
+ return null !== (_c = null !== (_b = null === (_a = target.context) || void 0 === _a ? void 0 : _a.finalAttrs) && void 0 !== _b ? _b : target.getFinalAttribute()) && void 0 !== _c ? _c : null;
38198
37174
  }
38199
37175
  isSameClipPathValue(a, b) {
38200
37176
  return "number" == typeof a && "number" == typeof b ? Math.abs(a - b) < 1e-8 : a === b;
@@ -38322,13 +37298,13 @@ class MoveBase extends ACustomAnimate {
38322
37298
  }
38323
37299
  class MoveIn extends MoveBase {
38324
37300
  onBind() {
38325
- var _a, _b, _c;
37301
+ var _a;
38326
37302
  super.onBind();
38327
37303
  const {
38328
37304
  from: from,
38329
37305
  to: to
38330
37306
  } = moveIn(this.target, this.params.options, this.params);
38331
- this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to, null === (_b = (_a = this.target).applyFinalAttributeToAttribute) || void 0 === _b || _b.call(_a), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && applyAppearStartAttributes(this.target, from);
37307
+ this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to, this.target.applyFinalAttributeToAttribute(), !1 !== (null === (_a = this.params.controlOptions) || void 0 === _a ? void 0 : _a.immediatelyApply) && applyAppearStartAttributes(this.target, from);
38332
37308
  }
38333
37309
  }
38334
37310
  class MoveOut extends MoveBase {
@@ -38381,13 +37357,13 @@ class RotateBase extends ACustomAnimate {
38381
37357
  }
38382
37358
  class RotateIn extends RotateBase {
38383
37359
  onBind() {
38384
- var _a, _b, _c;
37360
+ var _a;
38385
37361
  super.onBind();
38386
37362
  const {
38387
37363
  from: from,
38388
37364
  to: to
38389
37365
  } = rotateIn(this.target, this.params.options);
38390
- this.props = to, this.propKeys = ["angle"], this.from = from, this.to = to, null === (_b = (_a = this.target).applyFinalAttributeToAttribute) || void 0 === _b || _b.call(_a), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && applyAppearStartAttributes(this.target, from);
37366
+ this.props = to, this.propKeys = ["angle"], this.from = from, this.to = to, this.target.applyFinalAttributeToAttribute(), !1 !== (null === (_a = this.params.controlOptions) || void 0 === _a ? void 0 : _a.immediatelyApply) && applyAppearStartAttributes(this.target, from);
38391
37367
  }
38392
37368
  }
38393
37369
  class RotateOut extends RotateBase {
@@ -39894,7 +38870,7 @@ class AbstractComponent extends Group {
39894
38870
  [key]: value
39895
38871
  }, this.attribute, key, context);
39896
38872
  if (params) return this._setAttributes(params, forceUpdateTag);
39897
- isPlainObject$4(this.attribute[key]) && isPlainObject$4(value) && !isFunction$1(this.attribute[key]) && !isFunction$1(value) ? merge(this.attribute[key], value) : this.attribute[key] = value, this._skipRenderAttributes.includes(key) || this.render(), this.valid = this.isValid(), this.updateShapeAndBoundsTagSetted() || !forceUpdateTag && !this.needUpdateTag(key) ? this.addUpdateBoundTag() : this.addUpdateShapeAndBoundsTag(), this.addUpdatePositionTag(), this.onAttributeUpdate();
38873
+ isPlainObject$3(this.attribute[key]) && isPlainObject$3(value) && !isFunction$1(this.attribute[key]) && !isFunction$1(value) ? merge(this.attribute[key], value) : this.attribute[key] = value, this._skipRenderAttributes.includes(key) || this.render(), this.valid = this.isValid(), this.updateShapeAndBoundsTagSetted() || !forceUpdateTag && !this.needUpdateTag(key) ? this.addUpdateBoundTag() : this.addUpdateShapeAndBoundsTag(), this.addUpdatePositionTag(), this.onAttributeUpdate();
39898
38874
  }
39899
38875
  setAttributes(params, forceUpdateTag, context) {
39900
38876
  return params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params, this._setAttributes(params, forceUpdateTag);
@@ -39907,7 +38883,7 @@ class AbstractComponent extends Group {
39907
38883
  isNil$1(keys) && (keys = Object.keys(params));
39908
38884
  for (let i = 0; i < keys.length; i++) {
39909
38885
  const key = keys[i];
39910
- !isPlainObject$4(this.attribute[key]) || isFunction$1(this.attribute[key]) || isFunction$1(params[key]) ? this.attribute[key] = params[key] : merge(this.attribute[key], params[key]);
38886
+ !isPlainObject$3(this.attribute[key]) || isFunction$1(this.attribute[key]) || isFunction$1(params[key]) ? this.attribute[key] = params[key] : merge(this.attribute[key], params[key]);
39911
38887
  }
39912
38888
  }
39913
38889
  bindEvents() {}
@@ -40692,7 +39668,7 @@ function loadTagComponent() {
40692
39668
  registerGroup(), registerRect(), registerSymbol(), registerRichtext(), registerText();
40693
39669
  }
40694
39670
 
40695
- var __rest$e = undefined && undefined.__rest || function (s, e) {
39671
+ var __rest$d = undefined && undefined.__rest || function (s, e) {
40696
39672
  var t = {};
40697
39673
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
40698
39674
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -40746,7 +39722,7 @@ class Tag extends AbstractComponent {
40746
39722
  const {
40747
39723
  visible: shapeVisible
40748
39724
  } = shape,
40749
- shapeStyle = __rest$e(shape, ["visible"]);
39725
+ shapeStyle = __rest$d(shape, ["visible"]);
40750
39726
  if (isBoolean$1(shapeVisible)) {
40751
39727
  const size = (null == shapeStyle ? void 0 : shapeStyle.size) || 10,
40752
39728
  maxSize = isNumber$2(size) ? size : Math.max(size[0], size[1]);
@@ -40847,7 +39823,7 @@ class Tag extends AbstractComponent {
40847
39823
  const {
40848
39824
  visible: bgVisible
40849
39825
  } = panel,
40850
- backgroundStyle = __rest$e(panel, ["visible"]);
39826
+ backgroundStyle = __rest$d(panel, ["visible"]);
40851
39827
  if (visible && isBoolean$1(bgVisible)) {
40852
39828
  const bgRect = this.createOrUpdateChild("tag-panel", Object.assign(Object.assign({}, backgroundStyle), {
40853
39829
  visible: bgVisible && !!text,
@@ -40929,7 +39905,7 @@ function setPoptipTheme(defaultPoptipTheme) {
40929
39905
  merge(theme.poptip, DEFAULT_THEME, defaultPoptipTheme);
40930
39906
  }
40931
39907
 
40932
- var __rest$d = undefined && undefined.__rest || function (s, e) {
39908
+ var __rest$c = undefined && undefined.__rest || function (s, e) {
40933
39909
  var t = {};
40934
39910
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
40935
39911
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -41038,7 +40014,7 @@ class PopTip extends AbstractComponent {
41038
40014
  visible: bgVisible,
41039
40015
  square: square
41040
40016
  } = panel,
41041
- backgroundStyle = __rest$d(panel, ["visible", "square"]);
40017
+ backgroundStyle = __rest$c(panel, ["visible", "square"]);
41042
40018
  if (square) {
41043
40019
  const maxWH = max(popTipWidth, poptipHeight);
41044
40020
  popTipWidth = maxWH;
@@ -43019,7 +41995,7 @@ function loadCircleAxisGridComponent() {
43019
41995
  registerGroup(), registerPath();
43020
41996
  }
43021
41997
 
43022
- var __rest$c = undefined && undefined.__rest || function (s, e) {
41998
+ var __rest$b = undefined && undefined.__rest || function (s, e) {
43023
41999
  var t = {};
43024
42000
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
43025
42001
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -43126,7 +42102,7 @@ class LineAxis extends AxisBase {
43126
42102
  style: style,
43127
42103
  state: state
43128
42104
  } = _a,
43129
- restLineAttrs = __rest$c(_a, ["startSymbol", "endSymbol", "style", "state"]),
42105
+ restLineAttrs = __rest$b(_a, ["startSymbol", "endSymbol", "style", "state"]),
43130
42106
  lineAttrs = Object.assign({
43131
42107
  startSymbol: startSymbol,
43132
42108
  endSymbol: endSymbol,
@@ -43167,7 +42143,7 @@ class LineAxis extends AxisBase {
43167
42143
  state = {},
43168
42144
  maxWidth: maxWidth
43169
42145
  } = _d,
43170
- restAttrs = __rest$c(_d, ["position", "space", "textStyle", "autoRotate", "shape", "background", "state", "maxWidth"]);
42146
+ restAttrs = __rest$b(_d, ["position", "space", "textStyle", "autoRotate", "shape", "background", "state", "maxWidth"]);
43171
42147
  let percent = .5;
43172
42148
  "start" === position ? percent = 0 : "end" === position && (percent = 1);
43173
42149
  const {
@@ -43269,7 +42245,7 @@ class LineAxis extends AxisBase {
43269
42245
  text: textContent = "",
43270
42246
  maxWidth: maxWidth
43271
42247
  } = _c,
43272
- restAttrs = __rest$c(_c, ["position", "space", "autoRotate", "textStyle", "background", "formatMethod", "text", "maxWidth"]),
42248
+ restAttrs = __rest$b(_c, ["position", "space", "autoRotate", "textStyle", "background", "formatMethod", "text", "maxWidth"]),
43273
42249
  point = this.getTickCoord(0);
43274
42250
  "bottom" === orient || "top" === orient ? point.x = position : point.y = position;
43275
42251
  let tickLength = 0;
@@ -43641,7 +42617,7 @@ function circleAutoLimit(labels, config) {
43641
42617
  });
43642
42618
  }
43643
42619
 
43644
- var __rest$b = undefined && undefined.__rest || function (s, e) {
42620
+ var __rest$a = undefined && undefined.__rest || function (s, e) {
43645
42621
  var t = {};
43646
42622
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
43647
42623
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -43700,7 +42676,7 @@ class CircleAxis extends AxisBase {
43700
42676
  background: background,
43701
42677
  state = {}
43702
42678
  } = _d,
43703
- restAttrs = __rest$b(_d, ["space", "textStyle", "shape", "background", "state"]);
42679
+ restAttrs = __rest$a(_d, ["space", "textStyle", "shape", "background", "state"]);
43704
42680
  let titlePoint = center,
43705
42681
  labelHeight = 0;
43706
42682
  (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));
@@ -43967,7 +42943,7 @@ const getCartesianLabelBounds = (scale, domain, op) => {
43967
42943
  for (let i = 0; i < domain.length; i++) {
43968
42944
  const v = domain[i],
43969
42945
  str = labelFormatter ? labelFormatter(v) : `${v}`;
43970
- if (isPlainObject$4(str)) {
42946
+ if (isPlainObject$3(str)) {
43971
42947
  labelBoundsList = void 0;
43972
42948
  break;
43973
42949
  }
@@ -45259,15 +44235,6 @@ function getAlignOffset(align) {
45259
44235
  return "left" === align ? 0 : "right" === align ? 1 : .5;
45260
44236
  }
45261
44237
 
45262
- var __rest$a = undefined && undefined.__rest || function (s, e) {
45263
- var t = {};
45264
- for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
45265
- if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
45266
- var i = 0;
45267
- 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]]);
45268
- }
45269
- return t;
45270
- };
45271
44238
  class LabelUpdate extends AComponentAnimate {
45272
44239
  onBind() {
45273
44240
  const animator = createComponentAnimator(this.target);
@@ -45283,8 +44250,8 @@ class LabelUpdate extends AComponentAnimate {
45283
44250
  } = this.params,
45284
44251
  diff = {};
45285
44252
  for (const key in curText.attribute) prevText.attribute[key] !== curText.attribute[key] && (diff[key] = curText.attribute[key]);
45286
- const rest = __rest$a(diff, ["text"]);
45287
- animator.animate(prevText, {
44253
+ const rest = Object.assign({}, diff);
44254
+ delete rest.text, animator.animate(prevText, {
45288
44255
  type: "to",
45289
44256
  to: rest,
45290
44257
  duration: duration,
@@ -48746,6 +47713,10 @@ class Marker extends AbstractComponent {
48746
47713
  }
48747
47714
  }
48748
47715
 
47716
+ function getSegmentLineGraphics(segment) {
47717
+ var _a;
47718
+ return segment ? [...(null !== (_a = segment.lines) && void 0 !== _a ? _a : []), segment.line].filter(Boolean) : [];
47719
+ }
48749
47720
  function graphicFadeIn(graphic, delay, duration, easing) {
48750
47721
  var _a, _b, _c, _d, _e;
48751
47722
  if (!graphic) return;
@@ -48764,7 +47735,7 @@ function graphicFadeIn(graphic, delay, duration, easing) {
48764
47735
  }, duration, easing);
48765
47736
  }
48766
47737
  function segmentFadeIn(segment, delay, duration, easing) {
48767
- 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));
47738
+ segment && (graphicFadeIn(segment.startSymbol, delay, duration, easing), getSegmentLineGraphics(segment).forEach(line => graphicFadeIn(line, delay, duration, easing)), graphicFadeIn(segment.endSymbol, delay, duration, easing));
48768
47739
  }
48769
47740
  function tagFadeIn(tag, delay, duration, easing) {
48770
47741
  tag && (graphicFadeIn(tag.getTextShape(), delay, duration, easing), graphicFadeIn(tag.getBgRect(), delay, duration, easing));
@@ -48783,7 +47754,7 @@ function graphicFadeOut(graphic, delay, duration, easing) {
48783
47754
  }, duration, easing));
48784
47755
  }
48785
47756
  function segmentFadeOut(segment, delay, duration, easing) {
48786
- 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));
47757
+ segment && (graphicFadeOut(segment.startSymbol, delay, duration, easing), getSegmentLineGraphics(segment).forEach(line => graphicFadeOut(line, delay, duration, easing)), graphicFadeOut(segment.endSymbol, delay, duration, easing));
48787
47758
  }
48788
47759
  function tagFadeOut(tag, delay, duration, easing) {
48789
47760
  tag && (graphicFadeOut(tag.getTextShape(), delay, duration, easing), graphicFadeOut(tag.getBgRect(), delay, duration, easing));
@@ -48794,12 +47765,14 @@ function commonLineClipIn(line, label, duration, delay, easing) {
48794
47765
  lineDuration = .7 * duration,
48795
47766
  endSymbolDuration = .1 * duration,
48796
47767
  labelDuration = .1 * duration;
48797
- graphicFadeIn(line.startSymbol, delay, startSymbolDuration, easing), line.lines.forEach(line => commitUpdateAnimationTarget(line, {
47768
+ graphicFadeIn(line.startSymbol, delay, startSymbolDuration, easing);
47769
+ const lines = getSegmentLineGraphics(line);
47770
+ lines.forEach(line => commitUpdateAnimationTarget(line, {
48798
47771
  clipRange: 1
48799
47772
  }, {
48800
47773
  clipRange: 0
48801
- })), line.lines.forEach((l, index) => {
48802
- const stepDuration = lineDuration / line.lines.length;
47774
+ })), lines.forEach((l, index) => {
47775
+ const stepDuration = lineDuration / lines.length;
48803
47776
  l.animate().wait(delay + startSymbolDuration + index * stepDuration).to({
48804
47777
  clipRange: 1
48805
47778
  }, stepDuration, easing);
@@ -48856,12 +47829,14 @@ function pointCallIn(itemLine, decorativeLine, item, duration, delay, easing) {
48856
47829
  decorativeDuration = .05 * duration,
48857
47830
  endSymbolDuration = .1 * duration,
48858
47831
  labelDuration = .1 * duration;
48859
- graphicFadeIn(itemLine.startSymbol, delay, startSymbolDuration, easing), itemLine.lines.forEach(line => commitUpdateAnimationTarget(line, {
47832
+ graphicFadeIn(itemLine.startSymbol, delay, startSymbolDuration, easing);
47833
+ const lines = getSegmentLineGraphics(itemLine);
47834
+ lines.forEach(line => commitUpdateAnimationTarget(line, {
48860
47835
  clipRange: 1
48861
47836
  }, {
48862
47837
  clipRange: 0
48863
- })), itemLine.lines.forEach((l, index) => {
48864
- const stepDuration = lineDuration / itemLine.lines.length;
47838
+ })), lines.forEach((l, index) => {
47839
+ const stepDuration = lineDuration / lines.length;
48865
47840
  l.animate().wait(delay + startSymbolDuration + index * stepDuration).to({
48866
47841
  clipRange: 1
48867
47842
  }, stepDuration, easing);
@@ -55873,48 +54848,6 @@ TableSeriesNumber.defaultAttributes = {
55873
54848
  };
55874
54849
 
55875
54850
  const BOOTSTRAP_STATE = Symbol.for('vrender.bootstrap.state');
55876
- const installBrowserEnvToAppWithParams = installBrowserEnvToApp;
55877
- const installNodeEnvToAppWithParams = installNodeEnvToApp;
55878
- const runtimeKits = VRenderKitsRuntime;
55879
- const miniEnvBootstraps = {
55880
- taro: { installEnv: runtimeKits.installTaroEnvToApp, loadEnv: runtimeKits.loadTaroEnv },
55881
- feishu: { installEnv: runtimeKits.installFeishuEnvToApp, loadEnv: runtimeKits.loadFeishuEnv },
55882
- tt: { installEnv: runtimeKits.installTTEnvToApp, loadEnv: runtimeKits.loadTTEnv },
55883
- wx: { installEnv: runtimeKits.installWxEnvToApp, loadEnv: runtimeKits.loadWxEnv },
55884
- lynx: { installEnv: runtimeKits.installLynxEnvToApp, loadEnv: runtimeKits.loadLynxEnv },
55885
- harmony: { installEnv: runtimeKits.installHarmonyEnvToApp, loadEnv: runtimeKits.loadHarmonyEnv }
55886
- };
55887
- const pluginRegistrations = [
55888
- registerFlexLayoutPlugin,
55889
- registerViewTransform3dPlugin,
55890
- registerHtmlAttributePlugin,
55891
- registerReactAttributePlugin,
55892
- registerDirectionalLight,
55893
- registerOrthoCamera
55894
- ];
55895
- const animationRegistrations = [registerCustomAnimate, registerAnimate];
55896
- const legacyGraphicRegistrations = [
55897
- registerArc,
55898
- registerArc3d,
55899
- registerArea,
55900
- registerCircle,
55901
- registerGlyph,
55902
- registerGifImage,
55903
- registerGroup,
55904
- registerImage,
55905
- registerLine,
55906
- registerPath,
55907
- registerPolygon,
55908
- registerPyramid3d,
55909
- registerRect,
55910
- registerRect3d,
55911
- registerRichtext,
55912
- registerShadowRoot,
55913
- registerSymbol,
55914
- registerText,
55915
- registerWrapText,
55916
- registerStar
55917
- ];
55918
54851
  function ensureBootstrap(target, key) {
55919
54852
  var _a;
55920
54853
  const state = (_a = target[BOOTSTRAP_STATE]) !== null && _a !== void 0 ? _a : new Set();
@@ -55925,10 +54858,6 @@ function ensureBootstrap(target, key) {
55925
54858
  state.add(key);
55926
54859
  return true;
55927
54860
  }
55928
- function registerDefaultPipeline() {
55929
- pluginRegistrations.forEach(register => register());
55930
- animationRegistrations.forEach(register => register());
55931
- }
55932
54861
  function createBootstrapEntryKey(entry, prefix) {
55933
54862
  var _a, _b, _c, _d;
55934
54863
  const type = (_a = entry === null || entry === void 0 ? void 0 : entry.type) !== null && _a !== void 0 ? _a : 'unknown';
@@ -55972,6 +54901,52 @@ function syncLegacyPickersToApp(app, pickerContribution) {
55972
54901
  app.registry.picker.register(key, picker);
55973
54902
  });
55974
54903
  }
54904
+
54905
+ const installBrowserEnvToAppWithParams = installBrowserEnvToApp;
54906
+ const installNodeEnvToAppWithParams = installNodeEnvToApp;
54907
+ const miniEnvBootstraps = {
54908
+ taro: { installEnv: installTaroEnvToApp, loadEnv: loadTaroEnv },
54909
+ feishu: { installEnv: installFeishuEnvToApp, loadEnv: loadFeishuEnv },
54910
+ tt: { installEnv: installTTEnvToApp, loadEnv: loadTTEnv },
54911
+ wx: { installEnv: installWxEnvToApp, loadEnv: loadWxEnv },
54912
+ lynx: { installEnv: installLynxEnvToApp, loadEnv: loadLynxEnv },
54913
+ harmony: { installEnv: installHarmonyEnvToApp, loadEnv: loadHarmonyEnv }
54914
+ };
54915
+ const pluginRegistrations = [
54916
+ registerFlexLayoutPlugin,
54917
+ registerViewTransform3dPlugin,
54918
+ registerHtmlAttributePlugin,
54919
+ registerReactAttributePlugin,
54920
+ registerDirectionalLight,
54921
+ registerOrthoCamera
54922
+ ];
54923
+ const animationRegistrations = [registerCustomAnimate, registerAnimate];
54924
+ const legacyGraphicRegistrations = [
54925
+ registerArc,
54926
+ registerArc3d,
54927
+ registerArea,
54928
+ registerCircle,
54929
+ registerGlyph,
54930
+ registerGifImage,
54931
+ registerGroup,
54932
+ registerImage,
54933
+ registerLine,
54934
+ registerPath,
54935
+ registerPolygon,
54936
+ registerPyramid3d,
54937
+ registerRect,
54938
+ registerRect3d,
54939
+ registerRichtext,
54940
+ registerShadowRoot,
54941
+ registerSymbol,
54942
+ registerText,
54943
+ registerWrapText,
54944
+ registerStar
54945
+ ];
54946
+ function registerDefaultPipeline() {
54947
+ pluginRegistrations.forEach(register => register());
54948
+ animationRegistrations.forEach(register => register());
54949
+ }
55975
54950
  function bootstrapVRenderBrowserApp(app, envParams) {
55976
54951
  const target = app;
55977
54952
  if (!ensureBootstrap(target, 'browser')) {
@@ -56027,7 +55002,7 @@ function bootstrapVRenderMiniApp(app, env, envParams) {
56027
55002
  const bootstrap = miniEnvBootstraps[env];
56028
55003
  bootstrap.installEnv(app, envParams);
56029
55004
  installDefaultGraphicsToApp(app);
56030
- runtimeKits.installMathPickersToApp(app);
55005
+ installMathPickersToApp(app);
56031
55006
  bootstrap.loadEnv();
56032
55007
  legacyGraphicRegistrations.forEach(register => register());
56033
55008
  syncLegacyRenderersToApp(app);
@@ -56073,7 +55048,6 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
56073
55048
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
56074
55049
  };
56075
55050
 
56076
- const { createBrowserApp } = VRenderCore;
56077
55051
  function createBrowserVRenderApp(options = {}) {
56078
55052
  const { envParams } = options, entryOptions = __rest(options, ["envParams"]);
56079
55053
  return bootstrapVRenderBrowserApp(createBrowserApp(entryOptions), envParams);
@@ -56109,8 +55083,8 @@ function createNodeVRenderApp(options = {}) {
56109
55083
  return bootstrapVRenderNodeApp(createNodeApp(entryOptions), envParams);
56110
55084
  }
56111
55085
 
56112
- const SHARED_APP_REGISTRY_KEY = Symbol.for('visactor.vrender.sharedAppRegistry');
56113
55086
  const DEFAULT_SHARED_APP_KEY = 'default';
55087
+ const SHARED_APP_REGISTRY_KEY = Symbol.for('visactor.vrender.sharedAppRegistry');
56114
55088
  function getSharedAppRegistry() {
56115
55089
  var _a;
56116
55090
  const target = globalThis;
@@ -56150,36 +55124,8 @@ function releaseSharedAppRecord(env, key, record) {
56150
55124
  removeSharedAppRecord(env, key, record);
56151
55125
  record.releaseApp();
56152
55126
  }
56153
- function createAppForSharedEnv(options) {
56154
- const { env } = options;
56155
- const entryOptions = Object.assign({}, options);
56156
- delete entryOptions.env;
56157
- delete entryOptions.key;
56158
- if (env === 'browser') {
56159
- return createBrowserVRenderApp(entryOptions);
56160
- }
56161
- if (env === 'node') {
56162
- return createNodeVRenderApp(entryOptions);
56163
- }
56164
- if (env === 'taro') {
56165
- return createTaroVRenderApp(entryOptions);
56166
- }
56167
- if (env === 'feishu') {
56168
- return createFeishuVRenderApp(entryOptions);
56169
- }
56170
- if (env === 'tt') {
56171
- return createTTVRenderApp(entryOptions);
56172
- }
56173
- if (env === 'wx') {
56174
- return createWxVRenderApp(entryOptions);
56175
- }
56176
- if (env === 'lynx') {
56177
- return createLynxVRenderApp(entryOptions);
56178
- }
56179
- return createHarmonyVRenderApp(entryOptions);
56180
- }
56181
- function createSharedAppRecord(env, key, options) {
56182
- const app = createAppForSharedEnv(options);
55127
+ function createSharedAppRecord(env, key, options, createApp) {
55128
+ const app = createApp(options);
56183
55129
  const originalRelease = app.release.bind(app);
56184
55130
  const record = {
56185
55131
  app,
@@ -56190,45 +55136,45 @@ function createSharedAppRecord(env, key, options) {
56190
55136
  app.release = () => releaseSharedAppRecord(env, key, record);
56191
55137
  return record;
56192
55138
  }
56193
- function createSharedAppHandle(env, key, record) {
55139
+ function createSharedAppHandle(registryEnv, handleEnv, key, record) {
56194
55140
  let released = false;
56195
55141
  return {
56196
55142
  app: record.app,
56197
- env,
55143
+ env: handleEnv,
56198
55144
  key,
56199
55145
  release() {
56200
55146
  if (released) {
56201
55147
  return;
56202
55148
  }
56203
55149
  released = true;
56204
- const envRegistry = getSharedAppEnvRegistry(env, false);
55150
+ const envRegistry = getSharedAppEnvRegistry(registryEnv, false);
56205
55151
  if ((envRegistry === null || envRegistry === void 0 ? void 0 : envRegistry.get(key)) !== record || record.released) {
56206
55152
  return;
56207
55153
  }
56208
55154
  record.refCount -= 1;
56209
55155
  if (record.refCount <= 0) {
56210
- releaseSharedAppRecord(env, key, record);
55156
+ releaseSharedAppRecord(registryEnv, key, record);
56211
55157
  }
56212
55158
  }
56213
55159
  };
56214
55160
  }
56215
- function acquireSharedVRenderApp(options) {
55161
+ function acquireSharedApp(registryEnv, options, createApp, handleEnv = registryEnv) {
56216
55162
  var _a;
56217
55163
  const key = (_a = options.key) !== null && _a !== void 0 ? _a : DEFAULT_SHARED_APP_KEY;
56218
- const envRegistry = getOrCreateSharedAppEnvRegistry(options.env);
55164
+ const envRegistry = getOrCreateSharedAppEnvRegistry(registryEnv);
56219
55165
  let record = envRegistry.get(key);
56220
55166
  if (record === null || record === void 0 ? void 0 : record.app.released) {
56221
- releaseSharedAppRecord(options.env, key, record);
55167
+ releaseSharedAppRecord(registryEnv, key, record);
56222
55168
  record = undefined;
56223
55169
  }
56224
55170
  if (!record) {
56225
- record = createSharedAppRecord(options.env, key, options);
55171
+ record = createSharedAppRecord(registryEnv, key, options, createApp);
56226
55172
  envRegistry.set(key, record);
56227
55173
  }
56228
55174
  record.refCount += 1;
56229
- return createSharedAppHandle(options.env, key, record);
55175
+ return createSharedAppHandle(registryEnv, handleEnv, key, record);
56230
55176
  }
56231
- function getSharedVRenderApp(env, key = DEFAULT_SHARED_APP_KEY) {
55177
+ function getSharedApp(env, key = DEFAULT_SHARED_APP_KEY) {
56232
55178
  var _a;
56233
55179
  const record = (_a = getSharedAppEnvRegistry(env, false)) === null || _a === void 0 ? void 0 : _a.get(key);
56234
55180
  if (!record || record.released || record.app.released) {
@@ -56236,7 +55182,7 @@ function getSharedVRenderApp(env, key = DEFAULT_SHARED_APP_KEY) {
56236
55182
  }
56237
55183
  return record.app;
56238
55184
  }
56239
- function releaseSharedVRenderApp(env, key = DEFAULT_SHARED_APP_KEY) {
55185
+ function releaseSharedApp(env, key = DEFAULT_SHARED_APP_KEY) {
56240
55186
  var _a;
56241
55187
  const record = (_a = getSharedAppEnvRegistry(env, false)) === null || _a === void 0 ? void 0 : _a.get(key);
56242
55188
  if (record) {
@@ -56244,6 +55190,44 @@ function releaseSharedVRenderApp(env, key = DEFAULT_SHARED_APP_KEY) {
56244
55190
  }
56245
55191
  }
56246
55192
 
55193
+ function createAppForSharedEnv(options) {
55194
+ const { env } = options;
55195
+ const entryOptions = Object.assign({}, options);
55196
+ delete entryOptions.env;
55197
+ delete entryOptions.key;
55198
+ if (env === 'browser') {
55199
+ return createBrowserVRenderApp(entryOptions);
55200
+ }
55201
+ if (env === 'node') {
55202
+ return createNodeVRenderApp(entryOptions);
55203
+ }
55204
+ if (env === 'taro') {
55205
+ return createTaroVRenderApp(entryOptions);
55206
+ }
55207
+ if (env === 'feishu') {
55208
+ return createFeishuVRenderApp(entryOptions);
55209
+ }
55210
+ if (env === 'tt') {
55211
+ return createTTVRenderApp(entryOptions);
55212
+ }
55213
+ if (env === 'wx') {
55214
+ return createWxVRenderApp(entryOptions);
55215
+ }
55216
+ if (env === 'lynx') {
55217
+ return createLynxVRenderApp(entryOptions);
55218
+ }
55219
+ return createHarmonyVRenderApp(entryOptions);
55220
+ }
55221
+ function acquireSharedVRenderApp(options) {
55222
+ return acquireSharedApp(options.env, options, createAppForSharedEnv, options.env);
55223
+ }
55224
+ function getSharedVRenderApp(env, key = DEFAULT_SHARED_APP_KEY) {
55225
+ return getSharedApp(env, key);
55226
+ }
55227
+ function releaseSharedVRenderApp(env, key = DEFAULT_SHARED_APP_KEY) {
55228
+ releaseSharedApp(env, key);
55229
+ }
55230
+
56247
55231
  let browserApp;
56248
55232
  let nodeApp;
56249
55233
  function resolveLegacyApp() {
@@ -56258,6 +55242,6 @@ function createStage(params) {
56258
55242
  return resolveLegacyApp().createStage(params);
56259
55243
  }
56260
55244
 
56261
- const version = "1.1.0-alpha.23";
55245
+ const version = "1.1.0-alpha.25";
56262
55246
 
56263
- export { AComponentAnimate, ACustomAnimate, ARC3D_NUMBER_TYPE, ARC_NUMBER_TYPE, AREA_NUMBER_TYPE, AStageAnimate, AXIS_ELEMENT_NAME, AbstractComponent, AbstractGraphicRender, Animate, AnimateExecutor, AnimateMode, AnimateStatus, Step as AnimateStep, AnimateStepType, AnimationStateManager, AnimationStateStore, AnimationStates, AnimationTransitionRegistry, AppContext, Application, Arc, Arc3d, Arc3dRender, ArcInfo, ArcLabel, ArcRender, ArcRenderContribution, ArcSegment, Area, AreaRender, AreaRenderContribution, AttributeUpdateType, AutoEnablePlugins, AxisStateValue, BaseCanvas, BaseEnvContribution, BasePlayer, BaseRender, BaseRenderContributionTime, BaseWindowHandlerContribution, Basis, BeforeRenderConstribution, BoundsContext, BoundsPicker, BrowserEntry, BrowserEnvContribution, Brush, CIRCLE_NUMBER_TYPE, Canvas3DDrawItemInterceptor, Canvas3DPickItemInterceptor, CanvasArc3dPicker, CanvasArcPicker, CanvasAreaPicker, CanvasCirclePicker, CanvasFactory, CanvasGifImagePicker, CanvasGlyphPicker, CanvasGroupPicker, CanvasImagePicker, CanvasLinePicker, CanvasLottiePicker, CanvasPathPicker, CanvasPickerContribution, CanvasPolygonPicker, CanvasPyramid3dPicker, CanvasRect3dPicker, CanvasRectPicker, CanvasRichTextPicker, CanvasStarPicker, CanvasSymbolPicker, CanvasTextLayout, CanvasTextPicker, CheckBox, Circle, CircleAxis, CircleAxisGrid, CircleCrosshair, CircleRender, CircleRenderContribution, ClipAngleAnimate, ClipDirectionAnimate, ClipGraphicAnimate, ClipIn, ClipOut, ClipRadiusAnimate, ColorContinuousLegend, ColorInterpolate, ColorStore, ColorType, CommonDrawItemInterceptorContribution, CommonRenderContribution, ComponentAnimator, Context2dFactory, ContinuousPlayer, ContributionProvider, ContributionRegistry, ContributionStore, CubicBezierCurve, CurveContext, CurveTypeEnum, CustomEvent, CustomPath2D, CustomSymbolClass, 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_TEXT_FONT_FAMILY$1 as DEFAULT_TEXT_FONT_FAMILY, DEFAULT_TITLE_SPACE, DEFAULT_VALUE_SPACE, DataLabel, DataZoom, DataZoomActiveTag, DebugDrawItemInterceptorContribution, DefaultArcAllocate, DefaultArcAttribute, DefaultArcRenderContribution, DefaultAreaAllocate, DefaultAreaAttribute, DefaultAreaTextureRenderContribution, DefaultAttribute, DefaultBaseBackgroundRenderContribution, DefaultBaseClipRenderAfterContribution, DefaultBaseClipRenderBeforeContribution, DefaultBaseInteractiveRenderContribution, DefaultBaseTextureRenderContribution, DefaultCanvasAllocate, DefaultCanvasArcRender, DefaultCanvasAreaRender, DefaultCanvasCircleRender, DefaultCanvasGroupRender, DefaultCanvasImageRender, DefaultCanvasLineRender, DefaultCanvasPathRender, DefaultCanvasPolygonRender, DefaultCanvasRectRender, DefaultCanvasSymbolRender, DefaultCanvasTextRender, DefaultCircleAllocate, DefaultCircleAttribute, DefaultCircleRenderContribution, DefaultConnectAttribute, DefaultDebugAttribute, DefaultFillStyle, DefaultGlobal, DefaultGlobalPickerService, DefaultGlyphAttribute, DefaultGraphicAllocate, DefaultGraphicMemoryManager, DefaultGraphicService, DefaultGraphicUtil, DefaultGroupAttribute, DefaultGroupBackgroundRenderContribution, DefaultImageAttribute, DefaultImageRenderContribution, DefaultLayerService, DefaultLayout, DefaultLineAllocate, DefaultLineAttribute, DefaultMat4Allocate, DefaultMatrixAllocate, DefaultPathAllocate, DefaultPathAttribute, DefaultPickService, DefaultPickStyle, DefaultPolygonAttribute, DefaultRect3dAttribute, DefaultRectAllocate, DefaultRectAttribute, DefaultRectRenderContribution, DefaultRenderService, DefaultRichTextAttribute, DefaultRichTextIconAttribute, DefaultStarAttribute, DefaultStrokeStyle, DefaultStyle, DefaultSymbolAllocate, DefaultSymbolAttribute, DefaultSymbolClipRangeStrokeRenderContribution, DefaultSymbolRenderContribution, DefaultTextAllocate, DefaultTextAttribute, DefaultTextMeasureContribution, DefaultTextStyle, DefaultTicker, DefaultTimeline, DefaultTransform, DefaultTransformUtil, DefaultWindow, Direction, DirectionEnum, DirectionalLight, DiscreteLegend, DiscretePlayer, Dissolve, Distortion, DragNDrop, DrawContribution, DrawItemInterceptor, DynamicLayerHandlerContribution, Easing, Edge, EditModule, EmptyContext2d, EmptyTip, EnvContribution, EventManager, EventSystem, EventTarget, FORMAT_ALL_TEXT_COMMAND, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, Factory, FadeIn, FadeOut, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, FlexLayoutPlugin, Fragment, FromTo, GLYPH_NUMBER_TYPE, GRAPHIC_UPDATE_TAG_KEY, GROUP_NUMBER_TYPE, GaussianBlur, Generator, Gesture, GifImage, Glitch, GlobalPickerService, Glyph, GlyphRender, GradientParser, Graphic, GraphicCreator$1 as GraphicCreator, GraphicFactory, GraphicPicker, GraphicRender, GraphicService, GraphicStateExtension, GraphicUtil, Grayscale, Group, GroupFadeIn, GroupFadeOut, GroupRender, GroupRenderContribution, GroupTransition, GroupUpdateAABBBoundsMode, GrowAngleIn, GrowAngleOut, GrowCenterIn, GrowCenterOut, GrowHeightIn, GrowHeightOut, GrowIn, GrowOut, GrowPointsIn, GrowPointsOut, GrowPointsXIn, GrowPointsXOut, GrowPointsYIn, GrowPointsYOut, GrowRadiusIn, GrowRadiusOut, GrowWidthIn, GrowWidthOut, HtmlAttributePlugin, IContainPointMode, IDataZoomEvent, IDataZoomInteractiveEvent, IMAGE_NUMBER_TYPE, IMarkAreaLabelPosition, IMarkCommonArcLabelPosition, IMarkLineLabelPosition, IMarkPointItemPosition, IOperateType, Image$1 as Image, ImageRender, ImageRenderContribution, IncreaseCount, IncrementalDrawContribution, Indicator, InputRichText, InputText, InteractiveDrawItemInterceptorContribution, InteractivePickItemInterceptorContribution, InteractiveSubRenderContribution, LEGEND_ELEMENT_NAME, LINE_NUMBER_TYPE, LabelBase, LabelItemAppear, LabelItemDisappear, Layer, LayerFactory, LayerService, LegendEvent, LegendStateValue, Line$1 as Line, LineAxis, LineAxisGrid, LineCrosshair, LineLabel, LineRender, Linear, LinearClosed, LinkPath, Lottie, ManualTicker, MarkArcArea, MarkArcLine, MarkArea, MarkLine, MarkPoint, Mat4Allocate, MathArcPicker, MathAreaPicker, MathCirclePicker, MathGlyphPicker, MathImagePicker, MathLinePicker, MathPathPicker, MathPickerContribution, MathPolygonPicker, MathRectPicker, MathRichTextPicker, MathSymbolPicker, MathTextPicker, MatrixAllocate, MeasureModeEnum, MiniappEntry, MonotoneX, MonotoneY, MorphingPath, MotionPath, MoveIn, MoveOut, MoveRotateIn, MoveRotateOut, MoveScaleIn, MoveScaleOut, MultiToOneMorphingPath, NOWORK_ANIMATE_ATTR, Node, NodeEntry, OrthoCamera, OutputRichText, PATH_NUMBER_TYPE, POLYGON_NUMBER_TYPE, PURE_STYLE_KEY, PYRAMID3D_NUMBER_TYPE, Pager, Particle, Path, PathRender, PathRenderContribution, PerformanceRAF, PickItemInterceptor, PickServiceInterceptor, PickerRegistry, PickerService, Pixelation, PlayerEventEnum, PluginRegistry, PluginService, Polygon, PolygonCrosshair, PolygonRender, PolygonRenderContribution, PolygonSectorCrosshair, PopTip, PoptipAppear, PoptipDisappear, PulseAnimate, Pyramid3d, Pyramid3dRender, REACT_TO_CANOPUS_EVENTS, REACT_TO_CANOPUS_EVENTS_LIST, RECT3D_NUMBER_TYPE, RECT_NUMBER_TYPE, RICHTEXT_NUMBER_TYPE, Radio, RafBasedSTO, ReactAttributePlugin, Rect, Rect3DRender, Rect3d, RectCrosshair, RectLabel, RectRender, RectRenderContribution, ReflectSegContext, RenderSelector, RenderService, RendererRegistry, ResourceLoader, RichText, RichTextEditPlugin, RichTextRender, RotateBySphereAnimate, RotateIn, RotateOut, SLIDER_ELEMENT_NAME, STAR_NUMBER_TYPE, STATUS$1 as STATUS, SVG_ATTRIBUTE_MAP, SVG_ATTRIBUTE_MAP_KEYS, SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS, SYMBOL_NUMBER_TYPE, ScaleIn, ScaleOut, ScrollBar, SectorCrosshair, SegContext, Segment, SeriesNumberCellStateValue, SeriesNumberEvent, ShadowPickServiceInterceptorContribution, ShadowRoot, ShadowRootDrawItemInterceptorContribution, ShadowRootPickItemInterceptorContribution, SizeContinuousLegend, SlideIn, SlideOut, SlideOutRichText, SlideRichText, Slider, SpinIn, SpinOut, SplitRectAfterRenderContribution, SplitRectBeforeRenderContribution, Stage, StageFactory, Star, StarRender, StarRenderContribution, State, StateDefinitionCompiler, StateEngine, StaticLayerHandlerContribution, Step$1 as Step, StepClosed, StoryLabelItem, StreamLight, StrokeIn, StrokeOut, Switch, Symbol$1 as Symbol, SymbolLabel, SymbolRender, SymbolRenderContribution, TEXT_NUMBER_TYPE, TableSeriesNumber, Tag, TagPointsUpdate, Text, TextDirection, TextMeasureContribution, TextRender, TextRenderContribution, Theme, Timeline, Title, Tooltip, TopZIndex, TransformUtil, Update, UpdateTag, VArc, VArc3d, VArea, VCircle, VGlobal, VGlyph, VGroup, VImage, VLine, VPath, VPolygon, VPyramid3d, VRect, VRect3d, VRichText, VSymbol, VTag, VText, VWindow, ViewTransform3dPlugin, VirtualLayerHandlerContribution, WILDCARD, WeatherBox, WindowHandlerContribution, WrapText, XMLParser, _calculateLineHeight, _interpolateColor, _registerArc, acquireSharedVRenderApp, addArcToBezierPath$1 as addArcToBezierPath, addAttributeToPrototype, alignBezierCurves, alignSubpath, alignTextInLine, alternatingWave, angle, angleLabelOrientAttribute, angleTo, application, applyTransformOnBezierCurves, arc3dModule, arcModule, areaModule, bezier, bezierCurversToPath, binarySplitPolygon, bindArc3dCanvasPickerContribution, bindArc3dRenderModule, bindArcCanvasPickerContribution, bindArcMathPickerContribution, bindArcRenderModule, bindAreaCanvasPickerContribution, bindAreaMathPickerContribution, bindAreaRenderModule, bindBrowserEnv, bindCircleCanvasPickerContribution, bindCircleMathPickerContribution, bindCircleRenderModule, bindContributionProvider, bindContributionProviderNoSingletonScope, bindFeishuEnv, bindGifImageCanvasPickerContribution, bindGifImageRenderContribution, bindGlyphCanvasPickerContribution, bindGlyphMathPickerContribution, bindGlyphRenderModule, bindHarmonyEnv, bindImageCanvasPickerContribution, bindImageMathPickerContribution, bindImageRenderModule, bindLineCanvasPickerContribution, bindLineMathPickerContribution, bindLineRenderModule, bindLottieCanvasPickerContribution, bindLottieRenderContribution, bindLynxEnv, bindMathPicker, bindNodeEnv, bindPathCanvasPickerContribution, bindPathMathPickerContribution, bindPathRenderModule, bindPolygonCanvasPickerContribution, bindPolygonMathPickerContribution, bindPolygonRenderModule, bindPyramid3dCanvasPickerContribution, bindPyramid3dRenderModule, bindRect3dCanvasPickerContribution, bindRect3dRenderModule, bindRectCanvasPickerContribution, bindRectMathPickerContribution, bindRectRenderModule, bindRichTextMathPickerContribution, bindRichtextCanvasPickerContribution, bindRichtextRenderModule, bindStarRenderModule, bindSymbolCanvasPickerContribution, bindSymbolMathPickerContribution, bindSymbolRenderModule, bindTTEnv, bindTaroEnv, bindTextCanvasPickerContribution, bindTextMathPickerContribution, bindTextRenderModule, bindWxEnv, bootstrapLegacyVRenderRuntime, bootstrapVRenderBrowserApp, bootstrapVRenderMiniApp, bootstrapVRenderNodeApp, boundStroke, builtInSymbolStrMap, builtinSymbols, builtinSymbolsMap, calcLineCache, calculateArcCornerRadius, calculateLineHeight, canvasAllocate, cartesianTicks, centerToCorner, centroidOfSubpath, circleBounds, circleModule, clampRadian, clock, colorEqual, colorStringInterpolationToStr, columnCenterToEdge, columnEdgeToCenter, columnLeftToRight, columnRightToLeft, computeOffsetForlimit, configureRuntimeApplicationForApp, container, continuousTicks, contrastAccessibilityChecker, convertDomainToTickData, cornerTangents, cornerToCenter, createBrowserApp$1 as createApp, createArc, createArc3d, createArea, createBrowserApp$1 as createBrowserApp, createBrowserVRenderApp, createCanvasEventTransformer, createCircle, createColor, createComponentAnimator, createConicalGradient, createContributionProvider$1 as createContributionProvider, createEventTransformer, createFeishuVRenderApp, createGifImage, createGlyph, createGraphic$1 as createGraphic, createGroup, createHarmonyVRenderApp, createImage, createImageElement$1 as createImageElement, createLine, createLottie, createLynxVRenderApp, createMat4, createMiniappApp$1 as createMiniappApp, createNodeApp$1 as createNodeApp, createNodeVRenderApp, createPath, createPolygon, createPyramid3d, createRect, createRect3d, createRectPath, createRichText, createShadowRoot, createStage, createStar, createSymbol, createTTVRenderApp, createTaroVRenderApp, createText, createTextGraphicByType, createWrapText, createWxVRenderApp, cubicCalc, cubicLength, cubicPointAt, cubicSubdivide, decodeReactDom, defaultArcAllocate, defaultArcBackgroundRenderContribution, defaultArcRenderContribution, defaultArcTextureRenderContribution, defaultAreaAllocate, defaultBaseBackgroundRenderContribution, defaultBaseClipRenderAfterContribution, defaultBaseClipRenderBeforeContribution, defaultBaseTextureRenderContribution, defaultCircleAllocate, defaultCircleBackgroundRenderContribution, defaultCircleRenderContribution, defaultCircleTextureRenderContribution, defaultGraphicMemoryManager, defaultGroupBackgroundRenderContribution, defaultImageBackgroundRenderContribution, defaultImageRenderContribution, defaultLineAllocate, defaultPathAllocate, defaultRectAllocate, defaultRectBackgroundRenderContribution, defaultRectRenderContribution, defaultRectTextureRenderContribution, defaultStarBackgroundRenderContribution, defaultStarTextureRenderContribution, defaultSymbolAllocate, defaultSymbolBackgroundRenderContribution, defaultSymbolClipRangeStrokeRenderContribution, defaultSymbolRenderContribution, defaultSymbolTextureRenderContribution, defaultTextAllocate, defaultTicker, defaultTimeline, deltaXYToAngle, diagonalCenterToEdge, diagonalTopLeftToBottomRight, diff, divideCubic, drawArc, drawArcPath$1 as drawArcPath, drawAreaSegments, drawBackgroundImage, drawImageWithLayout, drawIncrementalAreaSegments, drawIncrementalSegments, drawSegments, enumCommandMap, fillVisible, findBestMorphingRotation, findConfigIndexByCursorIdx, findCursorIdxByConfigIndex, findNextGraphic, flatten_simplify, foreach, foreachAsync, fuzzyEqualNumber, genBasisSegments, genBasisTypeSegments, genLinearClosedSegments, genLinearClosedTypeSegments, genLinearSegments, genLinearTypeSegments, genMonotoneXSegments, genMonotoneXTypeSegments, genMonotoneYSegments, genMonotoneYTypeSegments, genNumberType, genStepClosedSegments, genStepSegments, genStepTypeSegments, generatorPathEasingFunc, getAttributeFromDefaultAttrList, getAxisBreakSymbolAttrs, getBackgroundImage, getCircleLabelPosition, getCirclePoints, getCircleVerticalVector, getConicGradientAt, getCurrentEnv, getDefaultCharacterConfig, getElMap, getExtraModelMatrix, getHorizontalPath, getLegacyBindingContext, getMarksByName, getModelMatrix, getNoneGroupMarksByName, getPolarAngleLabelPosition, getPolygonPath, getRichTextBounds, getRuntimeInstallerBindingContext, getRuntimeInstallerGlobal, getScaledStroke, getSharedVRenderApp, getSizeHandlerPath, getTextAlignAttrOfVerticalDir, getTextBounds, getTextType, getTheme, getThemeFromGroup, getVerticalCoord, getVerticalPath, globalTheme, glyphModule, graphicCreator$1 as graphicCreator, graphicService, graphicUtil, hasOverlap, htmlAttributeTransform, identityMat4, imageModule, incrementalAddTo, initAllEnv, initBrowserEnv, initFeishuEnv, initHarmonyEnv, initLynxEnv, initNodeEnv, initTTEnv, initTaroEnv, initTextMeasure, initWxEnv, installBrowserEnvToApp, installBrowserPickersToApp, installDefaultGraphicsToApp, installFeishuEnvToApp, installHarmonyEnvToApp, installLynxEnvToApp, installMathPickersToApp, installNodeEnvToApp, installNodePickersToApp, installPoptipToApp, installRuntimeDrawContributionsToApp, installRuntimeGraphicRenderersToApp, installRuntimePickersToApp, installScrollbarToApp, installTTEnvToApp, installTaroEnvToApp, installWxEnvToApp, interpolateColor, interpolateGradientConicalColor, interpolateGradientLinearColor, interpolateGradientRadialColor, interpolatePureColorArray, interpolatePureColorArrayToStr, intersect, isBrowserEnv, isInRange, isNoRepeatSizingMode, isNodeEnv, isPostiveXAxis, isRichText, isSvg, isVisible, isXML, jsx, labelSmartInvert, layerService, length, limitShapeInBounds, lineModule, linearDiscreteTicks, loadAllEnv, loadAllModule, loadBrowserEnv, loadFeishuEnv, loadHarmonyEnv, loadLynxEnv, loadMathPicker, loadNodeEnv, loadPoptip, loadScrollbar, loadTTEnv, loadTaroEnv, loadWxEnv, lookAt, mapToCanvasPointForCanvas, mat3Tomat4, mat4Allocate, matrixAllocate, measureTextSize, morphPath, multiToOneMorph, multiplyMat4Mat3, multiplyMat4Mat4, newThemeObj, normalize$1 as normalize, oneToMultiMorph, ortho, parsePadding, parseStroke, parseSvgPath, particleEffect, pathModule, pathToBezierCurves, point$3 as point, pointEqual, pointInterpolation, pointInterpolationHighPerformance, pointsEqual, pointsInterpolation, polarAngleAxisDiscreteTicks, polarTicks, polygonModule, preLoadAllModule, pulseWave, pyramid3dModule, quadCalc, quadLength, quadPointAt, rafBasedSto, randomOpacity, reactAttributeTransform, rect3dModule, rectFillVisible, rectModule, rectStrokeVisible, recursiveCallBinarySplit, refreshRuntimeInstallerContributions, registerAnimate, registerArc, registerArc3d, registerArc3dGraphic, registerArcDataLabel, registerArcGraphic, registerArea, registerAreaGraphic, registerCircle, registerCircleGraphic, registerCustomAnimate, registerDirectionalLight, registerFlexLayoutPlugin, registerGifGraphic, registerGifImage, registerGlobalEventTransformer, registerGlyph, registerGlyphGraphic, registerGraphic, registerGroup, registerGroupGraphic, registerHtmlAttributePlugin, registerImage, registerImageGraphic, registerLine, registerLineDataLabel, registerLineGraphic, registerMarkArcAreaAnimate, registerMarkArcLineAnimate, registerMarkAreaAnimate, registerMarkLineAnimate, registerMarkPointAnimate, registerOrthoCamera, registerPath, registerPathGraphic, registerPolygon, registerPolygonGraphic, registerPyramid3d, registerPyramid3dGraphic, registerReactAttributePlugin, registerRect, registerRect3d, registerRect3dGraphic, registerRectDataLabel, registerRectGraphic, registerRichtext, registerRichtextGraphic, registerShadowRoot, registerShadowRootGraphic, registerStar, registerStarGraphic, registerSymbol, registerSymbolDataLabel, registerSymbolGraphic, registerText, registerTextGraphic, registerViewTransform3dPlugin, registerWindowEventTransformer, registerWrapText, registerWrapTextGraphic, releaseSharedVRenderApp, removeRepeatPoint, renderCommandList, resolveBackgroundDrawMode, resolveBackgroundParamsByImageSizing, resolveBackgroundPosition, resolveBackgroundSizing, resolveContainerBinding$1 as resolveContainerBinding, resolveImageMode, resolveImageRepeatMode, resolveRenderableImageSize, rewriteProto, richTextAttributeTransform, richtextModule, rippleEffect, rotateX, rotateY, rotateZ, rotationScan, roughModule, rowBottomToTop, rowCenterToEdge, rowEdgeToCenter, rowTopToBottom, runFill, runStroke, scale, scaleMat4, segments, setPoptipTheme, shouldClipImageByLayout, shouldUseMat4, smartInvertStrategy, snakeWave, snapLength, spiralEffect, splitArc, splitArea, splitCircle, splitLine, splitPath, splitPolygon, splitRect, splitToGrids, starModule, strCommandMap, strokeVisible, symbolModule, tan2AngleToAngle, textAttributesToStyle, textDrawOffsetX, textDrawOffsetY, textIntersect, textLayoutOffsetY, textModule, ticks, transformMat4, transformPointForCanvas, transformUtil, transitionRegistry, translate, traverseGroup, version, verticalLayout, vglobal, waitForAllSubLayers, wrapCanvas, wrapContext, xul };
55247
+ export { AComponentAnimate, ACustomAnimate, ARC3D_NUMBER_TYPE, ARC_NUMBER_TYPE, AREA_NUMBER_TYPE, AStageAnimate, AXIS_ELEMENT_NAME, AbstractComponent, AbstractGraphicRender, Animate, AnimateExecutor, AnimateMode, AnimateStatus, Step as AnimateStep, AnimateStepType, AnimationStateManager, AnimationStateStore, AnimationStates, AnimationTransitionRegistry, AppContext, Application, Arc, Arc3d, Arc3dRender, ArcInfo, ArcLabel, ArcRender, ArcRenderContribution, ArcSegment, Area, AreaRender, AreaRenderContribution, AttributeUpdateType, AutoEnablePlugins, AxisStateValue, BaseCanvas, BaseEnvContribution, BasePlayer, BaseRender, BaseRenderContributionTime, BaseWindowHandlerContribution, Basis, BeforeRenderConstribution, BoundsContext, BoundsPicker, BrowserEntry, BrowserEnvContribution, Brush, CIRCLE_NUMBER_TYPE, Canvas3DDrawItemInterceptor, Canvas3DPickItemInterceptor, CanvasArc3dPicker, CanvasArcPicker, CanvasAreaPicker, CanvasCirclePicker, CanvasFactory, CanvasGifImagePicker, CanvasGlyphPicker, CanvasGroupPicker, CanvasImagePicker, CanvasLinePicker, CanvasLottiePicker, CanvasPathPicker, CanvasPickerContribution, CanvasPolygonPicker, CanvasPyramid3dPicker, CanvasRect3dPicker, CanvasRectPicker, CanvasRichTextPicker, CanvasStarPicker, CanvasSymbolPicker, CanvasTextLayout, CanvasTextPicker, CheckBox, Circle, CircleAxis, CircleAxisGrid, CircleCrosshair, CircleRender, CircleRenderContribution, ClipAngleAnimate, ClipDirectionAnimate, ClipGraphicAnimate, ClipIn, ClipOut, ClipRadiusAnimate, ColorContinuousLegend, ColorInterpolate, ColorStore, ColorType, CommonDrawItemInterceptorContribution, CommonRenderContribution, ComponentAnimator, Context2dFactory, ContinuousPlayer, ContributionProvider, ContributionRegistry, ContributionStore, CubicBezierCurve, CurveContext, CurveTypeEnum, CustomEvent, CustomPath2D, CustomSymbolClass, 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_TEXT_FONT_FAMILY$1 as DEFAULT_TEXT_FONT_FAMILY, DEFAULT_TITLE_SPACE, DEFAULT_VALUE_SPACE, DataLabel, DataZoom, DataZoomActiveTag, DebugDrawItemInterceptorContribution, DefaultArcAllocate, DefaultArcAttribute, DefaultArcRenderContribution, DefaultAreaAllocate, DefaultAreaAttribute, DefaultAreaTextureRenderContribution, DefaultAttribute, DefaultBaseBackgroundRenderContribution, DefaultBaseClipRenderAfterContribution, DefaultBaseClipRenderBeforeContribution, DefaultBaseInteractiveRenderContribution, DefaultBaseTextureRenderContribution, DefaultCanvasAllocate, DefaultCanvasArcRender, DefaultCanvasAreaRender, DefaultCanvasCircleRender, DefaultCanvasGroupRender, DefaultCanvasImageRender, DefaultCanvasLineRender, DefaultCanvasPathRender, DefaultCanvasPolygonRender, DefaultCanvasRectRender, DefaultCanvasSymbolRender, DefaultCanvasTextRender, DefaultCircleAllocate, DefaultCircleAttribute, DefaultCircleRenderContribution, DefaultConnectAttribute, DefaultDebugAttribute, DefaultFillStyle, DefaultGlobal, DefaultGlobalPickerService, DefaultGlyphAttribute, DefaultGraphicAllocate, DefaultGraphicMemoryManager, DefaultGraphicService, DefaultGraphicUtil, DefaultGroupAttribute, DefaultGroupBackgroundRenderContribution, DefaultImageAttribute, DefaultImageRenderContribution, DefaultLayerService, DefaultLayout, DefaultLineAllocate, DefaultLineAttribute, DefaultMat4Allocate, DefaultMatrixAllocate, DefaultPathAllocate, DefaultPathAttribute, DefaultPickService, DefaultPickStyle, DefaultPolygonAttribute, DefaultRect3dAttribute, DefaultRectAllocate, DefaultRectAttribute, DefaultRectRenderContribution, DefaultRenderService, DefaultRichTextAttribute, DefaultRichTextIconAttribute, DefaultStarAttribute, DefaultStrokeStyle, DefaultStyle, DefaultSymbolAllocate, DefaultSymbolAttribute, DefaultSymbolClipRangeStrokeRenderContribution, DefaultSymbolRenderContribution, DefaultTextAllocate, DefaultTextAttribute, DefaultTextMeasureContribution, DefaultTextStyle, DefaultTicker, DefaultTimeline, DefaultTransform, DefaultTransformUtil, DefaultWindow, Direction, DirectionEnum, DirectionalLight, DiscreteLegend, DiscretePlayer, Dissolve, Distortion, DragNDrop, DrawContribution, DrawItemInterceptor, DynamicLayerHandlerContribution, Easing, Edge, EditModule, EmptyContext2d, EmptyTip, EnvContribution, EventManager, EventSystem, EventTarget, FORMAT_ALL_TEXT_COMMAND, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, Factory, FadeIn, FadeOut, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, FlexLayoutPlugin, Fragment, FromTo, GLYPH_NUMBER_TYPE, GRAPHIC_UPDATE_TAG_KEY, GROUP_NUMBER_TYPE, GaussianBlur, Generator, Gesture, GifImage, Glitch, GlobalPickerService, Glyph, GlyphRender, GradientParser, Graphic, GraphicCreator$1 as GraphicCreator, GraphicFactory, GraphicPicker, GraphicRender, GraphicService, GraphicStateExtension, GraphicUtil, Grayscale, Group, GroupFadeIn, GroupFadeOut, GroupRender, GroupRenderContribution, GroupTransition, GroupUpdateAABBBoundsMode, GrowAngleIn, GrowAngleOut, GrowCenterIn, GrowCenterOut, GrowHeightIn, GrowHeightOut, GrowIn, GrowOut, GrowPointsIn, GrowPointsOut, GrowPointsXIn, GrowPointsXOut, GrowPointsYIn, GrowPointsYOut, GrowRadiusIn, GrowRadiusOut, GrowWidthIn, GrowWidthOut, HtmlAttributePlugin, IContainPointMode, IDataZoomEvent, IDataZoomInteractiveEvent, IMAGE_NUMBER_TYPE, IMarkAreaLabelPosition, IMarkCommonArcLabelPosition, IMarkLineLabelPosition, IMarkPointItemPosition, IOperateType, Image$1 as Image, ImageRender, ImageRenderContribution, IncreaseCount, IncrementalDrawContribution, Indicator, InputRichText, InputText, InteractiveDrawItemInterceptorContribution, InteractivePickItemInterceptorContribution, InteractiveSubRenderContribution, LEGEND_ELEMENT_NAME, LINE_NUMBER_TYPE, LabelBase, LabelItemAppear, LabelItemDisappear, Layer, LayerFactory, LayerService, LegendEvent, LegendStateValue, Line$1 as Line, LineAxis, LineAxisGrid, LineCrosshair, LineLabel, LineRender, Linear, LinearClosed, LinkPath, Lottie, ManualTicker, MarkArcArea, MarkArcLine, MarkArea, MarkLine, MarkPoint, Mat4Allocate, MathArcPicker, MathAreaPicker, MathCirclePicker, MathGlyphPicker, MathImagePicker, MathLinePicker, MathPathPicker, MathPickerContribution, MathPolygonPicker, MathRectPicker, MathRichTextPicker, MathSymbolPicker, MathTextPicker, MatrixAllocate, MeasureModeEnum, MiniappEntry, MonotoneX, MonotoneY, MorphingPath, MotionPath, MoveIn, MoveOut, MoveRotateIn, MoveRotateOut, MoveScaleIn, MoveScaleOut, MultiToOneMorphingPath, NOWORK_ANIMATE_ATTR, Node, NodeEntry, OrthoCamera, OutputRichText, PATH_NUMBER_TYPE, POLYGON_NUMBER_TYPE, PURE_STYLE_KEY, PYRAMID3D_NUMBER_TYPE, Pager, Particle, Path, PathRender, PathRenderContribution, PerformanceRAF, PickItemInterceptor, PickServiceInterceptor, PickerRegistry, PickerService, Pixelation, PlayerEventEnum, PluginRegistry, PluginService, Polygon, PolygonCrosshair, PolygonRender, PolygonRenderContribution, PolygonSectorCrosshair, PopTip, PoptipAppear, PoptipDisappear, PulseAnimate, Pyramid3d, Pyramid3dRender, REACT_TO_CANOPUS_EVENTS, REACT_TO_CANOPUS_EVENTS_LIST, RECT3D_NUMBER_TYPE, RECT_NUMBER_TYPE, RICHTEXT_NUMBER_TYPE, Radio, RafBasedSTO, ReactAttributePlugin, Rect, Rect3DRender, Rect3d, RectCrosshair, RectLabel, RectRender, RectRenderContribution, ReflectSegContext, RenderSelector, RenderService, RendererRegistry, ResourceLoader, RichText, RichTextEditPlugin, RichTextRender, RotateBySphereAnimate, RotateIn, RotateOut, SLIDER_ELEMENT_NAME, STAR_NUMBER_TYPE, STATUS$1 as STATUS, SVG_ATTRIBUTE_MAP, SVG_ATTRIBUTE_MAP_KEYS, SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS, SYMBOL_NUMBER_TYPE, ScaleIn, ScaleOut, ScrollBar, SectorCrosshair, SegContext, Segment, SeriesNumberCellStateValue, SeriesNumberEvent, ShadowPickServiceInterceptorContribution, ShadowRoot, ShadowRootDrawItemInterceptorContribution, ShadowRootPickItemInterceptorContribution, SizeContinuousLegend, SlideIn, SlideOut, SlideOutRichText, SlideRichText, Slider, SpinIn, SpinOut, SplitRectAfterRenderContribution, SplitRectBeforeRenderContribution, Stage, StageFactory, Star, StarRender, StarRenderContribution, State, StateDefinitionCompiler, StateEngine, StaticLayerHandlerContribution, Step$1 as Step, StepClosed, StoryLabelItem, StreamLight, StrokeIn, StrokeOut, Switch, Symbol$1 as Symbol, SymbolLabel, SymbolRender, SymbolRenderContribution, TEXT_NUMBER_TYPE, TableSeriesNumber, Tag, TagPointsUpdate, Text, TextDirection, TextMeasureContribution, TextRender, TextRenderContribution, Theme, Timeline, Title, Tooltip, TopZIndex, TransformUtil, Update, UpdateTag, VArc, VArc3d, VArea, VCircle, VGlobal, VGlyph, VGroup, VImage, VLine, VPath, VPolygon, VPyramid3d, VRect, VRect3d, VRichText, VSymbol, VTag, VText, VWindow, ViewTransform3dPlugin, VirtualLayerHandlerContribution, WILDCARD, WeatherBox, WindowHandlerContribution, WrapText, XMLParser, _calculateLineHeight, _interpolateColor, _registerArc, acquireSharedVRenderApp, addArcToBezierPath$1 as addArcToBezierPath, addAttributeToPrototype, alignBezierCurves, alignSubpath, alignTextInLine, alternatingWave, angle, angleLabelOrientAttribute, angleTo, application, applyTransformOnBezierCurves, arc3dModule, arcModule, areaModule, bezier, bezierCurversToPath, binarySplitPolygon, bindArc3dCanvasPickerContribution, bindArc3dRenderModule, bindArcCanvasPickerContribution, bindArcMathPickerContribution, bindArcRenderModule, bindAreaCanvasPickerContribution, bindAreaMathPickerContribution, bindAreaRenderModule, bindBrowserEnv, bindCircleCanvasPickerContribution, bindCircleMathPickerContribution, bindCircleRenderModule, bindContributionProvider, bindContributionProviderNoSingletonScope, bindFeishuEnv, bindGifImageCanvasPickerContribution, bindGifImageRenderContribution, bindGlyphCanvasPickerContribution, bindGlyphMathPickerContribution, bindGlyphRenderModule, bindHarmonyEnv, bindImageCanvasPickerContribution, bindImageMathPickerContribution, bindImageRenderModule, bindLineCanvasPickerContribution, bindLineMathPickerContribution, bindLineRenderModule, bindLottieCanvasPickerContribution, bindLottieRenderContribution, bindLynxEnv, bindMathPicker, bindNodeEnv, bindPathCanvasPickerContribution, bindPathMathPickerContribution, bindPathRenderModule, bindPolygonCanvasPickerContribution, bindPolygonMathPickerContribution, bindPolygonRenderModule, bindPyramid3dCanvasPickerContribution, bindPyramid3dRenderModule, bindRect3dCanvasPickerContribution, bindRect3dRenderModule, bindRectCanvasPickerContribution, bindRectMathPickerContribution, bindRectRenderModule, bindRichTextMathPickerContribution, bindRichtextCanvasPickerContribution, bindRichtextRenderModule, bindStarRenderModule, bindSymbolCanvasPickerContribution, bindSymbolMathPickerContribution, bindSymbolRenderModule, bindTTEnv, bindTaroEnv, bindTextCanvasPickerContribution, bindTextMathPickerContribution, bindTextRenderModule, bindWxEnv, bootstrapLegacyVRenderRuntime, bootstrapVRenderBrowserApp, bootstrapVRenderMiniApp, bootstrapVRenderNodeApp, boundStroke, builtInSymbolStrMap, builtinSymbols, builtinSymbolsMap, calcLineCache, calculateArcCornerRadius, calculateLineHeight, canvasAllocate, cartesianTicks, centerToCorner, centroidOfSubpath, circleBounds, circleModule, clampRadian, clock, colorEqual, colorStringInterpolationToStr, columnCenterToEdge, columnEdgeToCenter, columnLeftToRight, columnRightToLeft, computeOffsetForlimit, configureRuntimeApplicationForApp, container, continuousTicks, contrastAccessibilityChecker, convertDomainToTickData, cornerTangents, cornerToCenter, createBrowserApp as createApp, createArc, createArc3d, createArea, createBrowserApp, createBrowserVRenderApp, createCanvasEventTransformer, createCircle, createColor, createComponentAnimator, createConicalGradient, createContributionProvider$1 as createContributionProvider, createEventTransformer, createFeishuVRenderApp, createGifImage, createGlyph, createGraphic$1 as createGraphic, createGroup, createHarmonyVRenderApp, createImage, createImageElement$1 as createImageElement, createLine, createLottie, createLynxVRenderApp, createMat4, createMiniappApp$1 as createMiniappApp, createNodeApp$1 as createNodeApp, createNodeVRenderApp, createPath, createPolygon, createPyramid3d, createRect, createRect3d, createRectPath, createRichText, createShadowRoot, createStage, createStar, createSymbol, createTTVRenderApp, createTaroVRenderApp, createText, createTextGraphicByType, createWrapText, createWxVRenderApp, cubicCalc, cubicLength, cubicPointAt, cubicSubdivide, decodeReactDom, defaultArcAllocate, defaultArcBackgroundRenderContribution, defaultArcRenderContribution, defaultArcTextureRenderContribution, defaultAreaAllocate, defaultBaseBackgroundRenderContribution, defaultBaseClipRenderAfterContribution, defaultBaseClipRenderBeforeContribution, defaultBaseTextureRenderContribution, defaultCircleAllocate, defaultCircleBackgroundRenderContribution, defaultCircleRenderContribution, defaultCircleTextureRenderContribution, defaultGraphicMemoryManager, defaultGroupBackgroundRenderContribution, defaultImageBackgroundRenderContribution, defaultImageRenderContribution, defaultLineAllocate, defaultPathAllocate, defaultRectAllocate, defaultRectBackgroundRenderContribution, defaultRectRenderContribution, defaultRectTextureRenderContribution, defaultStarBackgroundRenderContribution, defaultStarTextureRenderContribution, defaultSymbolAllocate, defaultSymbolBackgroundRenderContribution, defaultSymbolClipRangeStrokeRenderContribution, defaultSymbolRenderContribution, defaultSymbolTextureRenderContribution, defaultTextAllocate, defaultTicker, defaultTimeline, deltaXYToAngle, diagonalCenterToEdge, diagonalTopLeftToBottomRight, diff, divideCubic, drawArc, drawArcPath$1 as drawArcPath, drawAreaSegments, drawBackgroundImage, drawImageWithLayout, drawIncrementalAreaSegments, drawIncrementalSegments, drawSegments, enumCommandMap, fillVisible, findBestMorphingRotation, findConfigIndexByCursorIdx, findCursorIdxByConfigIndex, findNextGraphic, flatten_simplify, foreach, foreachAsync, fuzzyEqualNumber, genBasisSegments, genBasisTypeSegments, genLinearClosedSegments, genLinearClosedTypeSegments, genLinearSegments, genLinearTypeSegments, genMonotoneXSegments, genMonotoneXTypeSegments, genMonotoneYSegments, genMonotoneYTypeSegments, genNumberType, genStepClosedSegments, genStepSegments, genStepTypeSegments, generatorPathEasingFunc, getAttributeFromDefaultAttrList, getAxisBreakSymbolAttrs, getBackgroundImage, getCircleLabelPosition, getCirclePoints, getCircleVerticalVector, getConicGradientAt, getCurrentEnv, getDefaultCharacterConfig, getElMap, getExtraModelMatrix, getHorizontalPath, getLegacyBindingContext, getMarksByName, getModelMatrix, getNoneGroupMarksByName, getPolarAngleLabelPosition, getPolygonPath, getRichTextBounds, getRuntimeInstallerBindingContext, getRuntimeInstallerGlobal, getScaledStroke, getSharedVRenderApp, getSizeHandlerPath, getTextAlignAttrOfVerticalDir, getTextBounds, getTextType, getTheme, getThemeFromGroup, getVerticalCoord, getVerticalPath, globalTheme, glyphModule, graphicCreator$1 as graphicCreator, graphicService, graphicUtil, hasOverlap, htmlAttributeTransform, identityMat4, imageModule, incrementalAddTo, initAllEnv, initBrowserEnv, initFeishuEnv, initHarmonyEnv, initLynxEnv, initNodeEnv, initTTEnv, initTaroEnv, initTextMeasure, initWxEnv, installBrowserEnvToApp, installBrowserPickersToApp, installDefaultGraphicsToApp, installFeishuEnvToApp, installHarmonyEnvToApp, installLynxEnvToApp, installMathPickersToApp, installNodeEnvToApp, installNodePickersToApp, installPoptipToApp, installRuntimeDrawContributionsToApp, installRuntimeGraphicRenderersToApp, installRuntimePickersToApp, installScrollbarToApp, installTTEnvToApp, installTaroEnvToApp, installWxEnvToApp, interpolateColor, interpolateGradientConicalColor, interpolateGradientLinearColor, interpolateGradientRadialColor, interpolatePureColorArray, interpolatePureColorArrayToStr, intersect, isBrowserEnv, isInRange, isNoRepeatSizingMode, isNodeEnv, isPostiveXAxis, isRichText, isSvg, isVisible, isXML, jsx, labelSmartInvert, layerService, length, limitShapeInBounds, lineModule, linearDiscreteTicks, loadAllEnv, loadAllModule, loadBrowserEnv, loadFeishuEnv, loadHarmonyEnv, loadLynxEnv, loadMathPicker, loadNodeEnv, loadPoptip, loadScrollbar, loadTTEnv, loadTaroEnv, loadWxEnv, lookAt, mapToCanvasPointForCanvas, mat3Tomat4, mat4Allocate, matrixAllocate, measureTextSize, morphPath, multiToOneMorph, multiplyMat4Mat3, multiplyMat4Mat4, newThemeObj, normalize$1 as normalize, oneToMultiMorph, ortho, parsePadding, parseStroke, parseSvgPath, particleEffect, pathModule, pathToBezierCurves, point$3 as point, pointEqual, pointInterpolation, pointInterpolationHighPerformance, pointsEqual, pointsInterpolation, polarAngleAxisDiscreteTicks, polarTicks, polygonModule, preLoadAllModule, pulseWave, pyramid3dModule, quadCalc, quadLength, quadPointAt, rafBasedSto, randomOpacity, reactAttributeTransform, rect3dModule, rectFillVisible, rectModule, rectStrokeVisible, recursiveCallBinarySplit, refreshRuntimeInstallerContributions, registerAnimate, registerArc, registerArc3d, registerArc3dGraphic, registerArcDataLabel, registerArcGraphic, registerArea, registerAreaGraphic, registerCircle, registerCircleGraphic, registerCustomAnimate, registerDirectionalLight, registerFlexLayoutPlugin, registerGifGraphic, registerGifImage, registerGlobalEventTransformer, registerGlyph, registerGlyphGraphic, registerGraphic, registerGroup, registerGroupGraphic, registerHtmlAttributePlugin, registerImage, registerImageGraphic, registerLine, registerLineDataLabel, registerLineGraphic, registerMarkArcAreaAnimate, registerMarkArcLineAnimate, registerMarkAreaAnimate, registerMarkLineAnimate, registerMarkPointAnimate, registerOrthoCamera, registerPath, registerPathGraphic, registerPolygon, registerPolygonGraphic, registerPyramid3d, registerPyramid3dGraphic, registerReactAttributePlugin, registerRect, registerRect3d, registerRect3dGraphic, registerRectDataLabel, registerRectGraphic, registerRichtext, registerRichtextGraphic, registerShadowRoot, registerShadowRootGraphic, registerStar, registerStarGraphic, registerSymbol, registerSymbolDataLabel, registerSymbolGraphic, registerText, registerTextGraphic, registerViewTransform3dPlugin, registerWindowEventTransformer, registerWrapText, registerWrapTextGraphic, releaseSharedVRenderApp, removeRepeatPoint, renderCommandList, resolveBackgroundDrawMode, resolveBackgroundParamsByImageSizing, resolveBackgroundPosition, resolveBackgroundSizing, resolveContainerBinding$1 as resolveContainerBinding, resolveImageMode, resolveImageRepeatMode, resolveRenderableImageSize, rewriteProto, richTextAttributeTransform, richtextModule, rippleEffect, rotateX, rotateY, rotateZ, rotationScan, roughModule, rowBottomToTop, rowCenterToEdge, rowEdgeToCenter, rowTopToBottom, runFill, runStroke, scale, scaleMat4, segments, setPoptipTheme, shouldClipImageByLayout, shouldUseMat4, smartInvertStrategy, snakeWave, snapLength, spiralEffect, splitArc, splitArea, splitCircle, splitLine, splitPath, splitPolygon, splitRect, splitToGrids, starModule, strCommandMap, strokeVisible, symbolModule, tan2AngleToAngle, textAttributesToStyle, textDrawOffsetX, textDrawOffsetY, textIntersect, textLayoutOffsetY, textModule, ticks, transformMat4, transformPointForCanvas, transformUtil, transitionRegistry, translate, traverseGroup, version, verticalLayout, vglobal, waitForAllSubLayers, wrapCanvas, wrapContext, xul };