@antv/g 5.0.22-alpha.4 → 5.0.22

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 (312) 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 -1
  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 +8 -0
  18. package/es/css/StyleValueRegistry.js +24 -19
  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.js +1 -1
  47. package/es/css/properties/CSSPropertyAnchor.d.ts +4 -2
  48. package/es/css/properties/CSSPropertyAnchor.js +5 -2
  49. package/es/css/properties/CSSPropertyClipPath.d.ts +2 -1
  50. package/es/css/properties/CSSPropertyClipPath.js +4 -2
  51. package/es/css/properties/CSSPropertyColor.d.ts +3 -2
  52. package/es/css/properties/CSSPropertyColor.js +4 -2
  53. package/es/css/properties/CSSPropertyFilter.d.ts +3 -2
  54. package/es/css/properties/CSSPropertyFilter.js +4 -2
  55. package/es/css/properties/CSSPropertyLengthOrPercentage.d.ts +4 -2
  56. package/es/css/properties/CSSPropertyLengthOrPercentage.js +5 -2
  57. package/es/css/properties/CSSPropertyLineDash.d.ts +4 -2
  58. package/es/css/properties/CSSPropertyLineDash.js +4 -2
  59. package/es/css/properties/CSSPropertyLocalPosition.d.ts +4 -2
  60. package/es/css/properties/CSSPropertyLocalPosition.js +4 -2
  61. package/es/css/properties/CSSPropertyOffsetDistance.d.ts +4 -2
  62. package/es/css/properties/CSSPropertyOffsetDistance.js +5 -2
  63. package/es/css/properties/CSSPropertyOffsetPath.d.ts +2 -1
  64. package/es/css/properties/CSSPropertyOffsetPath.js +3 -1
  65. package/es/css/properties/CSSPropertyOpacity.d.ts +3 -2
  66. package/es/css/properties/CSSPropertyOpacity.js +4 -2
  67. package/es/css/properties/CSSPropertyPath.d.ts +3 -2
  68. package/es/css/properties/CSSPropertyPath.js +6 -2
  69. package/es/css/properties/CSSPropertyPoints.d.ts +3 -2
  70. package/es/css/properties/CSSPropertyPoints.js +4 -2
  71. package/es/css/properties/CSSPropertyShadowBlur.d.ts +1 -1
  72. package/es/css/properties/CSSPropertyShadowBlur.js +4 -2
  73. package/es/css/properties/CSSPropertyText.d.ts +3 -2
  74. package/es/css/properties/CSSPropertyText.js +5 -3
  75. package/es/css/properties/CSSPropertyTextTransform.d.ts +2 -1
  76. package/es/css/properties/CSSPropertyTextTransform.js +4 -2
  77. package/es/css/properties/CSSPropertyTransform.d.ts +3 -2
  78. package/es/css/properties/CSSPropertyTransform.js +5 -3
  79. package/es/css/properties/CSSPropertyTransformOrigin.d.ts +3 -2
  80. package/es/css/properties/CSSPropertyTransformOrigin.js +4 -2
  81. package/es/css/properties/CSSPropertyVisibility.d.ts +3 -1
  82. package/es/css/properties/CSSPropertyVisibility.js +3 -1
  83. package/es/css/properties/CSSPropertyZIndex.d.ts +4 -2
  84. package/es/css/properties/CSSPropertyZIndex.js +4 -2
  85. package/es/display-objects/Circle.js +3 -1
  86. package/es/display-objects/CustomElement.js +3 -1
  87. package/es/display-objects/DisplayObject.js +7 -4
  88. package/es/display-objects/Ellipse.js +3 -1
  89. package/es/display-objects/Group.js +3 -1
  90. package/es/display-objects/HTML.js +6 -3
  91. package/es/display-objects/Image.js +3 -1
  92. package/es/display-objects/Line.js +3 -1
  93. package/es/display-objects/Path.js +5 -3
  94. package/es/display-objects/Polygon.js +3 -1
  95. package/es/display-objects/Polyline.js +3 -1
  96. package/es/display-objects/Rect.js +3 -1
  97. package/es/display-objects/Text.js +6 -3
  98. package/es/dom/Animation.js +4 -2
  99. package/es/dom/AnimationEffectTiming.js +3 -1
  100. package/es/dom/AnimationEvent.js +3 -1
  101. package/es/dom/AnimationTimeline.js +3 -1
  102. package/es/dom/CustomElementRegistry.js +3 -1
  103. package/es/dom/CustomEvent.js +3 -1
  104. package/es/dom/Document.js +3 -1
  105. package/es/dom/Element.js +7 -5
  106. package/es/dom/EventTarget.js +6 -4
  107. package/es/dom/FederatedEvent.js +3 -1
  108. package/es/dom/FederatedMouseEvent.js +3 -1
  109. package/es/dom/FederatedPointerEvent.js +3 -1
  110. package/es/dom/FederatedTouchEvent.d.ts +13 -0
  111. package/es/dom/FederatedTouchEvent.js +19 -0
  112. package/es/dom/FederatedWheelEvent.js +3 -1
  113. package/es/dom/KeyframeEffect.js +3 -1
  114. package/es/dom/KeyframeList.js +1 -1
  115. package/es/dom/MutationEvent.js +3 -1
  116. package/es/dom/MutationObserver.js +10 -3
  117. package/es/dom/MutationRecord.js +3 -1
  118. package/es/dom/Node.js +4 -2
  119. package/es/plugins/CullingPlugin.js +3 -1
  120. package/es/plugins/DirtyCheckPlugin.js +3 -1
  121. package/es/plugins/EventPlugin.js +4 -2
  122. package/es/plugins/FrustumCullingStrategy.js +3 -1
  123. package/es/plugins/PrepareRendererPlugin.js +3 -1
  124. package/es/services/EventService.js +5 -3
  125. package/es/services/OffscreenCanvasCreator.js +3 -1
  126. package/es/services/RenderingService.js +3 -1
  127. package/es/services/SceneGraphSelector.js +3 -1
  128. package/es/services/SceneGraphService.js +4 -2
  129. package/es/services/TextService.js +5 -3
  130. package/es/services/aabb/CircleUpdater.js +3 -1
  131. package/es/services/aabb/EllipseUpdater.js +3 -1
  132. package/es/services/aabb/LineUpdater.js +3 -1
  133. package/es/services/aabb/PathUpdater.js +3 -1
  134. package/es/services/aabb/PolylineUpdater.js +3 -1
  135. package/es/services/aabb/RectUpdater.js +4 -2
  136. package/es/services/aabb/TextUpdater.d.ts +1 -2
  137. package/es/services/aabb/TextUpdater.js +3 -1
  138. package/es/shapes/AABB.js +3 -1
  139. package/es/shapes/BoundingSphere.js +3 -1
  140. package/es/shapes/Frustum.js +3 -1
  141. package/es/shapes/Plane.js +3 -1
  142. package/es/shapes/Point.js +3 -1
  143. package/es/shapes/Ray.js +3 -1
  144. package/es/shapes/Rectangle.js +3 -1
  145. package/es/types.d.ts +4 -0
  146. package/es/utils/custom-easing.js +1 -1
  147. package/es/utils/math.d.ts +1 -2
  148. package/es/utils/math.js +11 -6
  149. package/es/utils/path.d.ts +1 -1
  150. package/es/utils/path.js +3 -3
  151. package/es/utils/text.js +4 -4
  152. package/lib/AbstractRenderer.js +3 -1
  153. package/lib/Canvas.d.ts +1 -1
  154. package/lib/Canvas.js +5 -3
  155. package/lib/DisplayObjectPool.js +3 -1
  156. package/lib/camera/Camera.d.ts +105 -66
  157. package/lib/camera/Camera.js +314 -179
  158. package/lib/camera/Landmark.d.ts +18 -25
  159. package/lib/camera/Landmark.js +1 -75
  160. package/lib/canvas-module.js +1 -3
  161. package/lib/components/Cullable.js +4 -2
  162. package/lib/components/Geometry.js +3 -1
  163. package/lib/components/Renderable.js +3 -1
  164. package/lib/components/Sortable.js +3 -1
  165. package/lib/components/Transform.js +3 -1
  166. package/lib/css/LayoutRegistry.js +3 -1
  167. package/lib/css/StyleValueRegistry.d.ts +8 -0
  168. package/lib/css/StyleValueRegistry.js +27 -20
  169. package/lib/css/cssom/CSSColorValue.js +3 -1
  170. package/lib/css/cssom/CSSGradientValue.js +9 -7
  171. package/lib/css/cssom/CSSKeywordValue.js +3 -1
  172. package/lib/css/cssom/CSSMathInvert.js +3 -1
  173. package/lib/css/cssom/CSSMathMax.js +3 -1
  174. package/lib/css/cssom/CSSMathMin.js +3 -1
  175. package/lib/css/cssom/CSSMathNegate.js +3 -1
  176. package/lib/css/cssom/CSSMathOperator.js +1 -1
  177. package/lib/css/cssom/CSSMathProduct.js +3 -1
  178. package/lib/css/cssom/CSSMathSum.js +3 -1
  179. package/lib/css/cssom/CSSMathValue.js +3 -1
  180. package/lib/css/cssom/CSSMathVariadic.js +4 -2
  181. package/lib/css/cssom/CSSNumericValue.js +3 -1
  182. package/lib/css/cssom/CSSNumericValueType.d.ts +1 -1
  183. package/lib/css/cssom/CSSNumericValueType.js +5 -3
  184. package/lib/css/cssom/CSSRGB.js +4 -2
  185. package/lib/css/cssom/CSSStyleValue.d.ts +1 -1
  186. package/lib/css/cssom/CSSStyleValue.js +4 -2
  187. package/lib/css/cssom/CSSTransformComponent.js +4 -2
  188. package/lib/css/cssom/CSSTransformValue.js +3 -1
  189. package/lib/css/cssom/CSSTranslate.js +3 -1
  190. package/lib/css/cssom/CSSUnitValue.js +4 -2
  191. package/lib/css/cssom/types.js +1 -1
  192. package/lib/css/parser/color.js +7 -7
  193. package/lib/css/parser/dimension.d.ts +2 -1
  194. package/lib/css/parser/dimension.js +9 -8
  195. package/lib/css/parser/numeric.js +6 -6
  196. package/lib/css/parser/path.d.ts +1 -1
  197. package/lib/css/parser/path.js +1 -1
  198. package/lib/css/parser/points.js +2 -2
  199. package/lib/css/parser/transform-origin.js +2 -2
  200. package/lib/css/parser/transform.js +2 -2
  201. package/lib/css/properties/CSSPropertyAnchor.d.ts +4 -2
  202. package/lib/css/properties/CSSPropertyAnchor.js +8 -4
  203. package/lib/css/properties/CSSPropertyClipPath.d.ts +2 -1
  204. package/lib/css/properties/CSSPropertyClipPath.js +5 -3
  205. package/lib/css/properties/CSSPropertyColor.d.ts +3 -2
  206. package/lib/css/properties/CSSPropertyColor.js +6 -4
  207. package/lib/css/properties/CSSPropertyFilter.d.ts +3 -2
  208. package/lib/css/properties/CSSPropertyFilter.js +5 -3
  209. package/lib/css/properties/CSSPropertyLengthOrPercentage.d.ts +4 -2
  210. package/lib/css/properties/CSSPropertyLengthOrPercentage.js +14 -10
  211. package/lib/css/properties/CSSPropertyLineDash.d.ts +4 -2
  212. package/lib/css/properties/CSSPropertyLineDash.js +6 -4
  213. package/lib/css/properties/CSSPropertyLocalPosition.d.ts +4 -2
  214. package/lib/css/properties/CSSPropertyLocalPosition.js +6 -4
  215. package/lib/css/properties/CSSPropertyOffsetDistance.d.ts +4 -2
  216. package/lib/css/properties/CSSPropertyOffsetDistance.js +9 -5
  217. package/lib/css/properties/CSSPropertyOffsetPath.d.ts +2 -1
  218. package/lib/css/properties/CSSPropertyOffsetPath.js +3 -1
  219. package/lib/css/properties/CSSPropertyOpacity.d.ts +3 -2
  220. package/lib/css/properties/CSSPropertyOpacity.js +6 -4
  221. package/lib/css/properties/CSSPropertyPath.d.ts +3 -2
  222. package/lib/css/properties/CSSPropertyPath.js +12 -6
  223. package/lib/css/properties/CSSPropertyPoints.d.ts +3 -2
  224. package/lib/css/properties/CSSPropertyPoints.js +5 -3
  225. package/lib/css/properties/CSSPropertyShadowBlur.d.ts +1 -1
  226. package/lib/css/properties/CSSPropertyShadowBlur.js +5 -3
  227. package/lib/css/properties/CSSPropertyText.d.ts +3 -2
  228. package/lib/css/properties/CSSPropertyText.js +6 -4
  229. package/lib/css/properties/CSSPropertyTextTransform.d.ts +2 -1
  230. package/lib/css/properties/CSSPropertyTextTransform.js +8 -6
  231. package/lib/css/properties/CSSPropertyTransform.d.ts +3 -2
  232. package/lib/css/properties/CSSPropertyTransform.js +26 -24
  233. package/lib/css/properties/CSSPropertyTransformOrigin.d.ts +3 -2
  234. package/lib/css/properties/CSSPropertyTransformOrigin.js +5 -3
  235. package/lib/css/properties/CSSPropertyVisibility.d.ts +3 -1
  236. package/lib/css/properties/CSSPropertyVisibility.js +3 -1
  237. package/lib/css/properties/CSSPropertyZIndex.d.ts +4 -2
  238. package/lib/css/properties/CSSPropertyZIndex.js +5 -3
  239. package/lib/display-objects/Circle.js +3 -1
  240. package/lib/display-objects/CustomElement.js +3 -1
  241. package/lib/display-objects/DisplayObject.js +14 -11
  242. package/lib/display-objects/Ellipse.js +3 -1
  243. package/lib/display-objects/Group.js +3 -1
  244. package/lib/display-objects/HTML.js +6 -4
  245. package/lib/display-objects/Image.js +3 -1
  246. package/lib/display-objects/Line.js +3 -1
  247. package/lib/display-objects/Path.js +8 -6
  248. package/lib/display-objects/Polygon.js +3 -1
  249. package/lib/display-objects/Polyline.js +3 -1
  250. package/lib/display-objects/Rect.js +3 -1
  251. package/lib/display-objects/Text.js +6 -4
  252. package/lib/dom/Animation.js +4 -2
  253. package/lib/dom/AnimationEffectTiming.js +3 -1
  254. package/lib/dom/AnimationEvent.js +3 -1
  255. package/lib/dom/AnimationTimeline.js +4 -2
  256. package/lib/dom/CustomElementRegistry.js +3 -1
  257. package/lib/dom/CustomEvent.js +3 -1
  258. package/lib/dom/Document.js +3 -1
  259. package/lib/dom/Element.js +8 -6
  260. package/lib/dom/EventTarget.js +13 -11
  261. package/lib/dom/FederatedEvent.js +3 -1
  262. package/lib/dom/FederatedMouseEvent.js +3 -1
  263. package/lib/dom/FederatedPointerEvent.js +3 -1
  264. package/lib/dom/FederatedTouchEvent.d.ts +13 -0
  265. package/lib/dom/FederatedTouchEvent.js +27 -0
  266. package/lib/dom/FederatedWheelEvent.js +3 -1
  267. package/lib/dom/KeyframeEffect.js +4 -2
  268. package/lib/dom/KeyframeList.js +1 -1
  269. package/lib/dom/MutationEvent.js +3 -1
  270. package/lib/dom/MutationObserver.js +11 -4
  271. package/lib/dom/MutationRecord.js +3 -1
  272. package/lib/dom/Node.js +4 -2
  273. package/lib/index.js +1 -1
  274. package/lib/plugins/CullingPlugin.js +4 -2
  275. package/lib/plugins/DirtyCheckPlugin.js +3 -1
  276. package/lib/plugins/EventPlugin.js +26 -24
  277. package/lib/plugins/FrustumCullingStrategy.js +3 -1
  278. package/lib/plugins/PrepareRendererPlugin.js +3 -1
  279. package/lib/services/EventService.js +5 -3
  280. package/lib/services/OffscreenCanvasCreator.js +3 -1
  281. package/lib/services/RenderingService.js +3 -1
  282. package/lib/services/SceneGraphSelector.js +4 -2
  283. package/lib/services/SceneGraphService.js +7 -5
  284. package/lib/services/TextService.js +5 -3
  285. package/lib/services/aabb/CircleUpdater.js +3 -1
  286. package/lib/services/aabb/EllipseUpdater.js +3 -1
  287. package/lib/services/aabb/LineUpdater.js +3 -1
  288. package/lib/services/aabb/PathUpdater.js +3 -1
  289. package/lib/services/aabb/PolylineUpdater.js +3 -1
  290. package/lib/services/aabb/RectUpdater.js +5 -3
  291. package/lib/services/aabb/TextUpdater.d.ts +1 -2
  292. package/lib/services/aabb/TextUpdater.js +3 -1
  293. package/lib/services/aabb/index.js +10 -10
  294. package/lib/services/aabb/interfaces.js +1 -1
  295. package/lib/shapes/AABB.js +3 -1
  296. package/lib/shapes/BoundingSphere.js +3 -1
  297. package/lib/shapes/Frustum.js +4 -2
  298. package/lib/shapes/Plane.js +3 -1
  299. package/lib/shapes/Point.js +3 -1
  300. package/lib/shapes/Ray.js +3 -1
  301. package/lib/shapes/Rectangle.js +3 -1
  302. package/lib/types.d.ts +4 -0
  303. package/lib/types.js +1 -1
  304. package/lib/utils/animation.js +3 -2
  305. package/lib/utils/bezier-easing.js +1 -1
  306. package/lib/utils/custom-easing.js +2 -2
  307. package/lib/utils/math.d.ts +1 -2
  308. package/lib/utils/math.js +20 -17
  309. package/lib/utils/path.d.ts +1 -1
  310. package/lib/utils/path.js +6 -6
  311. package/lib/utils/text.js +5 -5
  312. package/package.json +7 -5
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.CSSStyleValue = exports.CSSStyleValueType = void 0;
6
+ exports.CSSStyleValueType = exports.CSSStyleValue = void 0;
7
7
 
8
8
  var _types = require("./types");
9
9
 
@@ -265,7 +265,9 @@ function parseCSSStyleValue(propertyName, value) {
265
265
  */
266
266
 
267
267
 
268
- var CSSStyleValue = function () {
268
+ var CSSStyleValue =
269
+ /** @class */
270
+ function () {
269
271
  function CSSStyleValue() {}
270
272
 
271
273
  CSSStyleValue.parse = function (propertyName, value) {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.CSSTransformComponent = exports.TransformComponentType = void 0;
6
+ exports.TransformComponentType = exports.CSSTransformComponent = void 0;
7
7
  var TransformComponentType;
8
8
  exports.TransformComponentType = TransformComponentType;
9
9
 
@@ -26,7 +26,9 @@ exports.TransformComponentType = TransformComponentType;
26
26
  */
27
27
 
28
28
 
29
- var CSSTransformComponent = function () {
29
+ var CSSTransformComponent =
30
+ /** @class */
31
+ function () {
30
32
  function CSSTransformComponent(is2D) {
31
33
  this.is2D = is2D;
32
34
  }
@@ -14,7 +14,9 @@ var _CSSStyleValue = require("./CSSStyleValue");
14
14
  *
15
15
  * @see https://developer.mozilla.org/en-US/docs/Web/API/CSSTransformValue
16
16
  */
17
- var CSSTransformValue = function (_super) {
17
+ var CSSTransformValue =
18
+ /** @class */
19
+ function (_super) {
18
20
  (0, _tslib.__extends)(CSSTransformValue, _super);
19
21
 
20
22
  function CSSTransformValue(transforms) {
@@ -17,7 +17,9 @@ var _CSSTransformComponent = require("./CSSTransformComponent");
17
17
  *
18
18
  * @see https://drafts.css-houdini.org/css-typed-om/#csstranslate
19
19
  */
20
- var CSSTranslate = function (_super) {
20
+ var CSSTranslate =
21
+ /** @class */
22
+ function (_super) {
21
23
  (0, _tslib.__extends)(CSSTranslate, _super);
22
24
 
23
25
  function CSSTranslate(x, y, z, is2D) {
@@ -31,7 +31,9 @@ var _CSSStyleValue = require("./CSSStyleValue");
31
31
  * unit (or a naked number or percentage).
32
32
  * @see https://drafts.css-houdini.org/css-typed-om/#cssunitvalue
33
33
  */
34
- var CSSUnitValue = function (_super) {
34
+ var CSSUnitValue =
35
+ /** @class */
36
+ function (_super) {
35
37
  (0, _tslib.__extends)(CSSUnitValue, _super);
36
38
 
37
39
  function CSSUnitValue(value, unitOrName) {
@@ -250,7 +252,7 @@ var CSSUnitValue = function (_super) {
250
252
  text = CSSUnitValue.formatNumber(value, unit_1);
251
253
  }
252
254
  } else {
253
- text = "" + value + unit;
255
+ text = "".concat(value).concat(unit);
254
256
  }
255
257
  }
256
258
  }
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.ParenLess = exports.Nested = exports.ValueRange = exports.UnitCategory = exports.UnitType = void 0;
6
+ exports.ValueRange = exports.UnitType = exports.UnitCategory = exports.ParenLess = exports.Nested = void 0;
7
7
  // These units are iterated through, so be careful when adding or changing the
8
8
  // order.
9
9
  var UnitType;
@@ -1,18 +1,18 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.parseColor = parseColor;
9
8
  exports.mergeColors = mergeColors;
9
+ exports.parseColor = parseColor;
10
10
 
11
11
  var _tslib = require("tslib");
12
12
 
13
13
  var d3 = _interopRequireWildcard(require("d3-color"));
14
14
 
15
- var _util = require("@antv/util");
15
+ var _lodashEs = require("lodash-es");
16
16
 
17
17
  var _cssom = require("../cssom");
18
18
 
@@ -54,7 +54,7 @@ function parseColor(colorStr) {
54
54
  var parsedRadialGradient = parseRadialGradient(colorStr);
55
55
 
56
56
  if (parsedRadialGradient) {
57
- if ((0, _util.isString)(parsedRadialGradient)) {
57
+ if ((0, _lodashEs.isString)(parsedRadialGradient)) {
58
58
  colorStr = parsedRadialGradient;
59
59
  } else {
60
60
  return new _cssom.CSSGradientValue(_cssom.GradientPatternType.RadialGradient, parsedRadialGradient);
@@ -102,12 +102,12 @@ function mergeColors(left, right) {
102
102
 
103
103
  if (rgba[3]) {
104
104
  for (var i = 0; i < 3; i++) {
105
- rgba[i] = Math.round((0, _util.clamp)(rgba[i], 0, 255));
105
+ rgba[i] = Math.round((0, _lodashEs.clamp)(rgba[i], 0, 255));
106
106
  }
107
107
  }
108
108
 
109
- rgba[3] = (0, _util.clamp)(rgba[3], 0, 1);
110
- return "rgba(" + rgba.join(',') + ")";
109
+ rgba[3] = (0, _lodashEs.clamp)(rgba[3], 0, 1);
110
+ return "rgba(".concat(rgba.join(','), ")");
111
111
  }];
112
112
  }
113
113
 
@@ -1,4 +1,5 @@
1
- import type { DisplayObject, IElement } from '../..';
1
+ import type { IElement } from '../../dom';
2
+ import type { DisplayObject } from '../../display-objects';
2
3
  import type { CSSStyleValue } from '../cssom';
3
4
  import { CSSUnitValue } from '../cssom';
4
5
  import type { CSSValueParser } from './types';
@@ -3,15 +3,16 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.parseDimension = parseDimension;
7
- exports.mergeDimensions = mergeDimensions;
8
6
  exports.convertAngleUnit = convertAngleUnit;
9
- exports.parseDimensionArray = parseDimensionArray;
10
- exports.mergeDimensionList = mergeDimensionList;
11
7
  exports.convertPercentUnit = convertPercentUnit;
12
- exports.parseAngle = exports.parseLengthOrPercentage = exports.parserPercentage = exports.parseLength = void 0;
8
+ exports.mergeDimensionList = mergeDimensionList;
9
+ exports.mergeDimensions = mergeDimensions;
10
+ exports.parseAngle = void 0;
11
+ exports.parseDimension = parseDimension;
12
+ exports.parseDimensionArray = parseDimensionArray;
13
+ exports.parserPercentage = exports.parseLengthOrPercentage = exports.parseLength = void 0;
13
14
 
14
- var _util = require("@antv/util");
15
+ var _lodashEs = require("lodash-es");
15
16
 
16
17
  var _shapes = require("../../shapes");
17
18
 
@@ -20,7 +21,7 @@ var _utils = require("../../utils");
20
21
  var _cssom = require("../cssom");
21
22
 
22
23
  function parseDimension(unitRegExp, string) {
23
- string = ("" + string).trim().toLowerCase();
24
+ string = "".concat(string).trim().toLowerCase();
24
25
 
25
26
  if (isFinite(Number(string))) {
26
27
  if ('px'.search(unitRegExp) >= 0) {
@@ -123,7 +124,7 @@ function convertAngleUnit(value) {
123
124
  }
124
125
 
125
126
  function parseDimensionArray(string) {
126
- if ((0, _util.isString)(string)) {
127
+ if ((0, _lodashEs.isString)(string)) {
127
128
  // "1px 2px 3px"
128
129
  return string.split(' ').map(function (segment) {
129
130
  return parseLengthOrPercentage(segment);
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.clampedMergeNumbers = clampedMergeNumbers;
7
+ exports.mergeNumberLists = mergeNumberLists;
8
+ exports.mergeNumbers = mergeNumbers;
6
9
  exports.numberToString = numberToString;
7
10
  exports.parseNumber = parseNumber;
8
11
  exports.parseNumberList = parseNumberList;
9
- exports.mergeNumbers = mergeNumbers;
10
- exports.clampedMergeNumbers = clampedMergeNumbers;
11
- exports.mergeNumberLists = mergeNumberLists;
12
12
 
13
- var _util = require("@antv/util");
13
+ var _lodashEs = require("lodash-es");
14
14
 
15
15
  var _cssom = require("../cssom");
16
16
 
@@ -47,7 +47,7 @@ function parseNumber(string) {
47
47
 
48
48
 
49
49
  function parseNumberList(string) {
50
- if ((0, _util.isString)(string)) {
50
+ if ((0, _lodashEs.isString)(string)) {
51
51
  return string.split(' ').map(parseNumber);
52
52
  } else {
53
53
  return string.map(parseNumber);
@@ -61,7 +61,7 @@ function mergeNumbers(left, right) {
61
61
  function clampedMergeNumbers(min, max) {
62
62
  return function (left, right) {
63
63
  return [left.value, right.value, function (x) {
64
- return numberToString((0, _util.clamp)(x, min, max));
64
+ return numberToString((0, _lodashEs.clamp)(x, min, max));
65
65
  }];
66
66
  };
67
67
  }
@@ -1,5 +1,5 @@
1
1
  import type { PathCommand } from '../../types';
2
2
  import type { ParsedPathStyleProps } from '../../display-objects';
3
- import type { IElement } from '../..';
3
+ import type { IElement } from '../../dom';
4
4
  export declare function parsePath(path: string): ParsedPathStyleProps;
5
5
  export declare function mergePaths(left: ParsedPathStyleProps, right: ParsedPathStyleProps, object: IElement): [PathCommand[], PathCommand[], (b: PathCommand[]) => PathCommand[]];
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.parsePath = parsePath;
7
6
  exports.mergePaths = mergePaths;
7
+ exports.parsePath = parsePath;
8
8
 
9
9
  var _tslib = require("tslib");
10
10
 
@@ -7,10 +7,10 @@ exports.parsePoints = parsePoints;
7
7
 
8
8
  var _gMath = require("@antv/g-math");
9
9
 
10
- var _util = require("@antv/util");
10
+ var _lodashEs = require("lodash-es");
11
11
 
12
12
  function parsePoints(points) {
13
- if ((0, _util.isString)(points)) {
13
+ if ((0, _lodashEs.isString)(points)) {
14
14
  return null;
15
15
  }
16
16
 
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.parseTransformOrigin = parseTransformOrigin;
7
7
 
8
- var _util = require("@antv/util");
8
+ var _lodashEs = require("lodash-es");
9
9
 
10
10
  var _cssom = require("../cssom");
11
11
 
@@ -16,7 +16,7 @@ var _dimension = require("./dimension");
16
16
  * eg. 'center' 'top left' '50px 50px'
17
17
  */
18
18
  function parseTransformOrigin(value) {
19
- if ((0, _util.isString)(value)) {
19
+ if ((0, _lodashEs.isString)(value)) {
20
20
  var values = value.split(' ');
21
21
 
22
22
  if (values.length === 1) {
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.parseTransform = parseTransform;
6
+ exports.Opx = exports.Odeg = void 0;
7
7
  exports.mergeTransforms = mergeTransforms;
8
- exports.Odeg = exports.Opx = void 0;
8
+ exports.parseTransform = parseTransform;
9
9
 
10
10
  var _2 = require("./");
11
11
 
@@ -1,5 +1,7 @@
1
- import type { CSSProperty, DisplayObject } from '../..';
2
- import { CSSUnitValue, parseNumberList } from '../..';
1
+ import type { CSSProperty } from '../CSSProperty';
2
+ import type { DisplayObject } from '../../display-objects';
3
+ import { CSSUnitValue } from '../cssom';
4
+ import { parseNumberList } from '../parser';
3
5
  export declare class CSSPropertyAnchor implements Partial<CSSProperty<CSSUnitValue[], CSSUnitValue[]>> {
4
6
  parser: typeof parseNumberList;
5
7
  calculator(name: string, oldParsed: CSSUnitValue[], parsed: CSSUnitValue[], object: DisplayObject): CSSUnitValue[];
@@ -9,16 +9,20 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _cssom = require("../cssom");
13
13
 
14
- var CSSPropertyAnchor = function () {
14
+ var _parser = require("../parser");
15
+
16
+ var CSSPropertyAnchor =
17
+ /** @class */
18
+ function () {
15
19
  function CSSPropertyAnchor() {
16
- this.parser = _.parseNumberList;
20
+ this.parser = _parser.parseNumberList;
17
21
  }
18
22
 
19
23
  CSSPropertyAnchor.prototype.calculator = function (name, oldParsed, parsed, object) {
20
24
  if (parsed.length === 2) {
21
- return [parsed[0], parsed[1], new _.CSSUnitValue(0)];
25
+ return [parsed[0], parsed[1], new _cssom.CSSUnitValue(0)];
22
26
  }
23
27
 
24
28
  return parsed;
@@ -1,4 +1,5 @@
1
- import type { CSSProperty, DisplayObject } from '../..';
1
+ import type { CSSProperty } from '../CSSProperty';
2
+ import type { DisplayObject } from '../../display-objects';
2
3
  /**
3
4
  * @see /zh/docs/api/basic/display-object#clippath
4
5
  * @example
@@ -9,7 +9,7 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _services = require("../../services");
13
13
 
14
14
  /**
15
15
  * @see /zh/docs/api/basic/display-object#clippath
@@ -28,7 +28,9 @@ var _ = require("../..");
28
28
  }
29
29
  });
30
30
  */
31
- var CSSPropertyClipPath = function () {
31
+ var CSSPropertyClipPath =
32
+ /** @class */
33
+ function () {
32
34
  function CSSPropertyClipPath() {}
33
35
 
34
36
  CSSPropertyClipPath.prototype.calculator = function (name, oldClipPath, newClipPath, object) {
@@ -46,7 +48,7 @@ var CSSPropertyClipPath = function () {
46
48
  newClipPath.style.clipPathTargets.push(object);
47
49
  }
48
50
 
49
- (0, _.dirtifyToRoot)(object);
51
+ (0, _services.dirtifyToRoot)(object);
50
52
  return newClipPath;
51
53
  };
52
54
 
@@ -1,5 +1,6 @@
1
- import type { CSSProperty, DisplayObject } from '../..';
2
- import { parseColor, mergeColors } from '../..';
1
+ import type { CSSProperty } from '../CSSProperty';
2
+ import type { DisplayObject } from '../../display-objects';
3
+ import { parseColor, mergeColors } from '../parser';
3
4
  import type { CSSGradientValue } from '../cssom';
4
5
  import { CSSKeywordValue, CSSRGB } from '../cssom';
5
6
  import type { StyleValueRegistry } from '../StyleValueRegistry';
@@ -9,17 +9,19 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _parser = require("../parser");
13
13
 
14
14
  var _cssom = require("../cssom");
15
15
 
16
16
  /**
17
17
  * opacity
18
18
  */
19
- var CSSPropertyColor = function () {
19
+ var CSSPropertyColor =
20
+ /** @class */
21
+ function () {
20
22
  function CSSPropertyColor() {
21
- this.parser = _.parseColor;
22
- this.mixer = _.mergeColors;
23
+ this.parser = _parser.parseColor;
24
+ this.mixer = _parser.mergeColors;
23
25
  }
24
26
 
25
27
  CSSPropertyColor.prototype.calculator = function (name, oldParsed, parsed, object, registry) {
@@ -1,5 +1,6 @@
1
- import type { CSSProperty, ParsedFilterStyleProperty } from '../..';
2
- import { parseFilter } from '../..';
1
+ import type { CSSProperty } from '../CSSProperty';
2
+ import type { ParsedFilterStyleProperty } from '../parser';
3
+ import { parseFilter } from '../parser';
3
4
  export declare class CSSPropertyFilter implements Partial<CSSProperty<ParsedFilterStyleProperty[], ParsedFilterStyleProperty[]>> {
4
5
  parser: typeof parseFilter;
5
6
  }
@@ -9,11 +9,13 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _parser = require("../parser");
13
13
 
14
- var CSSPropertyFilter = function () {
14
+ var CSSPropertyFilter =
15
+ /** @class */
16
+ function () {
15
17
  function CSSPropertyFilter() {
16
- this.parser = _.parseFilter;
18
+ this.parser = _parser.parseFilter;
17
19
  }
18
20
 
19
21
  CSSPropertyFilter = (0, _tslib.__decorate)([(0, _manaSyringe.singleton)()], CSSPropertyFilter);
@@ -1,6 +1,8 @@
1
- import { CSSUnitValue, mergeDimensions } from '../..';
1
+ import { CSSUnitValue } from '../cssom';
2
+ import { mergeDimensions } from '../parser';
2
3
  import type { StyleValueRegistry } from '../StyleValueRegistry';
3
- import type { DisplayObject, CSSProperty } from '../..';
4
+ import type { DisplayObject } from '../../display-objects';
5
+ import type { CSSProperty } from '../CSSProperty';
4
6
  /**
5
7
  * <length> & <percentage>
6
8
  */
@@ -9,15 +9,19 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _cssom = require("../cssom");
13
+
14
+ var _parser = require("../parser");
13
15
 
14
16
  /**
15
17
  * <length> & <percentage>
16
18
  */
17
- var CSSPropertyLengthOrPercentage = function () {
19
+ var CSSPropertyLengthOrPercentage =
20
+ /** @class */
21
+ function () {
18
22
  function CSSPropertyLengthOrPercentage() {
19
- this.parser = _.parseLengthOrPercentage;
20
- this.mixer = _.mergeDimensions;
23
+ this.parser = _parser.parseLengthOrPercentage;
24
+ this.mixer = _parser.mergeDimensions;
21
25
  }
22
26
  /**
23
27
  * according to parent's bounds
@@ -28,8 +32,8 @@ var CSSPropertyLengthOrPercentage = function () {
28
32
 
29
33
 
30
34
  CSSPropertyLengthOrPercentage.prototype.calculator = function (name, oldParsed, computed, object, registry) {
31
- if (_.CSSUnitValue.isRelativeUnit(computed.unit)) {
32
- if (computed.unit === _.UnitType.kPercentage) {
35
+ if (_cssom.CSSUnitValue.isRelativeUnit(computed.unit)) {
36
+ if (computed.unit === _cssom.UnitType.kPercentage) {
33
37
  // try to resolve according to parent's geometry bounds
34
38
  // if (object.parentElement) {
35
39
  // // registry.registerParentGeometryBoundsChangedHandler(object, name);
@@ -45,10 +49,10 @@ var CSSPropertyLengthOrPercentage = function () {
45
49
  // // { once: true },
46
50
  // // );
47
51
  // }
48
- return new _.CSSUnitValue(0, 'px');
49
- } else if (computed.unit === _.UnitType.kEms) {
52
+ return new _cssom.CSSUnitValue(0, 'px');
53
+ } else if (computed.unit === _cssom.UnitType.kEms) {
50
54
  // TODO: handle ems
51
- return new _.CSSUnitValue(0, 'px');
55
+ return new _cssom.CSSUnitValue(0, 'px');
52
56
  }
53
57
  } else {
54
58
  // remove listener if exists
@@ -71,7 +75,7 @@ var CSSPropertyLengthOrPercentage = function () {
71
75
  CSSPropertyLengthOrPercentage.prototype.calculateUsedValueWithParentBounds = function (object, name) {
72
76
  var bounds = object.parentElement.getGeometryBounds();
73
77
  var computedValue = object.computedStyle[name].value;
74
- return new _.CSSUnitValue(bounds.halfExtents[this.nameToBoundsIndex(name)] * 2 * computedValue / 100, 'px');
78
+ return new _cssom.CSSUnitValue(bounds.halfExtents[this.nameToBoundsIndex(name)] * 2 * computedValue / 100, 'px');
75
79
  };
76
80
 
77
81
  CSSPropertyLengthOrPercentage = (0, _tslib.__decorate)([(0, _manaSyringe.singleton)()], CSSPropertyLengthOrPercentage);
@@ -1,5 +1,7 @@
1
- import type { CSSProperty, CSSUnitValue, DisplayObject } from '../..';
2
- import { parseDimensionArray, mergeDimensionList } from '../..';
1
+ import type { DisplayObject } from '../../display-objects';
2
+ import type { CSSProperty } from '../CSSProperty';
3
+ import type { CSSUnitValue } from '../cssom';
4
+ import { parseDimensionArray, mergeDimensionList } from '../parser';
3
5
  export declare class CSSPropertyLineDash implements Partial<CSSProperty<CSSUnitValue[], CSSUnitValue[]>> {
4
6
  parser: typeof parseDimensionArray;
5
7
  mixer: typeof mergeDimensionList;
@@ -9,12 +9,14 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _parser = require("../parser");
13
13
 
14
- var CSSPropertyLineDash = function () {
14
+ var CSSPropertyLineDash =
15
+ /** @class */
16
+ function () {
15
17
  function CSSPropertyLineDash() {
16
- this.parser = _.parseDimensionArray;
17
- this.mixer = _.mergeDimensionList;
18
+ this.parser = _parser.parseDimensionArray;
19
+ this.mixer = _parser.mergeDimensionList;
18
20
  }
19
21
 
20
22
  CSSPropertyLineDash.prototype.calculator = function (name, oldParsed, parsed, object) {
@@ -1,5 +1,7 @@
1
- import type { CSSUnitValue, CSSProperty, DisplayObject } from '../..';
2
- import { mergeDimensions } from '../..';
1
+ import type { DisplayObject } from '../../display-objects';
2
+ import type { CSSProperty } from '../CSSProperty';
3
+ import type { CSSUnitValue } from '../cssom';
4
+ import { mergeDimensions } from '../parser';
3
5
  import { CSSPropertyLengthOrPercentage } from './CSSPropertyLengthOrPercentage';
4
6
  /**
5
7
  * local position
@@ -9,14 +9,16 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _parser = require("../parser");
13
13
 
14
14
  var _CSSPropertyLengthOrPercentage = require("./CSSPropertyLengthOrPercentage");
15
15
 
16
16
  /**
17
17
  * local position
18
18
  */
19
- var CSSPropertyLocalPosition = function (_super) {
19
+ var CSSPropertyLocalPosition =
20
+ /** @class */
21
+ function (_super) {
20
22
  (0, _tslib.__extends)(CSSPropertyLocalPosition, _super);
21
23
 
22
24
  function CSSPropertyLocalPosition() {
@@ -26,12 +28,12 @@ var CSSPropertyLocalPosition = function (_super) {
26
28
  */
27
29
 
28
30
 
29
- _this.parser = _.parseLengthOrPercentage;
31
+ _this.parser = _parser.parseLengthOrPercentage;
30
32
  /**
31
33
  * mix between CSS.px(x)
32
34
  */
33
35
 
34
- _this.mixer = _.mergeDimensions;
36
+ _this.mixer = _parser.mergeDimensions;
35
37
  return _this;
36
38
  }
37
39
  /**
@@ -1,5 +1,7 @@
1
- import type { CSSUnitValue, CSSProperty, DisplayObject } from '../..';
2
- import { parseNumber } from '../..';
1
+ import type { DisplayObject } from '../../display-objects';
2
+ import type { CSSProperty } from '../CSSProperty';
3
+ import type { CSSUnitValue } from '../cssom';
4
+ import { parseNumber } from '../parser';
3
5
  export declare class CSSPropertyOffsetDistance implements Partial<CSSProperty<CSSUnitValue, CSSUnitValue>> {
4
6
  parser: typeof parseNumber;
5
7
  mixer: (left: CSSUnitValue, right: CSSUnitValue) => [number, number, (i: number) => string];
@@ -9,12 +9,16 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _types = require("../../types");
13
13
 
14
- var CSSPropertyOffsetDistance = function () {
14
+ var _parser = require("../parser");
15
+
16
+ var CSSPropertyOffsetDistance =
17
+ /** @class */
18
+ function () {
15
19
  function CSSPropertyOffsetDistance() {
16
- this.parser = _.parseNumber;
17
- this.mixer = (0, _.clampedMergeNumbers)(0, 1);
20
+ this.parser = _parser.parseNumber;
21
+ this.mixer = (0, _parser.clampedMergeNumbers)(0, 1);
18
22
  }
19
23
 
20
24
  CSSPropertyOffsetDistance.prototype.postProcessor = function (object) {
@@ -24,7 +28,7 @@ var CSSPropertyOffsetDistance = function () {
24
28
 
25
29
  var offsetPathNodeName = object.attributes.offsetPath.nodeName;
26
30
 
27
- if (offsetPathNodeName === _.Shape.LINE || offsetPathNodeName === _.Shape.PATH || offsetPathNodeName === _.Shape.POLYLINE) {
31
+ if (offsetPathNodeName === _types.Shape.LINE || offsetPathNodeName === _types.Shape.PATH || offsetPathNodeName === _types.Shape.POLYLINE) {
28
32
  var point = object.attributes.offsetPath.getPoint(object.parsedStyle.offsetDistance.value);
29
33
 
30
34
  if (point) {
@@ -1,4 +1,5 @@
1
- import type { CSSProperty, DisplayObject } from '../..';
1
+ import type { DisplayObject } from '../../display-objects';
2
+ import type { CSSProperty } from '../CSSProperty';
2
3
  export declare class CSSPropertyOffsetPath implements Partial<CSSProperty<DisplayObject, DisplayObject>> {
3
4
  calculator(name: string, oldOffsetPath: DisplayObject, newOffsetPath: DisplayObject, object: DisplayObject): DisplayObject<any, any>;
4
5
  }
@@ -9,7 +9,9 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var CSSPropertyOffsetPath = function () {
12
+ var CSSPropertyOffsetPath =
13
+ /** @class */
14
+ function () {
13
15
  function CSSPropertyOffsetPath() {}
14
16
 
15
17
  CSSPropertyOffsetPath.prototype.calculator = function (name, oldOffsetPath, newOffsetPath, object) {