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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/dist/index.umd.min.js +30 -0
  2. package/es/AbstractRenderer.js +3 -1
  3. package/es/Canvas.d.ts +1 -4
  4. package/es/Canvas.js +5 -3
  5. package/es/DisplayObjectPool.js +3 -1
  6. package/es/camera/Camera.d.ts +105 -66
  7. package/es/camera/Camera.js +307 -171
  8. package/es/camera/Landmark.d.ts +18 -25
  9. package/es/camera/Landmark.js +1 -72
  10. package/es/canvas-module.js +2 -4
  11. package/es/components/Cullable.js +3 -1
  12. package/es/components/Geometry.js +3 -1
  13. package/es/components/Renderable.js +3 -1
  14. package/es/components/Sortable.js +3 -1
  15. package/es/components/Transform.js +3 -1
  16. package/es/css/LayoutRegistry.js +3 -1
  17. package/es/css/StyleValueRegistry.d.ts +10 -1
  18. package/es/css/StyleValueRegistry.js +28 -22
  19. package/es/css/cssom/CSSColorValue.js +3 -1
  20. package/es/css/cssom/CSSGradientValue.js +8 -6
  21. package/es/css/cssom/CSSKeywordValue.js +3 -1
  22. package/es/css/cssom/CSSMathInvert.js +3 -1
  23. package/es/css/cssom/CSSMathMax.js +3 -1
  24. package/es/css/cssom/CSSMathMin.js +3 -1
  25. package/es/css/cssom/CSSMathNegate.js +3 -1
  26. package/es/css/cssom/CSSMathProduct.js +3 -1
  27. package/es/css/cssom/CSSMathSum.js +3 -1
  28. package/es/css/cssom/CSSMathValue.js +3 -1
  29. package/es/css/cssom/CSSMathVariadic.js +3 -1
  30. package/es/css/cssom/CSSNumericValue.js +3 -1
  31. package/es/css/cssom/CSSNumericValueType.d.ts +1 -1
  32. package/es/css/cssom/CSSNumericValueType.js +3 -1
  33. package/es/css/cssom/CSSRGB.js +4 -2
  34. package/es/css/cssom/CSSStyleValue.d.ts +1 -1
  35. package/es/css/cssom/CSSStyleValue.js +3 -1
  36. package/es/css/cssom/CSSTransformComponent.js +3 -1
  37. package/es/css/cssom/CSSTransformValue.js +3 -1
  38. package/es/css/cssom/CSSTranslate.js +3 -1
  39. package/es/css/cssom/CSSUnitValue.js +4 -2
  40. package/es/css/parser/color.js +2 -2
  41. package/es/css/parser/dimension.d.ts +2 -1
  42. package/es/css/parser/dimension.js +2 -2
  43. package/es/css/parser/numeric.js +1 -1
  44. package/es/css/parser/path.d.ts +1 -1
  45. package/es/css/parser/points.js +1 -1
  46. package/es/css/parser/transform-origin.d.ts +1 -1
  47. package/es/css/parser/transform-origin.js +3 -3
  48. package/es/css/properties/CSSPropertyAnchor.d.ts +4 -2
  49. package/es/css/properties/CSSPropertyAnchor.js +5 -2
  50. package/es/css/properties/CSSPropertyClipPath.d.ts +2 -1
  51. package/es/css/properties/CSSPropertyClipPath.js +4 -2
  52. package/es/css/properties/CSSPropertyColor.d.ts +3 -2
  53. package/es/css/properties/CSSPropertyColor.js +4 -2
  54. package/es/css/properties/CSSPropertyFilter.d.ts +3 -2
  55. package/es/css/properties/CSSPropertyFilter.js +4 -2
  56. package/es/css/properties/CSSPropertyLengthOrPercentage.d.ts +4 -2
  57. package/es/css/properties/CSSPropertyLengthOrPercentage.js +5 -2
  58. package/es/css/properties/CSSPropertyLineDash.d.ts +4 -2
  59. package/es/css/properties/CSSPropertyLineDash.js +4 -2
  60. package/es/css/properties/CSSPropertyLocalPosition.d.ts +4 -2
  61. package/es/css/properties/CSSPropertyLocalPosition.js +4 -2
  62. package/es/css/properties/CSSPropertyOffsetDistance.d.ts +4 -2
  63. package/es/css/properties/CSSPropertyOffsetDistance.js +5 -2
  64. package/es/css/properties/CSSPropertyOffsetPath.d.ts +2 -1
  65. package/es/css/properties/CSSPropertyOffsetPath.js +3 -1
  66. package/es/css/properties/CSSPropertyOpacity.d.ts +3 -2
  67. package/es/css/properties/CSSPropertyOpacity.js +4 -2
  68. package/es/css/properties/CSSPropertyPath.d.ts +3 -2
  69. package/es/css/properties/CSSPropertyPath.js +6 -2
  70. package/es/css/properties/CSSPropertyPoints.d.ts +3 -2
  71. package/es/css/properties/CSSPropertyPoints.js +4 -2
  72. package/es/css/properties/CSSPropertyShadowBlur.d.ts +1 -1
  73. package/es/css/properties/CSSPropertyShadowBlur.js +4 -2
  74. package/es/css/properties/CSSPropertyText.d.ts +3 -2
  75. package/es/css/properties/CSSPropertyText.js +5 -3
  76. package/es/css/properties/CSSPropertyTextTransform.d.ts +2 -1
  77. package/es/css/properties/CSSPropertyTextTransform.js +4 -2
  78. package/es/css/properties/CSSPropertyTransform.d.ts +3 -2
  79. package/es/css/properties/CSSPropertyTransform.js +5 -3
  80. package/es/css/properties/CSSPropertyTransformOrigin.d.ts +3 -2
  81. package/es/css/properties/CSSPropertyTransformOrigin.js +4 -2
  82. package/es/css/properties/CSSPropertyVisibility.d.ts +3 -1
  83. package/es/css/properties/CSSPropertyVisibility.js +3 -1
  84. package/es/css/properties/CSSPropertyZIndex.d.ts +4 -2
  85. package/es/css/properties/CSSPropertyZIndex.js +4 -2
  86. package/es/display-objects/Circle.js +3 -1
  87. package/es/display-objects/CustomElement.js +3 -1
  88. package/es/display-objects/DisplayObject.js +7 -4
  89. package/es/display-objects/Ellipse.js +3 -1
  90. package/es/display-objects/Group.js +3 -1
  91. package/es/display-objects/HTML.js +6 -3
  92. package/es/display-objects/Image.js +3 -1
  93. package/es/display-objects/Line.js +3 -1
  94. package/es/display-objects/Path.js +5 -3
  95. package/es/display-objects/Polygon.js +3 -1
  96. package/es/display-objects/Polyline.js +3 -1
  97. package/es/display-objects/Rect.js +3 -1
  98. package/es/display-objects/Text.js +6 -3
  99. package/es/dom/Animation.js +4 -2
  100. package/es/dom/AnimationEffectTiming.js +3 -1
  101. package/es/dom/AnimationEvent.js +3 -1
  102. package/es/dom/AnimationTimeline.js +3 -1
  103. package/es/dom/CustomElementRegistry.js +3 -1
  104. package/es/dom/CustomEvent.js +3 -1
  105. package/es/dom/Document.js +3 -1
  106. package/es/dom/Element.js +8 -6
  107. package/es/dom/EventTarget.js +6 -4
  108. package/es/dom/FederatedEvent.js +3 -1
  109. package/es/dom/FederatedMouseEvent.js +3 -1
  110. package/es/dom/FederatedPointerEvent.js +3 -1
  111. package/es/dom/FederatedTouchEvent.d.ts +13 -0
  112. package/es/dom/FederatedTouchEvent.js +19 -0
  113. package/es/dom/FederatedWheelEvent.js +3 -1
  114. package/es/dom/KeyframeEffect.js +3 -1
  115. package/es/dom/KeyframeList.js +1 -1
  116. package/es/dom/MutationEvent.d.ts +1 -1
  117. package/es/dom/MutationEvent.js +3 -1
  118. package/es/dom/MutationObserver.d.ts +2 -1
  119. package/es/dom/MutationObserver.js +11 -4
  120. package/es/dom/MutationRecord.d.ts +1 -1
  121. package/es/dom/MutationRecord.js +3 -1
  122. package/es/dom/Node.js +5 -3
  123. package/es/dom/interfaces.d.ts +2 -1
  124. package/es/plugins/CullingPlugin.js +3 -1
  125. package/es/plugins/DirtyCheckPlugin.js +3 -1
  126. package/es/plugins/EventPlugin.js +4 -2
  127. package/es/plugins/FrustumCullingStrategy.js +3 -1
  128. package/es/plugins/PrepareRendererPlugin.d.ts +1 -1
  129. package/es/plugins/PrepareRendererPlugin.js +3 -1
  130. package/es/services/EventService.js +5 -3
  131. package/es/services/OffscreenCanvasCreator.js +3 -1
  132. package/es/services/RenderingService.d.ts +2 -2
  133. package/es/services/RenderingService.js +3 -1
  134. package/es/services/SceneGraphSelector.js +3 -1
  135. package/es/services/SceneGraphService.js +4 -2
  136. package/es/services/TextService.d.ts +2 -2
  137. package/es/services/TextService.js +7 -4
  138. package/es/services/aabb/CircleUpdater.js +3 -1
  139. package/es/services/aabb/EllipseUpdater.js +3 -1
  140. package/es/services/aabb/LineUpdater.js +3 -1
  141. package/es/services/aabb/PathUpdater.js +3 -1
  142. package/es/services/aabb/PolylineUpdater.js +3 -1
  143. package/es/services/aabb/RectUpdater.js +4 -2
  144. package/es/services/aabb/TextUpdater.d.ts +1 -2
  145. package/es/services/aabb/TextUpdater.js +3 -1
  146. package/es/shapes/AABB.js +3 -1
  147. package/es/shapes/BoundingSphere.js +3 -1
  148. package/es/shapes/Frustum.js +3 -1
  149. package/es/shapes/Plane.js +3 -1
  150. package/es/shapes/Point.js +3 -1
  151. package/es/shapes/Ray.js +3 -1
  152. package/es/shapes/Rectangle.js +3 -1
  153. package/es/types.d.ts +4 -0
  154. package/es/utils/custom-easing.js +1 -1
  155. package/es/utils/math.d.ts +1 -2
  156. package/es/utils/math.js +11 -6
  157. package/es/utils/path.d.ts +2 -2
  158. package/es/utils/path.js +3 -3
  159. package/es/utils/text.js +4 -4
  160. package/lib/AbstractRenderer.js +3 -1
  161. package/lib/Canvas.d.ts +1 -4
  162. package/lib/Canvas.js +5 -3
  163. package/lib/DisplayObjectPool.js +3 -1
  164. package/lib/camera/Camera.d.ts +105 -66
  165. package/lib/camera/Camera.js +314 -179
  166. package/lib/camera/Landmark.d.ts +18 -25
  167. package/lib/camera/Landmark.js +1 -75
  168. package/lib/canvas-module.js +1 -3
  169. package/lib/components/Cullable.js +4 -2
  170. package/lib/components/Geometry.js +3 -1
  171. package/lib/components/Renderable.js +3 -1
  172. package/lib/components/Sortable.js +3 -1
  173. package/lib/components/Transform.js +3 -1
  174. package/lib/css/LayoutRegistry.js +3 -1
  175. package/lib/css/StyleValueRegistry.d.ts +10 -1
  176. package/lib/css/StyleValueRegistry.js +38 -27
  177. package/lib/css/cssom/CSSColorValue.js +3 -1
  178. package/lib/css/cssom/CSSGradientValue.js +9 -7
  179. package/lib/css/cssom/CSSKeywordValue.js +3 -1
  180. package/lib/css/cssom/CSSMathInvert.js +3 -1
  181. package/lib/css/cssom/CSSMathMax.js +3 -1
  182. package/lib/css/cssom/CSSMathMin.js +3 -1
  183. package/lib/css/cssom/CSSMathNegate.js +3 -1
  184. package/lib/css/cssom/CSSMathOperator.js +1 -1
  185. package/lib/css/cssom/CSSMathProduct.js +3 -1
  186. package/lib/css/cssom/CSSMathSum.js +3 -1
  187. package/lib/css/cssom/CSSMathValue.js +3 -1
  188. package/lib/css/cssom/CSSMathVariadic.js +4 -2
  189. package/lib/css/cssom/CSSNumericValue.js +3 -1
  190. package/lib/css/cssom/CSSNumericValueType.d.ts +1 -1
  191. package/lib/css/cssom/CSSNumericValueType.js +5 -3
  192. package/lib/css/cssom/CSSRGB.js +4 -2
  193. package/lib/css/cssom/CSSStyleValue.d.ts +1 -1
  194. package/lib/css/cssom/CSSStyleValue.js +4 -2
  195. package/lib/css/cssom/CSSTransformComponent.js +4 -2
  196. package/lib/css/cssom/CSSTransformValue.js +3 -1
  197. package/lib/css/cssom/CSSTranslate.js +3 -1
  198. package/lib/css/cssom/CSSUnitValue.js +4 -2
  199. package/lib/css/cssom/types.js +1 -1
  200. package/lib/css/parser/color.js +7 -7
  201. package/lib/css/parser/dimension.d.ts +2 -1
  202. package/lib/css/parser/dimension.js +9 -8
  203. package/lib/css/parser/numeric.js +6 -6
  204. package/lib/css/parser/path.d.ts +1 -1
  205. package/lib/css/parser/path.js +1 -1
  206. package/lib/css/parser/points.js +2 -2
  207. package/lib/css/parser/transform-origin.d.ts +1 -1
  208. package/lib/css/parser/transform-origin.js +7 -5
  209. package/lib/css/parser/transform.js +2 -2
  210. package/lib/css/properties/CSSPropertyAnchor.d.ts +4 -2
  211. package/lib/css/properties/CSSPropertyAnchor.js +8 -4
  212. package/lib/css/properties/CSSPropertyClipPath.d.ts +2 -1
  213. package/lib/css/properties/CSSPropertyClipPath.js +5 -3
  214. package/lib/css/properties/CSSPropertyColor.d.ts +3 -2
  215. package/lib/css/properties/CSSPropertyColor.js +6 -4
  216. package/lib/css/properties/CSSPropertyFilter.d.ts +3 -2
  217. package/lib/css/properties/CSSPropertyFilter.js +5 -3
  218. package/lib/css/properties/CSSPropertyLengthOrPercentage.d.ts +4 -2
  219. package/lib/css/properties/CSSPropertyLengthOrPercentage.js +14 -10
  220. package/lib/css/properties/CSSPropertyLineDash.d.ts +4 -2
  221. package/lib/css/properties/CSSPropertyLineDash.js +6 -4
  222. package/lib/css/properties/CSSPropertyLocalPosition.d.ts +4 -2
  223. package/lib/css/properties/CSSPropertyLocalPosition.js +6 -4
  224. package/lib/css/properties/CSSPropertyOffsetDistance.d.ts +4 -2
  225. package/lib/css/properties/CSSPropertyOffsetDistance.js +9 -5
  226. package/lib/css/properties/CSSPropertyOffsetPath.d.ts +2 -1
  227. package/lib/css/properties/CSSPropertyOffsetPath.js +3 -1
  228. package/lib/css/properties/CSSPropertyOpacity.d.ts +3 -2
  229. package/lib/css/properties/CSSPropertyOpacity.js +6 -4
  230. package/lib/css/properties/CSSPropertyPath.d.ts +3 -2
  231. package/lib/css/properties/CSSPropertyPath.js +12 -6
  232. package/lib/css/properties/CSSPropertyPoints.d.ts +3 -2
  233. package/lib/css/properties/CSSPropertyPoints.js +5 -3
  234. package/lib/css/properties/CSSPropertyShadowBlur.d.ts +1 -1
  235. package/lib/css/properties/CSSPropertyShadowBlur.js +5 -3
  236. package/lib/css/properties/CSSPropertyText.d.ts +3 -2
  237. package/lib/css/properties/CSSPropertyText.js +6 -4
  238. package/lib/css/properties/CSSPropertyTextTransform.d.ts +2 -1
  239. package/lib/css/properties/CSSPropertyTextTransform.js +8 -6
  240. package/lib/css/properties/CSSPropertyTransform.d.ts +3 -2
  241. package/lib/css/properties/CSSPropertyTransform.js +26 -24
  242. package/lib/css/properties/CSSPropertyTransformOrigin.d.ts +3 -2
  243. package/lib/css/properties/CSSPropertyTransformOrigin.js +5 -3
  244. package/lib/css/properties/CSSPropertyVisibility.d.ts +3 -1
  245. package/lib/css/properties/CSSPropertyVisibility.js +3 -1
  246. package/lib/css/properties/CSSPropertyZIndex.d.ts +4 -2
  247. package/lib/css/properties/CSSPropertyZIndex.js +5 -3
  248. package/lib/display-objects/Circle.js +3 -1
  249. package/lib/display-objects/CustomElement.js +3 -1
  250. package/lib/display-objects/DisplayObject.js +14 -11
  251. package/lib/display-objects/Ellipse.js +3 -1
  252. package/lib/display-objects/Group.js +3 -1
  253. package/lib/display-objects/HTML.js +6 -4
  254. package/lib/display-objects/Image.js +3 -1
  255. package/lib/display-objects/Line.js +3 -1
  256. package/lib/display-objects/Path.js +8 -6
  257. package/lib/display-objects/Polygon.js +3 -1
  258. package/lib/display-objects/Polyline.js +3 -1
  259. package/lib/display-objects/Rect.js +3 -1
  260. package/lib/display-objects/Text.js +6 -4
  261. package/lib/dom/Animation.js +4 -2
  262. package/lib/dom/AnimationEffectTiming.js +3 -1
  263. package/lib/dom/AnimationEvent.js +3 -1
  264. package/lib/dom/AnimationTimeline.js +4 -2
  265. package/lib/dom/CustomElementRegistry.js +3 -1
  266. package/lib/dom/CustomEvent.js +3 -1
  267. package/lib/dom/Document.js +3 -1
  268. package/lib/dom/Element.js +11 -9
  269. package/lib/dom/EventTarget.js +13 -11
  270. package/lib/dom/FederatedEvent.js +3 -1
  271. package/lib/dom/FederatedMouseEvent.js +3 -1
  272. package/lib/dom/FederatedPointerEvent.js +3 -1
  273. package/lib/dom/FederatedTouchEvent.d.ts +13 -0
  274. package/lib/dom/FederatedTouchEvent.js +27 -0
  275. package/lib/dom/FederatedWheelEvent.js +3 -1
  276. package/lib/dom/KeyframeEffect.js +4 -2
  277. package/lib/dom/KeyframeList.js +1 -1
  278. package/lib/dom/MutationEvent.d.ts +1 -1
  279. package/lib/dom/MutationEvent.js +3 -1
  280. package/lib/dom/MutationObserver.d.ts +2 -1
  281. package/lib/dom/MutationObserver.js +22 -15
  282. package/lib/dom/MutationRecord.d.ts +1 -1
  283. package/lib/dom/MutationRecord.js +3 -1
  284. package/lib/dom/Node.js +8 -6
  285. package/lib/dom/interfaces.d.ts +2 -1
  286. package/lib/index.js +1 -1
  287. package/lib/plugins/CullingPlugin.js +4 -2
  288. package/lib/plugins/DirtyCheckPlugin.js +3 -1
  289. package/lib/plugins/EventPlugin.js +26 -24
  290. package/lib/plugins/FrustumCullingStrategy.js +3 -1
  291. package/lib/plugins/PrepareRendererPlugin.d.ts +1 -1
  292. package/lib/plugins/PrepareRendererPlugin.js +3 -1
  293. package/lib/services/EventService.js +5 -3
  294. package/lib/services/OffscreenCanvasCreator.js +3 -1
  295. package/lib/services/RenderingService.d.ts +2 -2
  296. package/lib/services/RenderingService.js +3 -1
  297. package/lib/services/SceneGraphSelector.js +4 -2
  298. package/lib/services/SceneGraphService.js +7 -5
  299. package/lib/services/TextService.d.ts +2 -2
  300. package/lib/services/TextService.js +10 -6
  301. package/lib/services/aabb/CircleUpdater.js +3 -1
  302. package/lib/services/aabb/EllipseUpdater.js +3 -1
  303. package/lib/services/aabb/LineUpdater.js +3 -1
  304. package/lib/services/aabb/PathUpdater.js +3 -1
  305. package/lib/services/aabb/PolylineUpdater.js +3 -1
  306. package/lib/services/aabb/RectUpdater.js +5 -3
  307. package/lib/services/aabb/TextUpdater.d.ts +1 -2
  308. package/lib/services/aabb/TextUpdater.js +3 -1
  309. package/lib/services/aabb/index.js +10 -10
  310. package/lib/services/aabb/interfaces.js +1 -1
  311. package/lib/shapes/AABB.js +3 -1
  312. package/lib/shapes/BoundingSphere.js +3 -1
  313. package/lib/shapes/Frustum.js +4 -2
  314. package/lib/shapes/Plane.js +3 -1
  315. package/lib/shapes/Point.js +3 -1
  316. package/lib/shapes/Ray.js +3 -1
  317. package/lib/shapes/Rectangle.js +3 -1
  318. package/lib/types.d.ts +4 -0
  319. package/lib/types.js +1 -1
  320. package/lib/utils/animation.js +3 -2
  321. package/lib/utils/bezier-easing.js +1 -1
  322. package/lib/utils/custom-easing.js +2 -2
  323. package/lib/utils/math.d.ts +1 -2
  324. package/lib/utils/math.js +20 -17
  325. package/lib/utils/path.d.ts +2 -2
  326. package/lib/utils/path.js +6 -6
  327. package/lib/utils/text.js +5 -5
  328. package/package.json +7 -5
@@ -1,30 +1,23 @@
1
- import { vec3 } from 'gl-matrix';
2
- import type { Camera } from './Camera';
1
+ import type { mat4, vec3 } from 'gl-matrix';
3
2
  /**
4
3
  * 保存相机状态,便于后续在多个 Landmark 间移动
5
4
  */
6
- export declare class Landmark {
5
+ export interface Landmark {
7
6
  name: string;
8
- private matrix;
9
- private right;
10
- private up;
11
- private forward;
12
- private position;
13
- private focalPoint;
14
- private distanceVector;
15
- private distance;
16
- private dollyingStep;
17
- private azimuth;
18
- private elevation;
19
- private roll;
20
- private relAzimuth;
21
- private relElevation;
22
- private relRoll;
23
- private zoom;
24
- constructor(name: string, c: Camera);
25
- getPosition(): vec3;
26
- getFocalPoint(): vec3;
27
- getRoll(): number;
28
- getZoom(): number;
29
- retrieve(c: Camera): void;
7
+ matrix: mat4;
8
+ right: vec3;
9
+ up: vec3;
10
+ forward: vec3;
11
+ position: vec3;
12
+ focalPoint: vec3;
13
+ distanceVector: vec3;
14
+ distance: number;
15
+ dollyingStep: number;
16
+ azimuth: number;
17
+ elevation: number;
18
+ roll: number;
19
+ relAzimuth: number;
20
+ relElevation: number;
21
+ relRoll: number;
22
+ zoom: number;
30
23
  }
@@ -2,78 +2,4 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
- });
6
- exports.Landmark = void 0;
7
-
8
- var _glMatrix = require("gl-matrix");
9
-
10
- /**
11
- * 保存相机状态,便于后续在多个 Landmark 间移动
12
- */
13
- var Landmark = function () {
14
- function Landmark(name, c) {
15
- this.azimuth = 0;
16
- this.elevation = 0;
17
- this.roll = 0;
18
- this.relAzimuth = 0;
19
- this.relElevation = 0;
20
- this.relRoll = 0;
21
- this.zoom = 1;
22
- this.name = name;
23
- this.matrix = _glMatrix.mat4.clone(c.matrix);
24
- this.right = _glMatrix.vec3.clone(c.right);
25
- this.up = _glMatrix.vec3.clone(c.up);
26
- this.forward = _glMatrix.vec3.clone(c.forward);
27
- this.position = _glMatrix.vec3.clone(c.position);
28
- this.focalPoint = _glMatrix.vec3.clone(c.focalPoint);
29
- this.distanceVector = _glMatrix.vec3.clone(c.distanceVector);
30
- this.azimuth = c.azimuth;
31
- this.elevation = c.elevation;
32
- this.roll = c.roll;
33
- this.relAzimuth = c.relAzimuth;
34
- this.relElevation = c.relElevation;
35
- this.relRoll = c.relRoll;
36
- this.dollyingStep = c.dollyingStep;
37
- this.distance = c.distance;
38
- this.zoom = c.zoom;
39
- }
40
-
41
- Landmark.prototype.getPosition = function () {
42
- return this.position;
43
- };
44
-
45
- Landmark.prototype.getFocalPoint = function () {
46
- return this.focalPoint;
47
- };
48
-
49
- Landmark.prototype.getRoll = function () {
50
- return this.roll;
51
- };
52
-
53
- Landmark.prototype.getZoom = function () {
54
- return this.zoom;
55
- };
56
-
57
- Landmark.prototype.retrieve = function (c) {
58
- c.matrix = _glMatrix.mat4.copy(c.matrix, this.matrix);
59
- c.right = _glMatrix.vec3.copy(c.right, this.right);
60
- c.up = _glMatrix.vec3.copy(c.up, this.up);
61
- c.forward = _glMatrix.vec3.copy(c.forward, this.forward);
62
- c.position = _glMatrix.vec3.copy(c.position, this.position);
63
- c.focalPoint = _glMatrix.vec3.copy(c.focalPoint, this.focalPoint);
64
- c.distanceVector = _glMatrix.vec3.copy(c.distanceVector, this.distanceVector);
65
- c.azimuth = this.azimuth;
66
- c.elevation = this.elevation;
67
- c.roll = this.roll;
68
- c.relAzimuth = this.relAzimuth;
69
- c.relElevation = this.relElevation;
70
- c.relRoll = this.relRoll;
71
- c.dollyingStep = this.dollyingStep;
72
- c.distance = this.distance;
73
- c.zoom = this.zoom;
74
- };
75
-
76
- return Landmark;
77
- }();
78
-
79
- exports.Landmark = Landmark;
5
+ });
@@ -19,7 +19,6 @@ var _services = require("./services");
19
19
 
20
20
  var _EventPlugin = require("./plugins/EventPlugin");
21
21
 
22
- // import { CSSCalculatorPlugin } from './plugins/CSSStyleCalculator';
23
22
  var containerModule = (0, _manaSyringe.Module)(function (register) {
24
23
  _manaSyringe.Contribution.register(register, _services.RenderingPluginContribution, {
25
24
  cache: false
@@ -34,8 +33,7 @@ var containerModule = (0, _manaSyringe.Module)(function (register) {
34
33
  register(_services.RenderingService);
35
34
  register(_services.EventService);
36
35
  register(_EventPlugin.EventPlugin);
37
- register(_PrepareRendererPlugin.PrepareRendererPlugin); // register(CSSCalculatorPlugin);
38
-
36
+ register(_PrepareRendererPlugin.PrepareRendererPlugin);
39
37
  register(_DirtyCheckPlugin.DirtyCheckPlugin);
40
38
  register(_CullingPlugin.CullingPlugin);
41
39
  register(_FrustumCullingStrategy.FrustumCullingStrategy);
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Cullable = exports.Strategy = void 0;
6
+ exports.Strategy = exports.Cullable = void 0;
7
7
 
8
8
  /**
9
9
  * @see https://doc.babylonjs.com/how_to/optimizing_your_scene#changing-mesh-culling-strategy
@@ -15,7 +15,9 @@ exports.Strategy = Strategy;
15
15
  Strategy[Strategy["Standard"] = 0] = "Standard";
16
16
  })(Strategy || (exports.Strategy = Strategy = {}));
17
17
 
18
- var Cullable = function () {
18
+ var Cullable =
19
+ /** @class */
20
+ function () {
19
21
  function Cullable() {
20
22
  this.strategy = Strategy.Standard;
21
23
  this.visibilityPlaneMask = -1;
@@ -5,7 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Geometry = void 0;
7
7
 
8
- var Geometry = function () {
8
+ var Geometry =
9
+ /** @class */
10
+ function () {
9
11
  function Geometry() {}
10
12
 
11
13
  Geometry.tag = 'c-geometry';
@@ -5,7 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Renderable = void 0;
7
7
 
8
- var Renderable = function () {
8
+ var Renderable =
9
+ /** @class */
10
+ function () {
9
11
  function Renderable() {
10
12
  this.boundsDirty = true;
11
13
  this.renderBoundsDirty = true;
@@ -5,7 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Sortable = void 0;
7
7
 
8
- var Sortable = function () {
8
+ var Sortable =
9
+ /** @class */
10
+ function () {
9
11
  function Sortable() {
10
12
  /**
11
13
  * need to re-sort
@@ -10,7 +10,9 @@ var _glMatrix = require("gl-matrix");
10
10
  /**
11
11
  * do RTS transformation for 2D/3D
12
12
  */
13
- var Transform = function () {
13
+ var Transform =
14
+ /** @class */
15
+ function () {
14
16
  function Transform() {
15
17
  this.dirtyFlag = false;
16
18
  this.localDirtyFlag = false;
@@ -18,7 +18,9 @@ var _manaSyringe = require("mana-syringe");
18
18
  * // use with `display` property
19
19
  * group.style.display = 'layout(centering)';
20
20
  */
21
- var LayoutRegistry = function () {
21
+ var LayoutRegistry =
22
+ /** @class */
23
+ function () {
22
24
  function LayoutRegistry() {}
23
25
 
24
26
  LayoutRegistry = (0, _tslib.__decorate)([(0, _manaSyringe.singleton)()], LayoutRegistry);
@@ -1,10 +1,19 @@
1
- import type { DisplayObject, BaseStyleProps } from '..';
1
+ import type { DisplayObject } from '../display-objects';
2
+ import type { BaseStyleProps } from '../types';
2
3
  import { CSSStyleValue } from './cssom';
3
4
  export declare type CSSGlobalKeywords = 'unset' | 'initial' | 'inherit' | '';
4
5
  export interface PropertyParseOptions {
5
6
  skipUpdateAttribute: boolean;
6
7
  skipParse: boolean;
7
8
  }
9
+ export declare const PropertySyntax: {
10
+ COLOR: string;
11
+ PAINT: string;
12
+ NUMBER: string;
13
+ LENGTH: string;
14
+ PERCENTAGE: string;
15
+ LENGTH_PERCENTAGE: string;
16
+ };
8
17
  export interface PropertyMetadata {
9
18
  name: string;
10
19
  /**
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.StyleValueRegistry = exports.BUILT_IN_PROPERTIES = void 0;
6
+ exports.StyleValueRegistry = exports.PropertySyntax = exports.BUILT_IN_PROPERTIES = void 0;
7
7
 
8
8
  var _tslib = require("tslib");
9
9
 
@@ -11,9 +11,11 @@ var _manaSyringe = require("mana-syringe");
11
11
 
12
12
  var _glMatrix = require("gl-matrix");
13
13
 
14
+ var _services = require("../services");
15
+
14
16
  var _dom = require("../dom");
15
17
 
16
- var _ = require("..");
18
+ var _types = require("../types");
17
19
 
18
20
  var _cssom = require("./cssom");
19
21
 
@@ -23,9 +25,21 @@ var _properties = require("./properties");
23
25
 
24
26
  var _utils = require("../utils");
25
27
 
28
+ var _shapes = require("../shapes");
29
+
30
+ var PropertySyntax = {
31
+ COLOR: '<color>',
32
+ PAINT: '<paint>',
33
+ NUMBER: '<number>',
34
+ LENGTH: '<length>',
35
+ PERCENTAGE: '<percentage>',
36
+ LENGTH_PERCENTAGE: '<length> | <percentage>'
37
+ };
26
38
  /**
27
39
  * Blink used them in code generation(css_properties.json5)
28
40
  */
41
+
42
+ exports.PropertySyntax = PropertySyntax;
29
43
  var BUILT_IN_PROPERTIES = [{
30
44
  /**
31
45
  * used in CSS Layout API
@@ -39,7 +53,7 @@ var BUILT_IN_PROPERTIES = [{
39
53
  interpolable: true,
40
54
  alias: ['cx'],
41
55
  defaultValue: '0',
42
- syntax: '<length> | <percentage>',
56
+ syntax: PropertySyntax.LENGTH_PERCENTAGE,
43
57
  handler: _properties.CSSPropertyLocalPosition
44
58
  }, {
45
59
  // y in local space
@@ -47,14 +61,14 @@ var BUILT_IN_PROPERTIES = [{
47
61
  interpolable: true,
48
62
  alias: ['cy'],
49
63
  defaultValue: '0',
50
- syntax: '<length> | <percentage>',
64
+ syntax: PropertySyntax.LENGTH_PERCENTAGE,
51
65
  handler: _properties.CSSPropertyLocalPosition
52
66
  }, {
53
67
  // z in local space
54
68
  name: 'z',
55
69
  interpolable: true,
56
70
  defaultValue: '0',
57
- syntax: '<length> | <percentage>',
71
+ syntax: PropertySyntax.LENGTH_PERCENTAGE,
58
72
  handler: _properties.CSSPropertyLocalPosition
59
73
  }, {
60
74
  /**
@@ -64,7 +78,7 @@ var BUILT_IN_PROPERTIES = [{
64
78
  name: 'opacity',
65
79
  interpolable: true,
66
80
  defaultValue: '1',
67
- syntax: '<number>',
81
+ syntax: PropertySyntax.NUMBER,
68
82
  handler: _properties.CSSPropertyOpacity
69
83
  }, {
70
84
  /**
@@ -75,7 +89,7 @@ var BUILT_IN_PROPERTIES = [{
75
89
  interpolable: true,
76
90
  inherited: true,
77
91
  defaultValue: '1',
78
- syntax: '<number>',
92
+ syntax: PropertySyntax.NUMBER,
79
93
  handler: _properties.CSSPropertyOpacity
80
94
  }, {
81
95
  /**
@@ -86,7 +100,7 @@ var BUILT_IN_PROPERTIES = [{
86
100
  interpolable: true,
87
101
  inherited: true,
88
102
  defaultValue: '1',
89
- syntax: '<number>',
103
+ syntax: PropertySyntax.NUMBER,
90
104
  handler: _properties.CSSPropertyOpacity
91
105
  }, {
92
106
  /**
@@ -97,31 +111,31 @@ var BUILT_IN_PROPERTIES = [{
97
111
  interpolable: true,
98
112
  keywords: ['none'],
99
113
  defaultValue: 'none',
100
- syntax: '<paint>',
114
+ syntax: PropertySyntax.PAINT,
101
115
  handler: _properties.CSSPropertyColor
102
116
  }, {
103
117
  name: 'stroke',
104
118
  interpolable: true,
105
119
  keywords: ['none'],
106
120
  defaultValue: 'none',
107
- syntax: '<paint>',
121
+ syntax: PropertySyntax.PAINT,
108
122
  handler: _properties.CSSPropertyColor
109
123
  }, {
110
124
  name: 'shadowColor',
111
125
  interpolable: true,
112
- syntax: '<color>',
126
+ syntax: PropertySyntax.COLOR,
113
127
  handler: _properties.CSSPropertyColor
114
128
  }, {
115
129
  name: 'shadowOffsetX',
116
130
  interpolable: true,
117
131
  layoutDependent: true,
118
- syntax: '<length> | <percentage>',
132
+ syntax: PropertySyntax.LENGTH_PERCENTAGE,
119
133
  handler: _properties.CSSPropertyLengthOrPercentage
120
134
  }, {
121
135
  name: 'shadowOffsetY',
122
136
  interpolable: true,
123
137
  layoutDependent: true,
124
- syntax: '<length> | <percentage>',
138
+ syntax: PropertySyntax.LENGTH_PERCENTAGE,
125
139
  handler: _properties.CSSPropertyLengthOrPercentage
126
140
  }, {
127
141
  name: 'shadowBlur',
@@ -138,7 +152,7 @@ var BUILT_IN_PROPERTIES = [{
138
152
  defaultValue: '1',
139
153
  layoutDependent: true,
140
154
  alias: ['strokeWidth'],
141
- syntax: '<length> | <percentage>',
155
+ syntax: PropertySyntax.LENGTH_PERCENTAGE,
142
156
  handler: _properties.CSSPropertyLengthOrPercentage
143
157
  }, {
144
158
  name: 'lineJoin',
@@ -237,12 +251,7 @@ var BUILT_IN_PROPERTIES = [{
237
251
  parsePriority: 99,
238
252
  layoutDependent: true,
239
253
  handler: _properties.CSSPropertyAnchor
240
- }, // {
241
- // name: 'origin',
242
- // layoutDependent: true,
243
- // handler: CSSPropertyAnchor,
244
- // },
245
- // Circle
254
+ }, // Circle
246
255
  {
247
256
  name: 'r',
248
257
  interpolable: true,
@@ -422,7 +431,9 @@ var BUILT_IN_PROPERTIES = [{
422
431
  }];
423
432
  exports.BUILT_IN_PROPERTIES = BUILT_IN_PROPERTIES;
424
433
 
425
- var StyleValueRegistry = function () {
434
+ var StyleValueRegistry =
435
+ /** @class */
436
+ function () {
426
437
  function StyleValueRegistry() {
427
438
  /**
428
439
  * need recalc later
@@ -750,7 +761,7 @@ var StyleValueRegistry = function () {
750
761
  StyleValueRegistry.prototype.updateGeometry = function (object) {
751
762
  var _a;
752
763
 
753
- var geometryUpdaterFactory = _manaSyringe.GlobalContainer.get(_.GeometryUpdaterFactory);
764
+ var geometryUpdaterFactory = _manaSyringe.GlobalContainer.get(_services.GeometryUpdaterFactory);
754
765
 
755
766
  var geometryUpdater = geometryUpdaterFactory(object.nodeName);
756
767
 
@@ -758,11 +769,11 @@ var StyleValueRegistry = function () {
758
769
  var geometry_1 = object.geometry;
759
770
 
760
771
  if (!geometry_1.contentBounds) {
761
- geometry_1.contentBounds = new _.AABB();
772
+ geometry_1.contentBounds = new _shapes.AABB();
762
773
  }
763
774
 
764
775
  if (!geometry_1.renderBounds) {
765
- geometry_1.renderBounds = new _.AABB();
776
+ geometry_1.renderBounds = new _shapes.AABB();
766
777
  }
767
778
 
768
779
  var parsedStyle = object.parsedStyle;
@@ -785,7 +796,7 @@ var StyleValueRegistry = function () {
785
796
  _h = _b.offsetZ,
786
797
  offsetZ = _h === void 0 ? 0 : _h;
787
798
 
788
- if (object.nodeName === _.Shape.LINE || object.nodeName === _.Shape.POLYLINE || object.nodeName === _.Shape.POLYGON || object.nodeName === _.Shape.PATH) {
799
+ if (object.nodeName === _types.Shape.LINE || object.nodeName === _types.Shape.POLYLINE || object.nodeName === _types.Shape.POLYGON || object.nodeName === _types.Shape.PATH) {
789
800
  parsedStyle.offsetX = x - (parsedStyle.defX || 0);
790
801
  parsedStyle.offsetY = y - (parsedStyle.defY || 0);
791
802
  parsedStyle.defX = x;
@@ -809,7 +820,7 @@ var StyleValueRegistry = function () {
809
820
  transformOrigin = _j.transformOrigin;
810
821
  var anchor = parsedStyle.anchor; // <Text> use textAlign & textBaseline instead of anchor
811
822
 
812
- if (object.nodeName === _.Shape.TEXT) {
823
+ if (object.nodeName === _types.Shape.TEXT) {
813
824
  delete parsedStyle.anchor;
814
825
  }
815
826
 
@@ -881,7 +892,7 @@ var StyleValueRegistry = function () {
881
892
  usedOriginYValue -= (anchor && anchor[1].value || 0) * geometry_1.contentBounds.halfExtents[1] * 2;
882
893
  object.setOrigin(usedOriginXValue, usedOriginYValue);
883
894
  object.emit(_dom.ElementEvent.GEOMETRY_BOUNDS_CHANGED, {});
884
- (0, _.dirtifyToRoot)(object);
895
+ (0, _services.dirtifyToRoot)(object);
885
896
  }
886
897
  };
887
898
 
@@ -14,7 +14,9 @@ var _CSSStyleValue = require("./CSSStyleValue");
14
14
  *
15
15
  * @see https://drafts.css-houdini.org/css-typed-om-1/#colorvalue-objects
16
16
  */
17
- var CSSColorValue = function (_super) {
17
+ var CSSColorValue =
18
+ /** @class */
19
+ function (_super) {
18
20
  (0, _tslib.__extends)(CSSColorValue, _super);
19
21
 
20
22
  function CSSColorValue(colorSpace) {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.CSSGradientValue = exports.GradientPatternType = void 0;
6
+ exports.GradientPatternType = exports.CSSGradientValue = void 0;
7
7
 
8
8
  var _tslib = require("tslib");
9
9
 
@@ -19,7 +19,9 @@ exports.GradientPatternType = GradientPatternType;
19
19
  GradientPatternType[GradientPatternType["Pattern"] = 3] = "Pattern";
20
20
  })(GradientPatternType || (exports.GradientPatternType = GradientPatternType = {}));
21
21
 
22
- var CSSGradientValue = function (_super) {
22
+ var CSSGradientValue =
23
+ /** @class */
24
+ function (_super) {
23
25
  (0, _tslib.__extends)(CSSGradientValue, _super);
24
26
 
25
27
  function CSSGradientValue(type, value) {
@@ -38,15 +40,15 @@ var CSSGradientValue = function (_super) {
38
40
  var text = '';
39
41
 
40
42
  if (this.type === GradientPatternType.LinearGradient) {
41
- text = "linear-gradient(" + this.value.steps.map(function (step) {
43
+ text = "linear-gradient(".concat(this.value.steps.map(function (step) {
42
44
  return step.join(',');
43
- }).join(',') + ")";
45
+ }).join(','), ")");
44
46
  } else if (this.type === GradientPatternType.RadialGradient) {
45
- text = "radial-gradient(" + this.value.steps.map(function (step) {
47
+ text = "radial-gradient(".concat(this.value.steps.map(function (step) {
46
48
  return step.join(',');
47
- }).join(',') + ")";
49
+ }).join(','), ")");
48
50
  } else if (this.type === GradientPatternType.Pattern) {
49
- text = "url(" + this.value.src + ")";
51
+ text = "url(".concat(this.value.src, ")");
50
52
  }
51
53
 
52
54
  return result += text;
@@ -15,7 +15,9 @@ var _CSSStyleValue = require("./CSSStyleValue");
15
15
  * @see https://developer.mozilla.org/en-US/docs/Web/API/CSSKeywordValue
16
16
  * @see https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/blink/renderer/core/css/cssom/css_keyword_value.idl
17
17
  */
18
- var CSSKeywordValue = function (_super) {
18
+ var CSSKeywordValue =
19
+ /** @class */
20
+ function (_super) {
19
21
  (0, _tslib.__extends)(CSSKeywordValue, _super);
20
22
 
21
23
  function CSSKeywordValue(value) {
@@ -11,7 +11,9 @@ var _CSSMathValue = require("./CSSMathValue");
11
11
 
12
12
  var _ = require(".");
13
13
 
14
- var CSSMathInvert = function (_super) {
14
+ var CSSMathInvert =
15
+ /** @class */
16
+ function (_super) {
15
17
  (0, _tslib.__extends)(CSSMathInvert, _super);
16
18
 
17
19
  function CSSMathInvert(value, type) {
@@ -19,7 +19,9 @@ var _ = require(".");
19
19
  */
20
20
  // Represents the maximum of one or more CSSNumericValues.
21
21
  // @see https://drafts.css-houdini.org/css-typed-om/#cssmathsum
22
- var CSSMathMax = function (_super) {
22
+ var CSSMathMax =
23
+ /** @class */
24
+ function (_super) {
23
25
  (0, _tslib.__extends)(CSSMathMax, _super);
24
26
 
25
27
  function CSSMathMax() {
@@ -19,7 +19,9 @@ var _ = require(".");
19
19
  */
20
20
  // Represents the minimum of one or more CSSNumericValues.
21
21
  // @see https://drafts.css-houdini.org/css-typed-om/#cssmathsum
22
- var CSSMathMin = function (_super) {
22
+ var CSSMathMin =
23
+ /** @class */
24
+ function (_super) {
23
25
  (0, _tslib.__extends)(CSSMathMin, _super);
24
26
 
25
27
  function CSSMathMin() {
@@ -11,7 +11,9 @@ var _CSSMathValue = require("./CSSMathValue");
11
11
 
12
12
  var _ = require(".");
13
13
 
14
- var CSSMathNegate = function (_super) {
14
+ var CSSMathNegate =
15
+ /** @class */
16
+ function (_super) {
15
17
  (0, _tslib.__extends)(CSSMathNegate, _super);
16
18
 
17
19
  function CSSMathNegate(value, type) {
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.isComparison = isComparison;
7
6
  exports.CSSMathOperator = void 0;
7
+ exports.isComparison = isComparison;
8
8
  var CSSMathOperator;
9
9
  exports.CSSMathOperator = CSSMathOperator;
10
10
 
@@ -17,7 +17,9 @@ var _ = require(".");
17
17
  * Represents the product of one or more CSSNumericValues.
18
18
  * @see https://drafts.css-houdini.org/css-typed-om/#cssmathproduct
19
19
  */
20
- var CSSMathProduct = function (_super) {
20
+ var CSSMathProduct =
21
+ /** @class */
22
+ function (_super) {
21
23
  (0, _tslib.__extends)(CSSMathProduct, _super);
22
24
 
23
25
  function CSSMathProduct() {
@@ -17,7 +17,9 @@ var _ = require(".");
17
17
  * Represents the sum of one or more CSSNumericValues.
18
18
  * @see https://drafts.css-houdini.org/css-typed-om/#cssmathsum
19
19
  */
20
- var CSSMathSum = function (_super) {
20
+ var CSSMathSum =
21
+ /** @class */
22
+ function (_super) {
21
23
  (0, _tslib.__extends)(CSSMathSum, _super);
22
24
 
23
25
  function CSSMathSum() {
@@ -15,7 +15,9 @@ var _CSSNumericValue = require("./CSSNumericValue");
15
15
  * @see https://developer.mozilla.org/en-US/docs/Web/API/CSSMathValue
16
16
  * @see https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/blink/renderer/core/css/cssom/css_math_value.idl
17
17
  */
18
- var CSSMathValue = function (_super) {
18
+ var CSSMathValue =
19
+ /** @class */
20
+ function (_super) {
19
21
  (0, _tslib.__extends)(CSSMathValue, _super);
20
22
 
21
23
  function CSSMathValue() {
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.typeCheck = typeCheck;
7
6
  exports.CSSMathVariadic = void 0;
7
+ exports.typeCheck = typeCheck;
8
8
 
9
9
  var _tslib = require("tslib");
10
10
 
@@ -23,7 +23,9 @@ function typeCheck(values, op, error) {
23
23
  } // Represents an arithmetic operation with one or more CSSNumericValues.
24
24
 
25
25
 
26
- var CSSMathVariadic = function (_super) {
26
+ var CSSMathVariadic =
27
+ /** @class */
28
+ function (_super) {
27
29
  (0, _tslib.__extends)(CSSMathVariadic, _super);
28
30
 
29
31
  function CSSMathVariadic(values, type) {
@@ -19,7 +19,9 @@ var _ = require(".");
19
19
  * @see https://developer.mozilla.org/en-US/docs/Web/API/CSSNumericValue
20
20
  * @see https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/blink/renderer/core/css/cssom/css_numeric_value.idl
21
21
  */
22
- var CSSNumericValue = function (_super) {
22
+ var CSSNumericValue =
23
+ /** @class */
24
+ function (_super) {
23
25
  (0, _tslib.__extends)(CSSNumericValue, _super);
24
26
 
25
27
  function CSSNumericValue(type_) {
@@ -10,7 +10,7 @@ export declare enum BaseType {
10
10
  kNumBaseTypes = 7
11
11
  }
12
12
  export declare function unitTypeToBaseType(unit: UnitType): BaseType.kLength | BaseType.kAngle | BaseType.kTime | BaseType.kFrequency | BaseType.kResolution | BaseType.kFlex | BaseType.kPercent;
13
- export declare function baseTypeToString(baseType: BaseType): "" | "time" | "flex" | "percent" | "length" | "angle" | "frequency" | "resolution";
13
+ export declare function baseTypeToString(baseType: BaseType): "" | "percent" | "length" | "angle" | "time" | "frequency" | "resolution" | "flex";
14
14
  export declare class CSSNumericValueType {
15
15
  private exponents;
16
16
  private numNonZeroEntries;