@antv/g 5.8.8 → 5.8.10

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 (341) hide show
  1. package/dist/__tests__/dom/utils/easing.d.ts +15 -0
  2. package/dist/__tests__/dom/utils/easing.d.ts.map +1 -0
  3. package/dist/__tests__/dom/utils/keyframe.d.ts +39 -0
  4. package/dist/__tests__/dom/utils/keyframe.d.ts.map +1 -0
  5. package/dist/index.d.ts +13 -24
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.esm.js +7 -22869
  8. package/dist/index.js +57 -23042
  9. package/dist/index.umd.js +15834 -31207
  10. package/dist/index.umd.min.js +16 -2
  11. package/package.json +9 -20
  12. package/dist/AbstractRenderer.d.ts +0 -45
  13. package/dist/AbstractRenderer.d.ts.map +0 -1
  14. package/dist/Canvas.d.ts +0 -154
  15. package/dist/Canvas.d.ts.map +0 -1
  16. package/dist/DisplayObjectPool.d.ts +0 -9
  17. package/dist/DisplayObjectPool.d.ts.map +0 -1
  18. package/dist/camera/Camera.d.ts +0 -328
  19. package/dist/camera/Camera.d.ts.map +0 -1
  20. package/dist/camera/Landmark.d.ts +0 -24
  21. package/dist/camera/Landmark.d.ts.map +0 -1
  22. package/dist/camera/index.d.ts +0 -3
  23. package/dist/camera/index.d.ts.map +0 -1
  24. package/dist/canvas-module.d.ts +0 -2
  25. package/dist/canvas-module.d.ts.map +0 -1
  26. package/dist/components/Cullable.d.ts +0 -15
  27. package/dist/components/Cullable.d.ts.map +0 -1
  28. package/dist/components/Geometry.d.ts +0 -13
  29. package/dist/components/Geometry.d.ts.map +0 -1
  30. package/dist/components/RBushNode.d.ts +0 -14
  31. package/dist/components/RBushNode.d.ts.map +0 -1
  32. package/dist/components/Renderable.d.ts +0 -29
  33. package/dist/components/Renderable.d.ts.map +0 -1
  34. package/dist/components/Sortable.d.ts +0 -21
  35. package/dist/components/Sortable.d.ts.map +0 -1
  36. package/dist/components/Transform.d.ts +0 -33
  37. package/dist/components/Transform.d.ts.map +0 -1
  38. package/dist/components/index.d.ts +0 -7
  39. package/dist/components/index.d.ts.map +0 -1
  40. package/dist/css/CSS.d.ts +0 -89
  41. package/dist/css/CSS.d.ts.map +0 -1
  42. package/dist/css/CSSProperty.d.ts +0 -46
  43. package/dist/css/CSSProperty.d.ts.map +0 -1
  44. package/dist/css/StyleValueRegistry.d.ts +0 -68
  45. package/dist/css/StyleValueRegistry.d.ts.map +0 -1
  46. package/dist/css/cssom/CSSColorValue.d.ts +0 -24
  47. package/dist/css/cssom/CSSColorValue.d.ts.map +0 -1
  48. package/dist/css/cssom/CSSGradientValue.d.ts +0 -27
  49. package/dist/css/cssom/CSSGradientValue.d.ts.map +0 -1
  50. package/dist/css/cssom/CSSKeywordValue.d.ts +0 -16
  51. package/dist/css/cssom/CSSKeywordValue.d.ts.map +0 -1
  52. package/dist/css/cssom/CSSMathOperator.d.ts +0 -12
  53. package/dist/css/cssom/CSSMathOperator.d.ts.map +0 -1
  54. package/dist/css/cssom/CSSNumericSumValue.d.ts +0 -8
  55. package/dist/css/cssom/CSSNumericSumValue.d.ts.map +0 -1
  56. package/dist/css/cssom/CSSNumericValue.d.ts +0 -213
  57. package/dist/css/cssom/CSSNumericValue.d.ts.map +0 -1
  58. package/dist/css/cssom/CSSRGB.d.ts +0 -26
  59. package/dist/css/cssom/CSSRGB.d.ts.map +0 -1
  60. package/dist/css/cssom/CSSStyleValue.d.ts +0 -49
  61. package/dist/css/cssom/CSSStyleValue.d.ts.map +0 -1
  62. package/dist/css/cssom/index.d.ts +0 -18
  63. package/dist/css/cssom/index.d.ts.map +0 -1
  64. package/dist/css/cssom/types.d.ts +0 -39
  65. package/dist/css/cssom/types.d.ts.map +0 -1
  66. package/dist/css/index.d.ts +0 -12
  67. package/dist/css/index.d.ts.map +0 -1
  68. package/dist/css/interfaces.d.ts +0 -135
  69. package/dist/css/interfaces.d.ts.map +0 -1
  70. package/dist/css/layout/FragmentResult.d.ts +0 -33
  71. package/dist/css/layout/FragmentResult.d.ts.map +0 -1
  72. package/dist/css/layout/LayoutChildren.d.ts +0 -24
  73. package/dist/css/layout/LayoutChildren.d.ts.map +0 -1
  74. package/dist/css/layout/LayoutContext.d.ts +0 -35
  75. package/dist/css/layout/LayoutContext.d.ts.map +0 -1
  76. package/dist/css/layout/LayoutDefinition.d.ts +0 -21
  77. package/dist/css/layout/LayoutDefinition.d.ts.map +0 -1
  78. package/dist/css/layout/LayoutEdges.d.ts +0 -25
  79. package/dist/css/layout/LayoutEdges.d.ts.map +0 -1
  80. package/dist/css/layout/LayoutEngine.d.ts +0 -42
  81. package/dist/css/layout/LayoutEngine.d.ts.map +0 -1
  82. package/dist/css/layout/LayoutFragment.d.ts +0 -27
  83. package/dist/css/layout/LayoutFragment.d.ts.map +0 -1
  84. package/dist/css/layout/LayoutObject.d.ts +0 -47
  85. package/dist/css/layout/LayoutObject.d.ts.map +0 -1
  86. package/dist/css/layout/LayoutRegistry.d.ts +0 -17
  87. package/dist/css/layout/LayoutRegistry.d.ts.map +0 -1
  88. package/dist/css/layout/LayoutWorkTask.d.ts +0 -15
  89. package/dist/css/layout/LayoutWorkTask.d.ts.map +0 -1
  90. package/dist/css/layout/index.d.ts +0 -12
  91. package/dist/css/layout/index.d.ts.map +0 -1
  92. package/dist/css/layout/types.d.ts +0 -105
  93. package/dist/css/layout/types.d.ts.map +0 -1
  94. package/dist/css/parser/color.d.ts +0 -19
  95. package/dist/css/parser/color.d.ts.map +0 -1
  96. package/dist/css/parser/dimension.d.ts +0 -49
  97. package/dist/css/parser/dimension.d.ts.map +0 -1
  98. package/dist/css/parser/filter.d.ts +0 -8
  99. package/dist/css/parser/filter.d.ts.map +0 -1
  100. package/dist/css/parser/gradient.d.ts +0 -5
  101. package/dist/css/parser/gradient.d.ts.map +0 -1
  102. package/dist/css/parser/index.d.ts +0 -16
  103. package/dist/css/parser/index.d.ts.map +0 -1
  104. package/dist/css/parser/numeric.d.ts +0 -25
  105. package/dist/css/parser/numeric.d.ts.map +0 -1
  106. package/dist/css/parser/path.d.ts +0 -6
  107. package/dist/css/parser/path.d.ts.map +0 -1
  108. package/dist/css/parser/points.d.ts +0 -13
  109. package/dist/css/parser/points.d.ts.map +0 -1
  110. package/dist/css/parser/transform-origin.d.ts +0 -9
  111. package/dist/css/parser/transform-origin.d.ts.map +0 -1
  112. package/dist/css/parser/transform.d.ts +0 -16
  113. package/dist/css/parser/transform.d.ts.map +0 -1
  114. package/dist/css/parser/types.d.ts +0 -3
  115. package/dist/css/parser/types.d.ts.map +0 -1
  116. package/dist/css/properties/CSSPropertyAngle.d.ts +0 -13
  117. package/dist/css/properties/CSSPropertyAngle.d.ts.map +0 -1
  118. package/dist/css/properties/CSSPropertyClipPath.d.ts +0 -24
  119. package/dist/css/properties/CSSPropertyClipPath.d.ts.map +0 -1
  120. package/dist/css/properties/CSSPropertyColor.d.ts +0 -15
  121. package/dist/css/properties/CSSPropertyColor.d.ts.map +0 -1
  122. package/dist/css/properties/CSSPropertyFilter.d.ts +0 -8
  123. package/dist/css/properties/CSSPropertyFilter.d.ts.map +0 -1
  124. package/dist/css/properties/CSSPropertyLengthOrPercentage.d.ts +0 -23
  125. package/dist/css/properties/CSSPropertyLengthOrPercentage.d.ts.map +0 -1
  126. package/dist/css/properties/CSSPropertyLengthOrPercentage12.d.ts +0 -17
  127. package/dist/css/properties/CSSPropertyLengthOrPercentage12.d.ts.map +0 -1
  128. package/dist/css/properties/CSSPropertyLengthOrPercentage14.d.ts +0 -27
  129. package/dist/css/properties/CSSPropertyLengthOrPercentage14.d.ts.map +0 -1
  130. package/dist/css/properties/CSSPropertyLocalPosition.d.ts +0 -14
  131. package/dist/css/properties/CSSPropertyLocalPosition.d.ts.map +0 -1
  132. package/dist/css/properties/CSSPropertyMarker.d.ts +0 -6
  133. package/dist/css/properties/CSSPropertyMarker.d.ts.map +0 -1
  134. package/dist/css/properties/CSSPropertyNumber.d.ts +0 -12
  135. package/dist/css/properties/CSSPropertyNumber.d.ts.map +0 -1
  136. package/dist/css/properties/CSSPropertyOffsetDistance.d.ts +0 -13
  137. package/dist/css/properties/CSSPropertyOffsetDistance.d.ts.map +0 -1
  138. package/dist/css/properties/CSSPropertyOffsetPath.d.ts +0 -6
  139. package/dist/css/properties/CSSPropertyOffsetPath.d.ts.map +0 -1
  140. package/dist/css/properties/CSSPropertyOpacity.d.ts +0 -14
  141. package/dist/css/properties/CSSPropertyOpacity.d.ts.map +0 -1
  142. package/dist/css/properties/CSSPropertyPath.d.ts +0 -28
  143. package/dist/css/properties/CSSPropertyPath.d.ts.map +0 -1
  144. package/dist/css/properties/CSSPropertyPoints.d.ts +0 -19
  145. package/dist/css/properties/CSSPropertyPoints.d.ts.map +0 -1
  146. package/dist/css/properties/CSSPropertyShadowBlur.d.ts +0 -5
  147. package/dist/css/properties/CSSPropertyShadowBlur.d.ts.map +0 -1
  148. package/dist/css/properties/CSSPropertyText.d.ts +0 -8
  149. package/dist/css/properties/CSSPropertyText.d.ts.map +0 -1
  150. package/dist/css/properties/CSSPropertyTextTransform.d.ts +0 -12
  151. package/dist/css/properties/CSSPropertyTextTransform.d.ts.map +0 -1
  152. package/dist/css/properties/CSSPropertyTransform.d.ts +0 -43
  153. package/dist/css/properties/CSSPropertyTransform.d.ts.map +0 -1
  154. package/dist/css/properties/CSSPropertyTransformOrigin.d.ts +0 -14
  155. package/dist/css/properties/CSSPropertyTransformOrigin.d.ts.map +0 -1
  156. package/dist/css/properties/CSSPropertyZIndex.d.ts +0 -12
  157. package/dist/css/properties/CSSPropertyZIndex.d.ts.map +0 -1
  158. package/dist/css/properties/index.d.ts +0 -22
  159. package/dist/css/properties/index.d.ts.map +0 -1
  160. package/dist/display-objects/Circle.d.ts +0 -17
  161. package/dist/display-objects/Circle.d.ts.map +0 -1
  162. package/dist/display-objects/CustomElement.d.ts +0 -25
  163. package/dist/display-objects/CustomElement.d.ts.map +0 -1
  164. package/dist/display-objects/DisplayObject.d.ts +0 -276
  165. package/dist/display-objects/DisplayObject.d.ts.map +0 -1
  166. package/dist/display-objects/Ellipse.d.ts +0 -19
  167. package/dist/display-objects/Ellipse.d.ts.map +0 -1
  168. package/dist/display-objects/Group.d.ts +0 -30
  169. package/dist/display-objects/Group.d.ts.map +0 -1
  170. package/dist/display-objects/HTML.d.ts +0 -42
  171. package/dist/display-objects/HTML.d.ts.map +0 -1
  172. package/dist/display-objects/Image.d.ts +0 -23
  173. package/dist/display-objects/Image.d.ts.map +0 -1
  174. package/dist/display-objects/Line.d.ts +0 -61
  175. package/dist/display-objects/Line.d.ts.map +0 -1
  176. package/dist/display-objects/Path.d.ts +0 -100
  177. package/dist/display-objects/Path.d.ts.map +0 -1
  178. package/dist/display-objects/Polygon.d.ts +0 -50
  179. package/dist/display-objects/Polygon.d.ts.map +0 -1
  180. package/dist/display-objects/Polyline.d.ts +0 -49
  181. package/dist/display-objects/Polyline.d.ts.map +0 -1
  182. package/dist/display-objects/Rect.d.ts +0 -24
  183. package/dist/display-objects/Rect.d.ts.map +0 -1
  184. package/dist/display-objects/Text.d.ts +0 -76
  185. package/dist/display-objects/Text.d.ts.map +0 -1
  186. package/dist/display-objects/index.d.ts +0 -14
  187. package/dist/display-objects/index.d.ts.map +0 -1
  188. package/dist/dom/Animation.d.ts +0 -134
  189. package/dist/dom/Animation.d.ts.map +0 -1
  190. package/dist/dom/AnimationEffectTiming.d.ts +0 -59
  191. package/dist/dom/AnimationEffectTiming.d.ts.map +0 -1
  192. package/dist/dom/AnimationEvent.d.ts +0 -12
  193. package/dist/dom/AnimationEvent.d.ts.map +0 -1
  194. package/dist/dom/AnimationTimeline.d.ts +0 -41
  195. package/dist/dom/AnimationTimeline.d.ts.map +0 -1
  196. package/dist/dom/CustomElementRegistry.d.ts +0 -16
  197. package/dist/dom/CustomElementRegistry.d.ts.map +0 -1
  198. package/dist/dom/CustomEvent.d.ts +0 -17
  199. package/dist/dom/CustomEvent.d.ts.map +0 -1
  200. package/dist/dom/Document.d.ts +0 -73
  201. package/dist/dom/Document.d.ts.map +0 -1
  202. package/dist/dom/Element.d.ts +0 -197
  203. package/dist/dom/Element.d.ts.map +0 -1
  204. package/dist/dom/EventTarget.d.ts +0 -41
  205. package/dist/dom/EventTarget.d.ts.map +0 -1
  206. package/dist/dom/FederatedEvent.d.ts +0 -147
  207. package/dist/dom/FederatedEvent.d.ts.map +0 -1
  208. package/dist/dom/FederatedMouseEvent.d.ts +0 -53
  209. package/dist/dom/FederatedMouseEvent.d.ts.map +0 -1
  210. package/dist/dom/FederatedPointerEvent.d.ts +0 -88
  211. package/dist/dom/FederatedPointerEvent.d.ts.map +0 -1
  212. package/dist/dom/FederatedWheelEvent.d.ts +0 -22
  213. package/dist/dom/FederatedWheelEvent.d.ts.map +0 -1
  214. package/dist/dom/KeyframeEffect.d.ts +0 -48
  215. package/dist/dom/KeyframeEffect.d.ts.map +0 -1
  216. package/dist/dom/KeyframeList.d.ts +0 -3
  217. package/dist/dom/KeyframeList.d.ts.map +0 -1
  218. package/dist/dom/MutationEvent.d.ts +0 -16
  219. package/dist/dom/MutationEvent.d.ts.map +0 -1
  220. package/dist/dom/MutationObserver.d.ts +0 -37
  221. package/dist/dom/MutationObserver.d.ts.map +0 -1
  222. package/dist/dom/MutationRecord.d.ts +0 -15
  223. package/dist/dom/MutationRecord.d.ts.map +0 -1
  224. package/dist/dom/Node.d.ts +0 -139
  225. package/dist/dom/Node.d.ts.map +0 -1
  226. package/dist/dom/index.d.ts +0 -21
  227. package/dist/dom/index.d.ts.map +0 -1
  228. package/dist/dom/interfaces.d.ts +0 -370
  229. package/dist/dom/interfaces.d.ts.map +0 -1
  230. package/dist/global-module.d.ts +0 -2
  231. package/dist/global-module.d.ts.map +0 -1
  232. package/dist/plugins/CullingPlugin.d.ts +0 -19
  233. package/dist/plugins/CullingPlugin.d.ts.map +0 -1
  234. package/dist/plugins/DirtyCheckPlugin.d.ts +0 -9
  235. package/dist/plugins/DirtyCheckPlugin.d.ts.map +0 -1
  236. package/dist/plugins/EventPlugin.d.ts +0 -30
  237. package/dist/plugins/EventPlugin.d.ts.map +0 -1
  238. package/dist/plugins/FrustumCullingStrategy.d.ts +0 -22
  239. package/dist/plugins/FrustumCullingStrategy.d.ts.map +0 -1
  240. package/dist/plugins/PrepareRendererPlugin.d.ts +0 -19
  241. package/dist/plugins/PrepareRendererPlugin.d.ts.map +0 -1
  242. package/dist/services/ContextService.d.ts +0 -30
  243. package/dist/services/ContextService.d.ts.map +0 -1
  244. package/dist/services/EventService.d.ts +0 -76
  245. package/dist/services/EventService.d.ts.map +0 -1
  246. package/dist/services/OffscreenCanvasCreator.d.ts +0 -15
  247. package/dist/services/OffscreenCanvasCreator.d.ts.map +0 -1
  248. package/dist/services/RenderingContext.d.ts +0 -29
  249. package/dist/services/RenderingContext.d.ts.map +0 -1
  250. package/dist/services/RenderingService.d.ts +0 -113
  251. package/dist/services/RenderingService.d.ts.map +0 -1
  252. package/dist/services/SceneGraphSelector.d.ts +0 -27
  253. package/dist/services/SceneGraphSelector.d.ts.map +0 -1
  254. package/dist/services/SceneGraphService.d.ts +0 -165
  255. package/dist/services/SceneGraphService.d.ts.map +0 -1
  256. package/dist/services/TextService.d.ts +0 -37
  257. package/dist/services/TextService.d.ts.map +0 -1
  258. package/dist/services/aabb/CircleUpdater.d.ts +0 -9
  259. package/dist/services/aabb/CircleUpdater.d.ts.map +0 -1
  260. package/dist/services/aabb/EllipseUpdater.d.ts +0 -9
  261. package/dist/services/aabb/EllipseUpdater.d.ts.map +0 -1
  262. package/dist/services/aabb/LineUpdater.d.ts +0 -9
  263. package/dist/services/aabb/LineUpdater.d.ts.map +0 -1
  264. package/dist/services/aabb/PathUpdater.d.ts +0 -9
  265. package/dist/services/aabb/PathUpdater.d.ts.map +0 -1
  266. package/dist/services/aabb/PolylineUpdater.d.ts +0 -9
  267. package/dist/services/aabb/PolylineUpdater.d.ts.map +0 -1
  268. package/dist/services/aabb/RectUpdater.d.ts +0 -9
  269. package/dist/services/aabb/RectUpdater.d.ts.map +0 -1
  270. package/dist/services/aabb/TextUpdater.d.ts +0 -22
  271. package/dist/services/aabb/TextUpdater.d.ts.map +0 -1
  272. package/dist/services/aabb/index.d.ts +0 -9
  273. package/dist/services/aabb/index.d.ts.map +0 -1
  274. package/dist/services/aabb/interfaces.d.ts +0 -16
  275. package/dist/services/aabb/interfaces.d.ts.map +0 -1
  276. package/dist/services/index.d.ts +0 -11
  277. package/dist/services/index.d.ts.map +0 -1
  278. package/dist/shapes/AABB.d.ts +0 -36
  279. package/dist/shapes/AABB.d.ts.map +0 -1
  280. package/dist/shapes/BoundingSphere.d.ts +0 -9
  281. package/dist/shapes/BoundingSphere.d.ts.map +0 -1
  282. package/dist/shapes/Frustum.d.ts +0 -17
  283. package/dist/shapes/Frustum.d.ts.map +0 -1
  284. package/dist/shapes/Plane.d.ts +0 -15
  285. package/dist/shapes/Plane.d.ts.map +0 -1
  286. package/dist/shapes/Point.d.ts +0 -12
  287. package/dist/shapes/Point.d.ts.map +0 -1
  288. package/dist/shapes/Ray.d.ts +0 -25
  289. package/dist/shapes/Ray.d.ts.map +0 -1
  290. package/dist/shapes/Rectangle.d.ts +0 -13
  291. package/dist/shapes/Rectangle.d.ts.map +0 -1
  292. package/dist/shapes/index.d.ts +0 -8
  293. package/dist/shapes/index.d.ts.map +0 -1
  294. package/dist/types.d.ts +0 -308
  295. package/dist/types.d.ts.map +0 -1
  296. package/dist/utils/animation.d.ts +0 -16
  297. package/dist/utils/animation.d.ts.map +0 -1
  298. package/dist/utils/assert.d.ts +0 -10
  299. package/dist/utils/assert.d.ts.map +0 -1
  300. package/dist/utils/bezier-easing.d.ts +0 -21
  301. package/dist/utils/bezier-easing.d.ts.map +0 -1
  302. package/dist/utils/canvas.d.ts +0 -7
  303. package/dist/utils/canvas.d.ts.map +0 -1
  304. package/dist/utils/custom-easing.d.ts +0 -16
  305. package/dist/utils/custom-easing.d.ts.map +0 -1
  306. package/dist/utils/deferred.d.ts +0 -44
  307. package/dist/utils/deferred.d.ts.map +0 -1
  308. package/dist/utils/dom.d.ts +0 -6
  309. package/dist/utils/dom.d.ts.map +0 -1
  310. package/dist/utils/event.d.ts +0 -36
  311. package/dist/utils/event.d.ts.map +0 -1
  312. package/dist/utils/gradient.d.ts +0 -106
  313. package/dist/utils/gradient.d.ts.map +0 -1
  314. package/dist/utils/index.d.ts +0 -15
  315. package/dist/utils/index.d.ts.map +0 -1
  316. package/dist/utils/interpolation.d.ts +0 -4
  317. package/dist/utils/interpolation.d.ts.map +0 -1
  318. package/dist/utils/math.d.ts +0 -30
  319. package/dist/utils/math.d.ts.map +0 -1
  320. package/dist/utils/path.d.ts +0 -22
  321. package/dist/utils/path.d.ts.map +0 -1
  322. package/dist/utils/pointer-events.d.ts +0 -3
  323. package/dist/utils/pointer-events.d.ts.map +0 -1
  324. package/dist/utils/string.d.ts +0 -6
  325. package/dist/utils/string.d.ts.map +0 -1
  326. package/dist/utils/tapable/AsyncParallelHook.d.ts +0 -6
  327. package/dist/utils/tapable/AsyncParallelHook.d.ts.map +0 -1
  328. package/dist/utils/tapable/AsyncSeriesWaterfallHook.d.ts +0 -6
  329. package/dist/utils/tapable/AsyncSeriesWaterfallHook.d.ts.map +0 -1
  330. package/dist/utils/tapable/Hook.d.ts +0 -52
  331. package/dist/utils/tapable/Hook.d.ts.map +0 -1
  332. package/dist/utils/tapable/HookCodeFactory.d.ts +0 -47
  333. package/dist/utils/tapable/HookCodeFactory.d.ts.map +0 -1
  334. package/dist/utils/tapable/SyncHook.d.ts +0 -6
  335. package/dist/utils/tapable/SyncHook.d.ts.map +0 -1
  336. package/dist/utils/tapable/SyncWaterfallHook.d.ts +0 -6
  337. package/dist/utils/tapable/SyncWaterfallHook.d.ts.map +0 -1
  338. package/dist/utils/tapable/index.d.ts +0 -5
  339. package/dist/utils/tapable/index.d.ts.map +0 -1
  340. package/dist/utils/text.d.ts +0 -3
  341. package/dist/utils/text.d.ts.map +0 -1
@@ -1,213 +0,0 @@
1
- import type { CSSNumericSumValue, UnitMap } from './CSSNumericSumValue';
2
- import { CSSStyleValue, CSSStyleValueType } from './CSSStyleValue';
3
- import { Nested, ParenLess, UnitType } from './types';
4
- export declare type CSSNumberish = number | CSSNumericValue;
5
- declare type CSSNumericBaseType = 'length' | 'angle' | 'time' | 'frequency' | 'resolution' | 'flex' | 'percent';
6
- interface CSSNumericType {
7
- length: number;
8
- angle: number;
9
- time: number;
10
- frequency: number;
11
- resolution: number;
12
- flex: number;
13
- percent: number;
14
- percentHint: CSSNumericBaseType;
15
- }
16
- export declare enum BaseType {
17
- kLength = 0,
18
- kAngle = 1,
19
- kTime = 2,
20
- kFrequency = 3,
21
- kResolution = 4,
22
- kFlex = 5,
23
- kPercent = 6,
24
- kNumBaseTypes = 7
25
- }
26
- export declare function unitTypeToBaseType(unit: UnitType): BaseType.kLength | BaseType.kAngle | BaseType.kTime | BaseType.kPercent;
27
- export declare function baseTypeToString(baseType: BaseType): "length" | "angle" | "time" | "frequency" | "resolution" | "flex" | "percent" | "";
28
- export declare class CSSNumericValueType {
29
- private exponents;
30
- private numNonZeroEntries;
31
- percentHint: BaseType;
32
- hasPercentHint: boolean;
33
- constructor(unit?: UnitType, exponent?: number);
34
- applyPercentHint(hint: BaseType): void;
35
- hasNonZeroEntries(): boolean;
36
- isOnlyNonZeroEntry(baseType: BaseType, value: number): boolean;
37
- exponent(type: BaseType): number;
38
- setExponent(type: BaseType, newValue: number): void;
39
- static negateExponents(type: CSSNumericValueType): CSSNumericValueType;
40
- matchesBaseType(baseType: BaseType): boolean;
41
- matchesPercentage(): boolean;
42
- matchesBaseTypePercentage(baseType: BaseType): boolean;
43
- matchesNumber(): boolean;
44
- matchesNumberPercentage(): boolean;
45
- static add(type1: CSSNumericValueType, type2: CSSNumericValueType, error: boolean): CSSNumericValueType;
46
- static multiply(type1: CSSNumericValueType, type2: CSSNumericValueType, error: boolean): CSSNumericValueType;
47
- }
48
- /**
49
- * CSSNumericValue is the base class for numeric and length typed CSS Values.
50
- * @see https://drafts.css-houdini.org/css-typed-om/#numeric-objects
51
- * @see https://developer.mozilla.org/en-US/docs/Web/API/CSSNumericValue
52
- * @see https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/blink/renderer/core/css/cssom/css_numeric_value.idl
53
- */
54
- export declare abstract class CSSNumericValue extends CSSStyleValue {
55
- type_: CSSNumericValueType;
56
- /**
57
- * @see https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/blink/renderer/core/css/cssom/css_numeric_value.cc#296
58
- */
59
- static fromNumberish(value: CSSNumberish): CSSNumericValue;
60
- static fromPercentish(value: CSSNumberish): CSSNumericValue;
61
- constructor(type_: CSSNumericValueType);
62
- getType(): CSSStyleValueType;
63
- /**
64
- * @see https://developer.mozilla.org/en-US/docs/Web/API/CSSNumericValue/equals
65
- */
66
- equals(...numberishes: CSSNumberish[]): any;
67
- /**
68
- * @see https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/blink/renderer/core/css/cssom/css_numeric_value.cc#439
69
- */
70
- add(...numberishes: CSSNumberish[]): CSSNumericValue;
71
- /**
72
- * @see https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/blink/renderer/core/css/cssom/css_numeric_value.cc#452
73
- */
74
- sub(...numberishes: CSSNumberish[]): CSSNumericValue;
75
- /**
76
- * @see https://developer.mozilla.org/en-US/docs/Web/API/CSSNumericValue/mul
77
- */
78
- mul(...numberishes: CSSNumberish[]): CSSNumericValue;
79
- /**
80
- * eg. calc(24px / 4%)
81
- * @see https://developer.mozilla.org/en-US/docs/Web/API/CSSNumericValue/div
82
- */
83
- div(...numberishes: CSSNumberish[]): CSSNumericValue;
84
- min(...numberishes: CSSNumberish[]): CSSNumericValue;
85
- max(...numberishes: CSSNumberish[]): CSSNumericValue;
86
- /**
87
- * @see https://developer.mozilla.org/en-US/docs/Web/API/CSSNumericValue/to
88
- * @see https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/blink/renderer/core/css/cssom/css_numeric_value.cc#331
89
- */
90
- to(unitOrName: UnitType | string): CSSUnitValue;
91
- /**
92
- * converts the object's value to a CSSMathSum object to values of the specified unit.
93
- * @see https://developer.mozilla.org/en-US/docs/Web/API/CSSNumericValue/toSum
94
- */
95
- toSum(...unit_strings: string[]): CSSMathSum;
96
- /**
97
- * @see https://developer.mozilla.org/en-US/docs/Web/API/CSSNumericValue/type
98
- * @see https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/blink/renderer/core/css/cssom/css_numeric_value.cc#414
99
- */
100
- type(): CSSNumericType;
101
- static isValidUnit(unit: UnitType): boolean;
102
- abstract sumValue(): CSSNumericSumValue;
103
- negate(): CSSNumericValue;
104
- invert(): CSSNumericValue;
105
- }
106
- /**
107
- * Represents numeric values that can be expressed as a single number plus a
108
- * unit (or a naked number or percentage).
109
- * @see https://drafts.css-houdini.org/css-typed-om/#cssunitvalue
110
- */
111
- export declare class CSSUnitValue extends CSSNumericValue {
112
- static toCanonicalUnit(unit: UnitType): UnitType.kUnknown | UnitType.kNumber | UnitType.kPercentage | UnitType.kPixels | UnitType.kDegrees | UnitType.kSeconds;
113
- static toCanonicalUnitIfPossible(unit: UnitType): UnitType;
114
- static formatInfinityOrNaN(number: number, suffix?: string): string;
115
- static formatNumber(number: number, suffix?: string): string;
116
- unit: UnitType;
117
- value: number;
118
- constructor(value: number, unitOrName?: UnitType | string);
119
- clone(): CSSUnitValue;
120
- convertTo(target_unit: UnitType): CSSUnitValue;
121
- equals(other: CSSNumericValue): boolean;
122
- getType(): CSSStyleValueType;
123
- sumValue(): CSSNumericSumValue;
124
- negate(): CSSUnitValue;
125
- invert(): CSSUnitValue | CSSMathInvert;
126
- buildCSSText(n: Nested, p: ParenLess, result: string): string;
127
- }
128
- /**
129
- * The CSSMathValue interface of the CSS_Object_Model a base class for classes representing complex numeric values.
130
- *
131
- * @see https://developer.mozilla.org/en-US/docs/Web/API/CSSMathValue
132
- * @see https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/blink/renderer/core/css/cssom/css_math_value.idl
133
- */
134
- export declare abstract class CSSMathValue extends CSSNumericValue {
135
- abstract operator: string;
136
- isUnitValue(): boolean;
137
- }
138
- export declare class CSSMathInvert extends CSSMathValue {
139
- private value;
140
- static create(value: CSSNumericValue): CSSMathInvert;
141
- constructor(value: CSSNumericValue, type: CSSNumericValueType);
142
- operator: string;
143
- clone(): CSSMathInvert;
144
- getType(): CSSStyleValueType;
145
- equals(other: CSSNumericValue): any;
146
- sumValue(): CSSNumericSumValue;
147
- buildCSSText(nested: Nested, paren_less: ParenLess, result: string): string;
148
- }
149
- export declare class CSSMathNegate extends CSSMathValue {
150
- value: CSSNumericValue;
151
- static create(value: CSSNumericValue): CSSMathNegate;
152
- constructor(value: CSSNumericValue, type: CSSNumericValueType);
153
- operator: string;
154
- clone(): CSSMathNegate;
155
- getType(): CSSStyleValueType;
156
- equals(other: CSSNumericValue): any;
157
- sumValue(): CSSNumericSumValue;
158
- buildCSSText(nested: Nested, paren_less: ParenLess, result: string): string;
159
- }
160
- export declare function typeCheck(values: CSSNumericValue[], op: Function, error: boolean): CSSNumericValueType;
161
- export declare abstract class CSSMathVariadic extends CSSMathValue {
162
- values: CSSNumericValue[];
163
- constructor(values: CSSNumericValue[], type: CSSNumericValueType);
164
- numericValues(): CSSNumericValue[];
165
- equals(other: CSSNumericValue): boolean;
166
- }
167
- export declare class CSSMathMin extends CSSMathVariadic {
168
- static create(values: CSSNumericValue[]): CSSMathMin;
169
- operator: string;
170
- clone(): CSSMathMin;
171
- getType(): CSSStyleValueType;
172
- sumValue(): CSSNumericSumValue;
173
- buildCSSText(nested: Nested, paren_less: ParenLess, result: string): string;
174
- }
175
- export declare class CSSMathMax extends CSSMathVariadic {
176
- static create(values: CSSNumericValue[]): CSSMathMax;
177
- operator: string;
178
- clone(): CSSMathMax;
179
- getType(): CSSStyleValueType;
180
- sumValue(): CSSNumericSumValue;
181
- buildCSSText(nested: Nested, paren_less: ParenLess, result: string): string;
182
- }
183
- /**
184
- * Represents the sum of one or more CSSNumericValues.
185
- * @see https://drafts.css-houdini.org/css-typed-om/#cssmathsum
186
- */
187
- export declare class CSSMathSum extends CSSMathVariadic {
188
- static create(values: CSSNumericValue[]): CSSMathSum;
189
- static numericTypeFromUnitMap(units: UnitMap): CSSNumericValueType;
190
- static canCreateNumericTypeFromSumValue(sum: CSSNumericSumValue): boolean;
191
- operator: string;
192
- clone(): CSSMathSum;
193
- getType(): CSSStyleValueType;
194
- sumValue(): CSSNumericSumValue;
195
- buildCSSText(nested: Nested, paren_less: ParenLess, result: string): string;
196
- }
197
- /**
198
- * Represents the product of one or more CSSNumericValues.
199
- * @see https://drafts.css-houdini.org/css-typed-om/#cssmathproduct
200
- */
201
- export declare class CSSMathProduct extends CSSMathVariadic {
202
- static create(values: CSSNumericValue[]): CSSMathProduct;
203
- static multiplyUnitMaps(a: UnitMap, b: UnitMap): UnitMap;
204
- operator: string;
205
- clone(): CSSMathProduct;
206
- getType(): CSSStyleValueType;
207
- sumValue(): CSSNumericSumValue;
208
- buildCSSText(nested: Nested, paren_less: ParenLess, result: string): string;
209
- }
210
- export declare const Opx: CSSUnitValue;
211
- export declare const Odeg: CSSUnitValue;
212
- export {};
213
- //# sourceMappingURL=CSSNumericValue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CSSNumericValue.d.ts","sourceRoot":"","sources":["../src/css/cssom/CSSNumericValue.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAQ,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEtD,oBAAY,YAAY,GAAG,MAAM,GAAG,eAAe,CAAC;AAEpD,aAAK,kBAAkB,GACnB,QAAQ,GACR,OAAO,GACP,MAAM,GACN,WAAW,GACX,YAAY,GACZ,MAAM,GACN,SAAS,CAAC;AAGd,UAA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EAAE,OAAO,GAAG,mBAAmB;IAYlE,MAAM,CAAC,gCAAgC,CAAC,GAAG,EAAE,kBAAkB,GAAG,OAAO;IAYzE,QAAQ,SAAS;IAEjB,KAAK;IAIL,OAAO;IAQP,QAAQ,IAAI,kBAAkB;IAwB9B,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM;CAyB5E;AAED;;;GAGG;AACH,qBAAa,cAAe,SAAQ,eAAe;IACjD,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,EAAE;IAMvC,MAAM,CAAC,gBAAgB,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO;IAaxD,QAAQ,SAAa;IAErB,KAAK;IAIL,OAAO;IAQP,QAAQ,IAAI,kBAAkB;IA6B9B,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM;CAyB5E;AAED,eAAO,MAAM,GAAG,EAAE,YAAwC,CAAC;AAC3D,eAAO,MAAM,IAAI,EAAE,YAAyC,CAAC"}
@@ -1,26 +0,0 @@
1
- import { CSSColorValue } from './CSSColorValue';
2
- import type { CSSColorRGBComp, CSSColorPercent } from './CSSColorValue';
3
- import type { Nested, ParenLess } from './types';
4
- /**
5
- * The CSSRGB class represents the CSS rgb()/rgba() functions.
6
- *
7
- * @see https://drafts.css-houdini.org/css-typed-om-1/#cssrgb
8
- */
9
- export declare class CSSRGB extends CSSColorValue {
10
- r: CSSColorRGBComp;
11
- g: CSSColorRGBComp;
12
- b: CSSColorRGBComp;
13
- alpha: CSSColorPercent;
14
- /**
15
- * 'transparent' & 'none' has the same rgba data
16
- */
17
- isNone: boolean;
18
- constructor(r: CSSColorRGBComp, g: CSSColorRGBComp, b: CSSColorRGBComp, alpha?: CSSColorPercent,
19
- /**
20
- * 'transparent' & 'none' has the same rgba data
21
- */
22
- isNone?: boolean);
23
- clone(): CSSRGB;
24
- buildCSSText(n: Nested, p: ParenLess, result: string): string;
25
- }
26
- //# sourceMappingURL=CSSRGB.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CSSRGB.d.ts","sourceRoot":"","sources":["../src/css/cssom/CSSRGB.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEjD;;;;GAIG;AACH,qBAAa,MAAO,SAAQ,aAAa;IAE9B,CAAC,EAAE,eAAe;IAClB,CAAC,EAAE,eAAe;IAClB,CAAC,EAAE,eAAe;IAClB,KAAK,EAAE,eAAe;IAC7B;;OAEG;IACI,MAAM;gBAPN,CAAC,EAAE,eAAe,EAClB,CAAC,EAAE,eAAe,EAClB,CAAC,EAAE,eAAe,EAClB,KAAK,GAAE,eAAmB;IACjC;;OAEG;IACI,MAAM,UAAQ;IAKvB,KAAK;IAIL,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM;CAG9D"}
@@ -1,49 +0,0 @@
1
- import { Nested, ParenLess, UnitCategory, UnitType } from './types';
2
- export declare enum CSSStyleValueType {
3
- kUnknownType = 0,
4
- kUnparsedType = 1,
5
- kKeywordType = 2,
6
- kUnitType = 3,
7
- kSumType = 4,
8
- kProductType = 5,
9
- kNegateType = 6,
10
- kInvertType = 7,
11
- kMinType = 8,
12
- kMaxType = 9,
13
- kClampType = 10,
14
- kTransformType = 11,
15
- kPositionType = 12,
16
- kURLImageType = 13,
17
- kColorType = 14,
18
- kUnsupportedColorType = 15
19
- }
20
- /**
21
- * CSSStyleValue is the base class for all CSS values accessible from Typed OM.
22
- * Values that are not yet supported as specific types are also returned as base CSSStyleValues.
23
- *
24
- * Spec @see https://drafts.css-houdini.org/css-typed-om/#stylevalue-objects
25
- * Docs @see https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleValue
26
- */
27
- export declare abstract class CSSStyleValue {
28
- static parse(propertyName: string, value: string): CSSStyleValue;
29
- static parseAll(propertyName: string, value: string): CSSStyleValue[];
30
- static unitFromName(name: string): UnitType;
31
- static unitTypeToUnitCategory(type: UnitType): UnitCategory;
32
- static unitTypeToString(type: UnitType): "em" | "px" | "deg" | "rad" | "grad" | "ms" | "s" | "rem" | "turn" | "%" | "";
33
- static stringToUnitType(name: string): UnitType;
34
- static canonicalUnitTypeForCategory(category: UnitCategory): UnitType.kUnknown | UnitType.kNumber | UnitType.kPercentage | UnitType.kPixels | UnitType.kDegrees | UnitType.kSeconds;
35
- /**
36
- * @see https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/blink/renderer/core/css/css_primitive_value.cc#353
37
- */
38
- static conversionToCanonicalUnitsScaleFactor(unit_type: UnitType): number;
39
- static isAngle(unit: UnitType): boolean;
40
- static isLength(type: UnitType): boolean;
41
- static isRelativeUnit(type: UnitType): boolean;
42
- static isTime(unit: UnitType): boolean;
43
- protected abstract getType(): CSSStyleValueType;
44
- abstract buildCSSText(n: Nested, p: ParenLess, result: string): string;
45
- abstract clone(): CSSStyleValue;
46
- toString(): string;
47
- isNumericValue(): boolean;
48
- }
49
- //# sourceMappingURL=CSSStyleValue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CSSStyleValue.d.ts","sourceRoot":"","sources":["../src/css/cssom/CSSStyleValue.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAkOpE,oBAAY,iBAAiB;IAC3B,YAAY,IAAA;IACZ,aAAa,IAAA;IACb,YAAY,IAAA;IAEZ,SAAS,IAAA;IACT,QAAQ,IAAA;IACR,YAAY,IAAA;IACZ,WAA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
3
- * @see https://developer.mozilla.org/en-US/docs/Web/API/CSS_Typed_OM_API/Guide
4
- * @see https://github.dev/WebKit/WebKit/blob/main/Source/WebCore/css
5
- *
6
- * add CSSProperty API:
7
- * @see https://codereview.chromium.org/2735093005
8
- */
9
- export * from './types';
10
- export * from './CSSColorValue';
11
- export * from './CSSKeywordValue';
12
- export * from './CSSMathOperator';
13
- export * from './CSSNumericSumValue';
14
- export * from './CSSNumericValue';
15
- export * from './CSSRGB';
16
- export * from './CSSGradientValue';
17
- export * from './CSSStyleValue';
18
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/css/cssom/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"}
@@ -1,39 +0,0 @@
1
- export declare enum UnitType {
2
- kUnknown = 0,
3
- kNumber = 1,
4
- kPercentage = 2,
5
- kEms = 3,
6
- kPixels = 4,
7
- kRems = 5,
8
- kDegrees = 6,
9
- kRadians = 7,
10
- kGradians = 8,
11
- kTurns = 9,
12
- kMilliseconds = 10,
13
- kSeconds = 11,
14
- kInteger = 12
15
- }
16
- export declare enum UnitCategory {
17
- kUNumber = 0,
18
- kUPercent = 1,
19
- kULength = 2,
20
- kUAngle = 3,
21
- kUTime = 4,
22
- kUOther = 5
23
- }
24
- export declare enum ValueRange {
25
- kAll = 0,
26
- kNonNegative = 1,
27
- kInteger = 2,
28
- kNonNegativeInteger = 3,
29
- kPositiveInteger = 4
30
- }
31
- export declare enum Nested {
32
- kYes = 0,
33
- kNo = 1
34
- }
35
- export declare enum ParenLess {
36
- kYes = 0,
37
- kNo = 1
38
- }
39
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/css/cssom/types.ts"],"names":[],"mappings":"AAEA,oBAAY,QAAQ;IAClB,QAAQ,IAAA;IACR,OAAO,IAAA;IACP,WAAW,IAAA;IAEX,IAAI,IAAA;IAEJ,OAAO,IAAA;IA2CP,KAAK,IAAA;IAIL,QAAQ,IAAA;IACR,QAAQ,IAAA;IACR,SAAS,IAAA;IACT,MAAM,IAAA;IAEN,aAAa,KAAA;IACb,QAAQ,KAAA;IASR,QAAQ,KAAA;CAQT;AAED,oBAAY,YAAY;IACtB,QAAQ,IAAA;IACR,SAAS,IAAA;IACT,QAAQ,IAAA;IACR,OAAO,IAAA;IACP,MAAM,IAAA;IAGN,OAAO,IAAA;CACR;AAED,oBAAY,UAAU;IACpB,IAAI,IAAA;IACJ,YAAY,IAAA;IACZ,QAAQ,IAAA;IACR,mBAAmB,IAAA;IACnB,gBAAgB,IAAA;CACjB;AAED,oBAAY,MAAM;IAChB,IAAI,IAAA;IACJ,GAAG,IAAA;CACJ;AACD,oBAAY,SAAS;IACnB,IAAI,IAAA;IACJ,GAAG,IAAA;CACJ"}
@@ -1,12 +0,0 @@
1
- /**
2
- * @see https://developer.mozilla.org/en-US/docs/Web/API/CSS_Object_Model
3
- */
4
- export * from './interfaces';
5
- export * from './cssom';
6
- export * from './parser';
7
- export * from './properties';
8
- export * from './layout';
9
- export * from './CSS';
10
- export * from './CSSProperty';
11
- export * from './StyleValueRegistry';
12
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/css/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC"}
@@ -1,135 +0,0 @@
1
- import { Syringe } from 'mana-syringe';
2
- import type { BaseStyleProps } from '..';
3
- import type { DisplayObject } from '../display-objects';
4
- import type { CSSStyleValue } from './cssom';
5
- import type { CSSProperty } from './CSSProperty';
6
- /**
7
- * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Content_type
8
- */
9
- export declare enum PropertySyntax {
10
- /**
11
- * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Content_type#coordinate
12
- */
13
- COORDINATE = "<coordinate>",
14
- /**
15
- * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Content_type#color
16
- */
17
- COLOR = "<color>",
18
- /**
19
- * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Content_type#paint
20
- */
21
- PAINT = "<paint>",
22
- /**
23
- * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Content_type#number
24
- */
25
- NUMBER = "<number>",
26
- /**
27
- * @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/angle
28
- */
29
- ANGLE = "<angle>",
30
- /**
31
- * <number> with range 0..1
32
- * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Content_type#opacity_value
33
- */
34
- OPACITY_VALUE = "<opacity-value>",
35
- /**
36
- * <number> with range 0..Infinity
37
- */
38
- SHADOW_BLUR = "<shadow-blur>",
39
- /**
40
- * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Content_type#length
41
- */
42
- LENGTH = "<length>",
43
- /**
44
- * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Content_type#percentage
45
- */
46
- PERCENTAGE = "<percentage>",
47
- LENGTH_PERCENTAGE = "<length> | <percentage>",
48
- LENGTH_PERCENTAGE_12 = "[<length> | <percentage>]{1,2}",
49
- /**
50
- * @see https://developer.mozilla.org/en-US/docs/Web/CSS/margin#formal_syntax
51
- */
52
- LENGTH_PERCENTAGE_14 = "[<length> | <percentage>]{1,4}",
53
- /**
54
- * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Content_type#list-of-ts
55
- */
56
- LIST_OF_POINTS = "<list-of-points>",
57
- PATH = "<path>",
58
- /**
59
- * @see https://developer.mozilla.org/en-US/docs/Web/CSS/filter#formal_syntax
60
- */
61
- FILTER = "<filter>",
62
- Z_INDEX = "<z-index>",
63
- OFFSET_PATH = "<offset-path>",
64
- OFFSET_DISTANCE = "<offset-distance>",
65
- CLIP_PATH = "<clip-path>",
66
- MARKER = "<marker>",
67
- TRANSFORM = "<transform>",
68
- TRANSFORM_ORIGIN = "<transform-origin>",
69
- TEXT = "<text>",
70
- TEXT_TRANSFORM = "<text-transform>"
71
- }
72
- export interface PropertyMetadata {
73
- name: string;
74
- /**
75
- * The interpolable flag indicates whether a property can be animated smoothly.
76
- * Default to `false`.
77
- */
78
- interpolable?: boolean;
79
- /**
80
- * The property will inherit by default if no value is specified.
81
- * Default to `false`.
82
- */
83
- inherited?: boolean;
84
- /**
85
- * This property affects only one field on ComputedStyle, and can be set
86
- * directly during inheritance instead of forcing a recalc.
87
- */
88
- independent?: boolean;
89
- /**
90
- * This specifies the default value for this field.
91
- * - for keyword fields, this is the initial keyword
92
- * - for other fields, this is a string containg the C++ expression that is used to initialise the field.
93
- */
94
- defaultValue?: string | ((nodeName: string) => string);
95
- /**
96
- * The resolved value used for getComputedStyle() depends on layout for this
97
- * property, which means we may need to update layout to return the correct
98
- * value from getComputedStyle().
99
- */
100
- layoutDependent?: boolean;
101
- /**
102
- * This specifies all valid keyword values for the property.
103
- */
104
- keywords?: string[];
105
- /**
106
- * eg. strokeWidth is an alias of lineWidth
107
- */
108
- alias?: string[];
109
- /**
110
- * sort before init attributes according to this priority
111
- */
112
- parsePriority?: number;
113
- /**
114
- * eg. <color> <paint> <number>
115
- */
116
- syntax?: string;
117
- }
118
- export interface PropertyParseOptions {
119
- skipUpdateAttribute: boolean;
120
- skipParse: boolean;
121
- forceUpdateGeometry: boolean;
122
- usedAttributes: string[];
123
- }
124
- export declare const StyleValueRegistry: Syringe.DefinedToken;
125
- export interface StyleValueRegistry {
126
- recalc: (displayObject: DisplayObject) => void;
127
- registerMetadata: (metadata: PropertyMetadata) => void;
128
- unregisterMetadata: (name: string) => void;
129
- getPropertySyntax: (syntax: string) => CSSProperty<any, any>;
130
- addUnresolveProperty: (object: DisplayObject, name: string) => void;
131
- processProperties: (object: DisplayObject, attributes: BaseStyleProps, options?: Partial<PropertyParseOptions>) => void;
132
- parseProperty: (name: string, value: any, object: DisplayObject) => CSSStyleValue;
133
- computeProperty: (name: string, computed: CSSStyleValue, object: DisplayObject) => any;
134
- }
135
- //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../src/css/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AACzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD;;GAEG;AACH,oBAAY,cAAc;IACxB;;OAEG;IACH,UAAU,iBAAiB;IAC3B;;OAEG;IACH,KAAK,YAAY;IACjB;;OAEG;IACH,KAAK,YAAY;IACjB;;OAEG;IACH,MAAM,aAAa;IACnB;;OAEG;IACH,KAAK,YAAY;IACjB;;;OAGG;IACH,aAAa,oBAAoB;IACjC;;OAEG;IACH,WAAW,kBAAkB;IAC7B;;OAEG;IACH,MAAM,aAAa;IACnB;;OAEG;IACH,UAAU,iBAAiB;IAC3B,iBAAiB,4BAA4B;IAE7C,oBAAoB,mCAAmC;IACvD;;OAEG;IACH,oBAAoB,mCAAmC;IACvD;;OAEG;IACH,cAAc,qBAAqB;IACnC,IAAI,WAAW;IACf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EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC7D,oBAAoB,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAEpE,iBAAiB,EAAE,CACjB,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,cAAc,EAC1B,OAAO,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,KACpC,IAAI,CAAC;IAEV,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,aAAa,KAAK,aAAa,CAAC;IAClF,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,KAAK,GAAG,CAAC;CACxF"}
@@ -1,33 +0,0 @@
1
- import { Syringe } from 'mana-syringe';
2
- import { LayoutContext } from './LayoutContext';
3
- import type { LayoutFragment } from './LayoutFragment';
4
- import { LayoutObject } from './LayoutObject';
5
- export declare const FragmentResultFactory: Syringe.DefinedToken;
6
- export interface FragmentResultFactory {
7
- (options: FragmentResultOptions): FragmentResult;
8
- }
9
- /**
10
- * The web developer defined layout method can return either a FragmentResultOptions or a FragmentResult.
11
- */
12
- export declare const FragmentResultOptions: Syringe.DefinedToken;
13
- export interface FragmentResultOptions<T = void> {
14
- inlineSize: number;
15
- blockSize: number;
16
- autoBlockSize: number;
17
- childFragments: LayoutFragment[];
18
- data: T;
19
- }
20
- export declare const ContextNode: Syringe.DefinedToken;
21
- export declare class FragmentResult<T = void> {
22
- protected readonly _layoutContext: LayoutContext;
23
- protected readonly _node: LayoutObject;
24
- protected readonly options: FragmentResultOptions<T>;
25
- private layoutContext;
26
- readonly inlineSize: number;
27
- readonly blockSize: number;
28
- private node;
29
- childFragments: LayoutFragment[];
30
- data: T;
31
- constructor(_layoutContext: LayoutContext, _node: LayoutObject, options: FragmentResultOptions<T>);
32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a,EAC/B,KAAK,EAAE,YAAY,EACT,OAAO,EAAE,qBAAqB,CAAC,CAAC,CAAC;CAStF"}
@@ -1,24 +0,0 @@
1
- import { Syringe } from 'mana-syringe';
2
- import { LayoutContext } from './LayoutContext';
3
- import type { LayoutFragment } from './LayoutFragment';
4
- import type { LayoutObject } from './LayoutObject';
5
- import type { IntrinsicSizes, LayoutConstraints } from './types';
6
- export declare const LayoutChildrenFactory: Syringe.DefinedToken;
7
- export interface LayoutChildrenFactory {
8
- (options: LayoutChildrenOptions): LayoutChildren;
9
- }
10
- export declare const LayoutChildrenOptions: Syringe.DefinedToken;
11
- export interface LayoutChildrenOptions {
12
- node: LayoutObject;
13
- }
14
- export declare class LayoutChildren {
15
- protected readonly _layoutContext: LayoutContext;
16
- protected readonly options: LayoutChildrenOptions;
17
- node: LayoutObject;
18
- readonly styleMap: Map<string, any>;
19
- layoutContext: LayoutContext;
20
- constructor(_layoutContext: LayoutContext, options: LayoutChildrenOptions);
21
- intrinsicSizes(): Promise<IntrinsicSizes>;
22
- layoutNextFragment(constraints: LayoutConstraints): Promise<LayoutFragment>;
23
- }
24
- //# sourceMappingURL=LayoutChildren.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LayoutChildren.d.ts","sourceRoot":"","sources":["../src/css/layout/LayoutChildren.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,OAAO,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGjE,eAAO,MAAM,qBAAqB,sBAA0B,CAAC;AAE7D,MAAM,WAAW,qBAAqB;IACpC,CAAC,OAAO,EAAE,qBAAqB,GAAG,cAAc,CAAC;CAClD;AAED,eAAO,MAAM,qBAAqB,sBAA0B,CAAC;AAE7D,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,YAAY,CAAC;CACpB;AAED,qBACa,cAAc;IAMA,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,aAAa;IACxC,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,qBAAqB;IANlF,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,aAAa,EAAE,aAAa,CAAC;gBAGe,cAAc,EAAE,aAAa,EACrB,OAAO,EAAE,qBAAqB;IAOlF,cAAc,IAAI,OAAO,CAAC,cAAc,CAAC;IAazC,kBAAkB,CAAC,WAAW,EAAE,iBAAiB,GAAG,OAAO,CAAC,cAAc,CAAC;CAiB5E"}
@@ -1,35 +0,0 @@
1
- import { Syringe } from 'mana-syringe';
2
- import type { FragmentResultFactory } from './FragmentResult';
3
- import type { LayoutChildrenFactory } from './LayoutChildren';
4
- import type { LayoutFragmentFactory } from './LayoutFragment';
5
- import type { LayoutWorkTask } from './LayoutWorkTask';
6
- import type { ContextId, LayoutTaskType } from './types';
7
- export declare const LayoutContextFactory: Syringe.DefinedToken;
8
- export interface LayoutContextFactory {
9
- (options: {
10
- mode: LayoutTaskType;
11
- }): LayoutContext;
12
- }
13
- export declare const LayoutContextOptions: Syringe.DefinedToken;
14
- export interface LayoutContextOptions {
15
- mode: LayoutTaskType;
16
- layoutChildrenFactory: LayoutChildrenFactory;
17
- fragmentResultFactory: FragmentResultFactory;
18
- layoutFragmentFactory: LayoutFragmentFactory;
19
- }
20
- /**
21
- * 每次layout 有单独的 context
22
- */
23
- export declare class LayoutContext {
24
- protected readonly options: LayoutContextOptions;
25
- contextId: ContextId;
26
- workQueue: LayoutWorkTask[];
27
- mode: LayoutTaskType;
28
- layoutChildrenFactory: LayoutChildrenFactory;
29
- fragmentResultFactory: FragmentResultFactory;
30
- layoutFragmentFactory: LayoutFragmentFactory;
31
- constructor(options: LayoutContextOptions);
32
- appendWorkTask(work: LayoutWorkTask): void;
33
- clearWorkQueue(): void;
34
- }
35
- //# sourceMappingURL=LayoutContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LayoutContext.d.ts","sourceRoot":"","sources":["../src/css/layout/LayoutContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,OAAO,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzD,eAAO,MAAM,oBAAoB,sBAA0B,CAAC;AAE5D,MAAM,WAAW,oBAAoB;IACnC,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,cAAc,CAAA;KAAE,GAAG,aAAa,CAAC;CACpD;AAED,eAAO,MAAM,oBAAoB,sBAA0B,CAAC;AAE5D,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,cAAc,CAAC;IACrB,qBAAqB,EAAE,qBAAqB,CAAC;IAE7C,qBAAqB,EAAE,qBAAqB,CAAC;IAE7C,qBAAqB,EAAE,qBAAqB,CAAC;CAC9C;AAID;;GAEG;AACH,qBACa,aAAa;IAWkB,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,oBAAoB;IAV1F,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,cAAc,EAAE,CAAM;IACjC,IAAI,EAAE,cAAc,CAAC;IAErB,qBAAqB,EAAE,qBAAqB,CAAC;IAE7C,qBAAqB,EAAE,qBAAqB,CAAC;IAE7C,qBAAqB,EAA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