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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (251) hide show
  1. package/es/AbstractRenderer.js +1 -3
  2. package/es/Canvas.js +1 -3
  3. package/es/DisplayObjectPool.js +1 -3
  4. package/es/camera/Camera.js +1 -3
  5. package/es/camera/Landmark.js +1 -3
  6. package/es/components/Cullable.js +1 -3
  7. package/es/components/Geometry.js +1 -3
  8. package/es/components/Renderable.js +1 -3
  9. package/es/components/Sortable.js +1 -3
  10. package/es/components/Transform.js +1 -3
  11. package/es/css/CSSProperty.d.ts +1 -1
  12. package/es/css/LayoutRegistry.js +1 -3
  13. package/es/css/StyleValueRegistry.js +2 -4
  14. package/es/css/cssom/CSSColorValue.js +1 -3
  15. package/es/css/cssom/CSSGradientValue.js +6 -8
  16. package/es/css/cssom/CSSKeywordValue.js +1 -3
  17. package/es/css/cssom/CSSMathInvert.js +1 -3
  18. package/es/css/cssom/CSSMathMax.js +1 -3
  19. package/es/css/cssom/CSSMathMin.js +1 -3
  20. package/es/css/cssom/CSSMathNegate.js +1 -3
  21. package/es/css/cssom/CSSMathProduct.js +1 -3
  22. package/es/css/cssom/CSSMathSum.js +1 -3
  23. package/es/css/cssom/CSSMathValue.js +1 -3
  24. package/es/css/cssom/CSSMathVariadic.js +1 -3
  25. package/es/css/cssom/CSSNumericValue.js +1 -3
  26. package/es/css/cssom/CSSNumericValueType.d.ts +1 -1
  27. package/es/css/cssom/CSSNumericValueType.js +1 -3
  28. package/es/css/cssom/CSSRGB.js +2 -4
  29. package/es/css/cssom/CSSStyleValue.d.ts +2 -2
  30. package/es/css/cssom/CSSStyleValue.js +2 -4
  31. package/es/css/cssom/CSSTransformComponent.js +1 -3
  32. package/es/css/cssom/CSSTransformValue.js +1 -3
  33. package/es/css/cssom/CSSTranslate.js +1 -3
  34. package/es/css/cssom/CSSUnitValue.js +2 -4
  35. package/es/css/parser/color.js +1 -1
  36. package/es/css/parser/dimension.js +1 -1
  37. package/es/css/parser/transform.d.ts +1 -1
  38. package/es/css/parser/transform.js +2 -2
  39. package/es/css/properties/CSSPropertyAnchor.js +1 -3
  40. package/es/css/properties/CSSPropertyClipPath.js +1 -3
  41. package/es/css/properties/CSSPropertyColor.js +1 -3
  42. package/es/css/properties/CSSPropertyFilter.js +1 -3
  43. package/es/css/properties/CSSPropertyLengthOrPercentage.js +1 -3
  44. package/es/css/properties/CSSPropertyLineDash.js +1 -3
  45. package/es/css/properties/CSSPropertyLocalPosition.js +1 -3
  46. package/es/css/properties/CSSPropertyOffsetDistance.js +1 -3
  47. package/es/css/properties/CSSPropertyOffsetPath.js +1 -3
  48. package/es/css/properties/CSSPropertyOpacity.js +1 -3
  49. package/es/css/properties/CSSPropertyPath.js +1 -3
  50. package/es/css/properties/CSSPropertyPoints.js +1 -3
  51. package/es/css/properties/CSSPropertyShadowBlur.js +1 -3
  52. package/es/css/properties/CSSPropertyText.js +2 -4
  53. package/es/css/properties/CSSPropertyTextTransform.js +1 -3
  54. package/es/css/properties/CSSPropertyTransform.js +1 -3
  55. package/es/css/properties/CSSPropertyTransformOrigin.js +1 -3
  56. package/es/css/properties/CSSPropertyVisibility.js +1 -3
  57. package/es/css/properties/CSSPropertyZIndex.js +1 -3
  58. package/es/display-objects/Circle.js +1 -3
  59. package/es/display-objects/CustomElement.js +1 -3
  60. package/es/display-objects/DisplayObject.js +3 -6
  61. package/es/display-objects/Ellipse.js +1 -3
  62. package/es/display-objects/Group.js +1 -3
  63. package/es/display-objects/HTML.js +3 -6
  64. package/es/display-objects/Image.js +1 -3
  65. package/es/display-objects/Line.js +1 -3
  66. package/es/display-objects/Path.js +1 -3
  67. package/es/display-objects/Polygon.js +1 -3
  68. package/es/display-objects/Polyline.js +1 -3
  69. package/es/display-objects/Rect.js +1 -3
  70. package/es/display-objects/Text.js +3 -6
  71. package/es/dom/Animation.js +2 -4
  72. package/es/dom/AnimationEffectTiming.js +1 -3
  73. package/es/dom/AnimationEvent.js +1 -3
  74. package/es/dom/AnimationTimeline.js +1 -3
  75. package/es/dom/CustomElementRegistry.js +1 -3
  76. package/es/dom/CustomEvent.js +1 -3
  77. package/es/dom/Document.js +1 -3
  78. package/es/dom/Element.js +4 -6
  79. package/es/dom/EventTarget.js +3 -5
  80. package/es/dom/FederatedEvent.js +1 -3
  81. package/es/dom/FederatedMouseEvent.js +1 -3
  82. package/es/dom/FederatedPointerEvent.js +1 -3
  83. package/es/dom/FederatedWheelEvent.js +1 -3
  84. package/es/dom/KeyframeEffect.js +1 -3
  85. package/es/dom/KeyframeList.js +1 -1
  86. package/es/dom/MutationEvent.js +1 -3
  87. package/es/dom/MutationObserver.js +3 -10
  88. package/es/dom/MutationRecord.js +1 -3
  89. package/es/dom/Node.js +2 -4
  90. package/es/plugins/CullingPlugin.js +1 -3
  91. package/es/plugins/DirtyCheckPlugin.js +1 -3
  92. package/es/plugins/EventPlugin.js +1 -3
  93. package/es/plugins/FrustumCullingStrategy.js +2 -4
  94. package/es/plugins/PrepareRendererPlugin.js +1 -3
  95. package/es/services/EventService.js +3 -5
  96. package/es/services/OffscreenCanvasCreator.js +1 -3
  97. package/es/services/RenderingService.js +1 -3
  98. package/es/services/SceneGraphSelector.js +1 -3
  99. package/es/services/SceneGraphService.js +1 -3
  100. package/es/services/TextService.js +3 -5
  101. package/es/services/aabb/CircleUpdater.js +1 -3
  102. package/es/services/aabb/EllipseUpdater.js +1 -3
  103. package/es/services/aabb/LineUpdater.js +1 -3
  104. package/es/services/aabb/PathUpdater.js +1 -3
  105. package/es/services/aabb/PolylineUpdater.js +1 -3
  106. package/es/services/aabb/RectUpdater.js +1 -3
  107. package/es/services/aabb/TextUpdater.js +1 -3
  108. package/es/shapes/AABB.js +1 -3
  109. package/es/shapes/BoundingSphere.js +1 -3
  110. package/es/shapes/Frustum.js +1 -3
  111. package/es/shapes/Plane.js +1 -3
  112. package/es/shapes/Point.js +1 -3
  113. package/es/shapes/Ray.js +1 -3
  114. package/es/shapes/Rectangle.js +1 -3
  115. package/es/types.d.ts +1 -2
  116. package/es/utils/custom-easing.js +1 -1
  117. package/es/utils/path.d.ts +1 -1
  118. package/es/utils/path.js +3 -3
  119. package/es/utils/text.js +3 -3
  120. package/lib/AbstractRenderer.js +1 -3
  121. package/lib/Canvas.js +2 -4
  122. package/lib/DisplayObjectPool.js +1 -3
  123. package/lib/camera/Camera.js +2 -4
  124. package/lib/camera/Landmark.js +1 -3
  125. package/lib/components/Cullable.js +2 -4
  126. package/lib/components/Geometry.js +1 -3
  127. package/lib/components/Renderable.js +1 -3
  128. package/lib/components/Sortable.js +1 -3
  129. package/lib/components/Transform.js +1 -3
  130. package/lib/css/CSSProperty.d.ts +1 -1
  131. package/lib/css/LayoutRegistry.js +1 -3
  132. package/lib/css/StyleValueRegistry.js +4 -4
  133. package/lib/css/cssom/CSSColorValue.js +1 -3
  134. package/lib/css/cssom/CSSGradientValue.js +7 -9
  135. package/lib/css/cssom/CSSKeywordValue.js +1 -3
  136. package/lib/css/cssom/CSSMathInvert.js +1 -3
  137. package/lib/css/cssom/CSSMathMax.js +1 -3
  138. package/lib/css/cssom/CSSMathMin.js +1 -3
  139. package/lib/css/cssom/CSSMathNegate.js +1 -3
  140. package/lib/css/cssom/CSSMathOperator.js +1 -1
  141. package/lib/css/cssom/CSSMathProduct.js +1 -3
  142. package/lib/css/cssom/CSSMathSum.js +1 -3
  143. package/lib/css/cssom/CSSMathValue.js +1 -3
  144. package/lib/css/cssom/CSSMathVariadic.js +2 -4
  145. package/lib/css/cssom/CSSNumericValue.js +1 -3
  146. package/lib/css/cssom/CSSNumericValueType.d.ts +1 -1
  147. package/lib/css/cssom/CSSNumericValueType.js +3 -5
  148. package/lib/css/cssom/CSSRGB.js +2 -4
  149. package/lib/css/cssom/CSSStyleValue.d.ts +2 -2
  150. package/lib/css/cssom/CSSStyleValue.js +108 -110
  151. package/lib/css/cssom/CSSTransformComponent.js +2 -4
  152. package/lib/css/cssom/CSSTransformValue.js +1 -3
  153. package/lib/css/cssom/CSSTranslate.js +1 -3
  154. package/lib/css/cssom/CSSUnitValue.js +2 -4
  155. package/lib/css/cssom/types.js +1 -1
  156. package/lib/css/parser/color.js +3 -3
  157. package/lib/css/parser/dimension.js +6 -7
  158. package/lib/css/parser/numeric.js +3 -3
  159. package/lib/css/parser/path.js +1 -1
  160. package/lib/css/parser/transform.d.ts +1 -1
  161. package/lib/css/parser/transform.js +11 -11
  162. package/lib/css/properties/CSSPropertyAnchor.js +1 -3
  163. package/lib/css/properties/CSSPropertyClipPath.js +1 -3
  164. package/lib/css/properties/CSSPropertyColor.js +1 -3
  165. package/lib/css/properties/CSSPropertyFilter.js +1 -3
  166. package/lib/css/properties/CSSPropertyLengthOrPercentage.js +1 -3
  167. package/lib/css/properties/CSSPropertyLineDash.js +1 -3
  168. package/lib/css/properties/CSSPropertyLocalPosition.js +1 -3
  169. package/lib/css/properties/CSSPropertyOffsetDistance.js +1 -3
  170. package/lib/css/properties/CSSPropertyOffsetPath.js +1 -3
  171. package/lib/css/properties/CSSPropertyOpacity.js +1 -3
  172. package/lib/css/properties/CSSPropertyPath.js +1 -3
  173. package/lib/css/properties/CSSPropertyPoints.js +1 -3
  174. package/lib/css/properties/CSSPropertyShadowBlur.js +1 -3
  175. package/lib/css/properties/CSSPropertyText.js +2 -4
  176. package/lib/css/properties/CSSPropertyTextTransform.js +1 -3
  177. package/lib/css/properties/CSSPropertyTransform.js +1 -3
  178. package/lib/css/properties/CSSPropertyTransformOrigin.js +1 -3
  179. package/lib/css/properties/CSSPropertyVisibility.js +1 -3
  180. package/lib/css/properties/CSSPropertyZIndex.js +1 -3
  181. package/lib/display-objects/Circle.js +1 -3
  182. package/lib/display-objects/CustomElement.js +1 -3
  183. package/lib/display-objects/DisplayObject.js +3 -6
  184. package/lib/display-objects/Ellipse.js +1 -3
  185. package/lib/display-objects/Group.js +1 -3
  186. package/lib/display-objects/HTML.js +4 -6
  187. package/lib/display-objects/Image.js +1 -3
  188. package/lib/display-objects/Line.js +1 -3
  189. package/lib/display-objects/Path.js +1 -3
  190. package/lib/display-objects/Polygon.js +1 -3
  191. package/lib/display-objects/Polyline.js +1 -3
  192. package/lib/display-objects/Rect.js +1 -3
  193. package/lib/display-objects/Text.js +4 -6
  194. package/lib/dom/Animation.js +2 -4
  195. package/lib/dom/AnimationEffectTiming.js +1 -3
  196. package/lib/dom/AnimationEvent.js +1 -3
  197. package/lib/dom/AnimationTimeline.js +2 -4
  198. package/lib/dom/CustomElementRegistry.js +1 -3
  199. package/lib/dom/CustomEvent.js +1 -3
  200. package/lib/dom/Document.js +1 -3
  201. package/lib/dom/Element.js +4 -6
  202. package/lib/dom/EventTarget.js +3 -5
  203. package/lib/dom/FederatedEvent.js +1 -3
  204. package/lib/dom/FederatedMouseEvent.js +1 -3
  205. package/lib/dom/FederatedPointerEvent.js +1 -3
  206. package/lib/dom/FederatedWheelEvent.js +1 -3
  207. package/lib/dom/KeyframeEffect.js +2 -4
  208. package/lib/dom/KeyframeList.js +1 -1
  209. package/lib/dom/MutationEvent.js +1 -3
  210. package/lib/dom/MutationObserver.js +4 -11
  211. package/lib/dom/MutationRecord.js +1 -3
  212. package/lib/dom/Node.js +2 -4
  213. package/lib/index.js +1 -1
  214. package/lib/plugins/CullingPlugin.js +2 -4
  215. package/lib/plugins/DirtyCheckPlugin.js +1 -3
  216. package/lib/plugins/EventPlugin.js +1 -3
  217. package/lib/plugins/FrustumCullingStrategy.js +3 -5
  218. package/lib/plugins/PrepareRendererPlugin.js +1 -3
  219. package/lib/services/EventService.js +3 -5
  220. package/lib/services/OffscreenCanvasCreator.js +1 -3
  221. package/lib/services/RenderingService.js +1 -3
  222. package/lib/services/SceneGraphSelector.js +2 -4
  223. package/lib/services/SceneGraphService.js +3 -5
  224. package/lib/services/TextService.js +3 -5
  225. package/lib/services/aabb/CircleUpdater.js +1 -3
  226. package/lib/services/aabb/EllipseUpdater.js +1 -3
  227. package/lib/services/aabb/LineUpdater.js +1 -3
  228. package/lib/services/aabb/PathUpdater.js +1 -3
  229. package/lib/services/aabb/PolylineUpdater.js +1 -3
  230. package/lib/services/aabb/RectUpdater.js +1 -3
  231. package/lib/services/aabb/TextUpdater.js +1 -3
  232. package/lib/services/aabb/index.js +10 -10
  233. package/lib/services/aabb/interfaces.js +1 -1
  234. package/lib/shapes/AABB.js +1 -3
  235. package/lib/shapes/BoundingSphere.js +1 -3
  236. package/lib/shapes/Frustum.js +2 -4
  237. package/lib/shapes/Plane.js +1 -3
  238. package/lib/shapes/Point.js +1 -3
  239. package/lib/shapes/Ray.js +1 -3
  240. package/lib/shapes/Rectangle.js +1 -3
  241. package/lib/types.d.ts +1 -2
  242. package/lib/types.js +1 -1
  243. package/lib/utils/animation.js +2 -3
  244. package/lib/utils/bezier-easing.js +1 -1
  245. package/lib/utils/custom-easing.js +2 -2
  246. package/lib/utils/math.js +9 -9
  247. package/lib/utils/path.d.ts +1 -1
  248. package/lib/utils/path.js +6 -6
  249. package/lib/utils/text.js +3 -3
  250. package/package.json +3 -3
  251. package/dist/index.umd.min.js +0 -30
@@ -3,9 +3,7 @@ import { singleton } from 'mana-syringe';
3
3
  import { clampedMergeNumbers } from '../..';
4
4
  import { CSSPropertyLengthOrPercentage } from './CSSPropertyLengthOrPercentage';
5
5
 
6
- var CSSPropertyShadowBlur =
7
- /** @class */
8
- function (_super) {
6
+ var CSSPropertyShadowBlur = function (_super) {
9
7
  __extends(CSSPropertyShadowBlur, _super);
10
8
 
11
9
  function CSSPropertyShadowBlur() {
@@ -2,9 +2,7 @@ import { __decorate } from "tslib";
2
2
  import { singleton } from 'mana-syringe';
3
3
  import { CSSKeywordValue } from '../..';
4
4
 
5
- var CSSPropertyText =
6
- /** @class */
7
- function () {
5
+ var CSSPropertyText = function () {
8
6
  function CSSPropertyText() {}
9
7
 
10
8
  CSSPropertyText.prototype.calculator = function (name, oldParsed, parsed, object) {
@@ -20,7 +18,7 @@ function () {
20
18
  };
21
19
 
22
20
  CSSPropertyText.prototype.postProcessor = function (object) {
23
- object.nodeValue = "".concat(object.parsedStyle.text) || '';
21
+ object.nodeValue = "" + object.parsedStyle.text || '';
24
22
  };
25
23
 
26
24
  CSSPropertyText = __decorate([singleton()], CSSPropertyText);
@@ -2,9 +2,7 @@ import { __decorate } from "tslib";
2
2
  import { singleton } from 'mana-syringe';
3
3
  import { TextTransform, Shape } from '../..';
4
4
 
5
- var CSSPropertyTextTransform =
6
- /** @class */
7
- function () {
5
+ var CSSPropertyTextTransform = function () {
8
6
  function CSSPropertyTextTransform() {}
9
7
 
10
8
  CSSPropertyTextTransform.prototype.postProcessor = function (o) {
@@ -34,9 +34,7 @@ import { CSSKeywordValue } from '../cssom';
34
34
  * * perspective
35
35
  */
36
36
 
37
- var CSSPropertyTransform =
38
- /** @class */
39
- function () {
37
+ var CSSPropertyTransform = function () {
40
38
  function CSSPropertyTransform() {
41
39
  this.parser = parseTransform;
42
40
  this.mixer = mergeTransforms;
@@ -7,9 +7,7 @@ import { parseTransformOrigin } from '../..';
7
7
  * [10px, 10px] [10%, 10%]
8
8
  */
9
9
 
10
- var CSSPropertyTransformOrigin =
11
- /** @class */
12
- function () {
10
+ var CSSPropertyTransformOrigin = function () {
13
11
  function CSSPropertyTransformOrigin() {
14
12
  this.parser = parseTransformOrigin;
15
13
  }
@@ -8,9 +8,7 @@ import { singleton } from 'mana-syringe';
8
8
  *
9
9
  */
10
10
 
11
- var CSSPropertyVisibility =
12
- /** @class */
13
- function () {
11
+ var CSSPropertyVisibility = function () {
14
12
  function CSSPropertyVisibility() {}
15
13
 
16
14
  CSSPropertyVisibility.prototype.calculator = function (name, oldParsed, parsed, object) {
@@ -2,9 +2,7 @@ import { __decorate } from "tslib";
2
2
  import { singleton } from 'mana-syringe';
3
3
  import { parseNumber } from '../..';
4
4
 
5
- var CSSPropertyZIndex =
6
- /** @class */
7
- function () {
5
+ var CSSPropertyZIndex = function () {
8
6
  function CSSPropertyZIndex() {
9
7
  this.parser = parseNumber;
10
8
  }
@@ -2,9 +2,7 @@ import { __assign, __extends, __rest } from "tslib";
2
2
  import { Shape } from '../types';
3
3
  import { DisplayObject } from './DisplayObject';
4
4
 
5
- var Circle =
6
- /** @class */
7
- function (_super) {
5
+ var Circle = function (_super) {
8
6
  __extends(Circle, _super);
9
7
 
10
8
  function Circle(_a) {
@@ -6,9 +6,7 @@ import { ElementEvent } from '../dom/interfaces';
6
6
  * @see https://yuque.antfin-inc.com/antv/czqvg5/pgqipg
7
7
  */
8
8
 
9
- var CustomElement =
10
- /** @class */
11
- function (_super) {
9
+ var CustomElement = function (_super) {
12
10
  __extends(CustomElement, _super); // private shadowNodes: DisplayObject[] = [];
13
11
 
14
12
 
@@ -56,17 +56,14 @@ var DEFAULT_STYLE_PROPS = {
56
56
  * * attributeChanged
57
57
  */
58
58
 
59
- var DisplayObject =
60
- /** @class */
61
- function (_super) {
59
+ var DisplayObject = function (_super) {
62
60
  __extends(DisplayObject, _super);
63
61
 
64
62
  function DisplayObject(config) {
65
- var _this = this;
66
-
67
63
  var _a, _b, _c;
68
64
 
69
- _this = _super.call(this) || this;
65
+ var _this = _super.call(this) || this;
66
+
70
67
  _this.styleValueRegistry = GlobalContainer.get(StyleValueRegistry);
71
68
  /**
72
69
  * push to active animations after calling `animate()`
@@ -2,9 +2,7 @@ import { __assign, __extends, __rest } from "tslib";
2
2
  import { Shape } from '../types';
3
3
  import { DisplayObject } from './DisplayObject';
4
4
 
5
- var Ellipse =
6
- /** @class */
7
- function (_super) {
5
+ var Ellipse = function (_super) {
8
6
  __extends(Ellipse, _super);
9
7
 
10
8
  function Ellipse(_a) {
@@ -12,9 +12,7 @@ import { DisplayObject } from './DisplayObject';
12
12
  </g>
13
13
  */
14
14
 
15
- var Group =
16
- /** @class */
17
- function (_super) {
15
+ var Group = function (_super) {
18
16
  __extends(Group, _super);
19
17
 
20
18
  function Group(_a) {
@@ -8,9 +8,7 @@ import { mat4, vec3 } from 'gl-matrix';
8
8
  * @see https://github.com/pmndrs/drei#html
9
9
  */
10
10
 
11
- var HTML =
12
- /** @class */
13
- function (_super) {
11
+ var HTML = function (_super) {
14
12
  __extends(HTML, _super);
15
13
 
16
14
  function HTML(_a) {
@@ -18,12 +16,10 @@ function (_super) {
18
16
  _a = {};
19
17
  }
20
18
 
21
- var _this = this;
22
-
23
19
  var style = _a.style,
24
20
  rest = __rest(_a, ["style"]);
25
21
 
26
- _this = _super.call(this, __assign({
22
+ var _this = _super.call(this, __assign({
27
23
  type: Shape.HTML,
28
24
  style: __assign({
29
25
  innerHTML: '',
@@ -31,6 +27,7 @@ function (_super) {
31
27
  style: ''
32
28
  }, style)
33
29
  }, rest)) || this;
30
+
34
31
  _this.cullable.enable = false;
35
32
  return _this;
36
33
  }
@@ -2,9 +2,7 @@ import { __assign, __extends, __rest } from "tslib";
2
2
  import { Shape } from '../types';
3
3
  import { DisplayObject } from './DisplayObject';
4
4
 
5
- var Image =
6
- /** @class */
7
- function (_super) {
5
+ var Image = function (_super) {
8
6
  __extends(Image, _super);
9
7
 
10
8
  function Image(_a) {
@@ -4,9 +4,7 @@ import { Shape } from '../types';
4
4
  import { DisplayObject } from './DisplayObject';
5
5
  import { Point } from '../shapes';
6
6
 
7
- var Line =
8
- /** @class */
9
- function (_super) {
7
+ var Line = function (_super) {
10
8
  __extends(Line, _super);
11
9
 
12
10
  function Line(_a) {
@@ -5,9 +5,7 @@ import { Point } from '../shapes';
5
5
  import { Cubic as CubicUtil } from '@antv/g-math';
6
6
  import { isNil } from '@antv/util';
7
7
 
8
- var Path =
9
- /** @class */
10
- function (_super) {
8
+ var Path = function (_super) {
11
9
  __extends(Path, _super);
12
10
 
13
11
  function Path(_a) {
@@ -2,9 +2,7 @@ import { __assign, __extends, __rest } from "tslib";
2
2
  import { Shape } from '../types';
3
3
  import { DisplayObject } from './DisplayObject';
4
4
 
5
- var Polygon =
6
- /** @class */
7
- function (_super) {
5
+ var Polygon = function (_super) {
8
6
  __extends(Polygon, _super);
9
7
 
10
8
  function Polygon(_a) {
@@ -4,9 +4,7 @@ import { Shape } from '../types';
4
4
  import { DisplayObject } from './DisplayObject';
5
5
  import { Point } from '../shapes';
6
6
 
7
- var Polyline =
8
- /** @class */
9
- function (_super) {
7
+ var Polyline = function (_super) {
10
8
  __extends(Polyline, _super);
11
9
 
12
10
  function Polyline(_a) {
@@ -2,9 +2,7 @@ import { __assign, __extends, __rest } from "tslib";
2
2
  import { Shape } from '../types';
3
3
  import { DisplayObject } from './DisplayObject';
4
4
 
5
- var Rect =
6
- /** @class */
7
- function (_super) {
5
+ var Rect = function (_super) {
8
6
  __extends(Rect, _super);
9
7
 
10
8
  function Rect(_a) {
@@ -5,9 +5,7 @@ import { DisplayObject } from './DisplayObject';
5
5
  * <text> @see https://developer.mozilla.org/en-US/docs/Web/API/SVGTextElement
6
6
  */
7
7
 
8
- var Text =
9
- /** @class */
10
- function (_super) {
8
+ var Text = function (_super) {
11
9
  __extends(Text, _super);
12
10
 
13
11
  function Text(_a) {
@@ -15,12 +13,10 @@ function (_super) {
15
13
  _a = {};
16
14
  }
17
15
 
18
- var _this = this;
19
-
20
16
  var style = _a.style,
21
17
  rest = __rest(_a, ["style"]);
22
18
 
23
- _this = _super.call(this, __assign({
19
+ var _this = _super.call(this, __assign({
24
20
  type: Shape.TEXT,
25
21
  style: __assign({
26
22
  text: '',
@@ -56,6 +52,7 @@ function (_super) {
56
52
  * @see https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement#constants
57
53
  */
58
54
 
55
+
59
56
  _this.LENGTHADJUST_SPACING = 1;
60
57
  _this.LENGTHADJUST_SPACINGANDGLYPHS = 2;
61
58
  _this.LENGTHADJUST_UNKNOWN = 0;
@@ -4,9 +4,7 @@ var sequenceNumber = 0;
4
4
  * @see https://developer.mozilla.org/en-US/docs/Web/API/Animation/Animation
5
5
  */
6
6
 
7
- var Animation =
8
- /** @class */
9
- function () {
7
+ var Animation = function () {
10
8
  function Animation(effect, timeline) {
11
9
  this.currentTimePending = false;
12
10
  /**
@@ -23,7 +21,7 @@ function () {
23
21
  this.effect = effect;
24
22
  effect.animation = this;
25
23
  this.timeline = timeline;
26
- this.id = "".concat(sequenceNumber++);
24
+ this.id = "" + sequenceNumber++;
27
25
  this._inEffect = !!this.effect.update(0);
28
26
  this._holdTime = 0;
29
27
  this._paused = false;
@@ -3,9 +3,7 @@ import { linear, parseEasingFunction } from '../utils/animation';
3
3
  * @see https://developer.mozilla.org/en-US/docs/Web/API/EffectTiming
4
4
  */
5
5
 
6
- var AnimationEffectTiming =
7
- /** @class */
8
- function () {
6
+ var AnimationEffectTiming = function () {
9
7
  function AnimationEffectTiming() {
10
8
  /**
11
9
  * @see https://developer.mozilla.org/en-US/docs/Web/API/EffectTiming/delay
@@ -4,9 +4,7 @@ import { FederatedEvent } from './FederatedEvent';
4
4
  * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent
5
5
  */
6
6
 
7
- var AnimationEvent =
8
- /** @class */
9
- function (_super) {
7
+ var AnimationEvent = function (_super) {
10
8
  __extends(AnimationEvent, _super);
11
9
 
12
10
  function AnimationEvent(manager, target, currentTime, timelineTime) {
@@ -7,9 +7,7 @@ export function compareAnimations(leftAnimation, rightAnimation) {
7
7
  * @see https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/web-animations-js/index.d.ts
8
8
  */
9
9
 
10
- var AnimationTimeline =
11
- /** @class */
12
- function () {
10
+ var AnimationTimeline = function () {
13
11
  function AnimationTimeline(document) {
14
12
  var _this = this;
15
13
 
@@ -6,9 +6,7 @@ import { Ellipse, Circle, Rect, Image, Line, Path, Group, Polygon, Polyline, Tex
6
6
  * @see https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry
7
7
  */
8
8
 
9
- var CustomElementRegistry =
10
- /** @class */
11
- function () {
9
+ var CustomElementRegistry = function () {
12
10
  function CustomElementRegistry() {
13
11
  this.registry = {};
14
12
  this.define(Shape.CIRCLE, Circle);
@@ -13,9 +13,7 @@ import { FederatedEvent } from './FederatedEvent';
13
13
  circle.dispatchEvent(event);
14
14
  */
15
15
 
16
- var CustomEvent =
17
- /** @class */
18
- function (_super) {
16
+ var CustomEvent = function (_super) {
19
17
  __extends(CustomEvent, _super); // eslint-disable-next-line @typescript-eslint/ban-types
20
18
 
21
19
 
@@ -9,9 +9,7 @@ import { BUILT_IN_PROPERTIES } from '../css';
9
9
  * @see https://developer.mozilla.org/en-US/docs/Web/API/Document
10
10
  */
11
11
 
12
- var Document =
13
- /** @class */
14
- function (_super) {
12
+ var Document = function (_super) {
15
13
  __extends(Document, _super);
16
14
 
17
15
  function Document() {
package/es/dom/Element.js CHANGED
@@ -15,9 +15,7 @@ var entityCounter = 0;
15
15
  * * Animation
16
16
  */
17
17
 
18
- var Element =
19
- /** @class */
20
- function (_super) {
18
+ var Element = function (_super) {
21
19
  __extends(Element, _super);
22
20
 
23
21
  function Element() {
@@ -250,15 +248,15 @@ function (_super) {
250
248
  };
251
249
 
252
250
  Element.prototype.getElementById = function (id) {
253
- return this.sceneGraphService.querySelector("#".concat(id), this);
251
+ return this.sceneGraphService.querySelector("#" + id, this);
254
252
  };
255
253
 
256
254
  Element.prototype.getElementsByName = function (name) {
257
- return this.sceneGraphService.querySelectorAll("[name=\"".concat(name, "\"]"), this);
255
+ return this.sceneGraphService.querySelectorAll("[name=\"" + name + "\"]", this);
258
256
  };
259
257
 
260
258
  Element.prototype.getElementsByClassName = function (className) {
261
- return this.sceneGraphService.querySelectorAll(".".concat(className), this);
259
+ return this.sceneGraphService.querySelectorAll("." + className, this);
262
260
  };
263
261
 
264
262
  Element.prototype.getElementsByTagName = function (tagName) {
@@ -10,9 +10,7 @@ export var DELEGATION_SPLITTER = ':';
10
10
  * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget
11
11
  */
12
12
 
13
- var EventTarget =
14
- /** @class */
15
- function () {
13
+ var EventTarget = function () {
16
14
  function EventTarget() {
17
15
  /**
18
16
  * event emitter
@@ -54,7 +52,7 @@ function () {
54
52
  useDelegatedName = true;
55
53
  }
56
54
 
57
- type = capture ? "".concat(type, "capture") : type;
55
+ type = capture ? type + "capture" : type;
58
56
  listener = isFunction(listener) ? listener : listener.handleEvent; // compatible with G 3.0
59
57
 
60
58
  if (useDelegatedName) {
@@ -110,7 +108,7 @@ function () {
110
108
  EventTarget.prototype.removeEventListener = function (type, listener, options) {
111
109
  var capture = isBoolean(options) && options || isObject(options) && options.capture;
112
110
  var context = isFunction(listener) ? undefined : listener;
113
- type = capture ? "".concat(type, "capture") : type;
111
+ type = capture ? type + "capture" : type;
114
112
  listener = isFunction(listener) ? listener : listener === null || listener === void 0 ? void 0 : listener.handleEvent;
115
113
  this.emitter.off(type, listener, context);
116
114
  return this;
@@ -4,9 +4,7 @@ import { Point } from '../shapes/Point';
4
4
  * FederatedEvent or native {@link https://dom.spec.whatwg.org/#event Event}.
5
5
  */
6
6
 
7
- var FederatedEvent =
8
- /** @class */
9
- function () {
7
+ var FederatedEvent = function () {
10
8
  /**
11
9
  * The event boundary which manages this event. Propagation can only occur
12
10
  * within the boundary's jurisdiction.
@@ -2,9 +2,7 @@ import { __extends } from "tslib";
2
2
  import { FederatedEvent } from './FederatedEvent';
3
3
  import { Point } from '../shapes/Point';
4
4
 
5
- var FederatedMouseEvent =
6
- /** @class */
7
- function (_super) {
5
+ var FederatedMouseEvent = function (_super) {
8
6
  __extends(FederatedMouseEvent, _super);
9
7
 
10
8
  function FederatedMouseEvent() {
@@ -1,9 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { FederatedMouseEvent } from './FederatedMouseEvent';
3
3
 
4
- var FederatedPointerEvent =
5
- /** @class */
6
- function (_super) {
4
+ var FederatedPointerEvent = function (_super) {
7
5
  __extends(FederatedPointerEvent, _super);
8
6
 
9
7
  function FederatedPointerEvent() {
@@ -1,9 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { FederatedMouseEvent } from './FederatedMouseEvent';
3
3
 
4
- var FederatedWheelEvent =
5
- /** @class */
6
- function (_super) {
4
+ var FederatedWheelEvent = function (_super) {
7
5
  __extends(FederatedWheelEvent, _super);
8
6
 
9
7
  function FederatedWheelEvent() {
@@ -74,9 +74,7 @@ export function numericTimingToObject(timingInput) {
74
74
  *
75
75
  */
76
76
 
77
- var KeyframeEffect =
78
- /** @class */
79
- function () {
77
+ var KeyframeEffect = function () {
80
78
  function KeyframeEffect(target, effectInput, timingInput) {
81
79
  var _this = this;
82
80
 
@@ -95,7 +95,7 @@ export function normalizeKeyframes(effectInput, timing) {
95
95
  // TODO: Support add & accumulate in KeyframeEffect.composite
96
96
  // @see https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/composite
97
97
  if (['replace', 'add', 'accumulate', 'auto'].indexOf(memberValue) === -1) {
98
- throw new Error("".concat(memberValue, " compositing is not supported"));
98
+ throw new Error(memberValue + " compositing is not supported");
99
99
  }
100
100
  } else if (member === 'easing') {// TODO: Validate animation-timing-function
101
101
  // @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-timing-function
@@ -1,9 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { FederatedEvent } from './FederatedEvent';
3
3
 
4
- var MutationEvent =
5
- /** @class */
6
- function (_super) {
4
+ var MutationEvent = function (_super) {
7
5
  __extends(MutationEvent, _super);
8
6
 
9
7
  function MutationEvent(typeArg, relatedNode, prevValue, newValue, attrName, attrChange, prevParsedValue, newParsedValue) {
@@ -4,9 +4,7 @@ import { MutationRecord } from './MutationRecord';
4
4
  var uidCounter = 0;
5
5
  var registrationsTable = new WeakMap();
6
6
 
7
- var Registration =
8
- /** @class */
9
- function () {
7
+ var Registration = function () {
10
8
  function Registration(observer, target, options) {
11
9
  this.observer = observer;
12
10
  this.target = target;
@@ -196,9 +194,7 @@ export { Registration };
196
194
  * @see https://github.com/googlearchive/MutationObservers/blob/master/MutationObserver.js
197
195
  */
198
196
 
199
- var MutationObserver =
200
- /** @class */
201
- function () {
197
+ var MutationObserver = function () {
202
198
  function MutationObserver(callback) {
203
199
  this.callback = callback;
204
200
  this.nodes = [];
@@ -208,10 +204,7 @@ function () {
208
204
 
209
205
  MutationObserver.prototype.observe = function (target, options) {
210
206
  // 1.1
211
- if (!options.childList && !options.attributes && !options.characterData || // 1.2
212
- options.attributeOldValue && !options.attributes || // 1.3
213
- options.attributeFilter && options.attributeFilter.length && !options.attributes || // 1.4
214
- options.characterDataOldValue && !options.characterData) {
207
+ if (!options.childList && !options.attributes && !options.characterData || options.attributeOldValue && !options.attributes || options.attributeFilter && options.attributeFilter.length && !options.attributes || options.characterDataOldValue && !options.characterData) {
215
208
  throw new SyntaxError();
216
209
  }
217
210
 
@@ -1,6 +1,4 @@
1
- var MutationRecord =
2
- /** @class */
3
- function () {
1
+ var MutationRecord = function () {
4
2
  function MutationRecord(type, target) {
5
3
  this.type = type;
6
4
  this.target = target;
package/es/dom/Node.js CHANGED
@@ -6,9 +6,7 @@ import { EventTarget } from './EventTarget';
6
6
  * @see https://developer.mozilla.org/en-US/docs/Web/API/Node
7
7
  */
8
8
 
9
- var Node =
10
- /** @class */
11
- function (_super) {
9
+ var Node = function (_super) {
12
10
  __extends(Node, _super);
13
11
 
14
12
  function Node() {
@@ -117,7 +115,7 @@ function (_super) {
117
115
 
118
116
  if (this.nodeName === Shape.TEXT) {
119
117
  // @ts-ignore
120
- this.style.text = "".concat(content);
118
+ this.style.text = "" + content;
121
119
  } else {// this.appendChild(
122
120
  // new Text({
123
121
  // style: {
@@ -8,9 +8,7 @@ export var CullingStrategyContribution = Syringe.defineToken('CullingStrategyCon
8
8
  * 2. other custom culling strategies, eg. frustum culling
9
9
  */
10
10
 
11
- var CullingPlugin =
12
- /** @class */
13
- function () {
11
+ var CullingPlugin = function () {
14
12
  function CullingPlugin() {}
15
13
 
16
14
  CullingPlugin_1 = CullingPlugin;
@@ -6,9 +6,7 @@ import { RenderingContext, RenderReason } from '../services/RenderingContext';
6
6
  * Filter dirty renderables and calculate the "dirty rectangle" which will be clear when frame began
7
7
  */
8
8
 
9
- var DirtyCheckPlugin =
10
- /** @class */
11
- function () {
9
+ var DirtyCheckPlugin = function () {
12
10
  function DirtyCheckPlugin() {}
13
11
 
14
12
  DirtyCheckPlugin_1 = DirtyCheckPlugin;
@@ -15,9 +15,7 @@ import { MOUSE_POINTER_ID, TOUCH_TO_POINTER } from '../utils/event';
15
15
  * also provide some extra events such as `drag`
16
16
  */
17
17
 
18
- var EventPlugin =
19
- /** @class */
20
- function () {
18
+ var EventPlugin = function () {
21
19
  function EventPlugin() {
22
20
  var _this = this;
23
21
 
@@ -4,13 +4,11 @@ import { vec3 } from 'gl-matrix';
4
4
  import { CullingStrategyContribution } from './CullingPlugin';
5
5
  import { AABB, Mask } from '../shapes';
6
6
  import { DefaultCamera, Camera } from '../camera/Camera';
7
- import { Shape } from '..'; // group is not a 2d shape
7
+ import { Shape } from '../types'; // group is not a 2d shape
8
8
 
9
9
  var shape2D = [Shape.CIRCLE, Shape.ELLIPSE, Shape.IMAGE, Shape.RECT, Shape.LINE, Shape.POLYLINE, Shape.POLYGON, Shape.TEXT, Shape.PATH, Shape.HTML];
10
10
 
11
- var FrustumCullingStrategy =
12
- /** @class */
13
- function () {
11
+ var FrustumCullingStrategy = function () {
14
12
  function FrustumCullingStrategy() {}
15
13
 
16
14
  FrustumCullingStrategy.prototype.isVisible = function (object) {