@antv/g 5.1.2 → 5.1.3

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 (957) 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 +20766 -0
  216. package/dist/index.js +20942 -0
  217. package/dist/index.umd.js +29076 -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 +13 -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/tapable/AsyncParallelHook.d.ts +6 -0
  310. package/dist/utils/tapable/AsyncParallelHook.d.ts.map +1 -0
  311. package/dist/utils/tapable/AsyncSeriesWaterfallHook.d.ts +6 -0
  312. package/dist/utils/tapable/AsyncSeriesWaterfallHook.d.ts.map +1 -0
  313. package/dist/utils/tapable/Hook.d.ts +52 -0
  314. package/dist/utils/tapable/Hook.d.ts.map +1 -0
  315. package/dist/utils/tapable/HookCodeFactory.d.ts +47 -0
  316. package/dist/utils/tapable/HookCodeFactory.d.ts.map +1 -0
  317. package/dist/utils/tapable/SyncHook.d.ts +6 -0
  318. package/dist/utils/tapable/SyncHook.d.ts.map +1 -0
  319. package/dist/utils/tapable/SyncWaterfallHook.d.ts +6 -0
  320. package/dist/utils/tapable/SyncWaterfallHook.d.ts.map +1 -0
  321. package/dist/utils/tapable/index.d.ts +5 -0
  322. package/dist/utils/tapable/index.d.ts.map +1 -0
  323. package/dist/utils/text.d.ts +3 -0
  324. package/dist/utils/text.d.ts.map +1 -0
  325. package/package.json +28 -35
  326. package/es/AbstractRenderer.d.ts +0 -37
  327. package/es/AbstractRenderer.js +0 -62
  328. package/es/Canvas.d.ts +0 -149
  329. package/es/Canvas.js +0 -518
  330. package/es/DisplayObjectPool.d.ts +0 -7
  331. package/es/DisplayObjectPool.js +0 -27
  332. package/es/camera/Camera.d.ts +0 -327
  333. package/es/camera/Camera.js +0 -1154
  334. package/es/camera/Landmark.d.ts +0 -23
  335. package/es/camera/Landmark.js +0 -1
  336. package/es/camera/index.d.ts +0 -2
  337. package/es/camera/index.js +0 -2
  338. package/es/canvas-module.d.ts +0 -1
  339. package/es/canvas-module.js +0 -25
  340. package/es/components/Cullable.d.ts +0 -14
  341. package/es/components/Cullable.js +0 -28
  342. package/es/components/Geometry.d.ts +0 -12
  343. package/es/components/Geometry.js +0 -10
  344. package/es/components/Renderable.d.ts +0 -24
  345. package/es/components/Renderable.js +0 -18
  346. package/es/components/Sortable.d.ts +0 -20
  347. package/es/components/Sortable.js +0 -20
  348. package/es/components/Transform.d.ts +0 -28
  349. package/es/components/Transform.js +0 -64
  350. package/es/components/index.d.ts +0 -5
  351. package/es/components/index.js +0 -5
  352. package/es/css/CSS.d.ts +0 -87
  353. package/es/css/CSS.js +0 -121
  354. package/es/css/CSSProperty.d.ts +0 -41
  355. package/es/css/CSSProperty.js +0 -1
  356. package/es/css/StyleValueRegistry.d.ts +0 -92
  357. package/es/css/StyleValueRegistry.js +0 -882
  358. package/es/css/cssom/CSSColorValue.d.ts +0 -23
  359. package/es/css/cssom/CSSColorValue.js +0 -43
  360. package/es/css/cssom/CSSGradientValue.d.ts +0 -39
  361. package/es/css/cssom/CSSGradientValue.js +0 -54
  362. package/es/css/cssom/CSSImageValue.d.ts +0 -1
  363. package/es/css/cssom/CSSImageValue.js +0 -0
  364. package/es/css/cssom/CSSKeywordValue.d.ts +0 -15
  365. package/es/css/cssom/CSSKeywordValue.js +0 -37
  366. package/es/css/cssom/CSSMathOperator.d.ts +0 -11
  367. package/es/css/cssom/CSSMathOperator.js +0 -32
  368. package/es/css/cssom/CSSNumericSumValue.d.ts +0 -7
  369. package/es/css/cssom/CSSNumericSumValue.js +0 -1
  370. package/es/css/cssom/CSSNumericValue.d.ts +0 -212
  371. package/es/css/cssom/CSSNumericValue.js +0 -1661
  372. package/es/css/cssom/CSSRGB.d.ts +0 -25
  373. package/es/css/cssom/CSSRGB.js +0 -48
  374. package/es/css/cssom/CSSStyleValue.d.ts +0 -53
  375. package/es/css/cssom/CSSStyleValue.js +0 -625
  376. package/es/css/cssom/CSSTransformComponent.d.ts +0 -22
  377. package/es/css/cssom/CSSTransformComponent.js +0 -32
  378. package/es/css/cssom/CSSTransformValue.d.ts +0 -30
  379. package/es/css/cssom/CSSTransformValue.js +0 -48
  380. package/es/css/cssom/CSSTranslate.d.ts +0 -15
  381. package/es/css/cssom/CSSTranslate.js +0 -44
  382. package/es/css/cssom/index.d.ts +0 -19
  383. package/es/css/cssom/index.js +0 -19
  384. package/es/css/cssom/types.d.ts +0 -86
  385. package/es/css/cssom/types.js +0 -119
  386. package/es/css/index.d.ts +0 -11
  387. package/es/css/index.js +0 -11
  388. package/es/css/interfaces.d.ts +0 -116
  389. package/es/css/interfaces.js +0 -77
  390. package/es/css/layout/FragmentResult.d.ts +0 -32
  391. package/es/css/layout/FragmentResult.js +0 -32
  392. package/es/css/layout/LayoutChildren.d.ts +0 -23
  393. package/es/css/layout/LayoutChildren.js +0 -55
  394. package/es/css/layout/LayoutContext.d.ts +0 -35
  395. package/es/css/layout/LayoutContext.js +0 -35
  396. package/es/css/layout/LayoutDefinition.d.ts +0 -20
  397. package/es/css/layout/LayoutDefinition.js +0 -9
  398. package/es/css/layout/LayoutEdges.d.ts +0 -24
  399. package/es/css/layout/LayoutEdges.js +0 -41
  400. package/es/css/layout/LayoutEngine.d.ts +0 -41
  401. package/es/css/layout/LayoutEngine.js +0 -332
  402. package/es/css/layout/LayoutFragment.d.ts +0 -26
  403. package/es/css/layout/LayoutFragment.js +0 -28
  404. package/es/css/layout/LayoutObject.d.ts +0 -46
  405. package/es/css/layout/LayoutObject.js +0 -172
  406. package/es/css/layout/LayoutRegistry.d.ts +0 -16
  407. package/es/css/layout/LayoutRegistry.js +0 -78
  408. package/es/css/layout/LayoutWorkTask.d.ts +0 -14
  409. package/es/css/layout/LayoutWorkTask.js +0 -1
  410. package/es/css/layout/index.d.ts +0 -11
  411. package/es/css/layout/index.js +0 -11
  412. package/es/css/layout/types.d.ts +0 -104
  413. package/es/css/layout/types.js +0 -66
  414. package/es/css/parser/color.d.ts +0 -6
  415. package/es/css/parser/color.js +0 -241
  416. package/es/css/parser/dimension.d.ts +0 -37
  417. package/es/css/parser/dimension.js +0 -149
  418. package/es/css/parser/filter.d.ts +0 -7
  419. package/es/css/parser/filter.js +0 -43
  420. package/es/css/parser/index.d.ts +0 -15
  421. package/es/css/parser/index.js +0 -15
  422. package/es/css/parser/numeric.d.ts +0 -19
  423. package/es/css/parser/numeric.js +0 -62
  424. package/es/css/parser/path.d.ts +0 -5
  425. package/es/css/parser/path.js +0 -207
  426. package/es/css/parser/points.d.ts +0 -12
  427. package/es/css/parser/points.js +0 -58
  428. package/es/css/parser/transform-origin.d.ts +0 -6
  429. package/es/css/parser/transform-origin.js +0 -45
  430. package/es/css/parser/transform.d.ts +0 -13
  431. package/es/css/parser/transform.js +0 -289
  432. package/es/css/parser/types.d.ts +0 -2
  433. package/es/css/parser/types.js +0 -1
  434. package/es/css/properties/CSSPropertyClipPath.d.ts +0 -22
  435. package/es/css/properties/CSSPropertyClipPath.js +0 -56
  436. package/es/css/properties/CSSPropertyColor.d.ts +0 -14
  437. package/es/css/properties/CSSPropertyColor.js +0 -30
  438. package/es/css/properties/CSSPropertyFilter.d.ts +0 -6
  439. package/es/css/properties/CSSPropertyFilter.js +0 -16
  440. package/es/css/properties/CSSPropertyLengthOrPercentage.d.ts +0 -20
  441. package/es/css/properties/CSSPropertyLengthOrPercentage.js +0 -95
  442. package/es/css/properties/CSSPropertyLengthOrPercentage12.d.ts +0 -15
  443. package/es/css/properties/CSSPropertyLengthOrPercentage12.js +0 -38
  444. package/es/css/properties/CSSPropertyLengthOrPercentage14.d.ts +0 -25
  445. package/es/css/properties/CSSPropertyLengthOrPercentage14.js +0 -42
  446. package/es/css/properties/CSSPropertyLocalPosition.d.ts +0 -13
  447. package/es/css/properties/CSSPropertyLocalPosition.js +0 -85
  448. package/es/css/properties/CSSPropertyOffsetDistance.d.ts +0 -9
  449. package/es/css/properties/CSSPropertyOffsetDistance.js +0 -34
  450. package/es/css/properties/CSSPropertyOffsetPath.d.ts +0 -5
  451. package/es/css/properties/CSSPropertyOffsetPath.js +0 -31
  452. package/es/css/properties/CSSPropertyOpacity.d.ts +0 -10
  453. package/es/css/properties/CSSPropertyOpacity.js +0 -20
  454. package/es/css/properties/CSSPropertyPath.d.ts +0 -27
  455. package/es/css/properties/CSSPropertyPath.js +0 -58
  456. package/es/css/properties/CSSPropertyPoints.d.ts +0 -18
  457. package/es/css/properties/CSSPropertyPoints.js +0 -30
  458. package/es/css/properties/CSSPropertyShadowBlur.d.ts +0 -4
  459. package/es/css/properties/CSSPropertyShadowBlur.js +0 -22
  460. package/es/css/properties/CSSPropertyText.d.ts +0 -7
  461. package/es/css/properties/CSSPropertyText.js +0 -30
  462. package/es/css/properties/CSSPropertyTextTransform.d.ts +0 -5
  463. package/es/css/properties/CSSPropertyTextTransform.js +0 -29
  464. package/es/css/properties/CSSPropertyTransform.d.ts +0 -38
  465. package/es/css/properties/CSSPropertyTransform.js +0 -128
  466. package/es/css/properties/CSSPropertyTransformOrigin.d.ts +0 -11
  467. package/es/css/properties/CSSPropertyTransformOrigin.js +0 -21
  468. package/es/css/properties/CSSPropertyVisibility.d.ts +0 -13
  469. package/es/css/properties/CSSPropertyVisibility.js +0 -24
  470. package/es/css/properties/CSSPropertyZIndex.d.ts +0 -8
  471. package/es/css/properties/CSSPropertyZIndex.js +0 -33
  472. package/es/css/properties/index.d.ts +0 -18
  473. package/es/css/properties/index.js +0 -18
  474. package/es/display-objects/Circle.d.ts +0 -17
  475. package/es/display-objects/Circle.js +0 -34
  476. package/es/display-objects/CustomElement.d.ts +0 -26
  477. package/es/display-objects/CustomElement.js +0 -102
  478. package/es/display-objects/DisplayObject.d.ts +0 -274
  479. package/es/display-objects/DisplayObject.js +0 -887
  480. package/es/display-objects/Ellipse.d.ts +0 -19
  481. package/es/display-objects/Ellipse.js +0 -35
  482. package/es/display-objects/Group.d.ts +0 -29
  483. package/es/display-objects/Group.js +0 -42
  484. package/es/display-objects/HTML.d.ts +0 -41
  485. package/es/display-objects/HTML.js +0 -100
  486. package/es/display-objects/Image.d.ts +0 -23
  487. package/es/display-objects/Image.js +0 -34
  488. package/es/display-objects/Line.d.ts +0 -30
  489. package/es/display-objects/Line.js +0 -63
  490. package/es/display-objects/Path.d.ts +0 -48
  491. package/es/display-objects/Path.js +0 -131
  492. package/es/display-objects/Polygon.d.ts +0 -16
  493. package/es/display-objects/Polygon.js +0 -31
  494. package/es/display-objects/Polyline.d.ts +0 -21
  495. package/es/display-objects/Polyline.js +0 -74
  496. package/es/display-objects/Rect.d.ts +0 -24
  497. package/es/display-objects/Rect.js +0 -34
  498. package/es/display-objects/Text.d.ts +0 -91
  499. package/es/display-objects/Text.js +0 -118
  500. package/es/display-objects/index.d.ts +0 -13
  501. package/es/display-objects/index.js +0 -13
  502. package/es/dom/Animation.d.ts +0 -132
  503. package/es/dom/Animation.js +0 -503
  504. package/es/dom/AnimationEffectTiming.d.ts +0 -58
  505. package/es/dom/AnimationEffectTiming.js +0 -68
  506. package/es/dom/AnimationEvent.d.ts +0 -11
  507. package/es/dom/AnimationEvent.js +0 -34
  508. package/es/dom/AnimationTimeline.d.ts +0 -40
  509. package/es/dom/AnimationTimeline.js +0 -217
  510. package/es/dom/CustomElementRegistry.d.ts +0 -15
  511. package/es/dom/CustomElementRegistry.js +0 -42
  512. package/es/dom/CustomEvent.d.ts +0 -16
  513. package/es/dom/CustomEvent.js +0 -35
  514. package/es/dom/Document.d.ts +0 -72
  515. package/es/dom/Document.js +0 -316
  516. package/es/dom/Element.d.ts +0 -187
  517. package/es/dom/Element.js +0 -604
  518. package/es/dom/EventTarget.d.ts +0 -40
  519. package/es/dom/EventTarget.js +0 -157
  520. package/es/dom/FederatedEvent.d.ts +0 -145
  521. package/es/dom/FederatedEvent.js +0 -222
  522. package/es/dom/FederatedMouseEvent.d.ts +0 -52
  523. package/es/dom/FederatedMouseEvent.js +0 -124
  524. package/es/dom/FederatedPointerEvent.d.ts +0 -75
  525. package/es/dom/FederatedPointerEvent.js +0 -61
  526. package/es/dom/FederatedTouchEvent.d.ts +0 -15
  527. package/es/dom/FederatedTouchEvent.js +0 -19
  528. package/es/dom/FederatedWheelEvent.d.ts +0 -20
  529. package/es/dom/FederatedWheelEvent.js +0 -27
  530. package/es/dom/KeyframeEffect.d.ts +0 -47
  531. package/es/dom/KeyframeEffect.js +0 -174
  532. package/es/dom/KeyframeList.d.ts +0 -2
  533. package/es/dom/KeyframeList.js +0 -176
  534. package/es/dom/MutationEvent.d.ts +0 -15
  535. package/es/dom/MutationEvent.js +0 -29
  536. package/es/dom/MutationObserver.d.ts +0 -36
  537. package/es/dom/MutationObserver.js +0 -416
  538. package/es/dom/MutationRecord.d.ts +0 -14
  539. package/es/dom/MutationRecord.js +0 -31
  540. package/es/dom/Node.d.ts +0 -138
  541. package/es/dom/Node.js +0 -387
  542. package/es/dom/index.d.ts +0 -20
  543. package/es/dom/index.js +0 -20
  544. package/es/dom/interfaces.d.ts +0 -372
  545. package/es/dom/interfaces.js +0 -56
  546. package/es/global-module.d.ts +0 -1
  547. package/es/global-module.js +0 -155
  548. package/es/index.d.ts +0 -18
  549. package/es/index.js +0 -21
  550. package/es/plugins/CullingPlugin.d.ts +0 -17
  551. package/es/plugins/CullingPlugin.js +0 -58
  552. package/es/plugins/DirtyCheckPlugin.d.ts +0 -10
  553. package/es/plugins/DirtyCheckPlugin.js +0 -55
  554. package/es/plugins/EventPlugin.d.ts +0 -30
  555. package/es/plugins/EventPlugin.js +0 -374
  556. package/es/plugins/FrustumCullingStrategy.d.ts +0 -21
  557. package/es/plugins/FrustumCullingStrategy.js +0 -108
  558. package/es/plugins/PrepareRendererPlugin.d.ts +0 -7
  559. package/es/plugins/PrepareRendererPlugin.js +0 -79
  560. package/es/services/ContextService.d.ts +0 -13
  561. package/es/services/ContextService.js +0 -5
  562. package/es/services/EventService.d.ts +0 -73
  563. package/es/services/EventService.js +0 -1238
  564. package/es/services/OffscreenCanvasCreator.d.ts +0 -13
  565. package/es/services/OffscreenCanvasCreator.js +0 -58
  566. package/es/services/RenderingContext.d.ts +0 -26
  567. package/es/services/RenderingContext.js +0 -14
  568. package/es/services/RenderingService.d.ts +0 -102
  569. package/es/services/RenderingService.js +0 -231
  570. package/es/services/SceneGraphSelector.d.ts +0 -23
  571. package/es/services/SceneGraphSelector.js +0 -100
  572. package/es/services/SceneGraphService.d.ts +0 -153
  573. package/es/services/SceneGraphService.js +0 -819
  574. package/es/services/TextService.d.ts +0 -36
  575. package/es/services/TextService.js +0 -350
  576. package/es/services/aabb/CircleUpdater.d.ts +0 -8
  577. package/es/services/aabb/CircleUpdater.js +0 -30
  578. package/es/services/aabb/EllipseUpdater.d.ts +0 -8
  579. package/es/services/aabb/EllipseUpdater.js +0 -31
  580. package/es/services/aabb/LineUpdater.d.ts +0 -8
  581. package/es/services/aabb/LineUpdater.js +0 -37
  582. package/es/services/aabb/PathUpdater.d.ts +0 -8
  583. package/es/services/aabb/PathUpdater.js +0 -168
  584. package/es/services/aabb/PolylineUpdater.d.ts +0 -8
  585. package/es/services/aabb/PolylineUpdater.js +0 -46
  586. package/es/services/aabb/RectUpdater.d.ts +0 -8
  587. package/es/services/aabb/RectUpdater.js +0 -72
  588. package/es/services/aabb/TextUpdater.d.ts +0 -21
  589. package/es/services/aabb/TextUpdater.js +0 -136
  590. package/es/services/aabb/index.d.ts +0 -8
  591. package/es/services/aabb/index.js +0 -8
  592. package/es/services/aabb/interfaces.d.ts +0 -15
  593. package/es/services/aabb/interfaces.js +0 -3
  594. package/es/services/index.d.ts +0 -10
  595. package/es/services/index.js +0 -10
  596. package/es/shapes/AABB.d.ts +0 -35
  597. package/es/shapes/AABB.js +0 -230
  598. package/es/shapes/BoundingSphere.d.ts +0 -8
  599. package/es/shapes/BoundingSphere.js +0 -31
  600. package/es/shapes/Frustum.d.ts +0 -16
  601. package/es/shapes/Frustum.js +0 -79
  602. package/es/shapes/Plane.d.ts +0 -14
  603. package/es/shapes/Plane.js +0 -42
  604. package/es/shapes/Point.d.ts +0 -11
  605. package/es/shapes/Point.js +0 -31
  606. package/es/shapes/Ray.d.ts +0 -24
  607. package/es/shapes/Ray.js +0 -138
  608. package/es/shapes/Rectangle.d.ts +0 -12
  609. package/es/shapes/Rectangle.js +0 -20
  610. package/es/shapes/index.d.ts +0 -7
  611. package/es/shapes/index.js +0 -7
  612. package/es/types.d.ts +0 -289
  613. package/es/types.js +0 -54
  614. package/es/utils/animation.d.ts +0 -15
  615. package/es/utils/animation.js +0 -251
  616. package/es/utils/assert.d.ts +0 -9
  617. package/es/utils/assert.js +0 -33
  618. package/es/utils/bezier-easing.d.ts +0 -20
  619. package/es/utils/bezier-easing.js +0 -90
  620. package/es/utils/canvas.d.ts +0 -6
  621. package/es/utils/canvas.js +0 -18
  622. package/es/utils/custom-easing.d.ts +0 -64
  623. package/es/utils/custom-easing.js +0 -317
  624. package/es/utils/deferred.d.ts +0 -43
  625. package/es/utils/deferred.js +0 -117
  626. package/es/utils/dom.d.ts +0 -2
  627. package/es/utils/dom.js +0 -8
  628. package/es/utils/event.d.ts +0 -45
  629. package/es/utils/event.js +0 -9
  630. package/es/utils/index.d.ts +0 -10
  631. package/es/utils/index.js +0 -10
  632. package/es/utils/interpolation.d.ts +0 -4
  633. package/es/utils/interpolation.js +0 -212
  634. package/es/utils/math.d.ts +0 -29
  635. package/es/utils/math.js +0 -236
  636. package/es/utils/path.d.ts +0 -15
  637. package/es/utils/path.js +0 -387
  638. package/es/utils/string.d.ts +0 -2
  639. package/es/utils/string.js +0 -17
  640. package/es/utils/text.d.ts +0 -2
  641. package/es/utils/text.js +0 -29
  642. package/lib/AbstractRenderer.d.ts +0 -37
  643. package/lib/AbstractRenderer.js +0 -69
  644. package/lib/Canvas.d.ts +0 -149
  645. package/lib/Canvas.js +0 -540
  646. package/lib/DisplayObjectPool.d.ts +0 -7
  647. package/lib/DisplayObjectPool.js +0 -35
  648. package/lib/camera/Camera.d.ts +0 -327
  649. package/lib/camera/Camera.js +0 -1232
  650. package/lib/camera/Landmark.d.ts +0 -23
  651. package/lib/camera/Landmark.js +0 -5
  652. package/lib/camera/index.d.ts +0 -2
  653. package/lib/camera/index.js +0 -31
  654. package/lib/canvas-module.d.ts +0 -1
  655. package/lib/canvas-module.js +0 -41
  656. package/lib/components/Cullable.d.ts +0 -14
  657. package/lib/components/Cullable.js +0 -36
  658. package/lib/components/Geometry.d.ts +0 -12
  659. package/lib/components/Geometry.js +0 -17
  660. package/lib/components/Renderable.d.ts +0 -24
  661. package/lib/components/Renderable.js +0 -25
  662. package/lib/components/Sortable.d.ts +0 -20
  663. package/lib/components/Sortable.js +0 -27
  664. package/lib/components/Transform.d.ts +0 -28
  665. package/lib/components/Transform.js +0 -71
  666. package/lib/components/index.d.ts +0 -5
  667. package/lib/components/index.js +0 -70
  668. package/lib/css/CSS.d.ts +0 -87
  669. package/lib/css/CSS.js +0 -135
  670. package/lib/css/CSSProperty.d.ts +0 -41
  671. package/lib/css/CSSProperty.js +0 -5
  672. package/lib/css/StyleValueRegistry.d.ts +0 -92
  673. package/lib/css/StyleValueRegistry.js +0 -909
  674. package/lib/css/cssom/CSSColorValue.d.ts +0 -23
  675. package/lib/css/cssom/CSSColorValue.js +0 -51
  676. package/lib/css/cssom/CSSGradientValue.d.ts +0 -39
  677. package/lib/css/cssom/CSSGradientValue.js +0 -64
  678. package/lib/css/cssom/CSSImageValue.d.ts +0 -1
  679. package/lib/css/cssom/CSSImageValue.js +0 -1
  680. package/lib/css/cssom/CSSKeywordValue.d.ts +0 -15
  681. package/lib/css/cssom/CSSKeywordValue.js +0 -45
  682. package/lib/css/cssom/CSSMathOperator.d.ts +0 -11
  683. package/lib/css/cssom/CSSMathOperator.js +0 -40
  684. package/lib/css/cssom/CSSNumericSumValue.d.ts +0 -7
  685. package/lib/css/cssom/CSSNumericSumValue.js +0 -5
  686. package/lib/css/cssom/CSSNumericValue.d.ts +0 -212
  687. package/lib/css/cssom/CSSNumericValue.js +0 -1685
  688. package/lib/css/cssom/CSSRGB.d.ts +0 -25
  689. package/lib/css/cssom/CSSRGB.js +0 -56
  690. package/lib/css/cssom/CSSStyleValue.d.ts +0 -53
  691. package/lib/css/cssom/CSSStyleValue.js +0 -634
  692. package/lib/css/cssom/CSSTransformComponent.d.ts +0 -22
  693. package/lib/css/cssom/CSSTransformComponent.js +0 -39
  694. package/lib/css/cssom/CSSTransformValue.d.ts +0 -30
  695. package/lib/css/cssom/CSSTransformValue.js +0 -56
  696. package/lib/css/cssom/CSSTranslate.d.ts +0 -15
  697. package/lib/css/cssom/CSSTranslate.js +0 -53
  698. package/lib/css/cssom/index.d.ts +0 -19
  699. package/lib/css/cssom/index.js +0 -148
  700. package/lib/css/cssom/types.d.ts +0 -86
  701. package/lib/css/cssom/types.js +0 -130
  702. package/lib/css/index.d.ts +0 -11
  703. package/lib/css/index.js +0 -109
  704. package/lib/css/interfaces.d.ts +0 -116
  705. package/lib/css/interfaces.js +0 -87
  706. package/lib/css/layout/FragmentResult.d.ts +0 -32
  707. package/lib/css/layout/FragmentResult.js +0 -51
  708. package/lib/css/layout/LayoutChildren.d.ts +0 -23
  709. package/lib/css/layout/LayoutChildren.js +0 -72
  710. package/lib/css/layout/LayoutContext.d.ts +0 -35
  711. package/lib/css/layout/LayoutContext.js +0 -49
  712. package/lib/css/layout/LayoutDefinition.d.ts +0 -20
  713. package/lib/css/layout/LayoutDefinition.js +0 -16
  714. package/lib/css/layout/LayoutEdges.d.ts +0 -24
  715. package/lib/css/layout/LayoutEdges.js +0 -56
  716. package/lib/css/layout/LayoutEngine.d.ts +0 -41
  717. package/lib/css/layout/LayoutEngine.js +0 -345
  718. package/lib/css/layout/LayoutFragment.d.ts +0 -26
  719. package/lib/css/layout/LayoutFragment.js +0 -44
  720. package/lib/css/layout/LayoutObject.d.ts +0 -46
  721. package/lib/css/layout/LayoutObject.js +0 -182
  722. package/lib/css/layout/LayoutRegistry.d.ts +0 -16
  723. package/lib/css/layout/LayoutRegistry.js +0 -87
  724. package/lib/css/layout/LayoutWorkTask.d.ts +0 -14
  725. package/lib/css/layout/LayoutWorkTask.js +0 -5
  726. package/lib/css/layout/index.d.ts +0 -11
  727. package/lib/css/layout/index.js +0 -148
  728. package/lib/css/layout/types.d.ts +0 -104
  729. package/lib/css/layout/types.js +0 -74
  730. package/lib/css/parser/color.d.ts +0 -6
  731. package/lib/css/parser/color.js +0 -260
  732. package/lib/css/parser/dimension.d.ts +0 -37
  733. package/lib/css/parser/dimension.js +0 -175
  734. package/lib/css/parser/filter.d.ts +0 -7
  735. package/lib/css/parser/filter.js +0 -56
  736. package/lib/css/parser/index.d.ts +0 -15
  737. package/lib/css/parser/index.js +0 -122
  738. package/lib/css/parser/numeric.d.ts +0 -19
  739. package/lib/css/parser/numeric.js +0 -81
  740. package/lib/css/parser/path.d.ts +0 -5
  741. package/lib/css/parser/path.js +0 -221
  742. package/lib/css/parser/points.d.ts +0 -12
  743. package/lib/css/parser/points.js +0 -69
  744. package/lib/css/parser/transform-origin.d.ts +0 -6
  745. package/lib/css/parser/transform-origin.js +0 -54
  746. package/lib/css/parser/transform.d.ts +0 -13
  747. package/lib/css/parser/transform.js +0 -303
  748. package/lib/css/parser/types.d.ts +0 -2
  749. package/lib/css/parser/types.js +0 -5
  750. package/lib/css/properties/CSSPropertyClipPath.d.ts +0 -22
  751. package/lib/css/properties/CSSPropertyClipPath.js +0 -66
  752. package/lib/css/properties/CSSPropertyColor.d.ts +0 -14
  753. package/lib/css/properties/CSSPropertyColor.js +0 -40
  754. package/lib/css/properties/CSSPropertyFilter.d.ts +0 -6
  755. package/lib/css/properties/CSSPropertyFilter.js +0 -25
  756. package/lib/css/properties/CSSPropertyLengthOrPercentage.d.ts +0 -20
  757. package/lib/css/properties/CSSPropertyLengthOrPercentage.js +0 -105
  758. package/lib/css/properties/CSSPropertyLengthOrPercentage12.d.ts +0 -15
  759. package/lib/css/properties/CSSPropertyLengthOrPercentage12.js +0 -48
  760. package/lib/css/properties/CSSPropertyLengthOrPercentage14.d.ts +0 -25
  761. package/lib/css/properties/CSSPropertyLengthOrPercentage14.js +0 -52
  762. package/lib/css/properties/CSSPropertyLocalPosition.d.ts +0 -13
  763. package/lib/css/properties/CSSPropertyLocalPosition.js +0 -96
  764. package/lib/css/properties/CSSPropertyOffsetDistance.d.ts +0 -9
  765. package/lib/css/properties/CSSPropertyOffsetDistance.js +0 -44
  766. package/lib/css/properties/CSSPropertyOffsetPath.d.ts +0 -5
  767. package/lib/css/properties/CSSPropertyOffsetPath.js +0 -39
  768. package/lib/css/properties/CSSPropertyOpacity.d.ts +0 -10
  769. package/lib/css/properties/CSSPropertyOpacity.js +0 -29
  770. package/lib/css/properties/CSSPropertyPath.d.ts +0 -27
  771. package/lib/css/properties/CSSPropertyPath.js +0 -70
  772. package/lib/css/properties/CSSPropertyPoints.d.ts +0 -18
  773. package/lib/css/properties/CSSPropertyPoints.js +0 -40
  774. package/lib/css/properties/CSSPropertyShadowBlur.d.ts +0 -4
  775. package/lib/css/properties/CSSPropertyShadowBlur.js +0 -32
  776. package/lib/css/properties/CSSPropertyText.d.ts +0 -7
  777. package/lib/css/properties/CSSPropertyText.js +0 -39
  778. package/lib/css/properties/CSSPropertyTextTransform.d.ts +0 -5
  779. package/lib/css/properties/CSSPropertyTextTransform.js +0 -38
  780. package/lib/css/properties/CSSPropertyTransform.d.ts +0 -38
  781. package/lib/css/properties/CSSPropertyTransform.js +0 -138
  782. package/lib/css/properties/CSSPropertyTransformOrigin.d.ts +0 -11
  783. package/lib/css/properties/CSSPropertyTransformOrigin.js +0 -30
  784. package/lib/css/properties/CSSPropertyVisibility.d.ts +0 -13
  785. package/lib/css/properties/CSSPropertyVisibility.js +0 -32
  786. package/lib/css/properties/CSSPropertyZIndex.d.ts +0 -8
  787. package/lib/css/properties/CSSPropertyZIndex.js +0 -42
  788. package/lib/css/properties/index.d.ts +0 -18
  789. package/lib/css/properties/index.js +0 -239
  790. package/lib/display-objects/Circle.d.ts +0 -17
  791. package/lib/display-objects/Circle.js +0 -42
  792. package/lib/display-objects/CustomElement.d.ts +0 -26
  793. package/lib/display-objects/CustomElement.js +0 -109
  794. package/lib/display-objects/DisplayObject.d.ts +0 -274
  795. package/lib/display-objects/DisplayObject.js +0 -910
  796. package/lib/display-objects/Ellipse.d.ts +0 -19
  797. package/lib/display-objects/Ellipse.js +0 -43
  798. package/lib/display-objects/Group.d.ts +0 -29
  799. package/lib/display-objects/Group.js +0 -50
  800. package/lib/display-objects/HTML.d.ts +0 -41
  801. package/lib/display-objects/HTML.js +0 -111
  802. package/lib/display-objects/Image.d.ts +0 -23
  803. package/lib/display-objects/Image.js +0 -42
  804. package/lib/display-objects/Line.d.ts +0 -30
  805. package/lib/display-objects/Line.js +0 -75
  806. package/lib/display-objects/Path.d.ts +0 -48
  807. package/lib/display-objects/Path.js +0 -142
  808. package/lib/display-objects/Polygon.d.ts +0 -16
  809. package/lib/display-objects/Polygon.js +0 -39
  810. package/lib/display-objects/Polyline.d.ts +0 -21
  811. package/lib/display-objects/Polyline.js +0 -84
  812. package/lib/display-objects/Rect.d.ts +0 -24
  813. package/lib/display-objects/Rect.js +0 -42
  814. package/lib/display-objects/Text.d.ts +0 -91
  815. package/lib/display-objects/Text.js +0 -126
  816. package/lib/display-objects/index.d.ts +0 -13
  817. package/lib/display-objects/index.js +0 -174
  818. package/lib/dom/Animation.d.ts +0 -132
  819. package/lib/dom/Animation.js +0 -511
  820. package/lib/dom/AnimationEffectTiming.d.ts +0 -58
  821. package/lib/dom/AnimationEffectTiming.js +0 -75
  822. package/lib/dom/AnimationEvent.d.ts +0 -11
  823. package/lib/dom/AnimationEvent.js +0 -42
  824. package/lib/dom/AnimationTimeline.d.ts +0 -40
  825. package/lib/dom/AnimationTimeline.js +0 -228
  826. package/lib/dom/CustomElementRegistry.d.ts +0 -15
  827. package/lib/dom/CustomElementRegistry.js +0 -50
  828. package/lib/dom/CustomEvent.d.ts +0 -16
  829. package/lib/dom/CustomEvent.js +0 -42
  830. package/lib/dom/Document.d.ts +0 -72
  831. package/lib/dom/Document.js +0 -329
  832. package/lib/dom/Element.d.ts +0 -187
  833. package/lib/dom/Element.js +0 -619
  834. package/lib/dom/EventTarget.d.ts +0 -40
  835. package/lib/dom/EventTarget.js +0 -171
  836. package/lib/dom/FederatedEvent.d.ts +0 -145
  837. package/lib/dom/FederatedEvent.js +0 -229
  838. package/lib/dom/FederatedMouseEvent.d.ts +0 -52
  839. package/lib/dom/FederatedMouseEvent.js +0 -133
  840. package/lib/dom/FederatedPointerEvent.d.ts +0 -75
  841. package/lib/dom/FederatedPointerEvent.js +0 -69
  842. package/lib/dom/FederatedTouchEvent.d.ts +0 -15
  843. package/lib/dom/FederatedTouchEvent.js +0 -27
  844. package/lib/dom/FederatedWheelEvent.d.ts +0 -20
  845. package/lib/dom/FederatedWheelEvent.js +0 -35
  846. package/lib/dom/KeyframeEffect.d.ts +0 -47
  847. package/lib/dom/KeyframeEffect.js +0 -192
  848. package/lib/dom/KeyframeList.d.ts +0 -2
  849. package/lib/dom/KeyframeList.js +0 -183
  850. package/lib/dom/MutationEvent.d.ts +0 -15
  851. package/lib/dom/MutationEvent.js +0 -37
  852. package/lib/dom/MutationObserver.d.ts +0 -36
  853. package/lib/dom/MutationObserver.js +0 -426
  854. package/lib/dom/MutationRecord.d.ts +0 -14
  855. package/lib/dom/MutationRecord.js +0 -38
  856. package/lib/dom/Node.d.ts +0 -138
  857. package/lib/dom/Node.js +0 -397
  858. package/lib/dom/index.d.ts +0 -20
  859. package/lib/dom/index.js +0 -265
  860. package/lib/dom/interfaces.d.ts +0 -372
  861. package/lib/dom/interfaces.js +0 -64
  862. package/lib/global-module.d.ts +0 -1
  863. package/lib/global-module.js +0 -170
  864. package/lib/index.d.ts +0 -18
  865. package/lib/index.js +0 -198
  866. package/lib/plugins/CullingPlugin.d.ts +0 -17
  867. package/lib/plugins/CullingPlugin.js +0 -69
  868. package/lib/plugins/DirtyCheckPlugin.d.ts +0 -10
  869. package/lib/plugins/DirtyCheckPlugin.js +0 -63
  870. package/lib/plugins/EventPlugin.d.ts +0 -30
  871. package/lib/plugins/EventPlugin.js +0 -382
  872. package/lib/plugins/FrustumCullingStrategy.d.ts +0 -21
  873. package/lib/plugins/FrustumCullingStrategy.js +0 -121
  874. package/lib/plugins/PrepareRendererPlugin.d.ts +0 -7
  875. package/lib/plugins/PrepareRendererPlugin.js +0 -87
  876. package/lib/services/ContextService.d.ts +0 -13
  877. package/lib/services/ContextService.js +0 -15
  878. package/lib/services/EventService.d.ts +0 -73
  879. package/lib/services/EventService.js +0 -1263
  880. package/lib/services/OffscreenCanvasCreator.d.ts +0 -13
  881. package/lib/services/OffscreenCanvasCreator.js +0 -66
  882. package/lib/services/RenderingContext.d.ts +0 -26
  883. package/lib/services/RenderingContext.js +0 -24
  884. package/lib/services/RenderingService.d.ts +0 -102
  885. package/lib/services/RenderingService.js +0 -244
  886. package/lib/services/SceneGraphSelector.d.ts +0 -23
  887. package/lib/services/SceneGraphSelector.js +0 -114
  888. package/lib/services/SceneGraphService.d.ts +0 -153
  889. package/lib/services/SceneGraphService.js +0 -875
  890. package/lib/services/TextService.d.ts +0 -36
  891. package/lib/services/TextService.js +0 -359
  892. package/lib/services/aabb/CircleUpdater.d.ts +0 -8
  893. package/lib/services/aabb/CircleUpdater.js +0 -40
  894. package/lib/services/aabb/EllipseUpdater.d.ts +0 -8
  895. package/lib/services/aabb/EllipseUpdater.js +0 -41
  896. package/lib/services/aabb/LineUpdater.d.ts +0 -8
  897. package/lib/services/aabb/LineUpdater.js +0 -47
  898. package/lib/services/aabb/PathUpdater.d.ts +0 -8
  899. package/lib/services/aabb/PathUpdater.js +0 -179
  900. package/lib/services/aabb/PolylineUpdater.d.ts +0 -8
  901. package/lib/services/aabb/PolylineUpdater.js +0 -56
  902. package/lib/services/aabb/RectUpdater.d.ts +0 -8
  903. package/lib/services/aabb/RectUpdater.js +0 -84
  904. package/lib/services/aabb/TextUpdater.d.ts +0 -21
  905. package/lib/services/aabb/TextUpdater.js +0 -149
  906. package/lib/services/aabb/index.d.ts +0 -8
  907. package/lib/services/aabb/index.js +0 -84
  908. package/lib/services/aabb/interfaces.d.ts +0 -15
  909. package/lib/services/aabb/interfaces.js +0 -16
  910. package/lib/services/index.d.ts +0 -10
  911. package/lib/services/index.js +0 -122
  912. package/lib/shapes/AABB.d.ts +0 -35
  913. package/lib/shapes/AABB.js +0 -248
  914. package/lib/shapes/BoundingSphere.d.ts +0 -8
  915. package/lib/shapes/BoundingSphere.js +0 -41
  916. package/lib/shapes/Frustum.d.ts +0 -16
  917. package/lib/shapes/Frustum.js +0 -96
  918. package/lib/shapes/Plane.d.ts +0 -14
  919. package/lib/shapes/Plane.js +0 -51
  920. package/lib/shapes/Point.d.ts +0 -11
  921. package/lib/shapes/Point.js +0 -38
  922. package/lib/shapes/Ray.d.ts +0 -24
  923. package/lib/shapes/Ray.js +0 -169
  924. package/lib/shapes/Rectangle.d.ts +0 -12
  925. package/lib/shapes/Rectangle.js +0 -27
  926. package/lib/shapes/index.d.ts +0 -7
  927. package/lib/shapes/index.js +0 -96
  928. package/lib/types.d.ts +0 -289
  929. package/lib/types.js +0 -69
  930. package/lib/utils/animation.d.ts +0 -15
  931. package/lib/utils/animation.js +0 -275
  932. package/lib/utils/assert.d.ts +0 -9
  933. package/lib/utils/assert.js +0 -56
  934. package/lib/utils/bezier-easing.d.ts +0 -20
  935. package/lib/utils/bezier-easing.js +0 -128
  936. package/lib/utils/canvas.d.ts +0 -6
  937. package/lib/utils/canvas.js +0 -27
  938. package/lib/utils/custom-easing.d.ts +0 -64
  939. package/lib/utils/custom-easing.js +0 -392
  940. package/lib/utils/deferred.d.ts +0 -43
  941. package/lib/utils/deferred.js +0 -131
  942. package/lib/utils/dom.d.ts +0 -2
  943. package/lib/utils/dom.js +0 -17
  944. package/lib/utils/event.d.ts +0 -45
  945. package/lib/utils/event.js +0 -17
  946. package/lib/utils/index.d.ts +0 -10
  947. package/lib/utils/index.js +0 -135
  948. package/lib/utils/interpolation.d.ts +0 -4
  949. package/lib/utils/interpolation.js +0 -229
  950. package/lib/utils/math.d.ts +0 -29
  951. package/lib/utils/math.js +0 -273
  952. package/lib/utils/path.d.ts +0 -15
  953. package/lib/utils/path.js +0 -409
  954. package/lib/utils/string.d.ts +0 -2
  955. package/lib/utils/string.js +0 -27
  956. package/lib/utils/text.d.ts +0 -2
  957. package/lib/utils/text.js +0 -39
package/es/types.js DELETED
@@ -1,54 +0,0 @@
1
- import { Syringe } from 'mana-syringe';
2
- export var Shape;
3
-
4
- (function (Shape) {
5
- Shape["GROUP"] = "g";
6
- Shape["CIRCLE"] = "circle";
7
- Shape["ELLIPSE"] = "ellipse";
8
- Shape["IMAGE"] = "image";
9
- Shape["RECT"] = "rect";
10
- Shape["LINE"] = "line";
11
- Shape["POLYLINE"] = "polyline";
12
- Shape["POLYGON"] = "polygon";
13
- Shape["TEXT"] = "text";
14
- Shape["PATH"] = "path";
15
- Shape["HTML"] = "html";
16
- Shape["MESH"] = "mesh";
17
- })(Shape || (Shape = {}));
18
-
19
- export var LineCap;
20
-
21
- (function (LineCap) {
22
- LineCap["BUTT"] = "butt";
23
- LineCap["ROUND"] = "round";
24
- LineCap["SQUARE"] = "square";
25
- })(LineCap || (LineCap = {}));
26
-
27
- export var LineJoin;
28
-
29
- (function (LineJoin) {
30
- LineJoin["BEVEL"] = "bevel";
31
- LineJoin["ROUND"] = "round";
32
- LineJoin["MITER"] = "miter";
33
- })(LineJoin || (LineJoin = {}));
34
-
35
- export var TextTransform;
36
-
37
- (function (TextTransform) {
38
- TextTransform["CAPITALIZE"] = "capitalize";
39
- TextTransform["UPPERCASE"] = "uppercase";
40
- TextTransform["LOWERCASE"] = "lowercase";
41
- TextTransform["NONE"] = "none";
42
- })(TextTransform || (TextTransform = {}));
43
-
44
- export var TextAlign;
45
-
46
- (function (TextAlign) {
47
- TextAlign["START"] = "start";
48
- TextAlign["CENTER"] = "center";
49
- TextAlign["END"] = "end";
50
- TextAlign["LEFT"] = "left";
51
- TextAlign["RIGHT"] = "right";
52
- })(TextAlign || (TextAlign = {}));
53
-
54
- export var CanvasConfig = Syringe.defineToken('CanvasConfig');
@@ -1,15 +0,0 @@
1
- import type { AnimationEffectTiming } from '../dom/AnimationEffectTiming';
2
- export declare const linear: (x: number) => number;
3
- export declare function parseEasingFunction(normalizedEasing: string): import("./custom-easing").TypeEasingFunction;
4
- export declare function calculateActiveDuration(timing: EffectTiming): number;
5
- export declare function calculateIterationProgress(activeDuration: number, localTime: number, timing: AnimationEffectTiming): number;
6
- /**
7
- * From: [https://easings.net]
8
- * Read More about easings on [MDN](https://developer.mozilla.org/en-US/docs/Web/API/EffectTiming/easing)
9
- */
10
- export declare const EASINGS: Record<string, string>;
11
- export declare const EasingKeys: string[];
12
- /**
13
- * Converts users input into a usable easing function string
14
- */
15
- export declare const getEase: (ease?: keyof typeof EASINGS | string) => string;
@@ -1,251 +0,0 @@
1
- import { __read, __spreadArray } from "tslib";
2
- import { getEasingFunction, convertToDash } from './custom-easing';
3
- import { bezier } from './bezier-easing';
4
- export var linear = function linear(x) {
5
- return x;
6
- };
7
- var Start = 1;
8
- var Middle = 0.5;
9
- var End = 0;
10
-
11
- function step(count, pos) {
12
- return function (x) {
13
- if (x >= 1) {
14
- return 1;
15
- }
16
-
17
- var stepSize = 1 / count;
18
- x += pos * stepSize;
19
- return x - x % stepSize;
20
- };
21
- }
22
-
23
- var numberString = '\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*';
24
- var cubicBezierRe = new RegExp('cubic-bezier\\(' + numberString + ',' + numberString + ',' + numberString + ',' + numberString + '\\)');
25
- var step1Re = /steps\(\s*(\d+)\s*\)/;
26
- var step2Re = /steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/;
27
- export function parseEasingFunction(normalizedEasing) {
28
- var cubicData = cubicBezierRe.exec(normalizedEasing);
29
-
30
- if (cubicData) {
31
- // @ts-ignore
32
- return bezier.apply(void 0, __spreadArray([], __read(cubicData.slice(1).map(Number)), false));
33
- }
34
-
35
- var step1Data = step1Re.exec(normalizedEasing);
36
-
37
- if (step1Data) {
38
- return step(Number(step1Data[1]), End);
39
- }
40
-
41
- var step2Data = step2Re.exec(normalizedEasing);
42
-
43
- if (step2Data) {
44
- // @ts-ignore
45
- return step(Number(step2Data[1]), {
46
- start: Start,
47
- middle: Middle,
48
- end: End
49
- }[step2Data[2]]);
50
- }
51
-
52
- return getEasingFunction(normalizedEasing);
53
- }
54
- export function calculateActiveDuration(timing) {
55
- // @ts-ignore
56
- return Math.abs(repeatedDuration(timing) / (timing.playbackRate || 1));
57
- }
58
-
59
- function repeatedDuration(timing) {
60
- var _a; // https://drafts.csswg.org/web-animations/#calculating-the-active-duration
61
-
62
-
63
- if (timing.duration === 0 || timing.iterations === 0) {
64
- return 0;
65
- } // @see https://developer.mozilla.org/en-US/docs/Web/API/EffectTiming/duration#value
66
- // if (timing.duration === 'auto') {
67
- // timing.duration = 0;
68
- // }
69
-
70
-
71
- return (timing.duration === 'auto' ? 0 : Number(timing.duration)) * ((_a = timing.iterations) !== null && _a !== void 0 ? _a : 1);
72
- }
73
-
74
- var PhaseNone = 0;
75
- var PhaseBefore = 1;
76
- var PhaseAfter = 2;
77
- var PhaseActive = 3;
78
-
79
- function calculatePhase(activeDuration, localTime, timing) {
80
- // https://drafts.csswg.org/web-animations/#animation-effect-phases-and-states
81
- if (localTime === null) {
82
- return PhaseNone;
83
- }
84
-
85
- var endTime = timing.endTime;
86
-
87
- if (localTime < Math.min(timing.delay, endTime)) {
88
- return PhaseBefore;
89
- }
90
-
91
- if (localTime >= Math.min(timing.delay + activeDuration + timing.endDelay, endTime)) {
92
- return PhaseAfter;
93
- }
94
-
95
- return PhaseActive;
96
- }
97
-
98
- function calculateActiveTime(activeDuration, fillMode, localTime, phase, delay) {
99
- // https://drafts.csswg.org/web-animations/#calculating-the-active-time
100
- switch (phase) {
101
- case PhaseBefore:
102
- if (fillMode === 'backwards' || fillMode === 'both') return 0;
103
- return null;
104
-
105
- case PhaseActive:
106
- return localTime - delay;
107
-
108
- case PhaseAfter:
109
- if (fillMode === 'forwards' || fillMode === 'both') return activeDuration;
110
- return null;
111
-
112
- case PhaseNone:
113
- return null;
114
- }
115
- }
116
-
117
- function calculateOverallProgress(iterationDuration, phase, iterations, activeTime, iterationStart) {
118
- // https://drafts.csswg.org/web-animations/#calculating-the-overall-progress
119
- var overallProgress = iterationStart;
120
-
121
- if (iterationDuration === 0) {
122
- if (phase !== PhaseBefore) {
123
- overallProgress += iterations;
124
- }
125
- } else {
126
- overallProgress += activeTime / iterationDuration;
127
- }
128
-
129
- return overallProgress;
130
- }
131
-
132
- function calculateSimpleIterationProgress(overallProgress, iterationStart, phase, iterations, activeTime, iterationDuration) {
133
- // https://drafts.csswg.org/web-animations/#calculating-the-simple-iteration-progress
134
- var simpleIterationProgress = overallProgress === Infinity ? iterationStart % 1 : overallProgress % 1;
135
-
136
- if (simpleIterationProgress === 0 && phase === PhaseAfter && iterations !== 0 && (activeTime !== 0 || iterationDuration === 0)) {
137
- simpleIterationProgress = 1;
138
- }
139
-
140
- return simpleIterationProgress;
141
- }
142
-
143
- function calculateCurrentIteration(phase, iterations, simpleIterationProgress, overallProgress) {
144
- // https://drafts.csswg.org/web-animations/#calculating-the-current-iteration
145
- if (phase === PhaseAfter && iterations === Infinity) {
146
- return Infinity;
147
- }
148
-
149
- if (simpleIterationProgress === 1) {
150
- return Math.floor(overallProgress) - 1;
151
- }
152
-
153
- return Math.floor(overallProgress);
154
- }
155
-
156
- function calculateDirectedProgress(playbackDirection, currentIteration, simpleIterationProgress) {
157
- // https://drafts.csswg.org/web-animations/#calculating-the-directed-progress
158
- var currentDirection = playbackDirection;
159
-
160
- if (playbackDirection !== 'normal' && playbackDirection !== 'reverse') {
161
- var d = currentIteration;
162
-
163
- if (playbackDirection === 'alternate-reverse') {
164
- d += 1;
165
- }
166
-
167
- currentDirection = 'normal';
168
-
169
- if (d !== Infinity && d % 2 !== 0) {
170
- currentDirection = 'reverse';
171
- }
172
- }
173
-
174
- if (currentDirection === 'normal') {
175
- return simpleIterationProgress;
176
- }
177
-
178
- return 1 - simpleIterationProgress;
179
- }
180
-
181
- export function calculateIterationProgress(activeDuration, localTime, timing) {
182
- var phase = calculatePhase(activeDuration, localTime, timing);
183
- var activeTime = calculateActiveTime(activeDuration, timing.fill, localTime, phase, timing.delay);
184
- if (activeTime === null) return null;
185
- var duration = timing.duration === 'auto' ? 0 : timing.duration;
186
- var overallProgress = calculateOverallProgress(duration, phase, timing.iterations, activeTime, timing.iterationStart);
187
- var simpleIterationProgress = calculateSimpleIterationProgress(overallProgress, timing.iterationStart, phase, timing.iterations, activeTime, duration);
188
- var currentIteration = calculateCurrentIteration(phase, timing.iterations, simpleIterationProgress, overallProgress);
189
- var directedProgress = calculateDirectedProgress(timing.direction, currentIteration, simpleIterationProgress);
190
- timing.currentIteration = currentIteration;
191
- timing.progress = directedProgress; // https://drafts.csswg.org/web-animations/#calculating-the-transformed-progress
192
- // https://drafts.csswg.org/web-animations/#calculating-the-iteration-progress
193
-
194
- return timing.easingFunction(directedProgress);
195
- }
196
- /**
197
- * From: [https://easings.net]
198
- * Read More about easings on [MDN](https://developer.mozilla.org/en-US/docs/Web/API/EffectTiming/easing)
199
- */
200
-
201
- export var EASINGS = {
202
- in: 'ease-in',
203
- out: 'ease-out',
204
- 'in-out': 'ease-in-out',
205
- // Sine
206
- 'in-sine': 'cubic-bezier(0.47, 0, 0.745, 0.715)',
207
- 'out-sine': 'cubic-bezier(0.39, 0.575, 0.565, 1)',
208
- 'in-out-sine': 'cubic-bezier(0.445, 0.05, 0.55, 0.95)',
209
- // Quad
210
- 'in-quad': 'cubic-bezier(0.55, 0.085, 0.68, 0.53)',
211
- 'out-quad': 'cubic-bezier(0.25, 0.46, 0.45, 0.94)',
212
- 'in-out-quad': 'cubic-bezier(0.455, 0.03, 0.515, 0.955)',
213
- // Cubic
214
- 'in-cubic': 'cubic-bezier(0.55, 0.055, 0.675, 0.19)',
215
- 'out-cubic': 'cubic-bezier(0.215, 0.61, 0.355, 1)',
216
- 'in-out-cubic': 'cubic-bezier(0.645, 0.045, 0.355, 1)',
217
- // Quart
218
- 'in-quart': 'cubic-bezier(0.895, 0.03, 0.685, 0.22)',
219
- 'out-quart': 'cubic-bezier(0.165, 0.84, 0.44, 1)',
220
- 'in-out-quart': 'cubic-bezier(0.77, 0, 0.175, 1)',
221
- // Quint
222
- 'in-quint': 'cubic-bezier(0.755, 0.05, 0.855, 0.06)',
223
- 'out-quint': 'cubic-bezier(0.23, 1, 0.32, 1)',
224
- 'in-out-quint': 'cubic-bezier(0.86, 0, 0.07, 1)',
225
- // Expo
226
- 'in-expo': 'cubic-bezier(0.95, 0.05, 0.795, 0.035)',
227
- 'out-expo': 'cubic-bezier(0.19, 1, 0.22, 1)',
228
- 'in-out-expo': 'cubic-bezier(1, 0, 0, 1)',
229
- // Circ
230
- 'in-circ': 'cubic-bezier(0.6, 0.04, 0.98, 0.335)',
231
- 'out-circ': 'cubic-bezier(0.075, 0.82, 0.165, 1)',
232
- 'in-out-circ': 'cubic-bezier(0.785, 0.135, 0.15, 0.86)',
233
- // Back
234
- 'in-back': 'cubic-bezier(0.6, -0.28, 0.735, 0.045)',
235
- 'out-back': 'cubic-bezier(0.175, 0.885, 0.32, 1.275)',
236
- 'in-out-back': 'cubic-bezier(0.68, -0.55, 0.265, 1.55)'
237
- };
238
- export var EasingKeys = Object.keys(EASINGS);
239
- /**
240
- * Converts users input into a usable easing function string
241
- */
242
-
243
- export var getEase = function getEase(ease) {
244
- if (ease === void 0) {
245
- ease = 'ease';
246
- } // Convert camelCase strings into dashed strings, then Remove the "ease-" keyword
247
-
248
-
249
- var search = convertToDash(ease).replace(/^ease-/, '');
250
- return EASINGS[search] || ease;
251
- };
@@ -1,9 +0,0 @@
1
- export declare function DCHECK(bool: boolean): void;
2
- export declare function DCHECK_EQ(a: any, b: any): void;
3
- export declare function DCHECK_NE(a: any, b: any): void;
4
- export declare function isUndefined(a: any): boolean;
5
- export declare function isNil(a: any): boolean;
6
- export declare function isNumber(value: any): value is number;
7
- export declare function isFunction(value: any): value is Function;
8
- export declare function isBoolean(value: any): value is boolean;
9
- export declare function isObject(value: any): value is object;
@@ -1,33 +0,0 @@
1
- export function DCHECK(bool) {
2
- if (!bool) {
3
- throw new Error();
4
- }
5
- }
6
- export function DCHECK_EQ(a, b) {
7
- if (a !== b) {
8
- throw new Error();
9
- }
10
- }
11
- export function DCHECK_NE(a, b) {
12
- if (a === b) {
13
- throw new Error();
14
- }
15
- }
16
- export function isUndefined(a) {
17
- return typeof a === 'undefined';
18
- }
19
- export function isNil(a) {
20
- return a == null;
21
- }
22
- export function isNumber(value) {
23
- return typeof value === 'number';
24
- }
25
- export function isFunction(value) {
26
- return typeof value === 'function';
27
- }
28
- export function isBoolean(value) {
29
- return typeof value === 'boolean';
30
- }
31
- export function isObject(value) {
32
- return Object.prototype.toString.call(value) === '[object Object]';
33
- }
@@ -1,20 +0,0 @@
1
- /**
2
- * https://github.com/gre/bezier-easing
3
- * BezierEasing - use bezier curve for transition easing function
4
- * by Gaëtan Renaudeau 2014 - 2015 – MIT License
5
- */
6
- export declare const NEWTON_ITERATIONS = 4;
7
- export declare const NEWTON_MIN_SLOPE = 0.001;
8
- export declare const SUBDIVISION_PRECISION = 1e-7;
9
- export declare const SUBDIVISION_MAX_ITERATIONS = 10;
10
- export declare const kSplineTableSize = 11;
11
- export declare const kSampleStepSize: number;
12
- export declare const float32ArraySupported: boolean;
13
- export declare const A: (aA1: number, aA2: number) => number;
14
- export declare const B: (aA1: number, aA2: number) => number;
15
- export declare const C: (aA1: number) => number;
16
- export declare const calcBezier: (aT: number, aA1: number, aA2: number) => number;
17
- export declare const getSlope: (aT: number, aA1: number, aA2: number) => number;
18
- export declare const binarySubdivide: (aX: number, aA: number, aB: number, mX1: number, mX2: number) => number;
19
- export declare const newtonRaphsonIterate: (aX: number, aGuessT: number, mX1: number, mX2: number) => number;
20
- export declare const bezier: (mX1: number, mY1: number, mX2: number, mY2: number) => (t: number) => number;
@@ -1,90 +0,0 @@
1
- /**
2
- * https://github.com/gre/bezier-easing
3
- * BezierEasing - use bezier curve for transition easing function
4
- * by Gaëtan Renaudeau 2014 - 2015 – MIT License
5
- */
6
- // These values are established by empiricism with tests (tradeoff: performance VS precision)
7
- export var NEWTON_ITERATIONS = 4;
8
- export var NEWTON_MIN_SLOPE = 0.001;
9
- export var SUBDIVISION_PRECISION = 0.0000001;
10
- export var SUBDIVISION_MAX_ITERATIONS = 10;
11
- export var kSplineTableSize = 11;
12
- export var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0);
13
- export var float32ArraySupported = typeof Float32Array === 'function';
14
- export var A = function A(aA1, aA2) {
15
- return 1.0 - 3.0 * aA2 + 3.0 * aA1;
16
- };
17
- export var B = function B(aA1, aA2) {
18
- return 3.0 * aA2 - 6.0 * aA1;
19
- };
20
- export var C = function C(aA1) {
21
- return 3.0 * aA1;
22
- }; // Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.
23
-
24
- export var calcBezier = function calcBezier(aT, aA1, aA2) {
25
- return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT;
26
- }; // Returns dx/dt given t, x1, and x2, or dy/dt given t, y1, and y2.
27
-
28
- export var getSlope = function getSlope(aT, aA1, aA2) {
29
- return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1);
30
- };
31
- export var binarySubdivide = function binarySubdivide(aX, aA, aB, mX1, mX2) {
32
- var currentX,
33
- currentT,
34
- i = 0;
35
-
36
- do {
37
- currentT = aA + (aB - aA) / 2.0;
38
- currentX = calcBezier(currentT, mX1, mX2) - aX;
39
- if (currentX > 0.0) aB = currentT;else aA = currentT;
40
- } while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS);
41
-
42
- return currentT;
43
- };
44
- export var newtonRaphsonIterate = function newtonRaphsonIterate(aX, aGuessT, mX1, mX2) {
45
- for (var i = 0; i < NEWTON_ITERATIONS; ++i) {
46
- var currentSlope = getSlope(aGuessT, mX1, mX2);
47
- if (currentSlope === 0.0) return aGuessT;
48
- var currentX = calcBezier(aGuessT, mX1, mX2) - aX;
49
- aGuessT -= currentX / currentSlope;
50
- }
51
-
52
- return aGuessT;
53
- };
54
- export var bezier = function bezier(mX1, mY1, mX2, mY2) {
55
- if (!(0 <= mX1 && mX1 <= 1 && 0 <= mX2 && mX2 <= 1)) throw new Error('bezier x values must be in [0, 1] range');
56
- if (mX1 === mY1 && mX2 === mY2) return function (t) {
57
- return t;
58
- }; // Precompute samples table
59
-
60
- var sampleValues = float32ArraySupported ? new Float32Array(kSplineTableSize) : new Array(kSplineTableSize);
61
-
62
- for (var i = 0; i < kSplineTableSize; ++i) {
63
- sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);
64
- }
65
-
66
- var getTForX = function getTForX(aX) {
67
- var intervalStart = 0.0;
68
- var currentSample = 1;
69
- var lastSample = kSplineTableSize - 1;
70
-
71
- for (; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample) {
72
- intervalStart += kSampleStepSize;
73
- }
74
-
75
- --currentSample; // Interpolate to provide an initial guess for t
76
-
77
- var dist = (aX - sampleValues[currentSample]) / (sampleValues[currentSample + 1] - sampleValues[currentSample]);
78
- var guessForT = intervalStart + dist * kSampleStepSize;
79
- var initialSlope = getSlope(guessForT, mX1, mX2);
80
- if (initialSlope >= NEWTON_MIN_SLOPE) return newtonRaphsonIterate(aX, guessForT, mX1, mX2);else if (initialSlope === 0.0) return guessForT;else {
81
- return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2);
82
- }
83
- };
84
-
85
- return function (t) {
86
- // Because JavaScript number are imprecise, we should guarantee the extremes are right.
87
- if (t === 0 || t === 1) return t;
88
- return calcBezier(getTForX(t), mY1, mY2);
89
- };
90
- };
@@ -1,6 +0,0 @@
1
- import type { Canvas } from '../Canvas';
2
- /**
3
- * destroy existed canvas with the same id
4
- */
5
- export declare function cleanExistedCanvas(container: string | HTMLElement, canvas: Canvas): void;
6
- export declare const isBrowser: boolean;
@@ -1,18 +0,0 @@
1
- var canvasMap = {};
2
- var defaultCanvasIdCounter = 0;
3
- /**
4
- * destroy existed canvas with the same id
5
- */
6
-
7
- export function cleanExistedCanvas(container, canvas) {
8
- if (container) {
9
- var id = typeof container === 'string' ? container : container.id || defaultCanvasIdCounter++;
10
-
11
- if (canvasMap[id]) {
12
- canvasMap[id].destroy();
13
- }
14
-
15
- canvasMap[id] = canvas;
16
- }
17
- }
18
- export var isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
@@ -1,64 +0,0 @@
1
- export declare const convertToDash: (str: string) => string;
2
- export declare const limit: (value: number, min: number, max: number) => number;
3
- /**
4
- * The format to use when defining custom easing functions
5
- */
6
- export declare type TypeEasingFunction = (t: number, params?: (string | number)[], duration?: number) => number;
7
- export declare type TypeColor = string | number | (string | number)[];
8
- export declare type TypeRGBAFunction = (color: TypeColor) => number[];
9
- /**
10
- Easing Functions from anime.js, they are tried and true, so, its better to use them instead of other alternatives
11
- */
12
- export declare const Quad: TypeEasingFunction;
13
- export declare const Cubic: TypeEasingFunction;
14
- export declare const Quart: TypeEasingFunction;
15
- export declare const Quint: TypeEasingFunction;
16
- export declare const Expo: TypeEasingFunction;
17
- export declare const Sine: TypeEasingFunction;
18
- export declare const Circ: TypeEasingFunction;
19
- export declare const Back: TypeEasingFunction;
20
- export declare const Bounce: TypeEasingFunction;
21
- export declare const Elastic: TypeEasingFunction;
22
- export declare const Spring: TypeEasingFunction;
23
- /**
24
- * Cache the durations at set easing parameters
25
- */
26
- export declare const EasingDurationCache: Map<string | TypeEasingFunction, number>;
27
- /**
28
- * The threshold for an infinite loop
29
- */
30
- export declare const INTINITE_LOOP_LIMIT = 10000;
31
- /** Convert easing parameters to Array of numbers, e.g. "spring(2, 500)" to [2, 500] */
32
- export declare const parseEasingParameters: (str: string) => (string | number)[];
33
- /**
34
- * The spring easing function will only look smooth at certain durations, with certain parameters.
35
- * This functions returns the optimal duration to create a smooth springy animation based on physics
36
- *
37
- * Note: it can also be used to determine the optimal duration of other types of easing function, but be careful of 'in-'
38
- * easing functions, because of the nature of the function it can sometimes create an infinite loop, I suggest only using
39
- * `getEasingDuration` for `spring`, specifically 'out-spring' and 'spring'
40
- */
41
- /**
42
- These Easing Functions are based off of the Sozi Project's easing functions
43
- https://github.com/sozi-projects/Sozi/blob/d72e44ebd580dc7579d1e177406ad41e632f961d/src/js/player/Timing.js
44
- */
45
- export declare const Steps: TypeEasingFunction;
46
- export declare const Bezier: TypeEasingFunction;
47
- /** The default `ease-in` easing function */
48
- export declare const easein: TypeEasingFunction;
49
- /** Converts easing functions to their `out`counter parts */
50
- export declare const EaseOut: (ease: TypeEasingFunction) => TypeEasingFunction;
51
- /** Converts easing functions to their `in-out` counter parts */
52
- export declare const EaseInOut: (ease: TypeEasingFunction) => TypeEasingFunction;
53
- /** Converts easing functions to their `out-in` counter parts */
54
- export declare const EaseOutIn: (ease: TypeEasingFunction) => TypeEasingFunction;
55
- /**
56
- * The default list of easing functions, do note this is different from {@link EASING}
57
- */
58
- export declare const EasingFunctions: Record<string, TypeEasingFunction>;
59
- /**
60
- * Convert string easing to their proper form
61
- */
62
- export declare const complexEasingSyntax: (ease: string) => string;
63
- /** Re-maps a number from one range to another. Numbers outside the range are not clamped to 0 and 1, because out-of-range values are often intentional and useful. */
64
- export declare const getEasingFunction: (ease: string) => TypeEasingFunction;