@antv/g 5.0.22-alpha.3 → 5.0.22-alpha.6

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 (328) hide show
  1. package/dist/index.umd.min.js +30 -0
  2. package/es/AbstractRenderer.js +3 -1
  3. package/es/Canvas.d.ts +1 -4
  4. package/es/Canvas.js +5 -3
  5. package/es/DisplayObjectPool.js +3 -1
  6. package/es/camera/Camera.d.ts +105 -66
  7. package/es/camera/Camera.js +307 -171
  8. package/es/camera/Landmark.d.ts +18 -25
  9. package/es/camera/Landmark.js +1 -72
  10. package/es/canvas-module.js +2 -4
  11. package/es/components/Cullable.js +3 -1
  12. package/es/components/Geometry.js +3 -1
  13. package/es/components/Renderable.js +3 -1
  14. package/es/components/Sortable.js +3 -1
  15. package/es/components/Transform.js +3 -1
  16. package/es/css/LayoutRegistry.js +3 -1
  17. package/es/css/StyleValueRegistry.d.ts +10 -1
  18. package/es/css/StyleValueRegistry.js +28 -22
  19. package/es/css/cssom/CSSColorValue.js +3 -1
  20. package/es/css/cssom/CSSGradientValue.js +8 -6
  21. package/es/css/cssom/CSSKeywordValue.js +3 -1
  22. package/es/css/cssom/CSSMathInvert.js +3 -1
  23. package/es/css/cssom/CSSMathMax.js +3 -1
  24. package/es/css/cssom/CSSMathMin.js +3 -1
  25. package/es/css/cssom/CSSMathNegate.js +3 -1
  26. package/es/css/cssom/CSSMathProduct.js +3 -1
  27. package/es/css/cssom/CSSMathSum.js +3 -1
  28. package/es/css/cssom/CSSMathValue.js +3 -1
  29. package/es/css/cssom/CSSMathVariadic.js +3 -1
  30. package/es/css/cssom/CSSNumericValue.js +3 -1
  31. package/es/css/cssom/CSSNumericValueType.d.ts +1 -1
  32. package/es/css/cssom/CSSNumericValueType.js +3 -1
  33. package/es/css/cssom/CSSRGB.js +4 -2
  34. package/es/css/cssom/CSSStyleValue.d.ts +1 -1
  35. package/es/css/cssom/CSSStyleValue.js +3 -1
  36. package/es/css/cssom/CSSTransformComponent.js +3 -1
  37. package/es/css/cssom/CSSTransformValue.js +3 -1
  38. package/es/css/cssom/CSSTranslate.js +3 -1
  39. package/es/css/cssom/CSSUnitValue.js +4 -2
  40. package/es/css/parser/color.js +2 -2
  41. package/es/css/parser/dimension.d.ts +2 -1
  42. package/es/css/parser/dimension.js +2 -2
  43. package/es/css/parser/numeric.js +1 -1
  44. package/es/css/parser/path.d.ts +1 -1
  45. package/es/css/parser/points.js +1 -1
  46. package/es/css/parser/transform-origin.d.ts +1 -1
  47. package/es/css/parser/transform-origin.js +3 -3
  48. package/es/css/properties/CSSPropertyAnchor.d.ts +4 -2
  49. package/es/css/properties/CSSPropertyAnchor.js +5 -2
  50. package/es/css/properties/CSSPropertyClipPath.d.ts +2 -1
  51. package/es/css/properties/CSSPropertyClipPath.js +4 -2
  52. package/es/css/properties/CSSPropertyColor.d.ts +3 -2
  53. package/es/css/properties/CSSPropertyColor.js +4 -2
  54. package/es/css/properties/CSSPropertyFilter.d.ts +3 -2
  55. package/es/css/properties/CSSPropertyFilter.js +4 -2
  56. package/es/css/properties/CSSPropertyLengthOrPercentage.d.ts +4 -2
  57. package/es/css/properties/CSSPropertyLengthOrPercentage.js +5 -2
  58. package/es/css/properties/CSSPropertyLineDash.d.ts +4 -2
  59. package/es/css/properties/CSSPropertyLineDash.js +4 -2
  60. package/es/css/properties/CSSPropertyLocalPosition.d.ts +4 -2
  61. package/es/css/properties/CSSPropertyLocalPosition.js +4 -2
  62. package/es/css/properties/CSSPropertyOffsetDistance.d.ts +4 -2
  63. package/es/css/properties/CSSPropertyOffsetDistance.js +5 -2
  64. package/es/css/properties/CSSPropertyOffsetPath.d.ts +2 -1
  65. package/es/css/properties/CSSPropertyOffsetPath.js +3 -1
  66. package/es/css/properties/CSSPropertyOpacity.d.ts +3 -2
  67. package/es/css/properties/CSSPropertyOpacity.js +4 -2
  68. package/es/css/properties/CSSPropertyPath.d.ts +3 -2
  69. package/es/css/properties/CSSPropertyPath.js +6 -2
  70. package/es/css/properties/CSSPropertyPoints.d.ts +3 -2
  71. package/es/css/properties/CSSPropertyPoints.js +4 -2
  72. package/es/css/properties/CSSPropertyShadowBlur.d.ts +1 -1
  73. package/es/css/properties/CSSPropertyShadowBlur.js +4 -2
  74. package/es/css/properties/CSSPropertyText.d.ts +3 -2
  75. package/es/css/properties/CSSPropertyText.js +5 -3
  76. package/es/css/properties/CSSPropertyTextTransform.d.ts +2 -1
  77. package/es/css/properties/CSSPropertyTextTransform.js +4 -2
  78. package/es/css/properties/CSSPropertyTransform.d.ts +3 -2
  79. package/es/css/properties/CSSPropertyTransform.js +5 -3
  80. package/es/css/properties/CSSPropertyTransformOrigin.d.ts +3 -2
  81. package/es/css/properties/CSSPropertyTransformOrigin.js +4 -2
  82. package/es/css/properties/CSSPropertyVisibility.d.ts +3 -1
  83. package/es/css/properties/CSSPropertyVisibility.js +3 -1
  84. package/es/css/properties/CSSPropertyZIndex.d.ts +4 -2
  85. package/es/css/properties/CSSPropertyZIndex.js +4 -2
  86. package/es/display-objects/Circle.js +3 -1
  87. package/es/display-objects/CustomElement.js +3 -1
  88. package/es/display-objects/DisplayObject.js +7 -4
  89. package/es/display-objects/Ellipse.js +3 -1
  90. package/es/display-objects/Group.js +3 -1
  91. package/es/display-objects/HTML.js +6 -3
  92. package/es/display-objects/Image.js +3 -1
  93. package/es/display-objects/Line.js +3 -1
  94. package/es/display-objects/Path.js +5 -3
  95. package/es/display-objects/Polygon.js +3 -1
  96. package/es/display-objects/Polyline.js +3 -1
  97. package/es/display-objects/Rect.js +3 -1
  98. package/es/display-objects/Text.js +6 -3
  99. package/es/dom/Animation.js +4 -2
  100. package/es/dom/AnimationEffectTiming.js +3 -1
  101. package/es/dom/AnimationEvent.js +3 -1
  102. package/es/dom/AnimationTimeline.js +3 -1
  103. package/es/dom/CustomElementRegistry.js +3 -1
  104. package/es/dom/CustomEvent.js +3 -1
  105. package/es/dom/Document.js +3 -1
  106. package/es/dom/Element.js +8 -6
  107. package/es/dom/EventTarget.js +6 -4
  108. package/es/dom/FederatedEvent.js +3 -1
  109. package/es/dom/FederatedMouseEvent.js +3 -1
  110. package/es/dom/FederatedPointerEvent.js +3 -1
  111. package/es/dom/FederatedTouchEvent.d.ts +13 -0
  112. package/es/dom/FederatedTouchEvent.js +19 -0
  113. package/es/dom/FederatedWheelEvent.js +3 -1
  114. package/es/dom/KeyframeEffect.js +3 -1
  115. package/es/dom/KeyframeList.js +1 -1
  116. package/es/dom/MutationEvent.d.ts +1 -1
  117. package/es/dom/MutationEvent.js +3 -1
  118. package/es/dom/MutationObserver.d.ts +2 -1
  119. package/es/dom/MutationObserver.js +11 -4
  120. package/es/dom/MutationRecord.d.ts +1 -1
  121. package/es/dom/MutationRecord.js +3 -1
  122. package/es/dom/Node.js +5 -3
  123. package/es/dom/interfaces.d.ts +2 -1
  124. package/es/plugins/CullingPlugin.js +3 -1
  125. package/es/plugins/DirtyCheckPlugin.js +3 -1
  126. package/es/plugins/EventPlugin.js +4 -2
  127. package/es/plugins/FrustumCullingStrategy.js +3 -1
  128. package/es/plugins/PrepareRendererPlugin.d.ts +1 -1
  129. package/es/plugins/PrepareRendererPlugin.js +3 -1
  130. package/es/services/EventService.js +5 -3
  131. package/es/services/OffscreenCanvasCreator.js +3 -1
  132. package/es/services/RenderingService.d.ts +2 -2
  133. package/es/services/RenderingService.js +3 -1
  134. package/es/services/SceneGraphSelector.js +3 -1
  135. package/es/services/SceneGraphService.js +4 -2
  136. package/es/services/TextService.d.ts +2 -2
  137. package/es/services/TextService.js +7 -4
  138. package/es/services/aabb/CircleUpdater.js +3 -1
  139. package/es/services/aabb/EllipseUpdater.js +3 -1
  140. package/es/services/aabb/LineUpdater.js +3 -1
  141. package/es/services/aabb/PathUpdater.js +3 -1
  142. package/es/services/aabb/PolylineUpdater.js +3 -1
  143. package/es/services/aabb/RectUpdater.js +4 -2
  144. package/es/services/aabb/TextUpdater.d.ts +1 -2
  145. package/es/services/aabb/TextUpdater.js +3 -1
  146. package/es/shapes/AABB.js +3 -1
  147. package/es/shapes/BoundingSphere.js +3 -1
  148. package/es/shapes/Frustum.js +3 -1
  149. package/es/shapes/Plane.js +3 -1
  150. package/es/shapes/Point.js +3 -1
  151. package/es/shapes/Ray.js +3 -1
  152. package/es/shapes/Rectangle.js +3 -1
  153. package/es/types.d.ts +4 -0
  154. package/es/utils/custom-easing.js +1 -1
  155. package/es/utils/math.d.ts +1 -2
  156. package/es/utils/math.js +11 -6
  157. package/es/utils/path.d.ts +2 -2
  158. package/es/utils/path.js +3 -3
  159. package/es/utils/text.js +4 -4
  160. package/lib/AbstractRenderer.js +3 -1
  161. package/lib/Canvas.d.ts +1 -4
  162. package/lib/Canvas.js +5 -3
  163. package/lib/DisplayObjectPool.js +3 -1
  164. package/lib/camera/Camera.d.ts +105 -66
  165. package/lib/camera/Camera.js +314 -179
  166. package/lib/camera/Landmark.d.ts +18 -25
  167. package/lib/camera/Landmark.js +1 -75
  168. package/lib/canvas-module.js +1 -3
  169. package/lib/components/Cullable.js +4 -2
  170. package/lib/components/Geometry.js +3 -1
  171. package/lib/components/Renderable.js +3 -1
  172. package/lib/components/Sortable.js +3 -1
  173. package/lib/components/Transform.js +3 -1
  174. package/lib/css/LayoutRegistry.js +3 -1
  175. package/lib/css/StyleValueRegistry.d.ts +10 -1
  176. package/lib/css/StyleValueRegistry.js +38 -27
  177. package/lib/css/cssom/CSSColorValue.js +3 -1
  178. package/lib/css/cssom/CSSGradientValue.js +9 -7
  179. package/lib/css/cssom/CSSKeywordValue.js +3 -1
  180. package/lib/css/cssom/CSSMathInvert.js +3 -1
  181. package/lib/css/cssom/CSSMathMax.js +3 -1
  182. package/lib/css/cssom/CSSMathMin.js +3 -1
  183. package/lib/css/cssom/CSSMathNegate.js +3 -1
  184. package/lib/css/cssom/CSSMathOperator.js +1 -1
  185. package/lib/css/cssom/CSSMathProduct.js +3 -1
  186. package/lib/css/cssom/CSSMathSum.js +3 -1
  187. package/lib/css/cssom/CSSMathValue.js +3 -1
  188. package/lib/css/cssom/CSSMathVariadic.js +4 -2
  189. package/lib/css/cssom/CSSNumericValue.js +3 -1
  190. package/lib/css/cssom/CSSNumericValueType.d.ts +1 -1
  191. package/lib/css/cssom/CSSNumericValueType.js +5 -3
  192. package/lib/css/cssom/CSSRGB.js +4 -2
  193. package/lib/css/cssom/CSSStyleValue.d.ts +1 -1
  194. package/lib/css/cssom/CSSStyleValue.js +4 -2
  195. package/lib/css/cssom/CSSTransformComponent.js +4 -2
  196. package/lib/css/cssom/CSSTransformValue.js +3 -1
  197. package/lib/css/cssom/CSSTranslate.js +3 -1
  198. package/lib/css/cssom/CSSUnitValue.js +4 -2
  199. package/lib/css/cssom/types.js +1 -1
  200. package/lib/css/parser/color.js +7 -7
  201. package/lib/css/parser/dimension.d.ts +2 -1
  202. package/lib/css/parser/dimension.js +9 -8
  203. package/lib/css/parser/numeric.js +6 -6
  204. package/lib/css/parser/path.d.ts +1 -1
  205. package/lib/css/parser/path.js +1 -1
  206. package/lib/css/parser/points.js +2 -2
  207. package/lib/css/parser/transform-origin.d.ts +1 -1
  208. package/lib/css/parser/transform-origin.js +7 -5
  209. package/lib/css/parser/transform.js +2 -2
  210. package/lib/css/properties/CSSPropertyAnchor.d.ts +4 -2
  211. package/lib/css/properties/CSSPropertyAnchor.js +8 -4
  212. package/lib/css/properties/CSSPropertyClipPath.d.ts +2 -1
  213. package/lib/css/properties/CSSPropertyClipPath.js +5 -3
  214. package/lib/css/properties/CSSPropertyColor.d.ts +3 -2
  215. package/lib/css/properties/CSSPropertyColor.js +6 -4
  216. package/lib/css/properties/CSSPropertyFilter.d.ts +3 -2
  217. package/lib/css/properties/CSSPropertyFilter.js +5 -3
  218. package/lib/css/properties/CSSPropertyLengthOrPercentage.d.ts +4 -2
  219. package/lib/css/properties/CSSPropertyLengthOrPercentage.js +14 -10
  220. package/lib/css/properties/CSSPropertyLineDash.d.ts +4 -2
  221. package/lib/css/properties/CSSPropertyLineDash.js +6 -4
  222. package/lib/css/properties/CSSPropertyLocalPosition.d.ts +4 -2
  223. package/lib/css/properties/CSSPropertyLocalPosition.js +6 -4
  224. package/lib/css/properties/CSSPropertyOffsetDistance.d.ts +4 -2
  225. package/lib/css/properties/CSSPropertyOffsetDistance.js +9 -5
  226. package/lib/css/properties/CSSPropertyOffsetPath.d.ts +2 -1
  227. package/lib/css/properties/CSSPropertyOffsetPath.js +3 -1
  228. package/lib/css/properties/CSSPropertyOpacity.d.ts +3 -2
  229. package/lib/css/properties/CSSPropertyOpacity.js +6 -4
  230. package/lib/css/properties/CSSPropertyPath.d.ts +3 -2
  231. package/lib/css/properties/CSSPropertyPath.js +12 -6
  232. package/lib/css/properties/CSSPropertyPoints.d.ts +3 -2
  233. package/lib/css/properties/CSSPropertyPoints.js +5 -3
  234. package/lib/css/properties/CSSPropertyShadowBlur.d.ts +1 -1
  235. package/lib/css/properties/CSSPropertyShadowBlur.js +5 -3
  236. package/lib/css/properties/CSSPropertyText.d.ts +3 -2
  237. package/lib/css/properties/CSSPropertyText.js +6 -4
  238. package/lib/css/properties/CSSPropertyTextTransform.d.ts +2 -1
  239. package/lib/css/properties/CSSPropertyTextTransform.js +8 -6
  240. package/lib/css/properties/CSSPropertyTransform.d.ts +3 -2
  241. package/lib/css/properties/CSSPropertyTransform.js +26 -24
  242. package/lib/css/properties/CSSPropertyTransformOrigin.d.ts +3 -2
  243. package/lib/css/properties/CSSPropertyTransformOrigin.js +5 -3
  244. package/lib/css/properties/CSSPropertyVisibility.d.ts +3 -1
  245. package/lib/css/properties/CSSPropertyVisibility.js +3 -1
  246. package/lib/css/properties/CSSPropertyZIndex.d.ts +4 -2
  247. package/lib/css/properties/CSSPropertyZIndex.js +5 -3
  248. package/lib/display-objects/Circle.js +3 -1
  249. package/lib/display-objects/CustomElement.js +3 -1
  250. package/lib/display-objects/DisplayObject.js +14 -11
  251. package/lib/display-objects/Ellipse.js +3 -1
  252. package/lib/display-objects/Group.js +3 -1
  253. package/lib/display-objects/HTML.js +6 -4
  254. package/lib/display-objects/Image.js +3 -1
  255. package/lib/display-objects/Line.js +3 -1
  256. package/lib/display-objects/Path.js +8 -6
  257. package/lib/display-objects/Polygon.js +3 -1
  258. package/lib/display-objects/Polyline.js +3 -1
  259. package/lib/display-objects/Rect.js +3 -1
  260. package/lib/display-objects/Text.js +6 -4
  261. package/lib/dom/Animation.js +4 -2
  262. package/lib/dom/AnimationEffectTiming.js +3 -1
  263. package/lib/dom/AnimationEvent.js +3 -1
  264. package/lib/dom/AnimationTimeline.js +4 -2
  265. package/lib/dom/CustomElementRegistry.js +3 -1
  266. package/lib/dom/CustomEvent.js +3 -1
  267. package/lib/dom/Document.js +3 -1
  268. package/lib/dom/Element.js +11 -9
  269. package/lib/dom/EventTarget.js +13 -11
  270. package/lib/dom/FederatedEvent.js +3 -1
  271. package/lib/dom/FederatedMouseEvent.js +3 -1
  272. package/lib/dom/FederatedPointerEvent.js +3 -1
  273. package/lib/dom/FederatedTouchEvent.d.ts +13 -0
  274. package/lib/dom/FederatedTouchEvent.js +27 -0
  275. package/lib/dom/FederatedWheelEvent.js +3 -1
  276. package/lib/dom/KeyframeEffect.js +4 -2
  277. package/lib/dom/KeyframeList.js +1 -1
  278. package/lib/dom/MutationEvent.d.ts +1 -1
  279. package/lib/dom/MutationEvent.js +3 -1
  280. package/lib/dom/MutationObserver.d.ts +2 -1
  281. package/lib/dom/MutationObserver.js +22 -15
  282. package/lib/dom/MutationRecord.d.ts +1 -1
  283. package/lib/dom/MutationRecord.js +3 -1
  284. package/lib/dom/Node.js +8 -6
  285. package/lib/dom/interfaces.d.ts +2 -1
  286. package/lib/index.js +1 -1
  287. package/lib/plugins/CullingPlugin.js +4 -2
  288. package/lib/plugins/DirtyCheckPlugin.js +3 -1
  289. package/lib/plugins/EventPlugin.js +26 -24
  290. package/lib/plugins/FrustumCullingStrategy.js +3 -1
  291. package/lib/plugins/PrepareRendererPlugin.d.ts +1 -1
  292. package/lib/plugins/PrepareRendererPlugin.js +3 -1
  293. package/lib/services/EventService.js +5 -3
  294. package/lib/services/OffscreenCanvasCreator.js +3 -1
  295. package/lib/services/RenderingService.d.ts +2 -2
  296. package/lib/services/RenderingService.js +3 -1
  297. package/lib/services/SceneGraphSelector.js +4 -2
  298. package/lib/services/SceneGraphService.js +7 -5
  299. package/lib/services/TextService.d.ts +2 -2
  300. package/lib/services/TextService.js +10 -6
  301. package/lib/services/aabb/CircleUpdater.js +3 -1
  302. package/lib/services/aabb/EllipseUpdater.js +3 -1
  303. package/lib/services/aabb/LineUpdater.js +3 -1
  304. package/lib/services/aabb/PathUpdater.js +3 -1
  305. package/lib/services/aabb/PolylineUpdater.js +3 -1
  306. package/lib/services/aabb/RectUpdater.js +5 -3
  307. package/lib/services/aabb/TextUpdater.d.ts +1 -2
  308. package/lib/services/aabb/TextUpdater.js +3 -1
  309. package/lib/services/aabb/index.js +10 -10
  310. package/lib/services/aabb/interfaces.js +1 -1
  311. package/lib/shapes/AABB.js +3 -1
  312. package/lib/shapes/BoundingSphere.js +3 -1
  313. package/lib/shapes/Frustum.js +4 -2
  314. package/lib/shapes/Plane.js +3 -1
  315. package/lib/shapes/Point.js +3 -1
  316. package/lib/shapes/Ray.js +3 -1
  317. package/lib/shapes/Rectangle.js +3 -1
  318. package/lib/types.d.ts +4 -0
  319. package/lib/types.js +1 -1
  320. package/lib/utils/animation.js +3 -2
  321. package/lib/utils/bezier-easing.js +1 -1
  322. package/lib/utils/custom-easing.js +2 -2
  323. package/lib/utils/math.d.ts +1 -2
  324. package/lib/utils/math.js +20 -17
  325. package/lib/utils/path.d.ts +2 -2
  326. package/lib/utils/path.js +6 -6
  327. package/lib/utils/text.js +5 -5
  328. package/package.json +7 -5
@@ -5,7 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.MutationRecord = void 0;
7
7
 
8
- var MutationRecord = function () {
8
+ var MutationRecord =
9
+ /** @class */
10
+ function () {
9
11
  function MutationRecord(type, target) {
10
12
  this.type = type;
11
13
  this.target = target;
package/lib/dom/Node.js CHANGED
@@ -7,7 +7,7 @@ exports.Node = void 0;
7
7
 
8
8
  var _tslib = require("tslib");
9
9
 
10
- var _ = require("..");
10
+ var _types = require("../types");
11
11
 
12
12
  var _EventTarget = require("./EventTarget");
13
13
 
@@ -16,7 +16,9 @@ var _EventTarget = require("./EventTarget");
16
16
  /**
17
17
  * @see https://developer.mozilla.org/en-US/docs/Web/API/Node
18
18
  */
19
- var Node = function (_super) {
19
+ var Node =
20
+ /** @class */
21
+ function (_super) {
20
22
  (0, _tslib.__extends)(Node, _super);
21
23
 
22
24
  function Node() {
@@ -86,7 +88,7 @@ var Node = function (_super) {
86
88
 
87
89
  var out = '';
88
90
 
89
- if (this.nodeName === _.Shape.TEXT) {
91
+ if (this.nodeName === _types.Shape.TEXT) {
90
92
  // @ts-ignore
91
93
  out += this.style.text;
92
94
  }
@@ -95,7 +97,7 @@ var Node = function (_super) {
95
97
  for (var _b = (0, _tslib.__values)(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) {
96
98
  var child = _c.value;
97
99
 
98
- if (child.nodeName === _.Shape.TEXT) {
100
+ if (child.nodeName === _types.Shape.TEXT) {
99
101
  out += child.nodeValue;
100
102
  } else {
101
103
  out += child.textContent;
@@ -123,9 +125,9 @@ var Node = function (_super) {
123
125
  _this.removeChild(child, true);
124
126
  });
125
127
 
126
- if (this.nodeName === _.Shape.TEXT) {
128
+ if (this.nodeName === _types.Shape.TEXT) {
127
129
  // @ts-ignore
128
- this.style.text = "" + content;
130
+ this.style.text = "".concat(content);
129
131
  } else {// this.appendChild(
130
132
  // new Text({
131
133
  // style: {
@@ -3,7 +3,8 @@ import type { AnimationTimeline } from './AnimationTimeline';
3
3
  import type { BaseStyleProps, Shape } from '../types';
4
4
  import type { FederatedEvent } from './FederatedEvent';
5
5
  import type { CustomElementRegistry } from './CustomElementRegistry';
6
- import type { CanvasConfig, DisplayObject, InteractivePointerEvent } from '..';
6
+ import type { CanvasConfig, InteractivePointerEvent } from '../types';
7
+ import type { DisplayObject } from '../display-objects';
7
8
  import type { PointLike } from '../shapes';
8
9
  import type { Camera } from '../camera';
9
10
  import type { ContextService, EventService, RenderingService } from '../services';
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.CullingPlugin = exports.CullingStrategyContribution = void 0;
6
+ exports.CullingStrategyContribution = exports.CullingPlugin = void 0;
7
7
 
8
8
  var _tslib = require("tslib");
9
9
 
@@ -21,7 +21,9 @@ var CullingStrategyContribution = _manaSyringe.Syringe.defineToken('CullingStrat
21
21
 
22
22
  exports.CullingStrategyContribution = CullingStrategyContribution;
23
23
 
24
- var CullingPlugin = function () {
24
+ var CullingPlugin =
25
+ /** @class */
26
+ function () {
25
27
  function CullingPlugin() {}
26
28
 
27
29
  CullingPlugin_1 = CullingPlugin;
@@ -16,7 +16,9 @@ var _RenderingContext = require("../services/RenderingContext");
16
16
  /**
17
17
  * Filter dirty renderables and calculate the "dirty rectangle" which will be clear when frame began
18
18
  */
19
- var DirtyCheckPlugin = function () {
19
+ var DirtyCheckPlugin =
20
+ /** @class */
21
+ function () {
20
22
  function DirtyCheckPlugin() {}
21
23
 
22
24
  DirtyCheckPlugin_1 = DirtyCheckPlugin;
@@ -9,7 +9,7 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _util = require("@antv/util");
12
+ var _lodashEs = require("lodash-es");
13
13
 
14
14
  var _FederatedPointerEvent = require("../dom/FederatedPointerEvent");
15
15
 
@@ -29,7 +29,9 @@ var _event = require("../utils/event");
29
29
  *
30
30
  * also provide some extra events such as `drag`
31
31
  */
32
- var EventPlugin = function () {
32
+ var EventPlugin =
33
+ /** @class */
34
+ function () {
33
35
  function EventPlugin() {
34
36
  var _this = this;
35
37
 
@@ -299,23 +301,23 @@ var EventPlugin = function () {
299
301
  var touch = event.changedTouches[i]; // use changedTouches instead of touches since touchend has no touches
300
302
  // @see https://stackoverflow.com/a/10079076
301
303
 
302
- if ((0, _util.isUndefined)(touch.button)) touch.button = event.touches.length ? 1 : 0;
303
- if ((0, _util.isUndefined)(touch.buttons)) touch.buttons = event.touches.length ? 1 : 0;
304
+ if ((0, _lodashEs.isUndefined)(touch.button)) touch.button = event.touches.length ? 1 : 0;
305
+ if ((0, _lodashEs.isUndefined)(touch.buttons)) touch.buttons = event.touches.length ? 1 : 0;
304
306
 
305
- if ((0, _util.isUndefined)(touch.isPrimary)) {
307
+ if ((0, _lodashEs.isUndefined)(touch.isPrimary)) {
306
308
  touch.isPrimary = event.touches.length === 1 && event.type === 'touchstart';
307
309
  }
308
310
 
309
- if ((0, _util.isUndefined)(touch.width)) touch.width = touch.radiusX || 1;
310
- if ((0, _util.isUndefined)(touch.height)) touch.height = touch.radiusY || 1;
311
- if ((0, _util.isUndefined)(touch.tiltX)) touch.tiltX = 0;
312
- if ((0, _util.isUndefined)(touch.tiltY)) touch.tiltY = 0;
313
- if ((0, _util.isUndefined)(touch.pointerType)) touch.pointerType = 'touch'; // @see https://developer.mozilla.org/zh-CN/docs/Web/API/Touch/identifier
311
+ if ((0, _lodashEs.isUndefined)(touch.width)) touch.width = touch.radiusX || 1;
312
+ if ((0, _lodashEs.isUndefined)(touch.height)) touch.height = touch.radiusY || 1;
313
+ if ((0, _lodashEs.isUndefined)(touch.tiltX)) touch.tiltX = 0;
314
+ if ((0, _lodashEs.isUndefined)(touch.tiltY)) touch.tiltY = 0;
315
+ if ((0, _lodashEs.isUndefined)(touch.pointerType)) touch.pointerType = 'touch'; // @see https://developer.mozilla.org/zh-CN/docs/Web/API/Touch/identifier
314
316
 
315
- if ((0, _util.isUndefined)(touch.pointerId)) touch.pointerId = touch.identifier || 0;
316
- if ((0, _util.isUndefined)(touch.pressure)) touch.pressure = touch.force || 0.5;
317
- if ((0, _util.isUndefined)(touch.twist)) touch.twist = 0;
318
- if ((0, _util.isUndefined)(touch.tangentialPressure)) touch.tangentialPressure = 0;
317
+ if ((0, _lodashEs.isUndefined)(touch.pointerId)) touch.pointerId = touch.identifier || 0;
318
+ if ((0, _lodashEs.isUndefined)(touch.pressure)) touch.pressure = touch.force || 0.5;
319
+ if ((0, _lodashEs.isUndefined)(touch.twist)) touch.twist = 0;
320
+ if ((0, _lodashEs.isUndefined)(touch.tangentialPressure)) touch.tangentialPressure = 0;
319
321
  touch.isNormalized = true;
320
322
  touch.type = event.type; // ref to nativeEvent
321
323
  // touch.nativeEvent = event;
@@ -325,16 +327,16 @@ var EventPlugin = function () {
325
327
  }
326
328
  } else if (canvas.isMouseEvent(event)) {
327
329
  var tempEvent = event;
328
- if ((0, _util.isUndefined)(tempEvent.isPrimary)) tempEvent.isPrimary = true;
329
- if ((0, _util.isUndefined)(tempEvent.width)) tempEvent.width = 1;
330
- if ((0, _util.isUndefined)(tempEvent.height)) tempEvent.height = 1;
331
- if ((0, _util.isUndefined)(tempEvent.tiltX)) tempEvent.tiltX = 0;
332
- if ((0, _util.isUndefined)(tempEvent.tiltY)) tempEvent.tiltY = 0;
333
- if ((0, _util.isUndefined)(tempEvent.pointerType)) tempEvent.pointerType = 'mouse';
334
- if ((0, _util.isUndefined)(tempEvent.pointerId)) tempEvent.pointerId = _event.MOUSE_POINTER_ID;
335
- if ((0, _util.isUndefined)(tempEvent.pressure)) tempEvent.pressure = 0.5;
336
- if ((0, _util.isUndefined)(tempEvent.twist)) tempEvent.twist = 0;
337
- if ((0, _util.isUndefined)(tempEvent.tangentialPressure)) tempEvent.tangentialPressure = 0;
330
+ if ((0, _lodashEs.isUndefined)(tempEvent.isPrimary)) tempEvent.isPrimary = true;
331
+ if ((0, _lodashEs.isUndefined)(tempEvent.width)) tempEvent.width = 1;
332
+ if ((0, _lodashEs.isUndefined)(tempEvent.height)) tempEvent.height = 1;
333
+ if ((0, _lodashEs.isUndefined)(tempEvent.tiltX)) tempEvent.tiltX = 0;
334
+ if ((0, _lodashEs.isUndefined)(tempEvent.tiltY)) tempEvent.tiltY = 0;
335
+ if ((0, _lodashEs.isUndefined)(tempEvent.pointerType)) tempEvent.pointerType = 'mouse';
336
+ if ((0, _lodashEs.isUndefined)(tempEvent.pointerId)) tempEvent.pointerId = _event.MOUSE_POINTER_ID;
337
+ if ((0, _lodashEs.isUndefined)(tempEvent.pressure)) tempEvent.pressure = 0.5;
338
+ if ((0, _lodashEs.isUndefined)(tempEvent.twist)) tempEvent.twist = 0;
339
+ if ((0, _lodashEs.isUndefined)(tempEvent.tangentialPressure)) tempEvent.tangentialPressure = 0;
338
340
  tempEvent.isNormalized = true;
339
341
  normalizedEvents.push(tempEvent);
340
342
  } else {
@@ -22,7 +22,9 @@ var _types = require("../types");
22
22
  // group is not a 2d shape
23
23
  var shape2D = [_types.Shape.CIRCLE, _types.Shape.ELLIPSE, _types.Shape.IMAGE, _types.Shape.RECT, _types.Shape.LINE, _types.Shape.POLYLINE, _types.Shape.POLYGON, _types.Shape.TEXT, _types.Shape.PATH, _types.Shape.HTML];
24
24
 
25
- var FrustumCullingStrategy = function () {
25
+ var FrustumCullingStrategy =
26
+ /** @class */
27
+ function () {
26
28
  function FrustumCullingStrategy() {}
27
29
 
28
30
  FrustumCullingStrategy.prototype.isVisible = function (object) {
@@ -1,4 +1,4 @@
1
- import type { RenderingService, RenderingPlugin } from '../services/RenderingService';
1
+ import type { RenderingService, RenderingPlugin } from '../services';
2
2
  export declare class PrepareRendererPlugin implements RenderingPlugin {
3
3
  static tag: string;
4
4
  private renderingContext;
@@ -15,7 +15,9 @@ var _dom = require("../dom");
15
15
 
16
16
  var _services = require("../services");
17
17
 
18
- var PrepareRendererPlugin = function () {
18
+ var PrepareRendererPlugin =
19
+ /** @class */
20
+ function () {
19
21
  function PrepareRendererPlugin() {}
20
22
 
21
23
  PrepareRendererPlugin_1 = PrepareRendererPlugin;
@@ -33,7 +33,9 @@ var _ContextService = require("./ContextService");
33
33
 
34
34
  var PROPAGATION_LIMIT = 2048;
35
35
 
36
- var EventService = function (_super) {
36
+ var EventService =
37
+ /** @class */
38
+ function (_super) {
37
39
  (0, _tslib.__extends)(EventService, _super);
38
40
 
39
41
  function EventService() {
@@ -589,7 +591,7 @@ var EventService = function (_super) {
589
591
  mappers[i].fn(e);
590
592
  }
591
593
  } else {
592
- console.warn("[EventService]: Event mapping not defined for " + e.type);
594
+ console.warn("[EventService]: Event mapping not defined for ".concat(e.type));
593
595
  }
594
596
  };
595
597
 
@@ -921,7 +923,7 @@ var EventService = function (_super) {
921
923
 
922
924
  EventService.prototype.notifyTarget = function (e, type) {
923
925
  type = type !== null && type !== void 0 ? type : e.type;
924
- var key = e.eventPhase === e.CAPTURING_PHASE || e.eventPhase === e.AT_TARGET ? type + "capture" : type;
926
+ var key = e.eventPhase === e.CAPTURING_PHASE || e.eventPhase === e.AT_TARGET ? "".concat(type, "capture") : type;
925
927
  this.notifyListeners(e, key);
926
928
 
927
929
  if (e.eventPhase === e.AT_TARGET) {
@@ -15,7 +15,9 @@ var _manaSyringe = require("mana-syringe");
15
15
  * - g-plugin-canvas-picker `ctx.isPointInPath`
16
16
  * - g-plugin-webgl-renderer `ctx.createLinearGradient` and generate texture
17
17
  */
18
- var OffscreenCanvasCreator = function () {
18
+ var OffscreenCanvasCreator =
19
+ /** @class */
20
+ function () {
19
21
  function OffscreenCanvasCreator() {}
20
22
 
21
23
  OffscreenCanvasCreator.prototype.getOrCreateCanvas = function (offscreenCanvas) {
@@ -1,7 +1,7 @@
1
1
  import { Syringe } from 'mana-syringe';
2
2
  import { SyncHook, SyncWaterfallHook, AsyncParallelHook, AsyncSeriesWaterfallHook } from 'tapable';
3
- import type { CanvasConfig, DisplayObject } from '..';
4
- import type { EventPosition, InteractivePointerEvent } from '../types';
3
+ import type { DisplayObject } from '../display-objects';
4
+ import type { CanvasConfig, EventPosition, InteractivePointerEvent } from '../types';
5
5
  export interface RenderingPlugin {
6
6
  apply: (renderer: RenderingService) => void;
7
7
  }
@@ -33,7 +33,9 @@ var RenderingPluginContribution = _manaSyringe.Syringe.defineToken('RenderingPlu
33
33
 
34
34
  exports.RenderingPluginContribution = RenderingPluginContribution;
35
35
 
36
- var RenderingService = function () {
36
+ var RenderingService =
37
+ /** @class */
38
+ function () {
37
39
  function RenderingService() {
38
40
  this.inited = false;
39
41
  this.stats = {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.DefaultSceneGraphSelector = exports.SceneGraphSelector = exports.SceneGraphSelectorFactory = void 0;
6
+ exports.SceneGraphSelectorFactory = exports.SceneGraphSelector = exports.DefaultSceneGraphSelector = void 0;
7
7
 
8
8
  var _tslib = require("tslib");
9
9
 
@@ -29,7 +29,9 @@ var NAME_REGEXP = /\[\s*name=(.*)\s*\]/;
29
29
  * * querySelectorAll
30
30
  */
31
31
 
32
- var DefaultSceneGraphSelector = function () {
32
+ var DefaultSceneGraphSelector =
33
+ /** @class */
34
+ function () {
33
35
  function DefaultSceneGraphSelector() {}
34
36
 
35
37
  DefaultSceneGraphSelector.prototype.selectOne = function (query, root) {
@@ -3,15 +3,15 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.sortByZIndex = sortByZIndex;
6
+ exports.SceneGraphService = exports.DefaultSceneGraphService = void 0;
7
7
  exports.dirtifyToRoot = dirtifyToRoot;
8
- exports.DefaultSceneGraphService = exports.SceneGraphService = void 0;
8
+ exports.sortByZIndex = sortByZIndex;
9
9
 
10
10
  var _tslib = require("tslib");
11
11
 
12
12
  var _manaSyringe = require("mana-syringe");
13
13
 
14
- var _util = require("@antv/util");
14
+ var _lodashEs = require("lodash-es");
15
15
 
16
16
  var _glMatrix = require("gl-matrix");
17
17
 
@@ -74,7 +74,9 @@ var SceneGraphService = _manaSyringe.Syringe.defineToken('SceneGraphService');
74
74
 
75
75
  exports.SceneGraphService = SceneGraphService;
76
76
 
77
- var DefaultSceneGraphService = function () {
77
+ var DefaultSceneGraphService =
78
+ /** @class */
79
+ function () {
78
80
  function DefaultSceneGraphService() {
79
81
  var _this = this;
80
82
  /**
@@ -356,7 +358,7 @@ var DefaultSceneGraphService = function () {
356
358
 
357
359
  child.parentNode = parent;
358
360
 
359
- if (!(0, _util.isNil)(index)) {
361
+ if (!(0, _lodashEs.isNil)(index)) {
360
362
  child.parentNode.childNodes.splice(index, 0, child);
361
363
  } else {
362
364
  child.parentNode.childNodes.push(child);
@@ -1,6 +1,6 @@
1
1
  /// <reference types="offscreencanvas" />
2
- import type { ParsedTextStyleProps } from '..';
3
- import { Rectangle } from '..';
2
+ import type { ParsedTextStyleProps } from '../display-objects';
3
+ import { Rectangle } from '../shapes';
4
4
  export interface TextMetrics {
5
5
  font: string;
6
6
  width: number;
@@ -9,7 +9,9 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("..");
12
+ var _utils = require("../utils");
13
+
14
+ var _shapes = require("../shapes");
13
15
 
14
16
  var _OffscreenCanvasCreator = require("./OffscreenCanvasCreator");
15
17
 
@@ -34,10 +36,12 @@ var regexCannotStartJaJp = /[)\]}〕〉》」』】〙〗〟'"⦆»ヽヾー
34
36
  var regexCannotEndJaJp = /[([{〔〈《「『【〘〖〝'"⦅«—...‥〳〴〵]/;
35
37
  var regexCannotStartKoKr = /[!%),.:;?\]}¢°'"†‡℃〆〈《「『〕!%),.:;?]}]/;
36
38
  var regexCannotEndKoKr = /[$([{£¥'"々〇〉》」〔$([{⦆¥₩#]/;
37
- var regexCannotStart = new RegExp(regexCannotStartZhCn.source + "|" + regexCannotStartZhTw.source + "|" + regexCannotStartJaJp.source + "|" + regexCannotStartKoKr.source);
38
- var regexCannotEnd = new RegExp(regexCannotEndZhCn.source + "|" + regexCannotEndZhTw.source + "|" + regexCannotEndJaJp.source + "|" + regexCannotEndKoKr.source);
39
+ var regexCannotStart = new RegExp("".concat(regexCannotStartZhCn.source, "|").concat(regexCannotStartZhTw.source, "|").concat(regexCannotStartJaJp.source, "|").concat(regexCannotStartKoKr.source));
40
+ var regexCannotEnd = new RegExp("".concat(regexCannotEndZhCn.source, "|").concat(regexCannotEndZhTw.source, "|").concat(regexCannotEndJaJp.source, "|").concat(regexCannotEndKoKr.source));
39
41
 
40
- var TextService = function () {
42
+ var TextService =
43
+ /** @class */
44
+ function () {
41
45
  function TextService() {
42
46
  var _this = this;
43
47
 
@@ -163,7 +167,7 @@ var TextService = function () {
163
167
  // dropShadow = 0,
164
168
  // dropShadowDistance = 0,
165
169
  leading = _c === void 0 ? 0 : _c;
166
- var font = (0, _.toFontString)(parsedStyle);
170
+ var font = (0, _utils.toFontString)(parsedStyle);
167
171
  var fontProperties = this.measureFont(font, offscreenCanvas); // fallback in case UA disallow canvas data extraction
168
172
  // (toDataURI, getImageData functions)
169
173
 
@@ -224,7 +228,7 @@ var TextService = function () {
224
228
  offsetX -= width;
225
229
  }
226
230
 
227
- return new _.Rectangle(offsetX - lineWidth.value / 2, offsetY + i * lineHeight, width + lineWidth.value, lineHeight);
231
+ return new _shapes.Rectangle(offsetX - lineWidth.value / 2, offsetY + i * lineHeight, width + lineWidth.value, lineHeight);
228
232
  })
229
233
  };
230
234
  };
@@ -13,7 +13,9 @@ var _interfaces = require("./interfaces");
13
13
 
14
14
  var _types = require("../../types");
15
15
 
16
- var CircleUpdater = function () {
16
+ var CircleUpdater =
17
+ /** @class */
18
+ function () {
17
19
  function CircleUpdater() {}
18
20
 
19
21
  CircleUpdater.prototype.update = function (parsedStyle, object) {
@@ -13,7 +13,9 @@ var _interfaces = require("./interfaces");
13
13
 
14
14
  var _types = require("../../types");
15
15
 
16
- var EllipseUpdater = function () {
16
+ var EllipseUpdater =
17
+ /** @class */
18
+ function () {
17
19
  function EllipseUpdater() {}
18
20
 
19
21
  EllipseUpdater.prototype.update = function (parsedStyle, object) {
@@ -13,7 +13,9 @@ var _interfaces = require("./interfaces");
13
13
 
14
14
  var _types = require("../../types");
15
15
 
16
- var LineUpdater = function () {
16
+ var LineUpdater =
17
+ /** @class */
18
+ function () {
17
19
  function LineUpdater() {}
18
20
 
19
21
  LineUpdater.prototype.update = function (parsedStyle) {
@@ -13,7 +13,9 @@ var _interfaces = require("./interfaces");
13
13
 
14
14
  var _types = require("../../types");
15
15
 
16
- var PathUpdater = function () {
16
+ var PathUpdater =
17
+ /** @class */
18
+ function () {
17
19
  function PathUpdater() {}
18
20
 
19
21
  PathUpdater.prototype.update = function (parsedStyle) {
@@ -13,7 +13,9 @@ var _interfaces = require("./interfaces");
13
13
 
14
14
  var _types = require("../../types");
15
15
 
16
- var PolylineUpdater = function () {
16
+ var PolylineUpdater =
17
+ /** @class */
18
+ function () {
17
19
  function PolylineUpdater() {}
18
20
 
19
21
  PolylineUpdater.prototype.update = function (parsedStyle) {
@@ -9,7 +9,7 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _util = require("@antv/util");
12
+ var _lodashEs = require("lodash-es");
13
13
 
14
14
  var _interfaces = require("./interfaces");
15
15
 
@@ -17,7 +17,9 @@ var _types = require("../../types");
17
17
 
18
18
  var _css = require("../../css");
19
19
 
20
- var RectUpdater = function () {
20
+ var RectUpdater =
21
+ /** @class */
22
+ function () {
21
23
  function RectUpdater() {}
22
24
 
23
25
  RectUpdater.prototype.update = function (parsedStyle, object) {
@@ -42,7 +44,7 @@ var RectUpdater = function () {
42
44
  } // resize with HTMLImageElement's size
43
45
 
44
46
 
45
- if (img && !(0, _util.isString)(img)) {
47
+ if (img && !(0, _lodashEs.isString)(img)) {
46
48
  if (!contentWidth) {
47
49
  contentWidth = img.width;
48
50
  }
@@ -1,6 +1,5 @@
1
1
  import { GeometryAABBUpdater } from './interfaces';
2
- import type { ParsedTextStyleProps } from '../../display-objects/Text';
3
- import type { DisplayObject } from '../..';
2
+ import type { DisplayObject, ParsedTextStyleProps } from '../../display-objects';
4
3
  export declare class TextUpdater implements GeometryAABBUpdater<ParsedTextStyleProps> {
5
4
  private textService;
6
5
  private isReadyToMeasure;
@@ -19,7 +19,9 @@ var _types = require("../../types");
19
19
 
20
20
  var _css = require("../../css");
21
21
 
22
- var TextUpdater = function () {
22
+ var TextUpdater =
23
+ /** @class */
24
+ function () {
23
25
  function TextUpdater() {}
24
26
 
25
27
  TextUpdater.prototype.isReadyToMeasure = function (parsedStyle, object) {
@@ -24,34 +24,34 @@ Object.defineProperty(exports, "EllipseUpdater", {
24
24
  return _EllipseUpdater.EllipseUpdater;
25
25
  }
26
26
  });
27
- Object.defineProperty(exports, "RectUpdater", {
27
+ Object.defineProperty(exports, "LineUpdater", {
28
28
  enumerable: true,
29
29
  get: function get() {
30
- return _RectUpdater.RectUpdater;
30
+ return _LineUpdater.LineUpdater;
31
31
  }
32
32
  });
33
- Object.defineProperty(exports, "TextUpdater", {
33
+ Object.defineProperty(exports, "PathUpdater", {
34
34
  enumerable: true,
35
35
  get: function get() {
36
- return _TextUpdater.TextUpdater;
36
+ return _PathUpdater.PathUpdater;
37
37
  }
38
38
  });
39
- Object.defineProperty(exports, "LineUpdater", {
39
+ Object.defineProperty(exports, "PolylineUpdater", {
40
40
  enumerable: true,
41
41
  get: function get() {
42
- return _LineUpdater.LineUpdater;
42
+ return _PolylineUpdater.PolylineUpdater;
43
43
  }
44
44
  });
45
- Object.defineProperty(exports, "PolylineUpdater", {
45
+ Object.defineProperty(exports, "RectUpdater", {
46
46
  enumerable: true,
47
47
  get: function get() {
48
- return _PolylineUpdater.PolylineUpdater;
48
+ return _RectUpdater.RectUpdater;
49
49
  }
50
50
  });
51
- Object.defineProperty(exports, "PathUpdater", {
51
+ Object.defineProperty(exports, "TextUpdater", {
52
52
  enumerable: true,
53
53
  get: function get() {
54
- return _PathUpdater.PathUpdater;
54
+ return _TextUpdater.TextUpdater;
55
55
  }
56
56
  });
57
57
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.GeometryAABBUpdater = exports.GeometryUpdaterFactory = void 0;
6
+ exports.GeometryUpdaterFactory = exports.GeometryAABBUpdater = void 0;
7
7
 
8
8
  var _manaSyringe = require("mana-syringe");
9
9
 
@@ -12,7 +12,9 @@ var _glMatrix = require("gl-matrix");
12
12
  * 为了便于后续 Frustum Culling,通过查找表定义 p-vertex 和 n-vertex
13
13
  * @see https://github.com/antvis/GWebGPUEngine/issues/3
14
14
  */
15
- var AABB = function () {
15
+ var AABB =
16
+ /** @class */
17
+ function () {
16
18
  function AABB(center, halfExtents) {
17
19
  this.min = _glMatrix.vec3.create();
18
20
  this.max = _glMatrix.vec3.create();
@@ -9,7 +9,9 @@ var _glMatrix = require("gl-matrix");
9
9
 
10
10
  var tmpVecA = _glMatrix.vec3.create();
11
11
 
12
- var BoundingSphere = function () {
12
+ var BoundingSphere =
13
+ /** @class */
14
+ function () {
13
15
  function BoundingSphere(center, radius) {
14
16
  this.center = center || _glMatrix.vec3.create();
15
17
  this.radius = radius || 0.5;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Frustum = exports.Mask = void 0;
6
+ exports.Mask = exports.Frustum = void 0;
7
7
 
8
8
  var _tslib = require("tslib");
9
9
 
@@ -20,7 +20,9 @@ exports.Mask = Mask;
20
20
  Mask[Mask["INDETERMINATE"] = 2147483647] = "INDETERMINATE";
21
21
  })(Mask || (exports.Mask = Mask = {}));
22
22
 
23
- var Frustum = function () {
23
+ var Frustum =
24
+ /** @class */
25
+ function () {
24
26
  function Frustum(planes) {
25
27
  this.planes = [];
26
28
 
@@ -7,7 +7,9 @@ exports.Plane = void 0;
7
7
 
8
8
  var _glMatrix = require("gl-matrix");
9
9
 
10
- var Plane = function () {
10
+ var Plane =
11
+ /** @class */
12
+ function () {
11
13
  function Plane(distance, normal) {
12
14
  this.distance = distance || 0;
13
15
  this.normal = normal || _glMatrix.vec3.fromValues(0, 1, 0);
@@ -5,7 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Point = void 0;
7
7
 
8
- var Point = function () {
8
+ var Point =
9
+ /** @class */
10
+ function () {
9
11
  function Point(x, y) {
10
12
  if (x === void 0) {
11
13
  x = 0;