@visactor/vrender-core 0.22.9-alpha.2 → 0.22.10-alpha.1

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 (124) hide show
  1. package/cjs/common/bezier-utils.js +1 -2
  2. package/cjs/common/canvas-utils.js +5 -5
  3. package/cjs/common/canvas-utils.js.map +1 -1
  4. package/cjs/common/matrix.js +1 -1
  5. package/cjs/common/morphing-utils.js +1 -1
  6. package/cjs/common/path-svg.js +1 -1
  7. package/cjs/common/polygon.js +2 -1
  8. package/cjs/common/rect-utils.js +1 -1
  9. package/cjs/common/render-area.js +1 -1
  10. package/cjs/common/render-command-list.js +1 -1
  11. package/cjs/common/render-curve.js +1 -1
  12. package/cjs/common/render-utils.js +1 -1
  13. package/cjs/common/seg-context.js +1 -1
  14. package/cjs/common/segment/index.js +3 -0
  15. package/cjs/common/segment/index.js.map +1 -1
  16. package/cjs/common/segment/step.d.ts +6 -0
  17. package/cjs/common/segment/step.js +19 -2
  18. package/cjs/common/segment/step.js.map +1 -1
  19. package/cjs/common/simplify.js +1 -1
  20. package/cjs/core/application.js +1 -1
  21. package/cjs/core/camera.js +1 -1
  22. package/cjs/core/constants.js +1 -1
  23. package/cjs/core/core-modules.js +1 -1
  24. package/cjs/core/global-module.js +0 -2
  25. package/cjs/core/global.d.ts +5 -7
  26. package/cjs/core/global.js +14 -14
  27. package/cjs/core/global.js.map +1 -1
  28. package/cjs/core/graphic-utils.js +1 -1
  29. package/cjs/core/index.js +1 -1
  30. package/cjs/core/layer-service.js +1 -1
  31. package/cjs/core/layer.js +1 -1
  32. package/cjs/core/light.js +1 -1
  33. package/cjs/core/stage.js +1 -1
  34. package/cjs/core/window.d.ts +4 -5
  35. package/cjs/core/window.js +14 -15
  36. package/cjs/core/window.js.map +1 -1
  37. package/cjs/event/event-system.js +10 -11
  38. package/cjs/event/event-system.js.map +1 -1
  39. package/cjs/graphic/graphic.d.ts +3 -1
  40. package/cjs/graphic/graphic.js +5 -12
  41. package/cjs/graphic/graphic.js.map +1 -1
  42. package/cjs/graphic/symbol.js +2 -1
  43. package/cjs/graphic/symbol.js.map +1 -1
  44. package/cjs/index.d.ts +0 -1
  45. package/cjs/index.js +1 -2
  46. package/cjs/index.js.map +1 -1
  47. package/cjs/interface/common.d.ts +1 -1
  48. package/cjs/interface/common.js.map +1 -1
  49. package/cjs/interface/global.d.ts +1 -2
  50. package/cjs/interface/global.js.map +1 -1
  51. package/cjs/interface/window.d.ts +0 -1
  52. package/cjs/interface/window.js.map +1 -1
  53. package/dist/index.es.js +104 -236
  54. package/es/common/bezier-utils.js +1 -2
  55. package/es/common/canvas-utils.js +5 -5
  56. package/es/common/canvas-utils.js.map +1 -1
  57. package/es/common/matrix.js +1 -1
  58. package/es/common/morphing-utils.js +1 -1
  59. package/es/common/path-svg.js +1 -1
  60. package/es/common/polygon.js +2 -1
  61. package/es/common/rect-utils.js +1 -1
  62. package/es/common/render-area.js +1 -1
  63. package/es/common/render-command-list.js +1 -1
  64. package/es/common/render-curve.js +1 -1
  65. package/es/common/render-utils.js +1 -1
  66. package/es/common/seg-context.js +1 -1
  67. package/es/common/segment/index.js +4 -1
  68. package/es/common/segment/index.js.map +1 -1
  69. package/es/common/segment/step.d.ts +6 -0
  70. package/es/common/segment/step.js +13 -0
  71. package/es/common/segment/step.js.map +1 -1
  72. package/es/common/simplify.js +1 -1
  73. package/es/core/application.js +1 -1
  74. package/es/core/camera.js +1 -1
  75. package/es/core/constants.js +1 -1
  76. package/es/core/core-modules.js +1 -1
  77. package/es/core/global-module.js +0 -2
  78. package/es/core/global.d.ts +5 -7
  79. package/es/core/global.js +13 -15
  80. package/es/core/global.js.map +1 -1
  81. package/es/core/graphic-utils.js +1 -1
  82. package/es/core/index.js +1 -1
  83. package/es/core/layer-service.js +1 -1
  84. package/es/core/layer.js +1 -1
  85. package/es/core/light.js +1 -1
  86. package/es/core/stage.js +1 -1
  87. package/es/core/window.d.ts +4 -5
  88. package/es/core/window.js +13 -16
  89. package/es/core/window.js.map +1 -1
  90. package/es/event/event-system.js +10 -11
  91. package/es/event/event-system.js.map +1 -1
  92. package/es/graphic/graphic.d.ts +3 -1
  93. package/es/graphic/graphic.js +5 -12
  94. package/es/graphic/graphic.js.map +1 -1
  95. package/es/graphic/symbol.js +2 -1
  96. package/es/graphic/symbol.js.map +1 -1
  97. package/es/index.d.ts +0 -1
  98. package/es/index.js +0 -2
  99. package/es/index.js.map +1 -1
  100. package/es/interface/common.d.ts +1 -1
  101. package/es/interface/common.js.map +1 -1
  102. package/es/interface/global.d.ts +1 -2
  103. package/es/interface/global.js.map +1 -1
  104. package/es/interface/window.d.ts +0 -1
  105. package/es/interface/window.js.map +1 -1
  106. package/package.json +3 -3
  107. package/cjs/common/event-listener-manager.d.ts +0 -14
  108. package/cjs/common/event-listener-manager.js +0 -52
  109. package/cjs/common/event-listener-manager.js.map +0 -1
  110. package/cjs/common/event-transformer.d.ts +0 -12
  111. package/cjs/common/event-transformer.js +0 -91
  112. package/cjs/common/event-transformer.js.map +0 -1
  113. package/cjs/interface/event-listener-manager.d.ts +0 -7
  114. package/cjs/interface/event-listener-manager.js +0 -6
  115. package/cjs/interface/event-listener-manager.js.map +0 -1
  116. package/es/common/event-listener-manager.d.ts +0 -14
  117. package/es/common/event-listener-manager.js +0 -44
  118. package/es/common/event-listener-manager.js.map +0 -1
  119. package/es/common/event-transformer.d.ts +0 -12
  120. package/es/common/event-transformer.js +0 -81
  121. package/es/common/event-transformer.js.map +0 -1
  122. package/es/interface/event-listener-manager.d.ts +0 -7
  123. package/es/interface/event-listener-manager.js +0 -2
  124. package/es/interface/event-listener-manager.js.map +0 -1
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { tau, halfPi as halfPi$1, AABBBounds, degreeToRadian, PointService, Point, abs, max, min, atan2, epsilon, Matrix, pi2, Logger, pi, isArray, isPointInLine, isNumberClose, TextMeasure, EventEmitter, isBoolean, isObject, isFunction, isString, has, isUndefined, cos, sin, pointAt, isNumber as isNumber$1, getDecimalPlaces, isValidNumber, clamp, getAngleByPoint, isNil, Bounds, getIntersectPoint, Color, DEFAULT_COLORS, sqrt, OBBBounds, normalTransform, isValidUrl, isBase64, acos, LRU, lowerCamelCaseToMiddle, isValid, transformBoundsWithMatrix, getContextFont, rotatePoint, clampAngleByRadian, asin, arrayEqual, getRectIntersect, isRectIntersect, merge, calculateAnchorOfBounds, styleStringToObject } from '@visactor/vutils';
1
+ import { tau, halfPi as halfPi$1, AABBBounds, degreeToRadian, PointService, Point, abs, max, min, atan2, epsilon, Matrix, pi2, Logger, pi, isArray, isPointInLine, isNumberClose, TextMeasure, EventEmitter, isBoolean, isObject, isFunction, isString, has, isUndefined, cos, sin, pointAt, isNumber, getDecimalPlaces, isValidNumber, clamp, getAngleByPoint, isNil, Bounds, getIntersectPoint, Color, DEFAULT_COLORS, sqrt, OBBBounds, normalTransform, isValidUrl, isBase64, acos, LRU, lowerCamelCaseToMiddle, isValid, transformBoundsWithMatrix, getContextFont, rotatePoint, clampAngleByRadian, asin, arrayEqual, getRectIntersect, isRectIntersect, merge, calculateAnchorOfBounds, styleStringToObject } from '@visactor/vutils';
2
2
 
3
3
  class Generator {
4
4
  static GenAutoIncrementId() {
@@ -852,71 +852,8 @@ const EnvContribution = Symbol.for('EnvContribution');
852
852
  const VGlobal = Symbol.for('VGlobal');
853
853
  const DEFAULT_TEXT_FONT_FAMILY = 'PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol';
854
854
 
855
- class EventListenerManager {
856
- constructor() {
857
- this._listenerMap = new Map();
858
- this._eventListenerTransformer = event => event;
859
- }
860
- setEventListenerTransformer(transformer) {
861
- this._eventListenerTransformer = transformer || (event => event);
862
- }
863
- addEventListener(type, listener, options) {
864
- if (!listener) {
865
- return;
866
- }
867
- const wrappedListener = (event) => {
868
- const transformedEvent = this._eventListenerTransformer(event);
869
- if (typeof listener === 'function') {
870
- listener(transformedEvent);
871
- }
872
- else if (listener.handleEvent) {
873
- listener.handleEvent(transformedEvent);
874
- }
875
- };
876
- if (!this._listenerMap.has(type)) {
877
- this._listenerMap.set(type, new Map());
878
- }
879
- this._listenerMap.get(type).set(listener, wrappedListener);
880
- this._nativeAddEventListener(type, wrappedListener, options);
881
- }
882
- removeEventListener(type, listener, options) {
883
- var _a;
884
- if (!listener) {
885
- return;
886
- }
887
- const wrappedListener = (_a = this._listenerMap.get(type)) === null || _a === void 0 ? void 0 : _a.get(listener);
888
- if (wrappedListener) {
889
- this._nativeRemoveEventListener(type, wrappedListener, options);
890
- this._listenerMap.get(type).delete(listener);
891
- if (this._listenerMap.get(type).size === 0) {
892
- this._listenerMap.delete(type);
893
- }
894
- }
895
- }
896
- dispatchEvent(event) {
897
- return this._nativeDispatchEvent(event);
898
- }
899
- clearAllEventListeners() {
900
- this._listenerMap.forEach((listenersMap, type) => {
901
- listenersMap.forEach((wrappedListener, originalListener) => {
902
- this._nativeRemoveEventListener(type, wrappedListener, undefined);
903
- });
904
- });
905
- this._listenerMap.clear();
906
- }
907
- _nativeAddEventListener(type, listener, options) {
908
- throw new Error('_nativeAddEventListener must be implemented by derived classes');
909
- }
910
- _nativeRemoveEventListener(type, listener, options) {
911
- throw new Error('_nativeRemoveEventListener must be implemented by derived classes');
912
- }
913
- _nativeDispatchEvent(event) {
914
- throw new Error('_nativeDispatchEvent must be implemented by derived classes');
915
- }
916
- }
917
-
918
855
  const defaultEnv = 'browser';
919
- let DefaultGlobal = class DefaultGlobal extends EventListenerManager {
856
+ let DefaultGlobal = class DefaultGlobal {
920
857
  get env() {
921
858
  return this._env;
922
859
  }
@@ -993,10 +930,8 @@ let DefaultGlobal = class DefaultGlobal extends EventListenerManager {
993
930
  this.envContribution.applyStyles = support;
994
931
  }
995
932
  constructor(contributions) {
996
- super();
997
933
  this.contributions = contributions;
998
934
  this._isImageAnonymous = true;
999
- this.eventListenerTransformer = event => event;
1000
935
  this.id = Generator.GenAutoIncrementId();
1001
936
  this.hooks = {
1002
937
  onSetEnv: new SyncHook(['lastEnv', 'env', 'global'])
@@ -1004,24 +939,6 @@ let DefaultGlobal = class DefaultGlobal extends EventListenerManager {
1004
939
  this.measureTextMethod = 'native';
1005
940
  this.optimizeVisible = false;
1006
941
  }
1007
- _nativeAddEventListener(type, listener, options) {
1008
- if (!this._env) {
1009
- this.setEnv(defaultEnv);
1010
- }
1011
- return this.envContribution.addEventListener(type, listener, options);
1012
- }
1013
- _nativeRemoveEventListener(type, listener, options) {
1014
- if (!this._env) {
1015
- this.setEnv(defaultEnv);
1016
- }
1017
- return this.envContribution.removeEventListener(type, listener, options);
1018
- }
1019
- _nativeDispatchEvent(event) {
1020
- if (!this._env) {
1021
- this.setEnv(defaultEnv);
1022
- }
1023
- return this.envContribution.dispatchEvent(event);
1024
- }
1025
942
  bindContribution(params) {
1026
943
  const promiseArr = [];
1027
944
  this.contributions.getContributions().forEach(contribution => {
@@ -1090,6 +1007,24 @@ let DefaultGlobal = class DefaultGlobal extends EventListenerManager {
1090
1007
  }
1091
1008
  return this.envContribution.releaseCanvas(canvas);
1092
1009
  }
1010
+ addEventListener(type, listener, options) {
1011
+ if (!this._env) {
1012
+ this.setEnv(defaultEnv);
1013
+ }
1014
+ return this.envContribution.addEventListener(type, listener, options);
1015
+ }
1016
+ removeEventListener(type, listener, options) {
1017
+ if (!this._env) {
1018
+ this.setEnv(defaultEnv);
1019
+ }
1020
+ return this.envContribution.removeEventListener(type, listener, options);
1021
+ }
1022
+ dispatchEvent(event) {
1023
+ if (!this._env) {
1024
+ this.setEnv(defaultEnv);
1025
+ }
1026
+ return this.envContribution.dispatchEvent(event);
1027
+ }
1093
1028
  getRequestAnimationFrame() {
1094
1029
  if (!this._env) {
1095
1030
  this.setEnv(defaultEnv);
@@ -2448,6 +2383,11 @@ let Step$1 = class Step {
2448
2383
  return this.context.tryUpdateLength();
2449
2384
  }
2450
2385
  };
2386
+ class StepClosed extends Step$1 {
2387
+ lineEnd() {
2388
+ this.context.closePath();
2389
+ }
2390
+ }
2451
2391
  function genStepSegments(points, t, params = {}) {
2452
2392
  const { direction, startPoint } = params;
2453
2393
  if (points.length < 2 - Number(!!startPoint)) {
@@ -2463,6 +2403,18 @@ function genStepSegments(points, t, params = {}) {
2463
2403
  function genStepTypeSegments(path, points) {
2464
2404
  return genCurveSegments(path, points, 1);
2465
2405
  }
2406
+ function genStepClosedSegments(points, t, params = {}) {
2407
+ const { direction, startPoint } = params;
2408
+ if (points.length < 2 - Number(!!startPoint)) {
2409
+ return null;
2410
+ }
2411
+ const segContext = new SegContext('step', direction !== null && direction !== void 0 ? direction : (abs(points[points.length - 1].x - points[0].x) > abs(points[points.length - 1].y - points[0].y)
2412
+ ? Direction$1.ROW
2413
+ : Direction$1.COLUMN));
2414
+ const step = new StepClosed(segContext, t, startPoint);
2415
+ genStepTypeSegments(step, points);
2416
+ return segContext;
2417
+ }
2466
2418
 
2467
2419
  class LinearClosed extends Linear {
2468
2420
  lineEnd() {
@@ -2737,6 +2689,8 @@ function calcLineCache(points, curveType, params) {
2737
2689
  return genMonotoneYSegments(points, params);
2738
2690
  case 'step':
2739
2691
  return genStepSegments(points, 0.5, params);
2692
+ case 'stepClosed':
2693
+ return genStepClosedSegments(points, 0.5, params);
2740
2694
  case 'stepBefore':
2741
2695
  return genStepSegments(points, 0, params);
2742
2696
  case 'stepAfter':
@@ -3792,7 +3746,7 @@ function getScaledStroke(context, width, dpr) {
3792
3746
  return strokeWidth;
3793
3747
  }
3794
3748
  function createColor(context, c, params, offsetX = 0, offsetY = 0) {
3795
- var _a, _b;
3749
+ var _a, _b, _c, _d;
3796
3750
  if (!c || c === true) {
3797
3751
  return 'black';
3798
3752
  }
@@ -3826,10 +3780,10 @@ function createColor(context, c, params, offsetX = 0, offsetY = 0) {
3826
3780
  x /= scaleX;
3827
3781
  y /= scaleY;
3828
3782
  if (angle || scaleX !== 1 || scaleY !== 1) {
3829
- x = 0;
3830
- y = 0;
3831
- w = (_a = params.widthWithoutTransform) !== null && _a !== void 0 ? _a : w;
3832
- h = (_b = params.heightWithoutTransform) !== null && _b !== void 0 ? _b : h;
3783
+ x = (_a = params.x1WithoutTransform) !== null && _a !== void 0 ? _a : 0;
3784
+ y = (_b = params.y1WithoutTransform) !== null && _b !== void 0 ? _b : 0;
3785
+ w = (_c = params.widthWithoutTransform) !== null && _c !== void 0 ? _c : w;
3786
+ h = (_d = params.heightWithoutTransform) !== null && _d !== void 0 ? _d : h;
3833
3787
  }
3834
3788
  }
3835
3789
  if (color.gradient === 'linear') {
@@ -3867,7 +3821,9 @@ function createConicGradient(context, color, x, y, w, h) {
3867
3821
  canvasGradient.addColorStop(stop.offset, stop.color);
3868
3822
  });
3869
3823
  let deltaAngle;
3870
- return canvasGradient.GetPattern(w + x, h + y, deltaAngle);
3824
+ return canvasGradient.GetPattern
3825
+ ? canvasGradient.GetPattern(w + x, h + y, deltaAngle)
3826
+ : canvasGradient;
3871
3827
  }
3872
3828
 
3873
3829
  const DIRECTION_KEY = {
@@ -4548,9 +4504,6 @@ function isAroundZero(val) {
4548
4504
  function isNotAroundZero(val) {
4549
4505
  return val > EPSILON || val < -EPSILON;
4550
4506
  }
4551
- function isNumber(data) {
4552
- return typeof data === 'number' && Number.isFinite(data);
4553
- }
4554
4507
  const _v0 = [0, 0];
4555
4508
  const _v1 = [0, 0];
4556
4509
  const _v2 = [0, 0];
@@ -5287,7 +5240,7 @@ const canvasAllocate = new DefaultCanvasAllocate();
5287
5240
 
5288
5241
  const VWindow = Symbol.for('VWindow');
5289
5242
  const WindowHandlerContribution = Symbol.for('WindowHandlerContribution');
5290
- let DefaultWindow = class DefaultWindow extends EventListenerManager {
5243
+ let DefaultWindow = class DefaultWindow {
5291
5244
  get width() {
5292
5245
  if (this._handler) {
5293
5246
  const wh = this._handler.getWH();
@@ -5306,7 +5259,6 @@ let DefaultWindow = class DefaultWindow extends EventListenerManager {
5306
5259
  return this._handler.getDpr();
5307
5260
  }
5308
5261
  constructor() {
5309
- super();
5310
5262
  this.hooks = {
5311
5263
  onChange: new SyncHook(['x', 'y', 'width', 'height'])
5312
5264
  };
@@ -5323,15 +5275,6 @@ let DefaultWindow = class DefaultWindow extends EventListenerManager {
5323
5275
  this.global = application.global;
5324
5276
  this.postInit();
5325
5277
  }
5326
- _nativeAddEventListener(type, listener, options) {
5327
- return this._handler.addEventListener(type, listener, options);
5328
- }
5329
- _nativeRemoveEventListener(type, listener, options) {
5330
- return this._handler.removeEventListener(type, listener, options);
5331
- }
5332
- _nativeDispatchEvent(event) {
5333
- return this._handler.dispatchEvent(event);
5334
- }
5335
5278
  postInit() {
5336
5279
  this.global.hooks.onSetEnv.tap('window', this.active);
5337
5280
  this.active();
@@ -5377,7 +5320,6 @@ let DefaultWindow = class DefaultWindow extends EventListenerManager {
5377
5320
  }
5378
5321
  release() {
5379
5322
  this.global.hooks.onSetEnv.unTap('window', this.active);
5380
- this.clearAllEventListeners();
5381
5323
  return this._handler.releaseWindow();
5382
5324
  }
5383
5325
  getContext() {
@@ -5392,6 +5334,15 @@ let DefaultWindow = class DefaultWindow extends EventListenerManager {
5392
5334
  }
5393
5335
  return this._handler.getImageBuffer(type);
5394
5336
  }
5337
+ addEventListener(type, listener, options) {
5338
+ return this._handler.addEventListener(type, listener, options);
5339
+ }
5340
+ removeEventListener(type, listener, options) {
5341
+ return this._handler.removeEventListener(type, listener, options);
5342
+ }
5343
+ dispatchEvent(event) {
5344
+ return this._handler.dispatchEvent(event);
5345
+ }
5395
5346
  getBoundingClientRect() {
5396
5347
  return this._handler.getBoundingClientRect();
5397
5348
  }
@@ -7451,8 +7402,8 @@ class EventSystem {
7451
7402
  const { globalObj, domElement } = this;
7452
7403
  if (this.supportsPointerEvents) {
7453
7404
  if (globalObj.getDocument()) {
7454
- globalObj.addEventListener('pointermove', this.onPointerMove, true);
7455
- globalObj.addEventListener('pointerup', this.onPointerUp, true);
7405
+ globalObj.getDocument().addEventListener('pointermove', this.onPointerMove, true);
7406
+ globalObj.getDocument().addEventListener('pointerup', this.onPointerUp, true);
7456
7407
  }
7457
7408
  else {
7458
7409
  domElement.addEventListener('pointermove', this.onPointerMove, true);
@@ -7464,8 +7415,8 @@ class EventSystem {
7464
7415
  }
7465
7416
  else {
7466
7417
  if (globalObj.getDocument()) {
7467
- globalObj.addEventListener('mousemove', this.onPointerMove, true);
7468
- globalObj.addEventListener('mouseup', this.onPointerUp, true);
7418
+ globalObj.getDocument().addEventListener('mousemove', this.onPointerMove, true);
7419
+ globalObj.getDocument().addEventListener('mouseup', this.onPointerUp, true);
7469
7420
  }
7470
7421
  else {
7471
7422
  domElement.addEventListener('mousemove', this.onPointerMove, true);
@@ -7486,32 +7437,22 @@ class EventSystem {
7486
7437
  this.eventsAdded = true;
7487
7438
  }
7488
7439
  removeEvents() {
7440
+ var _a;
7489
7441
  if (!this.eventsAdded || !this.domElement) {
7490
7442
  return;
7491
7443
  }
7492
7444
  const { globalObj, domElement } = this;
7445
+ const globalDocument = (_a = globalObj.getDocument()) !== null && _a !== void 0 ? _a : domElement;
7493
7446
  if (this.supportsPointerEvents) {
7494
- if (globalObj.getDocument()) {
7495
- globalObj.removeEventListener('pointermove', this.onPointerMove, true);
7496
- globalObj.removeEventListener('pointerup', this.onPointerUp, true);
7497
- }
7498
- else {
7499
- domElement.removeEventListener('pointermove', this.onPointerMove, true);
7500
- domElement.removeEventListener('pointerup', this.onPointerUp, true);
7501
- }
7447
+ globalDocument.removeEventListener('pointermove', this.onPointerMove, true);
7448
+ globalDocument.removeEventListener('pointerup', this.onPointerUp, true);
7502
7449
  domElement.removeEventListener('pointerdown', this.onPointerDown, true);
7503
7450
  domElement.removeEventListener('pointerleave', this.onPointerOverOut, true);
7504
7451
  domElement.removeEventListener('pointerover', this.onPointerOverOut, true);
7505
7452
  }
7506
7453
  else {
7507
- if (globalObj.getDocument()) {
7508
- globalObj.removeEventListener('mousemove', this.onPointerMove, true);
7509
- globalObj.removeEventListener('mouseup', this.onPointerUp, true);
7510
- }
7511
- else {
7512
- domElement.removeEventListener('mousemove', this.onPointerMove, true);
7513
- domElement.removeEventListener('mouseup', this.onPointerUp, true);
7514
- }
7454
+ globalDocument.removeEventListener('mousemove', this.onPointerMove, true);
7455
+ globalDocument.removeEventListener('mouseup', this.onPointerUp, true);
7515
7456
  domElement.removeEventListener('mousedown', this.onPointerDown, true);
7516
7457
  domElement.removeEventListener('mouseout', this.onPointerOverOut, true);
7517
7458
  domElement.removeEventListener('mouseover', this.onPointerOverOut, true);
@@ -9292,8 +9233,8 @@ class IncreaseCount extends ACustomAnimate {
9292
9233
  }
9293
9234
  onBind() {
9294
9235
  var _a, _b, _c, _d, _e, _f, _g, _h;
9295
- this.fromNumber = isNumber$1((_a = this.from) === null || _a === void 0 ? void 0 : _a.text) ? (_b = this.from) === null || _b === void 0 ? void 0 : _b.text : Number.parseFloat((_c = this.from) === null || _c === void 0 ? void 0 : _c.text);
9296
- this.toNumber = isNumber$1((_d = this.to) === null || _d === void 0 ? void 0 : _d.text) ? (_e = this.to) === null || _e === void 0 ? void 0 : _e.text : Number.parseFloat((_f = this.to) === null || _f === void 0 ? void 0 : _f.text);
9236
+ this.fromNumber = isNumber((_a = this.from) === null || _a === void 0 ? void 0 : _a.text) ? (_b = this.from) === null || _b === void 0 ? void 0 : _b.text : Number.parseFloat((_c = this.from) === null || _c === void 0 ? void 0 : _c.text);
9237
+ this.toNumber = isNumber((_d = this.to) === null || _d === void 0 ? void 0 : _d.text) ? (_e = this.to) === null || _e === void 0 ? void 0 : _e.text : Number.parseFloat((_f = this.to) === null || _f === void 0 ? void 0 : _f.text);
9297
9238
  if (!Number.isFinite(this.toNumber)) {
9298
9239
  this.fromNumber = 0;
9299
9240
  }
@@ -10861,7 +10802,7 @@ const splitCircle = (arc, count) => {
10861
10802
  return res;
10862
10803
  };
10863
10804
  const samplingPoints = (points, count) => {
10864
- const validatePoints = points.filter(point => point.defined !== false && isNumber$1(point.x) && isNumber$1(point.y));
10805
+ const validatePoints = points.filter(point => point.defined !== false && isNumber(point.x) && isNumber(point.y));
10865
10806
  if (validatePoints.length === 0) {
10866
10807
  return [];
10867
10808
  }
@@ -10915,7 +10856,7 @@ const splitArea = (area, count) => {
10915
10856
  return res.concat((_a = seg.points) !== null && _a !== void 0 ? _a : []);
10916
10857
  }, []);
10917
10858
  }
10918
- const validatePoints = points.filter(point => point.defined !== false && isNumber$1(point.x) && isNumber$1(point.y));
10859
+ const validatePoints = points.filter(point => point.defined !== false && isNumber(point.x) && isNumber(point.y));
10919
10860
  if (!validatePoints.length) {
10920
10861
  return [];
10921
10862
  }
@@ -11149,7 +11090,7 @@ ColorStore.store255 = {};
11149
11090
  ColorStore.store1 = {};
11150
11091
 
11151
11092
  function colorArrayToString(color, alphaChannel = false) {
11152
- if (Array.isArray(color) && isNumber$1(color[0])) {
11093
+ if (Array.isArray(color) && isNumber(color[0])) {
11153
11094
  return alphaChannel
11154
11095
  ? `rgb(${Math.round(color[0])},${Math.round(color[1])},${Math.round(color[2])},${color[3].toFixed(2)})`
11155
11096
  : `rgb(${Math.round(color[0])},${Math.round(color[1])},${Math.round(color[2])})`;
@@ -11157,7 +11098,7 @@ function colorArrayToString(color, alphaChannel = false) {
11157
11098
  return color;
11158
11099
  }
11159
11100
  function interpolateColor(from, to, ratio, alphaChannel, cb) {
11160
- if ((Array.isArray(from) && !isNumber$1(from[0])) || (Array.isArray(to) && !isNumber$1(to[0]))) {
11101
+ if ((Array.isArray(from) && !isNumber(from[0])) || (Array.isArray(to) && !isNumber(to[0]))) {
11161
11102
  const out = new Array(4).fill(0).map((_, index) => {
11162
11103
  return _interpolateColor(isArray(from) ? from[index] : from, isArray(to) ? to[index] : to, ratio, alphaChannel);
11163
11104
  });
@@ -11975,7 +11916,7 @@ function getIndex(url, arr) {
11975
11916
 
11976
11917
  class BaseSymbol {
11977
11918
  bounds(size, bounds) {
11978
- if (isNumber$1(size)) {
11919
+ if (isNumber(size)) {
11979
11920
  const halfS = size / 2;
11980
11921
  bounds.x1 = -halfS;
11981
11922
  bounds.x2 = halfS;
@@ -11990,7 +11931,7 @@ class BaseSymbol {
11990
11931
  }
11991
11932
  }
11992
11933
  parseSize(size) {
11993
- return isNumber$1(size) ? size : Math.min(size[0], size[1]);
11934
+ return isNumber(size) ? size : Math.min(size[0], size[1]);
11994
11935
  }
11995
11936
  }
11996
11937
 
@@ -12601,13 +12542,13 @@ class RectSymbol extends BaseSymbol {
12601
12542
  this.pathStr = 'M -0.5,0.25 L 0.5,0.25 L 0.5,-0.25,L -0.5,-0.25 Z';
12602
12543
  }
12603
12544
  draw(ctx, size, x, y) {
12604
- if (isNumber$1(size)) {
12545
+ if (isNumber(size)) {
12605
12546
  return rectSize(ctx, size, x, y);
12606
12547
  }
12607
12548
  return rectSizeArray(ctx, size, x, y);
12608
12549
  }
12609
12550
  drawWithClipRange(ctx, size, x, y, clipRange, z, cb) {
12610
- if (isNumber$1(size)) {
12551
+ if (isNumber(size)) {
12611
12552
  size = [size, size / 2];
12612
12553
  }
12613
12554
  const totalLength = (size[0] + size[1]) * 2;
@@ -12639,7 +12580,7 @@ class RectSymbol extends BaseSymbol {
12639
12580
  return false;
12640
12581
  }
12641
12582
  drawOffset(ctx, size, x, y, offset) {
12642
- if (isNumber$1(size)) {
12583
+ if (isNumber(size)) {
12643
12584
  return rectSize(ctx, size + 2 * offset, x, y);
12644
12585
  }
12645
12586
  return rectSizeArray(ctx, [size[0] + 2 * offset, size[1] + 2 * offset], x, y);
@@ -12647,7 +12588,7 @@ class RectSymbol extends BaseSymbol {
12647
12588
  }
12648
12589
  var rect = new RectSymbol();
12649
12590
 
12650
- const tempBounds$1 = new AABBBounds();
12591
+ const tempBounds = new AABBBounds();
12651
12592
  class CustomSymbolClass {
12652
12593
  constructor(type, path, isSvg = false) {
12653
12594
  this.pathStr = '';
@@ -12681,7 +12622,7 @@ class CustomSymbolClass {
12681
12622
  return this.drawOffset(ctx, size, x, y, 0, z, cb);
12682
12623
  }
12683
12624
  parseSize(size) {
12684
- return isNumber$1(size) ? size : Math.min(size[0], size[1]);
12625
+ return isNumber(size) ? size : Math.min(size[0], size[1]);
12685
12626
  }
12686
12627
  drawWithClipRange(ctx, size, x, y, clipRange, z, cb) {
12687
12628
  size = this.parseSize(size);
@@ -12706,11 +12647,11 @@ class CustomSymbolClass {
12706
12647
  }
12707
12648
  bounds.clear();
12708
12649
  this.svgCache.forEach(({ path }) => {
12709
- tempBounds$1.x1 = path.bounds.x1 * size;
12710
- tempBounds$1.y1 = path.bounds.y1 * size;
12711
- tempBounds$1.x2 = path.bounds.x2 * size;
12712
- tempBounds$1.y2 = path.bounds.y2 * size;
12713
- bounds.union(tempBounds$1);
12650
+ tempBounds.x1 = path.bounds.x1 * size;
12651
+ tempBounds.y1 = path.bounds.y1 * size;
12652
+ tempBounds.x2 = path.bounds.x2 * size;
12653
+ tempBounds.y2 = path.bounds.y2 * size;
12654
+ bounds.union(tempBounds);
12714
12655
  });
12715
12656
  return;
12716
12657
  }
@@ -13285,7 +13226,7 @@ const SVG_PARSE_ATTRIBUTE_MAP_KEYS = Object.keys(SVG_PARSE_ATTRIBUTE_MAP);
13285
13226
 
13286
13227
  const _tempBounds$1 = new AABBBounds();
13287
13228
  const tempMatrix = new Matrix();
13288
- const tempBounds = new AABBBounds();
13229
+ new AABBBounds();
13289
13230
  const PURE_STYLE_KEY = [
13290
13231
  'stroke',
13291
13232
  'opacity',
@@ -14139,18 +14080,20 @@ class Graphic extends Node {
14139
14080
  needUpdateLayout() {
14140
14081
  return !!(this._updateTag & UpdateTag.UPDATE_LAYOUT);
14141
14082
  }
14142
- getAnchor(anchor, params) {
14083
+ getAnchor(anchor, params, resetScale) {
14143
14084
  const _anchor = [0, 0];
14144
14085
  const getBounds = () => {
14145
14086
  if (params.b) {
14146
14087
  return params.b;
14147
14088
  }
14148
- const { scaleX, scaleY, angle, scaleCenter } = this.attribute;
14149
- tempBounds.copy(this._AABBBounds);
14150
- this.setAttributes({ angle: 0, scaleCenter: null });
14151
- params.b = this.AABBBounds.clone();
14152
- this._AABBBounds.copy(tempBounds);
14153
- this.setAttributes({ scaleX, scaleY, angle, scaleCenter });
14089
+ const graphic = this.clone();
14090
+ graphic.attribute.angle = 0;
14091
+ graphic.attribute.scaleCenter = null;
14092
+ if (resetScale) {
14093
+ graphic.attribute.scaleX = 1;
14094
+ graphic.attribute.scaleY = 1;
14095
+ }
14096
+ params.b = graphic.AABBBounds;
14154
14097
  return params.b;
14155
14098
  };
14156
14099
  if (typeof anchor[0] === 'string') {
@@ -14185,7 +14128,7 @@ class Graphic extends Node {
14185
14128
  m.rotate(angle);
14186
14129
  m.translate(-_anchor[0], -_anchor[1]);
14187
14130
  m.translate(x, y);
14188
- _anchor = this.getAnchor(scaleCenter, params);
14131
+ _anchor = this.getAnchor(scaleCenter, params, true);
14189
14132
  application.transformUtil.fromMatrix(m, m).scale(scaleX, scaleY, { x: _anchor[0], y: _anchor[1] });
14190
14133
  }
14191
14134
  else {
@@ -16317,12 +16260,12 @@ let DefaultGraphicService = class DefaultGraphicService {
16317
16260
  updateHTMLTextAABBBounds(attribute, textTheme, aabbBounds, graphic) {
16318
16261
  const { textAlign, textBaseline } = attribute;
16319
16262
  if (attribute.forceBoundsHeight != null) {
16320
- const h = isNumber$1(attribute.forceBoundsHeight) ? attribute.forceBoundsHeight : attribute.forceBoundsHeight();
16263
+ const h = isNumber(attribute.forceBoundsHeight) ? attribute.forceBoundsHeight : attribute.forceBoundsHeight();
16321
16264
  const dy = textLayoutOffsetY(textBaseline, h, h);
16322
16265
  aabbBounds.set(aabbBounds.x1, dy, aabbBounds.x2, dy + h);
16323
16266
  }
16324
16267
  if (attribute.forceBoundsWidth != null) {
16325
- const w = isNumber$1(attribute.forceBoundsWidth) ? attribute.forceBoundsWidth : attribute.forceBoundsWidth();
16268
+ const w = isNumber(attribute.forceBoundsWidth) ? attribute.forceBoundsWidth : attribute.forceBoundsWidth();
16326
16269
  const dx = textDrawOffsetX(textAlign, w);
16327
16270
  aabbBounds.set(dx, aabbBounds.y1, dx + w, aabbBounds.y2);
16328
16271
  }
@@ -17302,6 +17245,8 @@ let Symbol$1 = class Symbol extends Graphic {
17302
17245
  tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
17303
17246
  this.widthWithoutTransform = aabbBounds.x2 - aabbBounds.x1;
17304
17247
  this.heightWithoutTransform = aabbBounds.y2 - aabbBounds.y1;
17248
+ this.x1WithoutTransform = aabbBounds.x1;
17249
+ this.y1WithoutTransform = aabbBounds.y1;
17305
17250
  const { lineJoin = symbolTheme.lineJoin } = attribute;
17306
17251
  application.graphicService.transformAABBBounds(attribute, aabbBounds, symbolTheme, lineJoin === 'miter', this);
17307
17252
  return aabbBounds;
@@ -19184,7 +19129,7 @@ class RichText extends Graphic {
19184
19129
  }
19185
19130
  else {
19186
19131
  const richTextConfig = this.combinedStyleToCharacter(textConfig[i]);
19187
- if (isNumber$1(richTextConfig.text)) {
19132
+ if (isNumber(richTextConfig.text)) {
19188
19133
  richTextConfig.text = `${richTextConfig.text}`;
19189
19134
  }
19190
19135
  if (richTextConfig.text && richTextConfig.text.includes('\n')) {
@@ -19606,7 +19551,7 @@ class Arc extends Graphic {
19606
19551
  }
19607
19552
  const deltaRadius = Math.abs(outerRadius - innerRadius);
19608
19553
  const parseCR = (cornerRadius) => {
19609
- return Math.min(isNumber$1(cornerRadius, true)
19554
+ return Math.min(isNumber(cornerRadius, true)
19610
19555
  ? cornerRadius
19611
19556
  : (deltaRadius * parseFloat(cornerRadius)) / 100, deltaRadius / 2);
19612
19557
  };
@@ -20832,7 +20777,7 @@ function createRectPath(path, x, y, width, height, rectCornerRadius, roundCorner
20832
20777
  height = -height;
20833
20778
  }
20834
20779
  let cornerRadius;
20835
- if (isNumber$1(rectCornerRadius, true)) {
20780
+ if (isNumber(rectCornerRadius, true)) {
20836
20781
  rectCornerRadius = abs(rectCornerRadius);
20837
20782
  cornerRadius = [
20838
20783
  rectCornerRadius,
@@ -27387,83 +27332,6 @@ function flatten_simplify(points, tolerance, highestQuality) {
27387
27332
  return points;
27388
27333
  }
27389
27334
 
27390
- function isIdentityMatrix(matrix) {
27391
- return matrix.a === 1 && matrix.b === 0 && matrix.c === 0 && matrix.d === 1 && matrix.e === 0 && matrix.f === 0;
27392
- }
27393
- function createEventTransformer(containerElement, getMatrix, getRect, transformPoint) {
27394
- return (event) => {
27395
- if (!(event instanceof MouseEvent) && !(event instanceof TouchEvent) && !(event instanceof PointerEvent)) {
27396
- return event;
27397
- }
27398
- const transformMatrix = getMatrix();
27399
- if (isIdentityMatrix(transformMatrix)) {
27400
- return event;
27401
- }
27402
- const containerRect = getRect();
27403
- const transformedEvent = new event.constructor(event.type, event);
27404
- Object.defineProperties(transformedEvent, {
27405
- target: { value: event.target },
27406
- currentTarget: { value: event.currentTarget }
27407
- });
27408
- if (event instanceof MouseEvent || event instanceof PointerEvent) {
27409
- transformPoint(event.clientX, event.clientY, transformMatrix, containerRect, transformedEvent);
27410
- }
27411
- else if (event instanceof TouchEvent) {
27412
- if (event.touches.length > 0) {
27413
- const touch = transformedEvent.touches[0];
27414
- transformPoint(touch.clientX, touch.clientY, transformMatrix, containerRect, touch);
27415
- }
27416
- if (event.changedTouches.length > 0) {
27417
- const touch = transformedEvent.changedTouches[0];
27418
- transformPoint(touch.clientX, touch.clientY, transformMatrix, containerRect, touch);
27419
- }
27420
- }
27421
- return transformedEvent;
27422
- };
27423
- }
27424
- function createCanvasEventTransformer(canvasElement, getMatrix, getRect, transformPoint) {
27425
- return createEventTransformer(canvasElement.parentElement || canvasElement, getMatrix, getRect, transformPoint);
27426
- }
27427
- function registerWindowEventTransformer(window, container, getMatrix, getRect, transformPoint) {
27428
- const transformer = createEventTransformer(container, getMatrix, getRect, transformPoint);
27429
- window.setEventListenerTransformer(transformer);
27430
- }
27431
- function registerGlobalEventTransformer(global, container, getMatrix, getRect, transformPoint) {
27432
- const transformer = createEventTransformer(container, getMatrix, getRect, transformPoint);
27433
- global.setEventListenerTransformer(transformer);
27434
- }
27435
- function transformPointForCanvas(clientX, clientY, matrix, rect, transformedEvent) {
27436
- const transformedPoint = { x: clientX, y: clientY };
27437
- matrix.transformPoint(transformedPoint, transformedPoint);
27438
- Object.defineProperties(transformedEvent, {
27439
- _canvasX: { value: transformedPoint.x },
27440
- _canvasY: { value: transformedPoint.y }
27441
- });
27442
- return;
27443
- }
27444
- function mapToCanvasPointForCanvas(nativeEvent) {
27445
- var _a;
27446
- if (isNumber(nativeEvent._canvasX) && isNumber(nativeEvent._canvasY)) {
27447
- return {
27448
- x: nativeEvent._canvasX,
27449
- y: nativeEvent._canvasY
27450
- };
27451
- }
27452
- else if (nativeEvent.changedTouches) {
27453
- const data = (_a = nativeEvent.changedTouches[0]) !== null && _a !== void 0 ? _a : {};
27454
- return {
27455
- x: data._canvasX,
27456
- y: data._canvasY
27457
- };
27458
- }
27459
- const x = nativeEvent._canvasX || 0;
27460
- const y = nativeEvent._canvasY || 0;
27461
- return {
27462
- x,
27463
- y
27464
- };
27465
- }
27466
-
27467
27335
  function getDefaultCharacterConfig(attribute) {
27468
27336
  const { fill = 'black', stroke = false, fontWeight = 'normal', lineHeight, fontFamily = 'Arial', textAlign } = attribute;
27469
27337
  let { fontSize = 12 } = attribute;
@@ -30661,4 +30529,4 @@ function generatorPathEasingFunc(path) {
30661
30529
  };
30662
30530
  }
30663
30531
 
30664
- export { ACustomAnimate, ARC3D_NUMBER_TYPE, ARC_NUMBER_TYPE, AREA_NUMBER_TYPE, AbstractGraphicRender, Animate, AnimateGroup, AnimateGroup1, AnimateMode, AnimateStatus, AnimateStepType, Application, Arc, Arc3d, Arc3dRender, ArcRender, ArcRenderContribution, Area, AreaRender, AreaRenderContribution, AttributeAnimate, AttributeUpdateType, AutoEnablePlugins, BaseCanvas, BaseEnvContribution, BaseRender, BaseRenderContributionTime, BaseWindowHandlerContribution, Basis, BeforeRenderConstribution, BoundsContext, BoundsPicker, CIRCLE_NUMBER_TYPE, Canvas3DDrawItemInterceptor, Canvas3DPickItemInterceptor, CanvasFactory, CanvasTextLayout, CbAnimate, Circle, CircleRender, CircleRenderContribution, ClipAngleAnimate, ClipDirectionAnimate, ClipGraphicAnimate, ClipRadiusAnimate, ColorInterpolate, ColorStore, ColorType, CommonDrawItemInterceptorContribution, CommonRenderContribution, Container, ContainerModule, Context2dFactory, ContributionProvider, CurveContext, CurveTypeEnum, CustomEvent, CustomPath2D, CustomSymbolClass, DEFAULT_TEXT_FONT_FAMILY, 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, DefaultMorphingAnimateConfig, DefaultPathAllocate, DefaultPathAttribute, DefaultPickService, DefaultPickStyle, DefaultPolygonAttribute, DefaultRect3dAttribute, DefaultRectAllocate, DefaultRectAttribute, DefaultRectRenderContribution, DefaultRenderService, DefaultRichTextAttribute, DefaultRichTextIconAttribute, DefaultStarAttribute, DefaultStateAnimateConfig, DefaultStrokeStyle, DefaultStyle, DefaultSymbolAllocate, DefaultSymbolAttribute, DefaultSymbolClipRangeStrokeRenderContribution, DefaultSymbolRenderContribution, DefaultTextAllocate, DefaultTextAttribute, DefaultTextMeasureContribution, DefaultTextStyle, DefaultTicker, DefaultTimeline, DefaultTransform, DefaultTransformUtil, DefaultWindow, Direction$1 as Direction, DirectionalLight, DrawContribution, DrawItemInterceptor, DynamicLayerHandlerContribution, Easing, Edge, EditModule, EmptyContext2d, EnvContribution, EventManager, EventSystem, EventTarget, FORMAT_ALL_TEXT_COMMAND, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, Factory, FadeInPlus, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, FlexLayoutPlugin, GLYPH_NUMBER_TYPE, GRAPHIC_UPDATE_TAG_KEY, GROUP_NUMBER_TYPE, Generator, GlobalPickerService, Glyph, GlyphRender, Graphic, GraphicAnimate, GraphicCreator$1 as GraphicCreator, GraphicPicker, GraphicRender, GraphicService, GraphicUtil, Group, GroupFadeIn, GroupFadeOut, GroupRender, GroupRenderContribution, GroupUpdateAABBBoundsMode, HtmlAttributePlugin, IContainPointMode, IMAGE_NUMBER_TYPE, Image, ImageRender, ImageRenderContribution, IncreaseCount, IncrementalDrawContribution, InputText, InteractiveDrawItemInterceptorContribution, InteractivePickItemInterceptorContribution, InteractiveSubRenderContribution, LINE_NUMBER_TYPE, Layer, LayerService, Line$1 as Line, LineRender, Linear, LinearClosed, ManualTickHandler, ManualTicker, Mat4Allocate, MatrixAllocate, MeasureModeEnum, Meteor, MonotoneX, MonotoneY, MorphingPath, MotionPath, MultiToOneMorphingPath, NOWORK_ANIMATE_ATTR, Node, OrthoCamera, PATH_NUMBER_TYPE, POLYGON_NUMBER_TYPE, PURE_STYLE_KEY, PYRAMID3D_NUMBER_TYPE, Path, PathRender, PathRenderContribution, PickItemInterceptor, PickServiceInterceptor, PickerService, PluginService, Polygon, PolygonRender, PolygonRenderContribution, Pyramid3d, Pyramid3dRender, RAFTickHandler, RECT3D_NUMBER_TYPE, RECT_NUMBER_TYPE, RICHTEXT_NUMBER_TYPE, RafBasedSTO, ReactAttributePlugin, Rect, Rect3DRender, Rect3d, RectRender, RectRenderContribution, ReflectSegContext, RenderSelector, RenderService, ResourceLoader, RichText, RichTextEditPlugin, RichTextRender, RotateBySphereAnimate, STAR_NUMBER_TYPE, SVG_ATTRIBUTE_MAP, SVG_ATTRIBUTE_MAP_KEYS, SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS, SYMBOL_NUMBER_TYPE, SegContext, ShadowPickServiceInterceptorContribution, ShadowRoot, ShadowRootDrawItemInterceptorContribution, ShadowRootPickItemInterceptorContribution, SplitRectAfterRenderContribution, SplitRectBeforeRenderContribution, Stage, Star, StarRender, StarRenderContribution, StaticLayerHandlerContribution, Step$1 as Step, StreamLight, SubAnimate, Symbol$1 as Symbol, SymbolRender, SymbolRenderContribution, TEXT_NUMBER_TYPE, TagPointsUpdate, Text, TextDirection, TextMeasureContribution, TextRender, TextRenderContribution, Theme, TimeOutTickHandler, TransformUtil, UpdateTag, VGlobal, VWindow, ViewTransform3dPlugin, VirtualLayerHandlerContribution, WILDCARD, WindowHandlerContribution, WrapText, XMLParser, _calculateLineHeight, _interpolateColor, addArcToBezierPath, addAttributeToPrototype, alignBezierCurves, alignSubpath, application, applyTransformOnBezierCurves, arc3dModule, arcModule, areaModule, bezier, bezierCurversToPath, binarySplitPolygon, bindContributionProvider, bindContributionProviderNoSingletonScope, boundStroke, builtInSymbolStrMap, builtinSymbols, builtinSymbolsMap, calcLineCache, calculateArcCornerRadius, calculateLineHeight, canvasAllocate, centroidOfSubpath, circleBounds, circleModule, clock, cloneGraphic, colorEqual, colorStringInterpolationToStr, container, cornerTangents, createArc, createArc3d, createArea, createCanvasEventTransformer, createCircle, createColor, createConicalGradient, createEventTransformer, createGlyph, createGroup, createImage, createLine, createMat4, createPath, createPolygon, createPyramid3d, createRect, createRect3d, createRectPath, createRichText, createShadowRoot, createStage, createStar, createSymbol, createText, createWrapText, cubicCalc, cubicLength, cubicPointAt, cubicSubdivide, 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, drawArc, drawArcPath$1 as drawArcPath, drawAreaSegments, drawIncrementalAreaSegments, drawIncrementalSegments, drawSegments, enumCommandMap, fillVisible, findBestMorphingRotation, findConfigIndexByCursorIdx, findCursorIdxByConfigIndex, findNextGraphic, flatten_simplify, foreach, foreachAsync, genBasisSegments, genBasisTypeSegments, genLinearClosedSegments, genLinearClosedTypeSegments, genLinearSegments, genLinearTypeSegments, genMonotoneXSegments, genMonotoneXTypeSegments, genMonotoneYSegments, genMonotoneYTypeSegments, genNumberType, genStepSegments, genStepTypeSegments, generatorPathEasingFunc, getAttributeFromDefaultAttrList, getConicGradientAt, getCurrentEnv, getDefaultCharacterConfig, getExtraModelMatrix, getModelMatrix, getRichTextBounds, getScaledStroke, getTextBounds, getTheme, getThemeFromGroup, globalTheme, glyphModule, graphicCreator, graphicService, graphicUtil, identityMat4, imageModule, incrementalAddTo, inject, injectable, interpolateColor, interpolateGradientConicalColor, interpolateGradientLinearColor, interpolateGradientRadialColor, interpolatePureColorArray, intersect, isBrowserEnv, isNodeEnv, isSvg, isTransformKey, isXML, layerService, lineModule, lookAt, mapToCanvasPointForCanvas, mat3Tomat4, mat4Allocate, matrixAllocate, morphPath, multiInject, multiToOneMorph, multiplyMat4Mat3, multiplyMat4Mat4, named, newThemeObj, oneToMultiMorph, ortho, parsePadding, parseStroke, parseSvgPath, pathModule, pathToBezierCurves, point$3 as point, pointEqual, pointInterpolation, pointInterpolationHighPerformance, pointsEqual, pointsInterpolation, polygonModule, preLoadAllModule, pyramid3dModule, quadCalc, quadLength, quadPointAt, rafBasedSto, rect3dModule, rectFillVisible, rectModule, rectStrokeVisible, recursiveCallBinarySplit, registerArc3dGraphic, registerArcGraphic, registerAreaGraphic, registerCircleGraphic, registerDirectionalLight, registerFlexLayoutPlugin, registerGlobalEventTransformer, registerGlyphGraphic, registerGroupGraphic, registerHtmlAttributePlugin, registerImageGraphic, registerLineGraphic, registerOrthoCamera, registerPathGraphic, registerPolygonGraphic, registerPyramid3dGraphic, registerReactAttributePlugin, registerRect3dGraphic, registerRectGraphic, registerRichtextGraphic, registerShadowRootGraphic, registerStarGraphic, registerSymbolGraphic, registerTextGraphic, registerViewTransform3dPlugin, registerWindowEventTransformer, registerWrapTextGraphic, renderCommandList, rewriteProto, richtextModule, rotateX, rotateY, rotateZ, runFill, runStroke, scaleMat4, segments, shouldUseMat4, snapLength, splitArc, splitArea, splitCircle, splitGraphic, splitLine, splitPath, splitPolygon, splitRect, splitToGrids, starModule, strCommandMap, strokeVisible, symbolModule, textAttributesToStyle, textDrawOffsetX, textDrawOffsetY, textLayoutOffsetY, textModule, transformKeys, transformMat4, transformPointForCanvas, transformUtil, translate, verticalLayout, vglobal, waitForAllSubLayers, wrapCanvas, wrapContext, xul };
30532
+ export { ACustomAnimate, ARC3D_NUMBER_TYPE, ARC_NUMBER_TYPE, AREA_NUMBER_TYPE, AbstractGraphicRender, Animate, AnimateGroup, AnimateGroup1, AnimateMode, AnimateStatus, AnimateStepType, Application, Arc, Arc3d, Arc3dRender, ArcRender, ArcRenderContribution, Area, AreaRender, AreaRenderContribution, AttributeAnimate, AttributeUpdateType, AutoEnablePlugins, BaseCanvas, BaseEnvContribution, BaseRender, BaseRenderContributionTime, BaseWindowHandlerContribution, Basis, BeforeRenderConstribution, BoundsContext, BoundsPicker, CIRCLE_NUMBER_TYPE, Canvas3DDrawItemInterceptor, Canvas3DPickItemInterceptor, CanvasFactory, CanvasTextLayout, CbAnimate, Circle, CircleRender, CircleRenderContribution, ClipAngleAnimate, ClipDirectionAnimate, ClipGraphicAnimate, ClipRadiusAnimate, ColorInterpolate, ColorStore, ColorType, CommonDrawItemInterceptorContribution, CommonRenderContribution, Container, ContainerModule, Context2dFactory, ContributionProvider, CurveContext, CurveTypeEnum, CustomEvent, CustomPath2D, CustomSymbolClass, DEFAULT_TEXT_FONT_FAMILY, 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, DefaultMorphingAnimateConfig, DefaultPathAllocate, DefaultPathAttribute, DefaultPickService, DefaultPickStyle, DefaultPolygonAttribute, DefaultRect3dAttribute, DefaultRectAllocate, DefaultRectAttribute, DefaultRectRenderContribution, DefaultRenderService, DefaultRichTextAttribute, DefaultRichTextIconAttribute, DefaultStarAttribute, DefaultStateAnimateConfig, DefaultStrokeStyle, DefaultStyle, DefaultSymbolAllocate, DefaultSymbolAttribute, DefaultSymbolClipRangeStrokeRenderContribution, DefaultSymbolRenderContribution, DefaultTextAllocate, DefaultTextAttribute, DefaultTextMeasureContribution, DefaultTextStyle, DefaultTicker, DefaultTimeline, DefaultTransform, DefaultTransformUtil, DefaultWindow, Direction$1 as Direction, DirectionalLight, DrawContribution, DrawItemInterceptor, DynamicLayerHandlerContribution, Easing, Edge, EditModule, EmptyContext2d, EnvContribution, EventManager, EventSystem, EventTarget, FORMAT_ALL_TEXT_COMMAND, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, Factory, FadeInPlus, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, FlexLayoutPlugin, GLYPH_NUMBER_TYPE, GRAPHIC_UPDATE_TAG_KEY, GROUP_NUMBER_TYPE, Generator, GlobalPickerService, Glyph, GlyphRender, Graphic, GraphicAnimate, GraphicCreator$1 as GraphicCreator, GraphicPicker, GraphicRender, GraphicService, GraphicUtil, Group, GroupFadeIn, GroupFadeOut, GroupRender, GroupRenderContribution, GroupUpdateAABBBoundsMode, HtmlAttributePlugin, IContainPointMode, IMAGE_NUMBER_TYPE, Image, ImageRender, ImageRenderContribution, IncreaseCount, IncrementalDrawContribution, InputText, InteractiveDrawItemInterceptorContribution, InteractivePickItemInterceptorContribution, InteractiveSubRenderContribution, LINE_NUMBER_TYPE, Layer, LayerService, Line$1 as Line, LineRender, Linear, LinearClosed, ManualTickHandler, ManualTicker, Mat4Allocate, MatrixAllocate, MeasureModeEnum, Meteor, MonotoneX, MonotoneY, MorphingPath, MotionPath, MultiToOneMorphingPath, NOWORK_ANIMATE_ATTR, Node, OrthoCamera, PATH_NUMBER_TYPE, POLYGON_NUMBER_TYPE, PURE_STYLE_KEY, PYRAMID3D_NUMBER_TYPE, Path, PathRender, PathRenderContribution, PickItemInterceptor, PickServiceInterceptor, PickerService, PluginService, Polygon, PolygonRender, PolygonRenderContribution, Pyramid3d, Pyramid3dRender, RAFTickHandler, RECT3D_NUMBER_TYPE, RECT_NUMBER_TYPE, RICHTEXT_NUMBER_TYPE, RafBasedSTO, ReactAttributePlugin, Rect, Rect3DRender, Rect3d, RectRender, RectRenderContribution, ReflectSegContext, RenderSelector, RenderService, ResourceLoader, RichText, RichTextEditPlugin, RichTextRender, RotateBySphereAnimate, STAR_NUMBER_TYPE, SVG_ATTRIBUTE_MAP, SVG_ATTRIBUTE_MAP_KEYS, SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS, SYMBOL_NUMBER_TYPE, SegContext, ShadowPickServiceInterceptorContribution, ShadowRoot, ShadowRootDrawItemInterceptorContribution, ShadowRootPickItemInterceptorContribution, SplitRectAfterRenderContribution, SplitRectBeforeRenderContribution, Stage, Star, StarRender, StarRenderContribution, StaticLayerHandlerContribution, Step$1 as Step, StepClosed, StreamLight, SubAnimate, Symbol$1 as Symbol, SymbolRender, SymbolRenderContribution, TEXT_NUMBER_TYPE, TagPointsUpdate, Text, TextDirection, TextMeasureContribution, TextRender, TextRenderContribution, Theme, TimeOutTickHandler, TransformUtil, UpdateTag, VGlobal, VWindow, ViewTransform3dPlugin, VirtualLayerHandlerContribution, WILDCARD, WindowHandlerContribution, WrapText, XMLParser, _calculateLineHeight, _interpolateColor, addArcToBezierPath, addAttributeToPrototype, alignBezierCurves, alignSubpath, application, applyTransformOnBezierCurves, arc3dModule, arcModule, areaModule, bezier, bezierCurversToPath, binarySplitPolygon, bindContributionProvider, bindContributionProviderNoSingletonScope, boundStroke, builtInSymbolStrMap, builtinSymbols, builtinSymbolsMap, calcLineCache, calculateArcCornerRadius, calculateLineHeight, canvasAllocate, centroidOfSubpath, circleBounds, circleModule, clock, cloneGraphic, colorEqual, colorStringInterpolationToStr, container, cornerTangents, createArc, createArc3d, createArea, createCircle, createColor, createConicalGradient, createGlyph, createGroup, createImage, createLine, createMat4, createPath, createPolygon, createPyramid3d, createRect, createRect3d, createRectPath, createRichText, createShadowRoot, createStage, createStar, createSymbol, createText, createWrapText, cubicCalc, cubicLength, cubicPointAt, cubicSubdivide, 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, drawArc, drawArcPath$1 as drawArcPath, drawAreaSegments, drawIncrementalAreaSegments, drawIncrementalSegments, drawSegments, enumCommandMap, fillVisible, findBestMorphingRotation, findConfigIndexByCursorIdx, findCursorIdxByConfigIndex, findNextGraphic, flatten_simplify, foreach, foreachAsync, genBasisSegments, genBasisTypeSegments, genLinearClosedSegments, genLinearClosedTypeSegments, genLinearSegments, genLinearTypeSegments, genMonotoneXSegments, genMonotoneXTypeSegments, genMonotoneYSegments, genMonotoneYTypeSegments, genNumberType, genStepClosedSegments, genStepSegments, genStepTypeSegments, generatorPathEasingFunc, getAttributeFromDefaultAttrList, getConicGradientAt, getCurrentEnv, getDefaultCharacterConfig, getExtraModelMatrix, getModelMatrix, getRichTextBounds, getScaledStroke, getTextBounds, getTheme, getThemeFromGroup, globalTheme, glyphModule, graphicCreator, graphicService, graphicUtil, identityMat4, imageModule, incrementalAddTo, inject, injectable, interpolateColor, interpolateGradientConicalColor, interpolateGradientLinearColor, interpolateGradientRadialColor, interpolatePureColorArray, intersect, isBrowserEnv, isNodeEnv, isSvg, isTransformKey, isXML, layerService, lineModule, lookAt, mat3Tomat4, mat4Allocate, matrixAllocate, morphPath, multiInject, multiToOneMorph, multiplyMat4Mat3, multiplyMat4Mat4, named, newThemeObj, oneToMultiMorph, ortho, parsePadding, parseStroke, parseSvgPath, pathModule, pathToBezierCurves, point$3 as point, pointEqual, pointInterpolation, pointInterpolationHighPerformance, pointsEqual, pointsInterpolation, polygonModule, preLoadAllModule, pyramid3dModule, quadCalc, quadLength, quadPointAt, rafBasedSto, rect3dModule, rectFillVisible, rectModule, rectStrokeVisible, recursiveCallBinarySplit, registerArc3dGraphic, registerArcGraphic, registerAreaGraphic, registerCircleGraphic, registerDirectionalLight, registerFlexLayoutPlugin, registerGlyphGraphic, registerGroupGraphic, registerHtmlAttributePlugin, registerImageGraphic, registerLineGraphic, registerOrthoCamera, registerPathGraphic, registerPolygonGraphic, registerPyramid3dGraphic, registerReactAttributePlugin, registerRect3dGraphic, registerRectGraphic, registerRichtextGraphic, registerShadowRootGraphic, registerStarGraphic, registerSymbolGraphic, registerTextGraphic, registerViewTransform3dPlugin, registerWrapTextGraphic, renderCommandList, rewriteProto, richtextModule, rotateX, rotateY, rotateZ, runFill, runStroke, scaleMat4, segments, shouldUseMat4, snapLength, splitArc, splitArea, splitCircle, splitGraphic, splitLine, splitPath, splitPolygon, splitRect, splitToGrids, starModule, strCommandMap, strokeVisible, symbolModule, textAttributesToStyle, textDrawOffsetX, textDrawOffsetY, textLayoutOffsetY, textModule, transformKeys, transformMat4, transformUtil, translate, verticalLayout, vglobal, waitForAllSubLayers, wrapCanvas, wrapContext, xul };