@antv/g 5.1.2 → 5.1.3-alpha.0

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 (943) hide show
  1. package/dist/AbstractRenderer.d.ts +38 -0
  2. package/dist/AbstractRenderer.d.ts.map +1 -0
  3. package/dist/Canvas.d.ts +150 -0
  4. package/dist/Canvas.d.ts.map +1 -0
  5. package/dist/DisplayObjectPool.d.ts +10 -0
  6. package/dist/DisplayObjectPool.d.ts.map +1 -0
  7. package/dist/__tests__/utils.d.ts +2 -0
  8. package/dist/__tests__/utils.d.ts.map +1 -0
  9. package/dist/camera/Camera.d.ts +328 -0
  10. package/dist/camera/Camera.d.ts.map +1 -0
  11. package/dist/camera/Landmark.d.ts +24 -0
  12. package/dist/camera/Landmark.d.ts.map +1 -0
  13. package/dist/camera/index.d.ts +3 -0
  14. package/dist/camera/index.d.ts.map +1 -0
  15. package/dist/canvas-module.d.ts +2 -0
  16. package/dist/canvas-module.d.ts.map +1 -0
  17. package/dist/components/Cullable.d.ts +15 -0
  18. package/dist/components/Cullable.d.ts.map +1 -0
  19. package/dist/components/Geometry.d.ts +13 -0
  20. package/dist/components/Geometry.d.ts.map +1 -0
  21. package/dist/components/Renderable.d.ts +25 -0
  22. package/dist/components/Renderable.d.ts.map +1 -0
  23. package/dist/components/Sortable.d.ts +21 -0
  24. package/dist/components/Sortable.d.ts.map +1 -0
  25. package/dist/components/Transform.d.ts +29 -0
  26. package/dist/components/Transform.d.ts.map +1 -0
  27. package/dist/components/index.d.ts +6 -0
  28. package/dist/components/index.d.ts.map +1 -0
  29. package/dist/css/CSS.d.ts +89 -0
  30. package/dist/css/CSS.d.ts.map +1 -0
  31. package/dist/css/CSSProperty.d.ts +42 -0
  32. package/dist/css/CSSProperty.d.ts.map +1 -0
  33. package/dist/css/StyleValueRegistry.d.ts +124 -0
  34. package/dist/css/StyleValueRegistry.d.ts.map +1 -0
  35. package/dist/css/cssom/CSSColorValue.d.ts +24 -0
  36. package/dist/css/cssom/CSSColorValue.d.ts.map +1 -0
  37. package/dist/css/cssom/CSSGradientValue.d.ts +40 -0
  38. package/dist/css/cssom/CSSGradientValue.d.ts.map +1 -0
  39. package/dist/css/cssom/CSSKeywordValue.d.ts +16 -0
  40. package/dist/css/cssom/CSSKeywordValue.d.ts.map +1 -0
  41. package/dist/css/cssom/CSSMathOperator.d.ts +12 -0
  42. package/dist/css/cssom/CSSMathOperator.d.ts.map +1 -0
  43. package/dist/css/cssom/CSSNumericSumValue.d.ts +8 -0
  44. package/dist/css/cssom/CSSNumericSumValue.d.ts.map +1 -0
  45. package/dist/css/cssom/CSSNumericValue.d.ts +213 -0
  46. package/dist/css/cssom/CSSNumericValue.d.ts.map +1 -0
  47. package/dist/css/cssom/CSSRGB.d.ts +26 -0
  48. package/dist/css/cssom/CSSRGB.d.ts.map +1 -0
  49. package/dist/css/cssom/CSSStyleValue.d.ts +54 -0
  50. package/dist/css/cssom/CSSStyleValue.d.ts.map +1 -0
  51. package/dist/css/cssom/index.d.ts +18 -0
  52. package/dist/css/cssom/index.d.ts.map +1 -0
  53. package/dist/css/cssom/types.d.ts +87 -0
  54. package/dist/css/cssom/types.d.ts.map +1 -0
  55. package/dist/css/index.d.ts +12 -0
  56. package/dist/css/index.d.ts.map +1 -0
  57. package/dist/css/interfaces.d.ts +117 -0
  58. package/dist/css/interfaces.d.ts.map +1 -0
  59. package/dist/css/layout/FragmentResult.d.ts +33 -0
  60. package/dist/css/layout/FragmentResult.d.ts.map +1 -0
  61. package/dist/css/layout/LayoutChildren.d.ts +24 -0
  62. package/dist/css/layout/LayoutChildren.d.ts.map +1 -0
  63. package/dist/css/layout/LayoutContext.d.ts +36 -0
  64. package/dist/css/layout/LayoutContext.d.ts.map +1 -0
  65. package/dist/css/layout/LayoutDefinition.d.ts +21 -0
  66. package/dist/css/layout/LayoutDefinition.d.ts.map +1 -0
  67. package/dist/css/layout/LayoutEdges.d.ts +25 -0
  68. package/dist/css/layout/LayoutEdges.d.ts.map +1 -0
  69. package/dist/css/layout/LayoutEngine.d.ts +42 -0
  70. package/dist/css/layout/LayoutEngine.d.ts.map +1 -0
  71. package/dist/css/layout/LayoutFragment.d.ts +27 -0
  72. package/dist/css/layout/LayoutFragment.d.ts.map +1 -0
  73. package/dist/css/layout/LayoutObject.d.ts +47 -0
  74. package/dist/css/layout/LayoutObject.d.ts.map +1 -0
  75. package/dist/css/layout/LayoutRegistry.d.ts +17 -0
  76. package/dist/css/layout/LayoutRegistry.d.ts.map +1 -0
  77. package/dist/css/layout/LayoutWorkTask.d.ts +15 -0
  78. package/dist/css/layout/LayoutWorkTask.d.ts.map +1 -0
  79. package/dist/css/layout/index.d.ts +12 -0
  80. package/dist/css/layout/index.d.ts.map +1 -0
  81. package/dist/css/layout/types.d.ts +105 -0
  82. package/dist/css/layout/types.d.ts.map +1 -0
  83. package/dist/css/parser/color.d.ts +7 -0
  84. package/dist/css/parser/color.d.ts.map +1 -0
  85. package/dist/css/parser/dimension.d.ts +38 -0
  86. package/dist/css/parser/dimension.d.ts.map +1 -0
  87. package/dist/css/parser/filter.d.ts +8 -0
  88. package/dist/css/parser/filter.d.ts.map +1 -0
  89. package/dist/css/parser/index.d.ts +16 -0
  90. package/dist/css/parser/index.d.ts.map +1 -0
  91. package/dist/css/parser/numeric.d.ts +20 -0
  92. package/dist/css/parser/numeric.d.ts.map +1 -0
  93. package/dist/css/parser/path.d.ts +6 -0
  94. package/dist/css/parser/path.d.ts.map +1 -0
  95. package/dist/css/parser/points.d.ts +13 -0
  96. package/dist/css/parser/points.d.ts.map +1 -0
  97. package/dist/css/parser/transform-origin.d.ts +7 -0
  98. package/dist/css/parser/transform-origin.d.ts.map +1 -0
  99. package/dist/css/parser/transform.d.ts +14 -0
  100. package/dist/css/parser/transform.d.ts.map +1 -0
  101. package/dist/css/parser/types.d.ts +3 -0
  102. package/dist/css/parser/types.d.ts.map +1 -0
  103. package/dist/css/properties/CSSPropertyClipPath.d.ts +21 -0
  104. package/dist/css/properties/CSSPropertyClipPath.d.ts.map +1 -0
  105. package/dist/css/properties/CSSPropertyColor.d.ts +5 -0
  106. package/dist/css/properties/CSSPropertyColor.d.ts.map +1 -0
  107. package/dist/css/properties/CSSPropertyFilter.d.ts +4 -0
  108. package/dist/css/properties/CSSPropertyFilter.d.ts.map +1 -0
  109. package/dist/css/properties/CSSPropertyLengthOrPercentage.d.ts +7 -0
  110. package/dist/css/properties/CSSPropertyLengthOrPercentage.d.ts.map +1 -0
  111. package/dist/css/properties/CSSPropertyLengthOrPercentage12.d.ts +12 -0
  112. package/dist/css/properties/CSSPropertyLengthOrPercentage12.d.ts.map +1 -0
  113. package/dist/css/properties/CSSPropertyLengthOrPercentage14.d.ts +22 -0
  114. package/dist/css/properties/CSSPropertyLengthOrPercentage14.d.ts.map +1 -0
  115. package/dist/css/properties/CSSPropertyLocalPosition.d.ts +7 -0
  116. package/dist/css/properties/CSSPropertyLocalPosition.d.ts.map +1 -0
  117. package/dist/css/properties/CSSPropertyOffsetDistance.d.ts +4 -0
  118. package/dist/css/properties/CSSPropertyOffsetDistance.d.ts.map +1 -0
  119. package/dist/css/properties/CSSPropertyOffsetPath.d.ts +4 -0
  120. package/dist/css/properties/CSSPropertyOffsetPath.d.ts.map +1 -0
  121. package/dist/css/properties/CSSPropertyOpacity.d.ts +7 -0
  122. package/dist/css/properties/CSSPropertyOpacity.d.ts.map +1 -0
  123. package/dist/css/properties/CSSPropertyPath.d.ts +4 -0
  124. package/dist/css/properties/CSSPropertyPath.d.ts.map +1 -0
  125. package/dist/css/properties/CSSPropertyPoints.d.ts +11 -0
  126. package/dist/css/properties/CSSPropertyPoints.d.ts.map +1 -0
  127. package/dist/css/properties/CSSPropertyShadowBlur.d.ts +3 -0
  128. package/dist/css/properties/CSSPropertyShadowBlur.d.ts.map +1 -0
  129. package/dist/css/properties/CSSPropertyText.d.ts +4 -0
  130. package/dist/css/properties/CSSPropertyText.d.ts.map +1 -0
  131. package/dist/css/properties/CSSPropertyTextTransform.d.ts +4 -0
  132. package/dist/css/properties/CSSPropertyTextTransform.d.ts.map +1 -0
  133. package/dist/css/properties/CSSPropertyTransform.d.ts +33 -0
  134. package/dist/css/properties/CSSPropertyTransform.d.ts.map +1 -0
  135. package/dist/css/properties/CSSPropertyTransformOrigin.d.ts +9 -0
  136. package/dist/css/properties/CSSPropertyTransformOrigin.d.ts.map +1 -0
  137. package/dist/css/properties/CSSPropertyZIndex.d.ts +4 -0
  138. package/dist/css/properties/CSSPropertyZIndex.d.ts.map +1 -0
  139. package/dist/css/properties/index.d.ts +19 -0
  140. package/dist/css/properties/index.d.ts.map +1 -0
  141. package/dist/display-objects/Circle.d.ts +18 -0
  142. package/dist/display-objects/Circle.d.ts.map +1 -0
  143. package/dist/display-objects/CustomElement.d.ts +25 -0
  144. package/dist/display-objects/CustomElement.d.ts.map +1 -0
  145. package/dist/display-objects/DisplayObject.d.ts +275 -0
  146. package/dist/display-objects/DisplayObject.d.ts.map +1 -0
  147. package/dist/display-objects/Ellipse.d.ts +20 -0
  148. package/dist/display-objects/Ellipse.d.ts.map +1 -0
  149. package/dist/display-objects/Group.d.ts +30 -0
  150. package/dist/display-objects/Group.d.ts.map +1 -0
  151. package/dist/display-objects/HTML.d.ts +42 -0
  152. package/dist/display-objects/HTML.d.ts.map +1 -0
  153. package/dist/display-objects/Image.d.ts +24 -0
  154. package/dist/display-objects/Image.d.ts.map +1 -0
  155. package/dist/display-objects/Line.d.ts +31 -0
  156. package/dist/display-objects/Line.d.ts.map +1 -0
  157. package/dist/display-objects/Path.d.ts +49 -0
  158. package/dist/display-objects/Path.d.ts.map +1 -0
  159. package/dist/display-objects/Polygon.d.ts +17 -0
  160. package/dist/display-objects/Polygon.d.ts.map +1 -0
  161. package/dist/display-objects/Polyline.d.ts +22 -0
  162. package/dist/display-objects/Polyline.d.ts.map +1 -0
  163. package/dist/display-objects/Rect.d.ts +25 -0
  164. package/dist/display-objects/Rect.d.ts.map +1 -0
  165. package/dist/display-objects/Text.d.ts +92 -0
  166. package/dist/display-objects/Text.d.ts.map +1 -0
  167. package/dist/display-objects/index.d.ts +14 -0
  168. package/dist/display-objects/index.d.ts.map +1 -0
  169. package/dist/dom/Animation.d.ts +133 -0
  170. package/dist/dom/Animation.d.ts.map +1 -0
  171. package/dist/dom/AnimationEffectTiming.d.ts +59 -0
  172. package/dist/dom/AnimationEffectTiming.d.ts.map +1 -0
  173. package/dist/dom/AnimationEvent.d.ts +12 -0
  174. package/dist/dom/AnimationEvent.d.ts.map +1 -0
  175. package/dist/dom/AnimationTimeline.d.ts +41 -0
  176. package/dist/dom/AnimationTimeline.d.ts.map +1 -0
  177. package/dist/dom/CustomElementRegistry.d.ts +16 -0
  178. package/dist/dom/CustomElementRegistry.d.ts.map +1 -0
  179. package/dist/dom/CustomEvent.d.ts +17 -0
  180. package/dist/dom/CustomEvent.d.ts.map +1 -0
  181. package/dist/dom/Document.d.ts +73 -0
  182. package/dist/dom/Document.d.ts.map +1 -0
  183. package/dist/dom/Element.d.ts +188 -0
  184. package/dist/dom/Element.d.ts.map +1 -0
  185. package/dist/dom/EventTarget.d.ts +41 -0
  186. package/dist/dom/EventTarget.d.ts.map +1 -0
  187. package/dist/dom/FederatedEvent.d.ts +146 -0
  188. package/dist/dom/FederatedEvent.d.ts.map +1 -0
  189. package/dist/dom/FederatedMouseEvent.d.ts +53 -0
  190. package/dist/dom/FederatedMouseEvent.d.ts.map +1 -0
  191. package/dist/dom/FederatedPointerEvent.d.ts +76 -0
  192. package/dist/dom/FederatedPointerEvent.d.ts.map +1 -0
  193. package/dist/dom/FederatedWheelEvent.d.ts +21 -0
  194. package/dist/dom/FederatedWheelEvent.d.ts.map +1 -0
  195. package/dist/dom/KeyframeEffect.d.ts +48 -0
  196. package/dist/dom/KeyframeEffect.d.ts.map +1 -0
  197. package/dist/dom/KeyframeList.d.ts +3 -0
  198. package/dist/dom/KeyframeList.d.ts.map +1 -0
  199. package/dist/dom/MutationEvent.d.ts +16 -0
  200. package/dist/dom/MutationEvent.d.ts.map +1 -0
  201. package/dist/dom/MutationObserver.d.ts +37 -0
  202. package/dist/dom/MutationObserver.d.ts.map +1 -0
  203. package/dist/dom/MutationRecord.d.ts +15 -0
  204. package/dist/dom/MutationRecord.d.ts.map +1 -0
  205. package/dist/dom/Node.d.ts +139 -0
  206. package/dist/dom/Node.d.ts.map +1 -0
  207. package/dist/dom/index.d.ts +21 -0
  208. package/dist/dom/index.d.ts.map +1 -0
  209. package/dist/dom/interfaces.d.ts +373 -0
  210. package/dist/dom/interfaces.d.ts.map +1 -0
  211. package/dist/global-module.d.ts +2 -0
  212. package/dist/global-module.d.ts.map +1 -0
  213. package/dist/index.d.ts +19 -0
  214. package/dist/index.d.ts.map +1 -0
  215. package/dist/index.esm.js +19679 -0
  216. package/dist/index.js +19851 -0
  217. package/dist/index.umd.js +29159 -0
  218. package/dist/index.umd.min.js +14 -28
  219. package/dist/plugins/CullingPlugin.d.ts +18 -0
  220. package/dist/plugins/CullingPlugin.d.ts.map +1 -0
  221. package/dist/plugins/DirtyCheckPlugin.d.ts +11 -0
  222. package/dist/plugins/DirtyCheckPlugin.d.ts.map +1 -0
  223. package/dist/plugins/EventPlugin.d.ts +30 -0
  224. package/dist/plugins/EventPlugin.d.ts.map +1 -0
  225. package/dist/plugins/FrustumCullingStrategy.d.ts +22 -0
  226. package/dist/plugins/FrustumCullingStrategy.d.ts.map +1 -0
  227. package/dist/plugins/PrepareRendererPlugin.d.ts +8 -0
  228. package/dist/plugins/PrepareRendererPlugin.d.ts.map +1 -0
  229. package/dist/services/ContextService.d.ts +14 -0
  230. package/dist/services/ContextService.d.ts.map +1 -0
  231. package/dist/services/EventService.d.ts +72 -0
  232. package/dist/services/EventService.d.ts.map +1 -0
  233. package/dist/services/OffscreenCanvasCreator.d.ts +14 -0
  234. package/dist/services/OffscreenCanvasCreator.d.ts.map +1 -0
  235. package/dist/services/RenderingContext.d.ts +27 -0
  236. package/dist/services/RenderingContext.d.ts.map +1 -0
  237. package/dist/services/RenderingService.d.ts +103 -0
  238. package/dist/services/RenderingService.d.ts.map +1 -0
  239. package/dist/services/SceneGraphSelector.d.ts +24 -0
  240. package/dist/services/SceneGraphSelector.d.ts.map +1 -0
  241. package/dist/services/SceneGraphService.d.ts +154 -0
  242. package/dist/services/SceneGraphService.d.ts.map +1 -0
  243. package/dist/services/TextService.d.ts +37 -0
  244. package/dist/services/TextService.d.ts.map +1 -0
  245. package/dist/services/aabb/CircleUpdater.d.ts +9 -0
  246. package/dist/services/aabb/CircleUpdater.d.ts.map +1 -0
  247. package/dist/services/aabb/EllipseUpdater.d.ts +9 -0
  248. package/dist/services/aabb/EllipseUpdater.d.ts.map +1 -0
  249. package/dist/services/aabb/LineUpdater.d.ts +9 -0
  250. package/dist/services/aabb/LineUpdater.d.ts.map +1 -0
  251. package/dist/services/aabb/PathUpdater.d.ts +9 -0
  252. package/dist/services/aabb/PathUpdater.d.ts.map +1 -0
  253. package/dist/services/aabb/PolylineUpdater.d.ts +9 -0
  254. package/dist/services/aabb/PolylineUpdater.d.ts.map +1 -0
  255. package/dist/services/aabb/RectUpdater.d.ts +9 -0
  256. package/dist/services/aabb/RectUpdater.d.ts.map +1 -0
  257. package/dist/services/aabb/TextUpdater.d.ts +22 -0
  258. package/dist/services/aabb/TextUpdater.d.ts.map +1 -0
  259. package/dist/services/aabb/index.d.ts +9 -0
  260. package/dist/services/aabb/index.d.ts.map +1 -0
  261. package/dist/services/aabb/interfaces.d.ts +16 -0
  262. package/dist/services/aabb/interfaces.d.ts.map +1 -0
  263. package/dist/services/index.d.ts +11 -0
  264. package/dist/services/index.d.ts.map +1 -0
  265. package/dist/shapes/AABB.d.ts +36 -0
  266. package/dist/shapes/AABB.d.ts.map +1 -0
  267. package/dist/shapes/BoundingSphere.d.ts +9 -0
  268. package/dist/shapes/BoundingSphere.d.ts.map +1 -0
  269. package/dist/shapes/Frustum.d.ts +17 -0
  270. package/dist/shapes/Frustum.d.ts.map +1 -0
  271. package/dist/shapes/Plane.d.ts +15 -0
  272. package/dist/shapes/Plane.d.ts.map +1 -0
  273. package/dist/shapes/Point.d.ts +12 -0
  274. package/dist/shapes/Point.d.ts.map +1 -0
  275. package/dist/shapes/Ray.d.ts +25 -0
  276. package/dist/shapes/Ray.d.ts.map +1 -0
  277. package/dist/shapes/Rectangle.d.ts +13 -0
  278. package/dist/shapes/Rectangle.d.ts.map +1 -0
  279. package/dist/shapes/index.d.ts +8 -0
  280. package/dist/shapes/index.d.ts.map +1 -0
  281. package/dist/types.d.ts +270 -0
  282. package/dist/types.d.ts.map +1 -0
  283. package/dist/utils/animation.d.ts +16 -0
  284. package/dist/utils/animation.d.ts.map +1 -0
  285. package/dist/utils/assert.d.ts +10 -0
  286. package/dist/utils/assert.d.ts.map +1 -0
  287. package/dist/utils/bezier-easing.d.ts +21 -0
  288. package/dist/utils/bezier-easing.d.ts.map +1 -0
  289. package/dist/utils/canvas.d.ts +7 -0
  290. package/dist/utils/canvas.d.ts.map +1 -0
  291. package/dist/utils/custom-easing.d.ts +16 -0
  292. package/dist/utils/custom-easing.d.ts.map +1 -0
  293. package/dist/utils/deferred.d.ts +44 -0
  294. package/dist/utils/deferred.d.ts.map +1 -0
  295. package/dist/utils/dom.d.ts +3 -0
  296. package/dist/utils/dom.d.ts.map +1 -0
  297. package/dist/utils/event.d.ts +36 -0
  298. package/dist/utils/event.d.ts.map +1 -0
  299. package/dist/utils/index.d.ts +12 -0
  300. package/dist/utils/index.d.ts.map +1 -0
  301. package/dist/utils/interpolation.d.ts +5 -0
  302. package/dist/utils/interpolation.d.ts.map +1 -0
  303. package/dist/utils/math.d.ts +30 -0
  304. package/dist/utils/math.d.ts.map +1 -0
  305. package/dist/utils/path.d.ts +16 -0
  306. package/dist/utils/path.d.ts.map +1 -0
  307. package/dist/utils/string.d.ts +3 -0
  308. package/dist/utils/string.d.ts.map +1 -0
  309. package/dist/utils/text.d.ts +3 -0
  310. package/dist/utils/text.d.ts.map +1 -0
  311. package/package.json +27 -33
  312. package/es/AbstractRenderer.d.ts +0 -37
  313. package/es/AbstractRenderer.js +0 -62
  314. package/es/Canvas.d.ts +0 -149
  315. package/es/Canvas.js +0 -518
  316. package/es/DisplayObjectPool.d.ts +0 -7
  317. package/es/DisplayObjectPool.js +0 -27
  318. package/es/camera/Camera.d.ts +0 -327
  319. package/es/camera/Camera.js +0 -1154
  320. package/es/camera/Landmark.d.ts +0 -23
  321. package/es/camera/Landmark.js +0 -1
  322. package/es/camera/index.d.ts +0 -2
  323. package/es/camera/index.js +0 -2
  324. package/es/canvas-module.d.ts +0 -1
  325. package/es/canvas-module.js +0 -25
  326. package/es/components/Cullable.d.ts +0 -14
  327. package/es/components/Cullable.js +0 -28
  328. package/es/components/Geometry.d.ts +0 -12
  329. package/es/components/Geometry.js +0 -10
  330. package/es/components/Renderable.d.ts +0 -24
  331. package/es/components/Renderable.js +0 -18
  332. package/es/components/Sortable.d.ts +0 -20
  333. package/es/components/Sortable.js +0 -20
  334. package/es/components/Transform.d.ts +0 -28
  335. package/es/components/Transform.js +0 -64
  336. package/es/components/index.d.ts +0 -5
  337. package/es/components/index.js +0 -5
  338. package/es/css/CSS.d.ts +0 -87
  339. package/es/css/CSS.js +0 -121
  340. package/es/css/CSSProperty.d.ts +0 -41
  341. package/es/css/CSSProperty.js +0 -1
  342. package/es/css/StyleValueRegistry.d.ts +0 -92
  343. package/es/css/StyleValueRegistry.js +0 -882
  344. package/es/css/cssom/CSSColorValue.d.ts +0 -23
  345. package/es/css/cssom/CSSColorValue.js +0 -43
  346. package/es/css/cssom/CSSGradientValue.d.ts +0 -39
  347. package/es/css/cssom/CSSGradientValue.js +0 -54
  348. package/es/css/cssom/CSSImageValue.d.ts +0 -1
  349. package/es/css/cssom/CSSImageValue.js +0 -0
  350. package/es/css/cssom/CSSKeywordValue.d.ts +0 -15
  351. package/es/css/cssom/CSSKeywordValue.js +0 -37
  352. package/es/css/cssom/CSSMathOperator.d.ts +0 -11
  353. package/es/css/cssom/CSSMathOperator.js +0 -32
  354. package/es/css/cssom/CSSNumericSumValue.d.ts +0 -7
  355. package/es/css/cssom/CSSNumericSumValue.js +0 -1
  356. package/es/css/cssom/CSSNumericValue.d.ts +0 -212
  357. package/es/css/cssom/CSSNumericValue.js +0 -1661
  358. package/es/css/cssom/CSSRGB.d.ts +0 -25
  359. package/es/css/cssom/CSSRGB.js +0 -48
  360. package/es/css/cssom/CSSStyleValue.d.ts +0 -53
  361. package/es/css/cssom/CSSStyleValue.js +0 -625
  362. package/es/css/cssom/CSSTransformComponent.d.ts +0 -22
  363. package/es/css/cssom/CSSTransformComponent.js +0 -32
  364. package/es/css/cssom/CSSTransformValue.d.ts +0 -30
  365. package/es/css/cssom/CSSTransformValue.js +0 -48
  366. package/es/css/cssom/CSSTranslate.d.ts +0 -15
  367. package/es/css/cssom/CSSTranslate.js +0 -44
  368. package/es/css/cssom/index.d.ts +0 -19
  369. package/es/css/cssom/index.js +0 -19
  370. package/es/css/cssom/types.d.ts +0 -86
  371. package/es/css/cssom/types.js +0 -119
  372. package/es/css/index.d.ts +0 -11
  373. package/es/css/index.js +0 -11
  374. package/es/css/interfaces.d.ts +0 -116
  375. package/es/css/interfaces.js +0 -77
  376. package/es/css/layout/FragmentResult.d.ts +0 -32
  377. package/es/css/layout/FragmentResult.js +0 -32
  378. package/es/css/layout/LayoutChildren.d.ts +0 -23
  379. package/es/css/layout/LayoutChildren.js +0 -55
  380. package/es/css/layout/LayoutContext.d.ts +0 -35
  381. package/es/css/layout/LayoutContext.js +0 -35
  382. package/es/css/layout/LayoutDefinition.d.ts +0 -20
  383. package/es/css/layout/LayoutDefinition.js +0 -9
  384. package/es/css/layout/LayoutEdges.d.ts +0 -24
  385. package/es/css/layout/LayoutEdges.js +0 -41
  386. package/es/css/layout/LayoutEngine.d.ts +0 -41
  387. package/es/css/layout/LayoutEngine.js +0 -332
  388. package/es/css/layout/LayoutFragment.d.ts +0 -26
  389. package/es/css/layout/LayoutFragment.js +0 -28
  390. package/es/css/layout/LayoutObject.d.ts +0 -46
  391. package/es/css/layout/LayoutObject.js +0 -172
  392. package/es/css/layout/LayoutRegistry.d.ts +0 -16
  393. package/es/css/layout/LayoutRegistry.js +0 -78
  394. package/es/css/layout/LayoutWorkTask.d.ts +0 -14
  395. package/es/css/layout/LayoutWorkTask.js +0 -1
  396. package/es/css/layout/index.d.ts +0 -11
  397. package/es/css/layout/index.js +0 -11
  398. package/es/css/layout/types.d.ts +0 -104
  399. package/es/css/layout/types.js +0 -66
  400. package/es/css/parser/color.d.ts +0 -6
  401. package/es/css/parser/color.js +0 -241
  402. package/es/css/parser/dimension.d.ts +0 -37
  403. package/es/css/parser/dimension.js +0 -149
  404. package/es/css/parser/filter.d.ts +0 -7
  405. package/es/css/parser/filter.js +0 -43
  406. package/es/css/parser/index.d.ts +0 -15
  407. package/es/css/parser/index.js +0 -15
  408. package/es/css/parser/numeric.d.ts +0 -19
  409. package/es/css/parser/numeric.js +0 -62
  410. package/es/css/parser/path.d.ts +0 -5
  411. package/es/css/parser/path.js +0 -207
  412. package/es/css/parser/points.d.ts +0 -12
  413. package/es/css/parser/points.js +0 -58
  414. package/es/css/parser/transform-origin.d.ts +0 -6
  415. package/es/css/parser/transform-origin.js +0 -45
  416. package/es/css/parser/transform.d.ts +0 -13
  417. package/es/css/parser/transform.js +0 -289
  418. package/es/css/parser/types.d.ts +0 -2
  419. package/es/css/parser/types.js +0 -1
  420. package/es/css/properties/CSSPropertyClipPath.d.ts +0 -22
  421. package/es/css/properties/CSSPropertyClipPath.js +0 -56
  422. package/es/css/properties/CSSPropertyColor.d.ts +0 -14
  423. package/es/css/properties/CSSPropertyColor.js +0 -30
  424. package/es/css/properties/CSSPropertyFilter.d.ts +0 -6
  425. package/es/css/properties/CSSPropertyFilter.js +0 -16
  426. package/es/css/properties/CSSPropertyLengthOrPercentage.d.ts +0 -20
  427. package/es/css/properties/CSSPropertyLengthOrPercentage.js +0 -95
  428. package/es/css/properties/CSSPropertyLengthOrPercentage12.d.ts +0 -15
  429. package/es/css/properties/CSSPropertyLengthOrPercentage12.js +0 -38
  430. package/es/css/properties/CSSPropertyLengthOrPercentage14.d.ts +0 -25
  431. package/es/css/properties/CSSPropertyLengthOrPercentage14.js +0 -42
  432. package/es/css/properties/CSSPropertyLocalPosition.d.ts +0 -13
  433. package/es/css/properties/CSSPropertyLocalPosition.js +0 -85
  434. package/es/css/properties/CSSPropertyOffsetDistance.d.ts +0 -9
  435. package/es/css/properties/CSSPropertyOffsetDistance.js +0 -34
  436. package/es/css/properties/CSSPropertyOffsetPath.d.ts +0 -5
  437. package/es/css/properties/CSSPropertyOffsetPath.js +0 -31
  438. package/es/css/properties/CSSPropertyOpacity.d.ts +0 -10
  439. package/es/css/properties/CSSPropertyOpacity.js +0 -20
  440. package/es/css/properties/CSSPropertyPath.d.ts +0 -27
  441. package/es/css/properties/CSSPropertyPath.js +0 -58
  442. package/es/css/properties/CSSPropertyPoints.d.ts +0 -18
  443. package/es/css/properties/CSSPropertyPoints.js +0 -30
  444. package/es/css/properties/CSSPropertyShadowBlur.d.ts +0 -4
  445. package/es/css/properties/CSSPropertyShadowBlur.js +0 -22
  446. package/es/css/properties/CSSPropertyText.d.ts +0 -7
  447. package/es/css/properties/CSSPropertyText.js +0 -30
  448. package/es/css/properties/CSSPropertyTextTransform.d.ts +0 -5
  449. package/es/css/properties/CSSPropertyTextTransform.js +0 -29
  450. package/es/css/properties/CSSPropertyTransform.d.ts +0 -38
  451. package/es/css/properties/CSSPropertyTransform.js +0 -128
  452. package/es/css/properties/CSSPropertyTransformOrigin.d.ts +0 -11
  453. package/es/css/properties/CSSPropertyTransformOrigin.js +0 -21
  454. package/es/css/properties/CSSPropertyVisibility.d.ts +0 -13
  455. package/es/css/properties/CSSPropertyVisibility.js +0 -24
  456. package/es/css/properties/CSSPropertyZIndex.d.ts +0 -8
  457. package/es/css/properties/CSSPropertyZIndex.js +0 -33
  458. package/es/css/properties/index.d.ts +0 -18
  459. package/es/css/properties/index.js +0 -18
  460. package/es/display-objects/Circle.d.ts +0 -17
  461. package/es/display-objects/Circle.js +0 -34
  462. package/es/display-objects/CustomElement.d.ts +0 -26
  463. package/es/display-objects/CustomElement.js +0 -102
  464. package/es/display-objects/DisplayObject.d.ts +0 -274
  465. package/es/display-objects/DisplayObject.js +0 -887
  466. package/es/display-objects/Ellipse.d.ts +0 -19
  467. package/es/display-objects/Ellipse.js +0 -35
  468. package/es/display-objects/Group.d.ts +0 -29
  469. package/es/display-objects/Group.js +0 -42
  470. package/es/display-objects/HTML.d.ts +0 -41
  471. package/es/display-objects/HTML.js +0 -100
  472. package/es/display-objects/Image.d.ts +0 -23
  473. package/es/display-objects/Image.js +0 -34
  474. package/es/display-objects/Line.d.ts +0 -30
  475. package/es/display-objects/Line.js +0 -63
  476. package/es/display-objects/Path.d.ts +0 -48
  477. package/es/display-objects/Path.js +0 -131
  478. package/es/display-objects/Polygon.d.ts +0 -16
  479. package/es/display-objects/Polygon.js +0 -31
  480. package/es/display-objects/Polyline.d.ts +0 -21
  481. package/es/display-objects/Polyline.js +0 -74
  482. package/es/display-objects/Rect.d.ts +0 -24
  483. package/es/display-objects/Rect.js +0 -34
  484. package/es/display-objects/Text.d.ts +0 -91
  485. package/es/display-objects/Text.js +0 -118
  486. package/es/display-objects/index.d.ts +0 -13
  487. package/es/display-objects/index.js +0 -13
  488. package/es/dom/Animation.d.ts +0 -132
  489. package/es/dom/Animation.js +0 -503
  490. package/es/dom/AnimationEffectTiming.d.ts +0 -58
  491. package/es/dom/AnimationEffectTiming.js +0 -68
  492. package/es/dom/AnimationEvent.d.ts +0 -11
  493. package/es/dom/AnimationEvent.js +0 -34
  494. package/es/dom/AnimationTimeline.d.ts +0 -40
  495. package/es/dom/AnimationTimeline.js +0 -217
  496. package/es/dom/CustomElementRegistry.d.ts +0 -15
  497. package/es/dom/CustomElementRegistry.js +0 -42
  498. package/es/dom/CustomEvent.d.ts +0 -16
  499. package/es/dom/CustomEvent.js +0 -35
  500. package/es/dom/Document.d.ts +0 -72
  501. package/es/dom/Document.js +0 -316
  502. package/es/dom/Element.d.ts +0 -187
  503. package/es/dom/Element.js +0 -604
  504. package/es/dom/EventTarget.d.ts +0 -40
  505. package/es/dom/EventTarget.js +0 -157
  506. package/es/dom/FederatedEvent.d.ts +0 -145
  507. package/es/dom/FederatedEvent.js +0 -222
  508. package/es/dom/FederatedMouseEvent.d.ts +0 -52
  509. package/es/dom/FederatedMouseEvent.js +0 -124
  510. package/es/dom/FederatedPointerEvent.d.ts +0 -75
  511. package/es/dom/FederatedPointerEvent.js +0 -61
  512. package/es/dom/FederatedTouchEvent.d.ts +0 -15
  513. package/es/dom/FederatedTouchEvent.js +0 -19
  514. package/es/dom/FederatedWheelEvent.d.ts +0 -20
  515. package/es/dom/FederatedWheelEvent.js +0 -27
  516. package/es/dom/KeyframeEffect.d.ts +0 -47
  517. package/es/dom/KeyframeEffect.js +0 -174
  518. package/es/dom/KeyframeList.d.ts +0 -2
  519. package/es/dom/KeyframeList.js +0 -176
  520. package/es/dom/MutationEvent.d.ts +0 -15
  521. package/es/dom/MutationEvent.js +0 -29
  522. package/es/dom/MutationObserver.d.ts +0 -36
  523. package/es/dom/MutationObserver.js +0 -416
  524. package/es/dom/MutationRecord.d.ts +0 -14
  525. package/es/dom/MutationRecord.js +0 -31
  526. package/es/dom/Node.d.ts +0 -138
  527. package/es/dom/Node.js +0 -387
  528. package/es/dom/index.d.ts +0 -20
  529. package/es/dom/index.js +0 -20
  530. package/es/dom/interfaces.d.ts +0 -372
  531. package/es/dom/interfaces.js +0 -56
  532. package/es/global-module.d.ts +0 -1
  533. package/es/global-module.js +0 -155
  534. package/es/index.d.ts +0 -18
  535. package/es/index.js +0 -21
  536. package/es/plugins/CullingPlugin.d.ts +0 -17
  537. package/es/plugins/CullingPlugin.js +0 -58
  538. package/es/plugins/DirtyCheckPlugin.d.ts +0 -10
  539. package/es/plugins/DirtyCheckPlugin.js +0 -55
  540. package/es/plugins/EventPlugin.d.ts +0 -30
  541. package/es/plugins/EventPlugin.js +0 -374
  542. package/es/plugins/FrustumCullingStrategy.d.ts +0 -21
  543. package/es/plugins/FrustumCullingStrategy.js +0 -108
  544. package/es/plugins/PrepareRendererPlugin.d.ts +0 -7
  545. package/es/plugins/PrepareRendererPlugin.js +0 -79
  546. package/es/services/ContextService.d.ts +0 -13
  547. package/es/services/ContextService.js +0 -5
  548. package/es/services/EventService.d.ts +0 -73
  549. package/es/services/EventService.js +0 -1238
  550. package/es/services/OffscreenCanvasCreator.d.ts +0 -13
  551. package/es/services/OffscreenCanvasCreator.js +0 -58
  552. package/es/services/RenderingContext.d.ts +0 -26
  553. package/es/services/RenderingContext.js +0 -14
  554. package/es/services/RenderingService.d.ts +0 -102
  555. package/es/services/RenderingService.js +0 -231
  556. package/es/services/SceneGraphSelector.d.ts +0 -23
  557. package/es/services/SceneGraphSelector.js +0 -100
  558. package/es/services/SceneGraphService.d.ts +0 -153
  559. package/es/services/SceneGraphService.js +0 -819
  560. package/es/services/TextService.d.ts +0 -36
  561. package/es/services/TextService.js +0 -350
  562. package/es/services/aabb/CircleUpdater.d.ts +0 -8
  563. package/es/services/aabb/CircleUpdater.js +0 -30
  564. package/es/services/aabb/EllipseUpdater.d.ts +0 -8
  565. package/es/services/aabb/EllipseUpdater.js +0 -31
  566. package/es/services/aabb/LineUpdater.d.ts +0 -8
  567. package/es/services/aabb/LineUpdater.js +0 -37
  568. package/es/services/aabb/PathUpdater.d.ts +0 -8
  569. package/es/services/aabb/PathUpdater.js +0 -168
  570. package/es/services/aabb/PolylineUpdater.d.ts +0 -8
  571. package/es/services/aabb/PolylineUpdater.js +0 -46
  572. package/es/services/aabb/RectUpdater.d.ts +0 -8
  573. package/es/services/aabb/RectUpdater.js +0 -72
  574. package/es/services/aabb/TextUpdater.d.ts +0 -21
  575. package/es/services/aabb/TextUpdater.js +0 -136
  576. package/es/services/aabb/index.d.ts +0 -8
  577. package/es/services/aabb/index.js +0 -8
  578. package/es/services/aabb/interfaces.d.ts +0 -15
  579. package/es/services/aabb/interfaces.js +0 -3
  580. package/es/services/index.d.ts +0 -10
  581. package/es/services/index.js +0 -10
  582. package/es/shapes/AABB.d.ts +0 -35
  583. package/es/shapes/AABB.js +0 -230
  584. package/es/shapes/BoundingSphere.d.ts +0 -8
  585. package/es/shapes/BoundingSphere.js +0 -31
  586. package/es/shapes/Frustum.d.ts +0 -16
  587. package/es/shapes/Frustum.js +0 -79
  588. package/es/shapes/Plane.d.ts +0 -14
  589. package/es/shapes/Plane.js +0 -42
  590. package/es/shapes/Point.d.ts +0 -11
  591. package/es/shapes/Point.js +0 -31
  592. package/es/shapes/Ray.d.ts +0 -24
  593. package/es/shapes/Ray.js +0 -138
  594. package/es/shapes/Rectangle.d.ts +0 -12
  595. package/es/shapes/Rectangle.js +0 -20
  596. package/es/shapes/index.d.ts +0 -7
  597. package/es/shapes/index.js +0 -7
  598. package/es/types.d.ts +0 -289
  599. package/es/types.js +0 -54
  600. package/es/utils/animation.d.ts +0 -15
  601. package/es/utils/animation.js +0 -251
  602. package/es/utils/assert.d.ts +0 -9
  603. package/es/utils/assert.js +0 -33
  604. package/es/utils/bezier-easing.d.ts +0 -20
  605. package/es/utils/bezier-easing.js +0 -90
  606. package/es/utils/canvas.d.ts +0 -6
  607. package/es/utils/canvas.js +0 -18
  608. package/es/utils/custom-easing.d.ts +0 -64
  609. package/es/utils/custom-easing.js +0 -317
  610. package/es/utils/deferred.d.ts +0 -43
  611. package/es/utils/deferred.js +0 -117
  612. package/es/utils/dom.d.ts +0 -2
  613. package/es/utils/dom.js +0 -8
  614. package/es/utils/event.d.ts +0 -45
  615. package/es/utils/event.js +0 -9
  616. package/es/utils/index.d.ts +0 -10
  617. package/es/utils/index.js +0 -10
  618. package/es/utils/interpolation.d.ts +0 -4
  619. package/es/utils/interpolation.js +0 -212
  620. package/es/utils/math.d.ts +0 -29
  621. package/es/utils/math.js +0 -236
  622. package/es/utils/path.d.ts +0 -15
  623. package/es/utils/path.js +0 -387
  624. package/es/utils/string.d.ts +0 -2
  625. package/es/utils/string.js +0 -17
  626. package/es/utils/text.d.ts +0 -2
  627. package/es/utils/text.js +0 -29
  628. package/lib/AbstractRenderer.d.ts +0 -37
  629. package/lib/AbstractRenderer.js +0 -69
  630. package/lib/Canvas.d.ts +0 -149
  631. package/lib/Canvas.js +0 -540
  632. package/lib/DisplayObjectPool.d.ts +0 -7
  633. package/lib/DisplayObjectPool.js +0 -35
  634. package/lib/camera/Camera.d.ts +0 -327
  635. package/lib/camera/Camera.js +0 -1232
  636. package/lib/camera/Landmark.d.ts +0 -23
  637. package/lib/camera/Landmark.js +0 -5
  638. package/lib/camera/index.d.ts +0 -2
  639. package/lib/camera/index.js +0 -31
  640. package/lib/canvas-module.d.ts +0 -1
  641. package/lib/canvas-module.js +0 -41
  642. package/lib/components/Cullable.d.ts +0 -14
  643. package/lib/components/Cullable.js +0 -36
  644. package/lib/components/Geometry.d.ts +0 -12
  645. package/lib/components/Geometry.js +0 -17
  646. package/lib/components/Renderable.d.ts +0 -24
  647. package/lib/components/Renderable.js +0 -25
  648. package/lib/components/Sortable.d.ts +0 -20
  649. package/lib/components/Sortable.js +0 -27
  650. package/lib/components/Transform.d.ts +0 -28
  651. package/lib/components/Transform.js +0 -71
  652. package/lib/components/index.d.ts +0 -5
  653. package/lib/components/index.js +0 -70
  654. package/lib/css/CSS.d.ts +0 -87
  655. package/lib/css/CSS.js +0 -135
  656. package/lib/css/CSSProperty.d.ts +0 -41
  657. package/lib/css/CSSProperty.js +0 -5
  658. package/lib/css/StyleValueRegistry.d.ts +0 -92
  659. package/lib/css/StyleValueRegistry.js +0 -909
  660. package/lib/css/cssom/CSSColorValue.d.ts +0 -23
  661. package/lib/css/cssom/CSSColorValue.js +0 -51
  662. package/lib/css/cssom/CSSGradientValue.d.ts +0 -39
  663. package/lib/css/cssom/CSSGradientValue.js +0 -64
  664. package/lib/css/cssom/CSSImageValue.d.ts +0 -1
  665. package/lib/css/cssom/CSSImageValue.js +0 -1
  666. package/lib/css/cssom/CSSKeywordValue.d.ts +0 -15
  667. package/lib/css/cssom/CSSKeywordValue.js +0 -45
  668. package/lib/css/cssom/CSSMathOperator.d.ts +0 -11
  669. package/lib/css/cssom/CSSMathOperator.js +0 -40
  670. package/lib/css/cssom/CSSNumericSumValue.d.ts +0 -7
  671. package/lib/css/cssom/CSSNumericSumValue.js +0 -5
  672. package/lib/css/cssom/CSSNumericValue.d.ts +0 -212
  673. package/lib/css/cssom/CSSNumericValue.js +0 -1685
  674. package/lib/css/cssom/CSSRGB.d.ts +0 -25
  675. package/lib/css/cssom/CSSRGB.js +0 -56
  676. package/lib/css/cssom/CSSStyleValue.d.ts +0 -53
  677. package/lib/css/cssom/CSSStyleValue.js +0 -634
  678. package/lib/css/cssom/CSSTransformComponent.d.ts +0 -22
  679. package/lib/css/cssom/CSSTransformComponent.js +0 -39
  680. package/lib/css/cssom/CSSTransformValue.d.ts +0 -30
  681. package/lib/css/cssom/CSSTransformValue.js +0 -56
  682. package/lib/css/cssom/CSSTranslate.d.ts +0 -15
  683. package/lib/css/cssom/CSSTranslate.js +0 -53
  684. package/lib/css/cssom/index.d.ts +0 -19
  685. package/lib/css/cssom/index.js +0 -148
  686. package/lib/css/cssom/types.d.ts +0 -86
  687. package/lib/css/cssom/types.js +0 -130
  688. package/lib/css/index.d.ts +0 -11
  689. package/lib/css/index.js +0 -109
  690. package/lib/css/interfaces.d.ts +0 -116
  691. package/lib/css/interfaces.js +0 -87
  692. package/lib/css/layout/FragmentResult.d.ts +0 -32
  693. package/lib/css/layout/FragmentResult.js +0 -51
  694. package/lib/css/layout/LayoutChildren.d.ts +0 -23
  695. package/lib/css/layout/LayoutChildren.js +0 -72
  696. package/lib/css/layout/LayoutContext.d.ts +0 -35
  697. package/lib/css/layout/LayoutContext.js +0 -49
  698. package/lib/css/layout/LayoutDefinition.d.ts +0 -20
  699. package/lib/css/layout/LayoutDefinition.js +0 -16
  700. package/lib/css/layout/LayoutEdges.d.ts +0 -24
  701. package/lib/css/layout/LayoutEdges.js +0 -56
  702. package/lib/css/layout/LayoutEngine.d.ts +0 -41
  703. package/lib/css/layout/LayoutEngine.js +0 -345
  704. package/lib/css/layout/LayoutFragment.d.ts +0 -26
  705. package/lib/css/layout/LayoutFragment.js +0 -44
  706. package/lib/css/layout/LayoutObject.d.ts +0 -46
  707. package/lib/css/layout/LayoutObject.js +0 -182
  708. package/lib/css/layout/LayoutRegistry.d.ts +0 -16
  709. package/lib/css/layout/LayoutRegistry.js +0 -87
  710. package/lib/css/layout/LayoutWorkTask.d.ts +0 -14
  711. package/lib/css/layout/LayoutWorkTask.js +0 -5
  712. package/lib/css/layout/index.d.ts +0 -11
  713. package/lib/css/layout/index.js +0 -148
  714. package/lib/css/layout/types.d.ts +0 -104
  715. package/lib/css/layout/types.js +0 -74
  716. package/lib/css/parser/color.d.ts +0 -6
  717. package/lib/css/parser/color.js +0 -260
  718. package/lib/css/parser/dimension.d.ts +0 -37
  719. package/lib/css/parser/dimension.js +0 -175
  720. package/lib/css/parser/filter.d.ts +0 -7
  721. package/lib/css/parser/filter.js +0 -56
  722. package/lib/css/parser/index.d.ts +0 -15
  723. package/lib/css/parser/index.js +0 -122
  724. package/lib/css/parser/numeric.d.ts +0 -19
  725. package/lib/css/parser/numeric.js +0 -81
  726. package/lib/css/parser/path.d.ts +0 -5
  727. package/lib/css/parser/path.js +0 -221
  728. package/lib/css/parser/points.d.ts +0 -12
  729. package/lib/css/parser/points.js +0 -69
  730. package/lib/css/parser/transform-origin.d.ts +0 -6
  731. package/lib/css/parser/transform-origin.js +0 -54
  732. package/lib/css/parser/transform.d.ts +0 -13
  733. package/lib/css/parser/transform.js +0 -303
  734. package/lib/css/parser/types.d.ts +0 -2
  735. package/lib/css/parser/types.js +0 -5
  736. package/lib/css/properties/CSSPropertyClipPath.d.ts +0 -22
  737. package/lib/css/properties/CSSPropertyClipPath.js +0 -66
  738. package/lib/css/properties/CSSPropertyColor.d.ts +0 -14
  739. package/lib/css/properties/CSSPropertyColor.js +0 -40
  740. package/lib/css/properties/CSSPropertyFilter.d.ts +0 -6
  741. package/lib/css/properties/CSSPropertyFilter.js +0 -25
  742. package/lib/css/properties/CSSPropertyLengthOrPercentage.d.ts +0 -20
  743. package/lib/css/properties/CSSPropertyLengthOrPercentage.js +0 -105
  744. package/lib/css/properties/CSSPropertyLengthOrPercentage12.d.ts +0 -15
  745. package/lib/css/properties/CSSPropertyLengthOrPercentage12.js +0 -48
  746. package/lib/css/properties/CSSPropertyLengthOrPercentage14.d.ts +0 -25
  747. package/lib/css/properties/CSSPropertyLengthOrPercentage14.js +0 -52
  748. package/lib/css/properties/CSSPropertyLocalPosition.d.ts +0 -13
  749. package/lib/css/properties/CSSPropertyLocalPosition.js +0 -96
  750. package/lib/css/properties/CSSPropertyOffsetDistance.d.ts +0 -9
  751. package/lib/css/properties/CSSPropertyOffsetDistance.js +0 -44
  752. package/lib/css/properties/CSSPropertyOffsetPath.d.ts +0 -5
  753. package/lib/css/properties/CSSPropertyOffsetPath.js +0 -39
  754. package/lib/css/properties/CSSPropertyOpacity.d.ts +0 -10
  755. package/lib/css/properties/CSSPropertyOpacity.js +0 -29
  756. package/lib/css/properties/CSSPropertyPath.d.ts +0 -27
  757. package/lib/css/properties/CSSPropertyPath.js +0 -70
  758. package/lib/css/properties/CSSPropertyPoints.d.ts +0 -18
  759. package/lib/css/properties/CSSPropertyPoints.js +0 -40
  760. package/lib/css/properties/CSSPropertyShadowBlur.d.ts +0 -4
  761. package/lib/css/properties/CSSPropertyShadowBlur.js +0 -32
  762. package/lib/css/properties/CSSPropertyText.d.ts +0 -7
  763. package/lib/css/properties/CSSPropertyText.js +0 -39
  764. package/lib/css/properties/CSSPropertyTextTransform.d.ts +0 -5
  765. package/lib/css/properties/CSSPropertyTextTransform.js +0 -38
  766. package/lib/css/properties/CSSPropertyTransform.d.ts +0 -38
  767. package/lib/css/properties/CSSPropertyTransform.js +0 -138
  768. package/lib/css/properties/CSSPropertyTransformOrigin.d.ts +0 -11
  769. package/lib/css/properties/CSSPropertyTransformOrigin.js +0 -30
  770. package/lib/css/properties/CSSPropertyVisibility.d.ts +0 -13
  771. package/lib/css/properties/CSSPropertyVisibility.js +0 -32
  772. package/lib/css/properties/CSSPropertyZIndex.d.ts +0 -8
  773. package/lib/css/properties/CSSPropertyZIndex.js +0 -42
  774. package/lib/css/properties/index.d.ts +0 -18
  775. package/lib/css/properties/index.js +0 -239
  776. package/lib/display-objects/Circle.d.ts +0 -17
  777. package/lib/display-objects/Circle.js +0 -42
  778. package/lib/display-objects/CustomElement.d.ts +0 -26
  779. package/lib/display-objects/CustomElement.js +0 -109
  780. package/lib/display-objects/DisplayObject.d.ts +0 -274
  781. package/lib/display-objects/DisplayObject.js +0 -910
  782. package/lib/display-objects/Ellipse.d.ts +0 -19
  783. package/lib/display-objects/Ellipse.js +0 -43
  784. package/lib/display-objects/Group.d.ts +0 -29
  785. package/lib/display-objects/Group.js +0 -50
  786. package/lib/display-objects/HTML.d.ts +0 -41
  787. package/lib/display-objects/HTML.js +0 -111
  788. package/lib/display-objects/Image.d.ts +0 -23
  789. package/lib/display-objects/Image.js +0 -42
  790. package/lib/display-objects/Line.d.ts +0 -30
  791. package/lib/display-objects/Line.js +0 -75
  792. package/lib/display-objects/Path.d.ts +0 -48
  793. package/lib/display-objects/Path.js +0 -142
  794. package/lib/display-objects/Polygon.d.ts +0 -16
  795. package/lib/display-objects/Polygon.js +0 -39
  796. package/lib/display-objects/Polyline.d.ts +0 -21
  797. package/lib/display-objects/Polyline.js +0 -84
  798. package/lib/display-objects/Rect.d.ts +0 -24
  799. package/lib/display-objects/Rect.js +0 -42
  800. package/lib/display-objects/Text.d.ts +0 -91
  801. package/lib/display-objects/Text.js +0 -126
  802. package/lib/display-objects/index.d.ts +0 -13
  803. package/lib/display-objects/index.js +0 -174
  804. package/lib/dom/Animation.d.ts +0 -132
  805. package/lib/dom/Animation.js +0 -511
  806. package/lib/dom/AnimationEffectTiming.d.ts +0 -58
  807. package/lib/dom/AnimationEffectTiming.js +0 -75
  808. package/lib/dom/AnimationEvent.d.ts +0 -11
  809. package/lib/dom/AnimationEvent.js +0 -42
  810. package/lib/dom/AnimationTimeline.d.ts +0 -40
  811. package/lib/dom/AnimationTimeline.js +0 -228
  812. package/lib/dom/CustomElementRegistry.d.ts +0 -15
  813. package/lib/dom/CustomElementRegistry.js +0 -50
  814. package/lib/dom/CustomEvent.d.ts +0 -16
  815. package/lib/dom/CustomEvent.js +0 -42
  816. package/lib/dom/Document.d.ts +0 -72
  817. package/lib/dom/Document.js +0 -329
  818. package/lib/dom/Element.d.ts +0 -187
  819. package/lib/dom/Element.js +0 -619
  820. package/lib/dom/EventTarget.d.ts +0 -40
  821. package/lib/dom/EventTarget.js +0 -171
  822. package/lib/dom/FederatedEvent.d.ts +0 -145
  823. package/lib/dom/FederatedEvent.js +0 -229
  824. package/lib/dom/FederatedMouseEvent.d.ts +0 -52
  825. package/lib/dom/FederatedMouseEvent.js +0 -133
  826. package/lib/dom/FederatedPointerEvent.d.ts +0 -75
  827. package/lib/dom/FederatedPointerEvent.js +0 -69
  828. package/lib/dom/FederatedTouchEvent.d.ts +0 -15
  829. package/lib/dom/FederatedTouchEvent.js +0 -27
  830. package/lib/dom/FederatedWheelEvent.d.ts +0 -20
  831. package/lib/dom/FederatedWheelEvent.js +0 -35
  832. package/lib/dom/KeyframeEffect.d.ts +0 -47
  833. package/lib/dom/KeyframeEffect.js +0 -192
  834. package/lib/dom/KeyframeList.d.ts +0 -2
  835. package/lib/dom/KeyframeList.js +0 -183
  836. package/lib/dom/MutationEvent.d.ts +0 -15
  837. package/lib/dom/MutationEvent.js +0 -37
  838. package/lib/dom/MutationObserver.d.ts +0 -36
  839. package/lib/dom/MutationObserver.js +0 -426
  840. package/lib/dom/MutationRecord.d.ts +0 -14
  841. package/lib/dom/MutationRecord.js +0 -38
  842. package/lib/dom/Node.d.ts +0 -138
  843. package/lib/dom/Node.js +0 -397
  844. package/lib/dom/index.d.ts +0 -20
  845. package/lib/dom/index.js +0 -265
  846. package/lib/dom/interfaces.d.ts +0 -372
  847. package/lib/dom/interfaces.js +0 -64
  848. package/lib/global-module.d.ts +0 -1
  849. package/lib/global-module.js +0 -170
  850. package/lib/index.d.ts +0 -18
  851. package/lib/index.js +0 -198
  852. package/lib/plugins/CullingPlugin.d.ts +0 -17
  853. package/lib/plugins/CullingPlugin.js +0 -69
  854. package/lib/plugins/DirtyCheckPlugin.d.ts +0 -10
  855. package/lib/plugins/DirtyCheckPlugin.js +0 -63
  856. package/lib/plugins/EventPlugin.d.ts +0 -30
  857. package/lib/plugins/EventPlugin.js +0 -382
  858. package/lib/plugins/FrustumCullingStrategy.d.ts +0 -21
  859. package/lib/plugins/FrustumCullingStrategy.js +0 -121
  860. package/lib/plugins/PrepareRendererPlugin.d.ts +0 -7
  861. package/lib/plugins/PrepareRendererPlugin.js +0 -87
  862. package/lib/services/ContextService.d.ts +0 -13
  863. package/lib/services/ContextService.js +0 -15
  864. package/lib/services/EventService.d.ts +0 -73
  865. package/lib/services/EventService.js +0 -1263
  866. package/lib/services/OffscreenCanvasCreator.d.ts +0 -13
  867. package/lib/services/OffscreenCanvasCreator.js +0 -66
  868. package/lib/services/RenderingContext.d.ts +0 -26
  869. package/lib/services/RenderingContext.js +0 -24
  870. package/lib/services/RenderingService.d.ts +0 -102
  871. package/lib/services/RenderingService.js +0 -244
  872. package/lib/services/SceneGraphSelector.d.ts +0 -23
  873. package/lib/services/SceneGraphSelector.js +0 -114
  874. package/lib/services/SceneGraphService.d.ts +0 -153
  875. package/lib/services/SceneGraphService.js +0 -875
  876. package/lib/services/TextService.d.ts +0 -36
  877. package/lib/services/TextService.js +0 -359
  878. package/lib/services/aabb/CircleUpdater.d.ts +0 -8
  879. package/lib/services/aabb/CircleUpdater.js +0 -40
  880. package/lib/services/aabb/EllipseUpdater.d.ts +0 -8
  881. package/lib/services/aabb/EllipseUpdater.js +0 -41
  882. package/lib/services/aabb/LineUpdater.d.ts +0 -8
  883. package/lib/services/aabb/LineUpdater.js +0 -47
  884. package/lib/services/aabb/PathUpdater.d.ts +0 -8
  885. package/lib/services/aabb/PathUpdater.js +0 -179
  886. package/lib/services/aabb/PolylineUpdater.d.ts +0 -8
  887. package/lib/services/aabb/PolylineUpdater.js +0 -56
  888. package/lib/services/aabb/RectUpdater.d.ts +0 -8
  889. package/lib/services/aabb/RectUpdater.js +0 -84
  890. package/lib/services/aabb/TextUpdater.d.ts +0 -21
  891. package/lib/services/aabb/TextUpdater.js +0 -149
  892. package/lib/services/aabb/index.d.ts +0 -8
  893. package/lib/services/aabb/index.js +0 -84
  894. package/lib/services/aabb/interfaces.d.ts +0 -15
  895. package/lib/services/aabb/interfaces.js +0 -16
  896. package/lib/services/index.d.ts +0 -10
  897. package/lib/services/index.js +0 -122
  898. package/lib/shapes/AABB.d.ts +0 -35
  899. package/lib/shapes/AABB.js +0 -248
  900. package/lib/shapes/BoundingSphere.d.ts +0 -8
  901. package/lib/shapes/BoundingSphere.js +0 -41
  902. package/lib/shapes/Frustum.d.ts +0 -16
  903. package/lib/shapes/Frustum.js +0 -96
  904. package/lib/shapes/Plane.d.ts +0 -14
  905. package/lib/shapes/Plane.js +0 -51
  906. package/lib/shapes/Point.d.ts +0 -11
  907. package/lib/shapes/Point.js +0 -38
  908. package/lib/shapes/Ray.d.ts +0 -24
  909. package/lib/shapes/Ray.js +0 -169
  910. package/lib/shapes/Rectangle.d.ts +0 -12
  911. package/lib/shapes/Rectangle.js +0 -27
  912. package/lib/shapes/index.d.ts +0 -7
  913. package/lib/shapes/index.js +0 -96
  914. package/lib/types.d.ts +0 -289
  915. package/lib/types.js +0 -69
  916. package/lib/utils/animation.d.ts +0 -15
  917. package/lib/utils/animation.js +0 -275
  918. package/lib/utils/assert.d.ts +0 -9
  919. package/lib/utils/assert.js +0 -56
  920. package/lib/utils/bezier-easing.d.ts +0 -20
  921. package/lib/utils/bezier-easing.js +0 -128
  922. package/lib/utils/canvas.d.ts +0 -6
  923. package/lib/utils/canvas.js +0 -27
  924. package/lib/utils/custom-easing.d.ts +0 -64
  925. package/lib/utils/custom-easing.js +0 -392
  926. package/lib/utils/deferred.d.ts +0 -43
  927. package/lib/utils/deferred.js +0 -131
  928. package/lib/utils/dom.d.ts +0 -2
  929. package/lib/utils/dom.js +0 -17
  930. package/lib/utils/event.d.ts +0 -45
  931. package/lib/utils/event.js +0 -17
  932. package/lib/utils/index.d.ts +0 -10
  933. package/lib/utils/index.js +0 -135
  934. package/lib/utils/interpolation.d.ts +0 -4
  935. package/lib/utils/interpolation.js +0 -229
  936. package/lib/utils/math.d.ts +0 -29
  937. package/lib/utils/math.js +0 -273
  938. package/lib/utils/path.d.ts +0 -15
  939. package/lib/utils/path.js +0 -409
  940. package/lib/utils/string.d.ts +0 -2
  941. package/lib/utils/string.js +0 -27
  942. package/lib/utils/text.d.ts +0 -2
  943. package/lib/utils/text.js +0 -39
@@ -1,887 +0,0 @@
1
- import { __assign, __extends, __read, __spreadArray } from "tslib";
2
- import { GlobalContainer } from 'mana-syringe';
3
- import { mat4, quat, vec3 } from 'gl-matrix';
4
- import { DisplayObjectPool } from '../DisplayObjectPool';
5
- import { KeyframeEffect } from '../dom/KeyframeEffect';
6
- import { Element } from '../dom/Element';
7
- import { ElementEvent } from '../dom/interfaces';
8
- import { Shape } from '../types';
9
- import { createVec3, decompose, formatAttribute, fromRotationTranslationScale, getEuler, isNil, isObject, isUndefined, rad2deg } from '../utils';
10
- import { dirtifyToRoot } from '../services';
11
- import { MutationEvent } from '../dom/MutationEvent';
12
- import { Rectangle } from '../shapes';
13
- import { StyleValueRegistry } from '../css/interfaces';
14
- var DEFAULT_STYLE_PROPS = {
15
- anchor: [0, 0],
16
- opacity: '',
17
- fillOpacity: '',
18
- strokeOpacity: '',
19
- fill: '',
20
- stroke: '',
21
- transform: '',
22
- transformOrigin: '',
23
- visibility: '',
24
- pointerEvents: '',
25
- lineCap: '',
26
- lineJoin: '',
27
- increasedLineWidthForHitTesting: '0',
28
- fontSize: '',
29
- fontFamily: '',
30
- fontStyle: '',
31
- fontWeight: '',
32
- fontVariant: '',
33
- textAlign: '',
34
- textBaseline: '',
35
- textTransform: ''
36
- };
37
- /**
38
- * prototype chains: DisplayObject -> Element -> Node -> EventTarget
39
- *
40
- * mixins: Animatable, Transformable, Visible
41
- * @see https://github.com/tannerntannern/ts-mixer/blob/master/README.md#mixing-generic-classes
42
- *
43
- * Provide abilities in scene graph, such as:
44
- * * transform `translate/rotate/scale`
45
- * * add/remove child
46
- * * visibility and z-index
47
- *
48
- * Those abilities are implemented with those components: `Transform/Sortable/Visible`.
49
- *
50
- * Emit following events:
51
- * * init
52
- * * destroy
53
- * * attributeChanged
54
- */
55
-
56
- var DisplayObject =
57
- /** @class */
58
- function (_super) {
59
- __extends(DisplayObject, _super);
60
-
61
- function DisplayObject(config) {
62
- var _this = this;
63
-
64
- var _a, _b, _c;
65
-
66
- _this = _super.call(this) || this;
67
- _this.styleValueRegistry = GlobalContainer.get(StyleValueRegistry);
68
- /**
69
- * push to active animations after calling `animate()`
70
- */
71
-
72
- _this.activeAnimations = []; // assign name, id to config
73
- // eg. group.get('name')
74
-
75
- _this.config = config; // compatible with G 3.0
76
-
77
- _this.config.interactive = (_a = _this.config.capture) !== null && _a !== void 0 ? _a : _this.config.interactive; // init scene graph node
78
-
79
- _this.id = _this.config.id || '';
80
- _this.name = _this.config.name || '';
81
-
82
- if (_this.config.className || _this.config.class) {
83
- _this.className = _this.config.className || _this.config.class;
84
- }
85
-
86
- _this.nodeName = _this.config.type || Shape.GROUP; // compatible with G 3.0
87
-
88
- _this.config.style = __assign(__assign(__assign(__assign({}, DEFAULT_STYLE_PROPS), {
89
- zIndex: (_b = _this.config.zIndex) !== null && _b !== void 0 ? _b : 0,
90
- interactive: (_c = _this.config.interactive) !== null && _c !== void 0 ? _c : true
91
- }), _this.config.style), _this.config.attrs);
92
-
93
- if (_this.config.visible != null) {
94
- _this.config.style.visibility = _this.config.visible === false ? 'hidden' : 'visible';
95
- }
96
-
97
- if (_this.config.interactive != null) {
98
- _this.config.style.pointerEvents = _this.config.interactive === false ? 'none' : 'auto';
99
- }
100
-
101
- _this.style = new Proxy(__assign(__assign({}, _this.attributes), {
102
- setProperty: function setProperty(propertyName, value) {
103
- _this.setAttribute(propertyName, value);
104
- },
105
- getPropertyValue: function getPropertyValue(propertyName) {
106
- return _this.getAttribute(propertyName);
107
- },
108
- removeProperty: function removeProperty(propertyName) {
109
- _this.removeAttribute(propertyName);
110
- },
111
- item: function item() {
112
- return '';
113
- }
114
- }), {
115
- get: function get(target, name) {
116
- if (name in target) {
117
- return target[name];
118
- }
119
-
120
- return _this.getAttribute(name);
121
- },
122
- set: function set(_, prop, value) {
123
- _this.setAttribute(prop, value);
124
-
125
- return true;
126
- }
127
- });
128
-
129
- _this.initAttributes(_this.config.style); // insert this group into pool
130
-
131
-
132
- GlobalContainer.get(DisplayObjectPool).add(_this.entity, _this);
133
- return _this;
134
- }
135
-
136
- DisplayObject.prototype.destroy = function () {
137
- _super.prototype.destroy.call(this); // remove from into pool
138
-
139
-
140
- GlobalContainer.get(DisplayObjectPool).remove(this.entity); // stop all active animations
141
-
142
- this.getAnimations().forEach(function (animation) {
143
- animation.cancel();
144
- });
145
- };
146
-
147
- DisplayObject.prototype.cloneNode = function (deep) {
148
- var cloned = new this.constructor({
149
- // copy id & name
150
- // @see https://developer.mozilla.org/en-US/docs/Web/API/Node/cloneNode#notes
151
- id: this.id,
152
- name: this.name,
153
- className: this.name,
154
- interactive: this.interactive,
155
- style: __assign({}, this.attributes)
156
- });
157
-
158
- if (deep) {
159
- this.children.forEach(function (child) {
160
- var clonedChild = child.cloneNode(deep);
161
- cloned.appendChild(clonedChild);
162
- });
163
- }
164
-
165
- return cloned;
166
- };
167
-
168
- DisplayObject.prototype.initAttributes = function (attributes) {
169
- if (attributes === void 0) {
170
- attributes = {};
171
- }
172
-
173
- var renderable = this.renderable;
174
- this.styleValueRegistry.processProperties(this, attributes); // redraw at next frame
175
-
176
- renderable.dirty = true;
177
- };
178
-
179
- DisplayObject.prototype.setAttribute = function (name, value, force) {
180
- if (force === void 0) {
181
- force = false;
182
- }
183
-
184
- var _a = __read(formatAttribute(name, value), 2),
185
- attributeName = _a[0],
186
- attributeValue = _a[1]; // ignore undefined value
187
-
188
-
189
- if (isUndefined(value)) {
190
- return;
191
- }
192
-
193
- if (force || attributeValue != this.attributes[attributeName]) {
194
- this.internalSetAttribute(attributeName, attributeValue);
195
-
196
- _super.prototype.setAttribute.call(this, attributeName, attributeValue);
197
- }
198
- };
199
- /**
200
- * called when attributes get changed or initialized
201
- */
202
-
203
-
204
- DisplayObject.prototype.internalSetAttribute = function (name, value, parseOptions) {
205
- var _a;
206
-
207
- var _this = this;
208
-
209
- if (parseOptions === void 0) {
210
- parseOptions = {};
211
- }
212
-
213
- var renderable = this.renderable;
214
- var oldValue = this.attributes[name];
215
- var oldParsedValue = this.parsedStyle[name];
216
- this.styleValueRegistry.processProperties(this, (_a = {}, _a[name] = value, _a), parseOptions); // inform clip path targets
217
-
218
- if (this.attributes.clipPathTargets && this.attributes.clipPathTargets.length) {
219
- this.attributes.clipPathTargets.forEach(function (target) {
220
- dirtifyToRoot(target);
221
- target.dispatchEvent(new MutationEvent(ElementEvent.ATTR_MODIFIED, target, _this, _this, 'clipPath', MutationEvent.MODIFICATION, _this, _this));
222
- });
223
- } // redraw at next frame
224
-
225
-
226
- renderable.dirty = true;
227
- this.dispatchEvent(new MutationEvent(ElementEvent.ATTR_MODIFIED, this, oldValue, value, name, MutationEvent.MODIFICATION, oldParsedValue, this.parsedStyle[name]));
228
- }; // #region transformable
229
-
230
- /**
231
- * returns different values than getBoundingClientRect(), as the latter returns value relative to the viewport
232
- * @see https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getBBox
233
- *
234
- * FIXME: It is worth noting that getBBox responds to original untransformed values of a drawn object.
235
- * @see https://www.w3.org/Graphics/SVG/IG/resources/svgprimer.html#getBBox
236
- */
237
-
238
-
239
- DisplayObject.prototype.getBBox = function () {
240
- var aabb = this.getBounds();
241
-
242
- var _a = __read(aabb.getMin(), 2),
243
- left = _a[0],
244
- top = _a[1];
245
-
246
- var _b = __read(aabb.getMax(), 2),
247
- right = _b[0],
248
- bottom = _b[1];
249
-
250
- return new Rectangle(left, top, right - left, bottom - top);
251
- };
252
-
253
- DisplayObject.prototype.setOrigin = function (position, y, z) {
254
- if (y === void 0) {
255
- y = 0;
256
- }
257
-
258
- if (z === void 0) {
259
- z = 0;
260
- }
261
-
262
- this.sceneGraphService.setOrigin(this, createVec3(position, y, z));
263
- return this;
264
- };
265
-
266
- DisplayObject.prototype.getOrigin = function () {
267
- return this.sceneGraphService.getOrigin(this);
268
- };
269
- /**
270
- * set position in world space
271
- */
272
-
273
-
274
- DisplayObject.prototype.setPosition = function (position, y, z) {
275
- if (y === void 0) {
276
- y = 0;
277
- }
278
-
279
- if (z === void 0) {
280
- z = 0;
281
- }
282
-
283
- this.sceneGraphService.setPosition(this, createVec3(position, y, z));
284
- return this;
285
- };
286
- /**
287
- * set position in local space
288
- */
289
-
290
-
291
- DisplayObject.prototype.setLocalPosition = function (position, y, z) {
292
- if (y === void 0) {
293
- y = 0;
294
- }
295
-
296
- if (z === void 0) {
297
- z = 0;
298
- }
299
-
300
- this.sceneGraphService.setLocalPosition(this, createVec3(position, y, z));
301
- return this;
302
- };
303
- /**
304
- * translate in world space
305
- */
306
-
307
-
308
- DisplayObject.prototype.translate = function (position, y, z) {
309
- if (y === void 0) {
310
- y = 0;
311
- }
312
-
313
- if (z === void 0) {
314
- z = 0;
315
- }
316
-
317
- this.sceneGraphService.translate(this, createVec3(position, y, z));
318
- return this;
319
- };
320
- /**
321
- * translate in local space
322
- */
323
-
324
-
325
- DisplayObject.prototype.translateLocal = function (position, y, z) {
326
- if (y === void 0) {
327
- y = 0;
328
- }
329
-
330
- if (z === void 0) {
331
- z = 0;
332
- }
333
-
334
- this.sceneGraphService.translateLocal(this, createVec3(position, y, z));
335
- return this;
336
- };
337
-
338
- DisplayObject.prototype.getPosition = function () {
339
- return this.sceneGraphService.getPosition(this);
340
- };
341
-
342
- DisplayObject.prototype.getLocalPosition = function () {
343
- return this.sceneGraphService.getLocalPosition(this);
344
- };
345
- /**
346
- * compatible with G 3.0
347
- *
348
- * scaling in local space
349
- * scale(10) = scale(10, 10, 10)
350
- *
351
- * we can't set scale in world space
352
- */
353
-
354
-
355
- DisplayObject.prototype.scale = function (scaling, y, z) {
356
- return this.scaleLocal(scaling, y, z);
357
- };
358
-
359
- DisplayObject.prototype.scaleLocal = function (scaling, y, z) {
360
- if (typeof scaling === 'number') {
361
- y = y || scaling;
362
- z = z || scaling;
363
- scaling = createVec3(scaling, y, z);
364
- }
365
-
366
- this.sceneGraphService.scaleLocal(this, scaling);
367
- return this;
368
- };
369
- /**
370
- * set scaling in local space
371
- */
372
-
373
-
374
- DisplayObject.prototype.setLocalScale = function (scaling, y, z) {
375
- if (typeof scaling === 'number') {
376
- y = y || scaling;
377
- z = z || scaling;
378
- scaling = createVec3(scaling, y, z);
379
- }
380
-
381
- this.sceneGraphService.setLocalScale(this, scaling);
382
- return this;
383
- };
384
- /**
385
- * get scaling in local space
386
- */
387
-
388
-
389
- DisplayObject.prototype.getLocalScale = function () {
390
- return this.sceneGraphService.getLocalScale(this);
391
- };
392
- /**
393
- * get scaling in world space
394
- */
395
-
396
-
397
- DisplayObject.prototype.getScale = function () {
398
- return this.sceneGraphService.getScale(this);
399
- };
400
- /**
401
- * only return degrees of Z axis in world space
402
- */
403
-
404
-
405
- DisplayObject.prototype.getEulerAngles = function () {
406
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
407
- var _a = __read(getEuler(vec3.create(), this.sceneGraphService.getWorldTransform(this)), 3),
408
- ex = _a[0],
409
- ey = _a[1],
410
- ez = _a[2];
411
-
412
- return rad2deg(ez);
413
- };
414
- /**
415
- * only return degrees of Z axis in local space
416
- */
417
-
418
-
419
- DisplayObject.prototype.getLocalEulerAngles = function () {
420
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
421
- var _a = __read(getEuler(vec3.create(), this.sceneGraphService.getLocalRotation(this)), 3),
422
- ex = _a[0],
423
- ey = _a[1],
424
- ez = _a[2];
425
-
426
- return rad2deg(ez);
427
- };
428
- /**
429
- * set euler angles(degrees) in world space
430
- */
431
-
432
-
433
- DisplayObject.prototype.setEulerAngles = function (z) {
434
- this.sceneGraphService.setEulerAngles(this, 0, 0, z);
435
- return this;
436
- };
437
- /**
438
- * set euler angles(degrees) in local space
439
- */
440
-
441
-
442
- DisplayObject.prototype.setLocalEulerAngles = function (z) {
443
- this.sceneGraphService.setLocalEulerAngles(this, 0, 0, z);
444
- return this;
445
- };
446
-
447
- DisplayObject.prototype.rotateLocal = function (x, y, z) {
448
- if (isNil(y) && isNil(z)) {
449
- this.sceneGraphService.rotateLocal(this, 0, 0, x);
450
- } else {
451
- this.sceneGraphService.rotateLocal(this, x, y, z);
452
- }
453
-
454
- return this;
455
- };
456
-
457
- DisplayObject.prototype.rotate = function (x, y, z) {
458
- if (isNil(y) && isNil(z)) {
459
- this.sceneGraphService.rotate(this, 0, 0, x);
460
- } else {
461
- this.sceneGraphService.rotate(this, x, y, z);
462
- }
463
-
464
- return this;
465
- };
466
-
467
- DisplayObject.prototype.setRotation = function (rotation, y, z, w) {
468
- this.sceneGraphService.setRotation(this, rotation, y, z, w);
469
- return this;
470
- };
471
-
472
- DisplayObject.prototype.setLocalRotation = function (rotation, y, z, w) {
473
- this.sceneGraphService.setLocalRotation(this, rotation, y, z, w);
474
- return this;
475
- };
476
-
477
- DisplayObject.prototype.getRotation = function () {
478
- return this.sceneGraphService.getRotation(this);
479
- };
480
-
481
- DisplayObject.prototype.getLocalRotation = function () {
482
- return this.sceneGraphService.getLocalRotation(this);
483
- };
484
-
485
- DisplayObject.prototype.getLocalTransform = function () {
486
- return this.sceneGraphService.getLocalTransform(this);
487
- };
488
-
489
- DisplayObject.prototype.getWorldTransform = function () {
490
- return this.sceneGraphService.getWorldTransform(this);
491
- };
492
-
493
- DisplayObject.prototype.setLocalTransform = function (transform) {
494
- this.sceneGraphService.setLocalTransform(this, transform);
495
- return this;
496
- };
497
-
498
- DisplayObject.prototype.resetLocalTransform = function () {
499
- this.sceneGraphService.resetLocalTransform(this);
500
- }; // #endregion transformable
501
- // #region animatable
502
-
503
- /**
504
- * returns an array of all Animation objects affecting this element
505
- * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/getAnimations
506
- */
507
-
508
-
509
- DisplayObject.prototype.getAnimations = function () {
510
- return this.activeAnimations;
511
- };
512
- /**
513
- * create an animation with WAAPI
514
- * @see https://developer.mozilla.org/zh-CN/docs/Web/API/Element/animate
515
- */
516
-
517
-
518
- DisplayObject.prototype.animate = function (keyframes, options) {
519
- var _a, _b;
520
-
521
- var timeline = (_a = this.ownerDocument) === null || _a === void 0 ? void 0 : _a.timeline; // accounte for clip path, use target's timeline
522
-
523
- if (this.attributes.clipPathTargets && this.attributes.clipPathTargets.length) {
524
- var target = this.attributes.clipPathTargets[0];
525
- timeline = (_b = target.ownerDocument) === null || _b === void 0 ? void 0 : _b.timeline;
526
- } // clear old parsed transform
527
-
528
-
529
- delete this.parsedStyle.transform;
530
-
531
- if (timeline) {
532
- return timeline.play(new KeyframeEffect(this, keyframes, options));
533
- }
534
-
535
- return null;
536
- }; // #endregion animatable
537
- // #region visible
538
-
539
- /**
540
- * show group, which will also change visibility of its children in sceneGraphNode
541
- *
542
- * @deprecated
543
- * @see https://developer.mozilla.org/en-US/docs/Web/CSS/visibility
544
- */
545
-
546
-
547
- DisplayObject.prototype.show = function () {
548
- this.style.visibility = 'visible';
549
- };
550
- /**
551
- * @deprecated
552
- * hide group, which will also change visibility of its children in sceneGraphNode
553
- */
554
-
555
-
556
- DisplayObject.prototype.hide = function () {
557
- this.style.visibility = 'hidden';
558
- };
559
- /**
560
- * shortcut for Used value of `visibility`
561
- */
562
-
563
-
564
- DisplayObject.prototype.isVisible = function () {
565
- var _a, _b;
566
-
567
- return ((_b = (_a = this.parsedStyle) === null || _a === void 0 ? void 0 : _a.visibility) === null || _b === void 0 ? void 0 : _b.value) === 'visible';
568
- };
569
-
570
- Object.defineProperty(DisplayObject.prototype, "interactive", {
571
- get: function get() {
572
- return this.isInteractive();
573
- },
574
- set: function set(b) {
575
- this.style.pointerEvents = b ? 'auto' : 'none';
576
- },
577
- enumerable: false,
578
- configurable: true
579
- });
580
-
581
- DisplayObject.prototype.isInteractive = function () {
582
- var _a, _b;
583
-
584
- return ((_b = (_a = this.parsedStyle) === null || _a === void 0 ? void 0 : _a.pointerEvents) === null || _b === void 0 ? void 0 : _b.value) !== 'none';
585
- };
586
-
587
- DisplayObject.prototype.isCulled = function () {
588
- return !!(this.cullable && this.cullable.isCulled());
589
- };
590
- /**
591
- * bring to front in current group
592
- */
593
-
594
-
595
- DisplayObject.prototype.toFront = function () {
596
- if (this.parentNode) {
597
- this.style.zIndex = Math.max.apply(Math, __spreadArray([], __read(this.parentNode.children.map(function (child) {
598
- return Number(child.style.zIndex);
599
- })), false)) + 1;
600
- }
601
-
602
- return this;
603
- };
604
- /**
605
- * send to back in current group
606
- */
607
-
608
-
609
- DisplayObject.prototype.toBack = function () {
610
- if (this.parentNode) {
611
- this.style.zIndex = Math.min.apply(Math, __spreadArray([], __read(this.parentNode.children.map(function (child) {
612
- return Number(child.style.zIndex);
613
- })), false)) - 1;
614
- }
615
-
616
- return this;
617
- }; // #endregion visible
618
- // #region deprecated
619
-
620
- /**
621
- * @deprecated
622
- * compatible with G 3.0
623
- * @deprecated
624
- */
625
-
626
-
627
- DisplayObject.prototype.getCount = function () {
628
- return this.childElementCount;
629
- };
630
- /**
631
- * @deprecated
632
- * compatible with G 3.0
633
- * @deprecated
634
- */
635
-
636
-
637
- DisplayObject.prototype.getParent = function () {
638
- return this.parentElement;
639
- };
640
- /**
641
- * @deprecated
642
- * compatible with G 3.0
643
- * @deprecated
644
- */
645
-
646
-
647
- DisplayObject.prototype.getChildren = function () {
648
- return this.children;
649
- };
650
- /**
651
- * @deprecated
652
- * compatible with G 3.0
653
- * @deprecated
654
- */
655
-
656
-
657
- DisplayObject.prototype.getFirst = function () {
658
- return this.firstElementChild;
659
- };
660
- /**
661
- * @deprecated
662
- * compatible with G 3.0
663
- * @deprecated
664
- * get last child group/shape
665
- */
666
-
667
-
668
- DisplayObject.prototype.getLast = function () {
669
- return this.lastElementChild;
670
- };
671
- /**
672
- * @deprecated
673
- * compatible with G 3.0
674
- * @deprecated
675
- * get child group/shape by index
676
- */
677
-
678
-
679
- DisplayObject.prototype.getChildByIndex = function (index) {
680
- return this.children[index] || null;
681
- };
682
- /**
683
- * compatible with G 3.0
684
- * @deprecated
685
- */
686
-
687
-
688
- DisplayObject.prototype.add = function (child, index) {
689
- return this.appendChild(child, index);
690
- };
691
- /**
692
- * @alias style.clipPath
693
- * @deprecated
694
- */
695
-
696
-
697
- DisplayObject.prototype.setClip = function (clipPath) {
698
- this.style.clipPath = clipPath;
699
- };
700
- /**
701
- * @alias style.clipPath
702
- * @deprecated
703
- */
704
-
705
-
706
- DisplayObject.prototype.getClip = function () {
707
- return this.style.clipPath || null;
708
- };
709
- /**
710
- * compatible with G 3.0
711
- * @deprecated
712
- */
713
-
714
-
715
- DisplayObject.prototype.set = function (name, value) {
716
- this.config[name] = value;
717
- };
718
- /**
719
- * compatible with G 3.0
720
- * @deprecated
721
- */
722
-
723
-
724
- DisplayObject.prototype.get = function (name) {
725
- return this.config[name];
726
- };
727
- /**
728
- * compatible with G 3.0
729
- * @alias object.config
730
- * @deprecated
731
- */
732
-
733
-
734
- DisplayObject.prototype.getConfig = function () {
735
- return this.config;
736
- };
737
-
738
- DisplayObject.prototype.attr = function () {
739
- var _this = this;
740
-
741
- var args = [];
742
-
743
- for (var _i = 0; _i < arguments.length; _i++) {
744
- args[_i] = arguments[_i];
745
- }
746
-
747
- var _a = __read(args, 2),
748
- name = _a[0],
749
- value = _a[1];
750
-
751
- if (!name) {
752
- return this.attributes;
753
- }
754
-
755
- if (isObject(name)) {
756
- Object.keys(name).forEach(function (key) {
757
- _this.setAttribute(key, name[key]);
758
- });
759
- return this;
760
- }
761
-
762
- if (args.length === 2) {
763
- this.setAttribute(name, value);
764
- return this;
765
- }
766
-
767
- return this.attributes[name];
768
- };
769
- /**
770
- * @alias setPosition
771
- * @deprecated
772
- */
773
-
774
-
775
- DisplayObject.prototype.moveTo = function (position, y, z) {
776
- if (y === void 0) {
777
- y = 0;
778
- }
779
-
780
- if (z === void 0) {
781
- z = 0;
782
- }
783
-
784
- this.setPosition(position, y, z);
785
- return this;
786
- };
787
- /**
788
- * @alias setPosition
789
- * @deprecated
790
- */
791
-
792
-
793
- DisplayObject.prototype.move = function (position, y, z) {
794
- if (y === void 0) {
795
- y = 0;
796
- }
797
-
798
- if (z === void 0) {
799
- z = 0;
800
- }
801
-
802
- this.setPosition(position, y, z);
803
- return this;
804
- };
805
- /**
806
- * @alias style.zIndex
807
- * @deprecated
808
- */
809
-
810
-
811
- DisplayObject.prototype.setZIndex = function (zIndex) {
812
- this.style.zIndex = zIndex;
813
- return this;
814
- };
815
- /**
816
- * return 3x3 matrix in world space
817
- * @deprecated
818
- */
819
-
820
-
821
- DisplayObject.prototype.getMatrix = function (transformMat4) {
822
- var transform = transformMat4 || this.getWorldTransform();
823
-
824
- var _a = __read(mat4.getTranslation(vec3.create(), transform), 2),
825
- tx = _a[0],
826
- ty = _a[1];
827
-
828
- var _b = __read(mat4.getScaling(vec3.create(), transform), 2),
829
- sx = _b[0],
830
- sy = _b[1];
831
-
832
- var rotation = mat4.getRotation(quat.create(), transform); // eslint-disable-next-line @typescript-eslint/no-unused-vars
833
-
834
- var _c = __read(getEuler(vec3.create(), rotation), 3),
835
- eux = _c[0],
836
- euy = _c[1],
837
- euz = _c[2]; // gimbal lock at 90 degrees
838
-
839
-
840
- return fromRotationTranslationScale(eux || euz, tx, ty, sx, sy);
841
- };
842
- /**
843
- * return 3x3 matrix in local space
844
- * @deprecated
845
- */
846
-
847
-
848
- DisplayObject.prototype.getLocalMatrix = function () {
849
- return this.getMatrix(this.getLocalTransform());
850
- };
851
- /**
852
- * set 3x3 matrix in world space
853
- * @deprecated
854
- */
855
-
856
-
857
- DisplayObject.prototype.setMatrix = function (mat) {
858
- var _a = __read(decompose(mat), 5),
859
- tx = _a[0],
860
- ty = _a[1],
861
- scalingX = _a[2],
862
- scalingY = _a[3],
863
- angle = _a[4];
864
-
865
- this.setEulerAngles(angle).setPosition(tx, ty).setLocalScale(scalingX, scalingY);
866
- };
867
- /**
868
- * set 3x3 matrix in local space
869
- * @deprecated
870
- */
871
-
872
-
873
- DisplayObject.prototype.setLocalMatrix = function (mat) {
874
- var _a = __read(decompose(mat), 5),
875
- tx = _a[0],
876
- ty = _a[1],
877
- scalingX = _a[2],
878
- scalingY = _a[3],
879
- angle = _a[4];
880
-
881
- this.setLocalEulerAngles(angle).setLocalPosition(tx, ty).setLocalScale(scalingX, scalingY);
882
- };
883
-
884
- return DisplayObject;
885
- }(Element);
886
-
887
- export { DisplayObject };