@amcharts/amcharts5 5.1.1 → 5.1.2

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 (153) hide show
  1. package/.internal/charts/radar/RadarCursor.d.ts +2 -0
  2. package/.internal/charts/radar/RadarCursor.d.ts.map +1 -1
  3. package/.internal/charts/radar/RadarCursor.js +14 -0
  4. package/.internal/charts/radar/RadarCursor.js.map +1 -1
  5. package/.internal/charts/xy/XYChart.d.ts.map +1 -1
  6. package/.internal/charts/xy/XYChart.js +17 -9
  7. package/.internal/charts/xy/XYChart.js.map +1 -1
  8. package/.internal/charts/xy/XYCursor.d.ts +3 -1
  9. package/.internal/charts/xy/XYCursor.d.ts.map +1 -1
  10. package/.internal/charts/xy/XYCursor.js +32 -0
  11. package/.internal/charts/xy/XYCursor.js.map +1 -1
  12. package/.internal/charts/xy/axes/Axis.d.ts.map +1 -1
  13. package/.internal/charts/xy/axes/Axis.js +1 -0
  14. package/.internal/charts/xy/axes/Axis.js.map +1 -1
  15. package/.internal/charts/xy/series/LineSeries.d.ts +2 -0
  16. package/.internal/charts/xy/series/LineSeries.d.ts.map +1 -1
  17. package/.internal/charts/xy/series/LineSeries.js +29 -5
  18. package/.internal/charts/xy/series/LineSeries.js.map +1 -1
  19. package/.internal/charts/xy/series/XYSeries.d.ts +15 -0
  20. package/.internal/charts/xy/series/XYSeries.d.ts.map +1 -1
  21. package/.internal/charts/xy/series/XYSeries.js.map +1 -1
  22. package/.internal/core/render/Legend.js.map +1 -1
  23. package/.internal/core/render/Series.d.ts.map +1 -1
  24. package/.internal/core/render/Series.js +3 -0
  25. package/.internal/core/render/Series.js.map +1 -1
  26. package/.internal/core/render/backend/CanvasRenderer.d.ts +5 -3
  27. package/.internal/core/render/backend/CanvasRenderer.d.ts.map +1 -1
  28. package/.internal/core/render/backend/CanvasRenderer.js +41 -5
  29. package/.internal/core/render/backend/CanvasRenderer.js.map +1 -1
  30. package/.internal/core/util/Disposer.d.ts +33 -8
  31. package/.internal/core/util/Disposer.d.ts.map +1 -1
  32. package/.internal/core/util/Disposer.js +95 -21
  33. package/.internal/core/util/Disposer.js.map +1 -1
  34. package/.internal/core/util/Utils.d.ts +4 -2
  35. package/.internal/core/util/Utils.d.ts.map +1 -1
  36. package/.internal/core/util/Utils.js +28 -17
  37. package/.internal/core/util/Utils.js.map +1 -1
  38. package/CHANGELOG.md +13 -0
  39. package/examples/javascript/flow-chord/package.json +1 -1
  40. package/examples/javascript/flow-chord-directed/package.json +1 -1
  41. package/examples/javascript/flow-chord-non-ribbon/package.json +1 -1
  42. package/examples/javascript/flow-sankey/package.json +1 -1
  43. package/examples/javascript/gauge/package.json +1 -1
  44. package/examples/javascript/gauge-bands/package.json +1 -1
  45. package/examples/javascript/hierarchy-force-directed/package.json +1 -1
  46. package/examples/javascript/hierarchy-pack/package.json +1 -1
  47. package/examples/javascript/hierarchy-partition/package.json +1 -1
  48. package/examples/javascript/hierarchy-sunburst/package.json +1 -1
  49. package/examples/javascript/hierarchy-tree/package.json +1 -1
  50. package/examples/javascript/hierarchy-treemap/package.json +1 -1
  51. package/examples/javascript/map-animating-along-lines/package.json +1 -1
  52. package/examples/javascript/map-day-and-night/package.json +1 -1
  53. package/examples/javascript/map-globe-rotate-to-country/package.json +1 -1
  54. package/examples/javascript/map-globe-with-projected-circles/package.json +1 -1
  55. package/examples/javascript/map-with-bubbles/package.json +1 -1
  56. package/examples/javascript/map-zoom-to-country/package.json +1 -1
  57. package/examples/javascript/misc-40-charts/package.json +1 -1
  58. package/examples/javascript/misc-microchart-grid/package.json +1 -1
  59. package/examples/javascript/pie-chart/package.json +1 -1
  60. package/examples/javascript/pie-donut-chart/package.json +1 -1
  61. package/examples/javascript/pie-variable-radius/package.json +1 -1
  62. package/examples/javascript/radar-column-iwatch-style/package.json +1 -1
  63. package/examples/javascript/radar-heat-map/package.json +1 -1
  64. package/examples/javascript/radar-line/package.json +1 -1
  65. package/examples/javascript/radar-time-line/package.json +1 -1
  66. package/examples/javascript/sliced-funnel/package.json +1 -1
  67. package/examples/javascript/sliced-pictorial-stacked/package.json +1 -1
  68. package/examples/javascript/sliced-pyramid/package.json +1 -1
  69. package/examples/javascript/venn-diagram/package.json +1 -1
  70. package/examples/javascript/wordcloud-with-data/package.json +1 -1
  71. package/examples/javascript/wordcloud-with-text/package.json +1 -1
  72. package/examples/javascript/xy-100-percent-stacked-column/package.json +1 -1
  73. package/examples/javascript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
  74. package/examples/javascript/xy-bubble/package.json +1 -1
  75. package/examples/javascript/xy-candlestick/package.json +1 -1
  76. package/examples/javascript/xy-clustered-column/package.json +1 -1
  77. package/examples/javascript/xy-column/package.json +1 -1
  78. package/examples/javascript/xy-comparing-series-google-analytics-style/package.json +1 -1
  79. package/examples/javascript/xy-data-grouping/package.json +1 -1
  80. package/examples/javascript/xy-draggable-range/package.json +1 -1
  81. package/examples/javascript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
  82. package/examples/javascript/xy-dumbbell plot/package.json +1 -1
  83. package/examples/javascript/xy-evenly-spaced-date-axis/package.json +1 -1
  84. package/examples/javascript/xy-line/package.json +1 -1
  85. package/examples/javascript/xy-line-highlight-on-legend-hover/package.json +1 -1
  86. package/examples/javascript/xy-live-data/package.json +1 -1
  87. package/examples/javascript/xy-multiple-synced-value-axes/package.json +1 -1
  88. package/examples/javascript/xy-ohlc/package.json +1 -1
  89. package/examples/javascript/xy-real-time-data-sorting/package.json +1 -1
  90. package/examples/javascript/xy-smoothed-line/package.json +1 -1
  91. package/examples/javascript/xy-stacked-and-clustered-column/package.json +1 -1
  92. package/examples/javascript/xy-stacked-column/package.json +1 -1
  93. package/examples/javascript/xy-stacked-step/package.json +1 -1
  94. package/examples/javascript/xy-stock/package.json +1 -1
  95. package/examples/javascript/xy-stock-comparing/package.json +1 -1
  96. package/examples/typescript/flow-chord/package.json +1 -1
  97. package/examples/typescript/flow-chord-directed/package.json +1 -1
  98. package/examples/typescript/flow-chord-non-ribbon/package.json +1 -1
  99. package/examples/typescript/flow-sankey/package.json +1 -1
  100. package/examples/typescript/gauge/package.json +1 -1
  101. package/examples/typescript/gauge-bands/package.json +1 -1
  102. package/examples/typescript/hierarchy-force-directed/package.json +1 -1
  103. package/examples/typescript/hierarchy-pack/package.json +1 -1
  104. package/examples/typescript/hierarchy-partition/package.json +1 -1
  105. package/examples/typescript/hierarchy-sunburst/package.json +1 -1
  106. package/examples/typescript/hierarchy-tree/package.json +1 -1
  107. package/examples/typescript/hierarchy-treemap/package.json +1 -1
  108. package/examples/typescript/map-animating-along-lines/package.json +1 -1
  109. package/examples/typescript/map-day-and-night/package.json +1 -1
  110. package/examples/typescript/map-globe-rotate-to-country/package.json +1 -1
  111. package/examples/typescript/map-globe-with-projected-circles/package.json +1 -1
  112. package/examples/typescript/map-with-bubbles/package.json +1 -1
  113. package/examples/typescript/map-zoom-to-country/package.json +1 -1
  114. package/examples/typescript/misc-40-charts/package.json +1 -1
  115. package/examples/typescript/misc-microchart-grid/package.json +1 -1
  116. package/examples/typescript/pie-chart/package.json +1 -1
  117. package/examples/typescript/pie-donut-chart/package.json +1 -1
  118. package/examples/typescript/pie-variable-radius/package.json +1 -1
  119. package/examples/typescript/radar-column-iwatch-style/package.json +1 -1
  120. package/examples/typescript/radar-heat-map/package.json +1 -1
  121. package/examples/typescript/radar-line/package.json +1 -1
  122. package/examples/typescript/radar-time-line/package.json +1 -1
  123. package/examples/typescript/sliced-funnel/package.json +1 -1
  124. package/examples/typescript/sliced-pictorial-stacked/package.json +1 -1
  125. package/examples/typescript/sliced-pyramid/package.json +1 -1
  126. package/examples/typescript/venn-diagram/package.json +1 -1
  127. package/examples/typescript/wordcloud-with-data/package.json +1 -1
  128. package/examples/typescript/wordcloud-with-text/package.json +1 -1
  129. package/examples/typescript/xy-100-percent-stacked-column/package.json +1 -1
  130. package/examples/typescript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
  131. package/examples/typescript/xy-bubble/package.json +1 -1
  132. package/examples/typescript/xy-candlestick/package.json +1 -1
  133. package/examples/typescript/xy-clustered-column/package.json +1 -1
  134. package/examples/typescript/xy-column/package.json +1 -1
  135. package/examples/typescript/xy-comparing-series-google-analytics-style/package.json +1 -1
  136. package/examples/typescript/xy-data-grouping/package.json +1 -1
  137. package/examples/typescript/xy-draggable-range/package.json +1 -1
  138. package/examples/typescript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
  139. package/examples/typescript/xy-dumbbell plot/package.json +1 -1
  140. package/examples/typescript/xy-evenly-spaced-date-axis/package.json +1 -1
  141. package/examples/typescript/xy-line/package.json +1 -1
  142. package/examples/typescript/xy-line-highlight-on-legend-hover/package.json +1 -1
  143. package/examples/typescript/xy-live-data/package.json +1 -1
  144. package/examples/typescript/xy-multiple-synced-value-axes/package.json +1 -1
  145. package/examples/typescript/xy-ohlc/package.json +1 -1
  146. package/examples/typescript/xy-real-time-data-sorting/package.json +1 -1
  147. package/examples/typescript/xy-smoothed-line/package.json +1 -1
  148. package/examples/typescript/xy-stacked-and-clustered-column/package.json +1 -1
  149. package/examples/typescript/xy-stacked-column/package.json +1 -1
  150. package/examples/typescript/xy-stacked-step/package.json +1 -1
  151. package/examples/typescript/xy-stock/package.json +1 -1
  152. package/examples/typescript/xy-stock-comparing/package.json +1 -1
  153. package/package.json +1 -1
@@ -13,6 +13,32 @@ export interface IDisposer {
13
13
  *
14
14
  * @ignore Exclude from docs
15
15
  */
16
+ export declare abstract class DisposerClass implements IDisposer {
17
+ /**
18
+ * Is object disposed?
19
+ */
20
+ private _disposed;
21
+ /**
22
+ * Constructor.
23
+ */
24
+ constructor();
25
+ /**
26
+ * Checks if object is disposed.
27
+ *
28
+ * @return Disposed?
29
+ */
30
+ isDisposed(): boolean;
31
+ protected abstract _dispose(): void;
32
+ /**
33
+ * Disposes the object.
34
+ */
35
+ dispose(): void;
36
+ }
37
+ /**
38
+ * A class for creating an IDisposer.
39
+ *
40
+ * @ignore Exclude from docs
41
+ */
16
42
  export declare class Disposer implements IDisposer {
17
43
  /**
18
44
  * Is object disposed?
@@ -44,17 +70,19 @@ export declare class Disposer implements IDisposer {
44
70
  *
45
71
  * @ignore Exclude from docs
46
72
  */
47
- export declare class ArrayDisposer extends Disposer {
73
+ export declare class ArrayDisposer extends DisposerClass {
48
74
  protected _disposers: Array<IDisposer>;
49
- constructor();
75
+ protected _dispose(): void;
50
76
  }
51
77
  /**
52
78
  * A collection of related disposers that can be disposed in one go.
53
79
  *
54
80
  * @ignore Exclude from docs
55
81
  */
56
- export declare class MultiDisposer extends Disposer {
82
+ export declare class MultiDisposer extends DisposerClass {
83
+ protected _disposers: Array<IDisposer>;
57
84
  constructor(disposers: Array<IDisposer>);
85
+ protected _dispose(): void;
58
86
  }
59
87
  /**
60
88
  * A special kind of Disposer that has attached value set.
@@ -65,7 +93,7 @@ export declare class MultiDisposer extends Disposer {
65
93
  * @ignore Exclude from docs
66
94
  * @todo Description
67
95
  */
68
- export declare class MutableValueDisposer<T extends IDisposer> extends Disposer {
96
+ export declare class MutableValueDisposer<T extends IDisposer> extends DisposerClass {
69
97
  /**
70
98
  * Current disposer.
71
99
  */
@@ -74,10 +102,7 @@ export declare class MutableValueDisposer<T extends IDisposer> extends Disposer
74
102
  * Current value.
75
103
  */
76
104
  private _value;
77
- /**
78
- * Constructor.
79
- */
80
- constructor();
105
+ protected _dispose(): void;
81
106
  /**
82
107
  * Returns current value.
83
108
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Disposer.d.ts","sourceRoot":"","sources":["../../../../../src/.internal/core/util/Disposer.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEvC;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACzB,UAAU,IAAI,OAAO,CAAC;IACtB,OAAO,IAAI,IAAI,CAAC;CAChB;AAED;;;;GAIG;AACH,qBAAa,QAAS,YAAW,SAAS;IAEzC;;OAEG;IACH,OAAO,CAAC,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ACI,KAAK,IAAI,IAAI;CAIpB;AAED;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,QAAQ;IAE5C;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAa;IAE7B;;;;OAIG;IACI,SAAS;CAchB"}
@@ -11,6 +11,57 @@ import * as $array from "./Array";
11
11
  *
12
12
  * @ignore Exclude from docs
13
13
  */
14
+ var DisposerClass = /** @class */ (function () {
15
+ /**
16
+ * Constructor.
17
+ */
18
+ function DisposerClass() {
19
+ /**
20
+ * Is object disposed?
21
+ */
22
+ Object.defineProperty(this, "_disposed", {
23
+ enumerable: true,
24
+ configurable: true,
25
+ writable: true,
26
+ value: void 0
27
+ });
28
+ this._disposed = false;
29
+ }
30
+ /**
31
+ * Checks if object is disposed.
32
+ *
33
+ * @return Disposed?
34
+ */
35
+ Object.defineProperty(DisposerClass.prototype, "isDisposed", {
36
+ enumerable: false,
37
+ configurable: true,
38
+ writable: true,
39
+ value: function () {
40
+ return this._disposed;
41
+ }
42
+ });
43
+ /**
44
+ * Disposes the object.
45
+ */
46
+ Object.defineProperty(DisposerClass.prototype, "dispose", {
47
+ enumerable: false,
48
+ configurable: true,
49
+ writable: true,
50
+ value: function () {
51
+ if (!this._disposed) {
52
+ this._disposed = true;
53
+ this._dispose();
54
+ }
55
+ }
56
+ });
57
+ return DisposerClass;
58
+ }());
59
+ export { DisposerClass };
60
+ /**
61
+ * A class for creating an IDisposer.
62
+ *
63
+ * @ignore Exclude from docs
64
+ */
14
65
  var Disposer = /** @class */ (function () {
15
66
  /**
16
67
  * Constructor.
@@ -77,11 +128,7 @@ export { Disposer };
77
128
  var ArrayDisposer = /** @class */ (function (_super) {
78
129
  __extends(ArrayDisposer, _super);
79
130
  function ArrayDisposer() {
80
- var _this = _super.call(this, function () {
81
- $array.each(_this._disposers, function (x) {
82
- x.dispose();
83
- });
84
- }) || this;
131
+ var _this = _super !== null && _super.apply(this, arguments) || this;
85
132
  Object.defineProperty(_this, "_disposers", {
86
133
  enumerable: true,
87
134
  configurable: true,
@@ -90,8 +137,18 @@ var ArrayDisposer = /** @class */ (function (_super) {
90
137
  });
91
138
  return _this;
92
139
  }
140
+ Object.defineProperty(ArrayDisposer.prototype, "_dispose", {
141
+ enumerable: false,
142
+ configurable: true,
143
+ writable: true,
144
+ value: function () {
145
+ $array.each(this._disposers, function (x) {
146
+ x.dispose();
147
+ });
148
+ }
149
+ });
93
150
  return ArrayDisposer;
94
- }(Disposer));
151
+ }(DisposerClass));
95
152
  export { ArrayDisposer };
96
153
  /**
97
154
  * A collection of related disposers that can be disposed in one go.
@@ -101,14 +158,28 @@ export { ArrayDisposer };
101
158
  var MultiDisposer = /** @class */ (function (_super) {
102
159
  __extends(MultiDisposer, _super);
103
160
  function MultiDisposer(disposers) {
104
- return _super.call(this, function () {
105
- $array.each(disposers, function (x) {
161
+ var _this = _super.call(this) || this;
162
+ Object.defineProperty(_this, "_disposers", {
163
+ enumerable: true,
164
+ configurable: true,
165
+ writable: true,
166
+ value: void 0
167
+ });
168
+ _this._disposers = disposers;
169
+ return _this;
170
+ }
171
+ Object.defineProperty(MultiDisposer.prototype, "_dispose", {
172
+ enumerable: false,
173
+ configurable: true,
174
+ writable: true,
175
+ value: function () {
176
+ $array.each(this._disposers, function (x) {
106
177
  x.dispose();
107
178
  });
108
- }) || this;
109
- }
179
+ }
180
+ });
110
181
  return MultiDisposer;
111
- }(Disposer));
182
+ }(DisposerClass));
112
183
  export { MultiDisposer };
113
184
  /**
114
185
  * A special kind of Disposer that has attached value set.
@@ -121,16 +192,8 @@ export { MultiDisposer };
121
192
  */
122
193
  var MutableValueDisposer = /** @class */ (function (_super) {
123
194
  __extends(MutableValueDisposer, _super);
124
- /**
125
- * Constructor.
126
- */
127
195
  function MutableValueDisposer() {
128
- var _this = _super.call(this, function () {
129
- if (_this._disposer != null) {
130
- _this._disposer.dispose();
131
- _this._disposer = undefined;
132
- }
133
- }) || this;
196
+ var _this = _super !== null && _super.apply(this, arguments) || this;
134
197
  /**
135
198
  * Current disposer.
136
199
  */
@@ -151,6 +214,17 @@ var MutableValueDisposer = /** @class */ (function (_super) {
151
214
  });
152
215
  return _this;
153
216
  }
217
+ Object.defineProperty(MutableValueDisposer.prototype, "_dispose", {
218
+ enumerable: false,
219
+ configurable: true,
220
+ writable: true,
221
+ value: function () {
222
+ if (this._disposer != null) {
223
+ this._disposer.dispose();
224
+ this._disposer = undefined;
225
+ }
226
+ }
227
+ });
154
228
  /**
155
229
  * Returns current value.
156
230
  *
@@ -194,7 +268,7 @@ var MutableValueDisposer = /** @class */ (function (_super) {
194
268
  }
195
269
  });
196
270
  return MutableValueDisposer;
197
- }(Disposer));
271
+ }(DisposerClass));
198
272
  export { MutableValueDisposer };
199
273
  /**
200
274
  * @ignore Exclude from docs
@@ -1 +1 @@
1
- {"version":3,"file":"Disposer.js","sourceRoot":"","sources":["../../../../../src/.internal/core/util/Disposer.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAalC;;;;GAIG;AACH;IAYC;;;;OAIG;IACH,kBAAY,OAAmB;QAf/B;;WAEG;QACH;;;;;WAA2B;QAE3B;;WAEG;QACH;;;;;WAA6B;QAQ5B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IACzB,CAAC;IAED;;;;OAIG;;;;;eACH;YACC,OAAO,IAAI,CAAC,SAAS,CAAC;QACvB,CAAC;;IAED;;OAEG;;;;;eACH;YACC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;gBACpB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;gBACtB,IAAI,CAAC,QAAQ,EAAE,CAAC;aAChB;QACF,CAAC;;IAEF,eAAC;AAAD,CAAC,AAzCD,IAyCC;;AAED;;;;GAIG;AACH;IAAmC,iCAAQ;IAG1C;QAAA,YACC,kBAAM;YACL,MAAM,CAAC,IAAI,CAAC,KAAI,CAAC,UAAU,EAAE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vDD,CAA+D,QAAQ,GAuDtE;;AAED;;;GAGG;AACH;IAAqC,mCAAQ;IAA7C;QAAA,qEA4BC;QA1BA;;;;WAIG;QACH;;;;mBAA2B,CAAC;WAAC;;IAqB9B,CAAC;IAnBA;;;;OAIG;;;;;eACH;YAAA,iBAYC;YAXA,wCAAwC;YACxC,EAAE,IAAI,CAAC,QAAQ,CAAC;YAEhB,gCAAgC;YAChC,OAAO,IAAI,QAAQ,CAAC;gBACnB,EAAE,KAAI,CAAC,QAAQ,CAAC;gBAEhB,IAAI,KAAI,CAAC,QAAQ,KAAK,CAAC,EAAE;oBACxB,KAAI,CAAC,OAAO,EAAE,CAAC;iBACf;YACF,CAAC,CAAC,CAAC;QACJ,CAAC;;IAEF,sBAAC;AAAD,CAAC,AA5BD,CAAqC,QAAQ,GA4B5C","sourcesContent":["/**\n * ============================================================================\n * IMPORTS\n * ============================================================================\n * @hidden\n */\nimport * as $array from \"./Array\";\nimport type { Optional } from \"./Type\";\n\n/**\n * Defines interface for disposable objects.\n *\n * @ignore Exclude from docs\n */\nexport interface IDisposer {\n\tisDisposed(): boolean;\n\tdispose(): void;\n}\n\n/**\n * A base class for disposable objects.\n *\n * @ignore Exclude from docs\n */\nexport class Disposer implements IDisposer {\n\n\t/**\n\t * Is object disposed?\n\t */\n\tprivate _disposed: boolean;\n\n\t/**\n\t * Method that disposes the object.\n\t */\n\tprivate _dispose: () => void;\n\n\t/**\n\t * Constructor.\n\t *\n\t * @param dispose Function that disposes object\n\t */\n\tconstructor(dispose: () => void) {\n\t\tthis._disposed = false;\n\t\tthis._dispose = dispose;\n\t}\n\n\t/**\n\t * Checks if object is disposed.\n\t *\n\t * @return Disposed?\n\t */\n\tpublic isDisposed(): boolean {\n\t\treturn this._disposed;\n\t}\n\n\t/**\n\t * Disposes the object.\n\t */\n\tpublic dispose(): void {\n\t\tif (!this._disposed) {\n\t\t\tthis._disposed = true;\n\t\t\tthis._dispose();\n\t\t}\n\t}\n\n}\n\n/**\n * This can be extended by other classes to add a `_disposers` property.\n *\n * @ignore Exclude from docs\n */\nexport class ArrayDisposer extends Disposer {\n\tprotected _disposers: Array<IDisposer> = [];\n\n\tconstructor() {\n\t\tsuper(() => {\n\t\t\t$array.each(this._disposers, (x) => {\n\t\t\t\tx.dispose();\n\t\t\t});\n\t\t});\n\t}\n}\n\n/**\n * A collection of related disposers that can be disposed in one go.\n *\n * @ignore Exclude from docs\n */\nexport class MultiDisposer extends Disposer {\n\tconstructor(disposers: Array<IDisposer>) {\n\t\tsuper(() => {\n\t\t\t$array.each(disposers, (x) => {\n\t\t\t\tx.dispose();\n\t\t\t});\n\t\t});\n\t}\n}\n\n/**\n * A special kind of Disposer that has attached value set.\n *\n * If a new value is set using `set()` method, the old disposer value is\n * disposed.\n *\n * @ignore Exclude from docs\n * @todo Description\n */\nexport class MutableValueDisposer<T extends IDisposer> extends Disposer {\n\n\t/**\n\t * Current disposer.\n\t */\n\tprivate _disposer: Optional<IDisposer>;\n\n\t/**\n\t * Current value.\n\t */\n\tprivate _value: Optional<T>;\n\n\t/**\n\t * Constructor.\n\t */\n\tconstructor() {\n\t\tsuper(() => {\n\t\t\tif (this._disposer != null) {\n\t\t\t\tthis._disposer.dispose();\n\t\t\t\tthis._disposer = undefined;\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Returns current value.\n\t *\n\t * @return Value\n\t */\n\tpublic get(): Optional<T> {\n\t\treturn this._value;\n\t}\n\n\t/**\n\t * Sets value and disposes previous disposer if it was set.\n\t *\n\t * @param value New value\n\t * @param disposer Disposer\n\t */\n\tpublic set(value: Optional<T>, disposer: Optional<IDisposer>): void {\n\t\tif (this._disposer != null) {\n\t\t\tthis._disposer.dispose();\n\t\t}\n\n\t\tthis._disposer = disposer;\n\t\tthis._value = value;\n\t}\n\n\t/**\n\t * Resets the disposer value.\n\t */\n\tpublic reset(): void {\n\t\tthis.set(undefined, undefined);\n\t}\n\n}\n\n/**\n * @ignore Exclude from docs\n * @todo Description\n */\nexport class CounterDisposer extends Disposer {\n\n\t/**\n\t * [_counter description]\n\t *\n\t * @todo Description\n\t */\n\tprivate _counter: number = 0;\n\n\t/**\n\t * [increment description]\n\t *\n\t * @todo Description\n\t */\n\tpublic increment() {\n\t\t// TODO throw an error if it is disposed\n\t\t++this._counter;\n\n\t\t// TODO make this more efficient\n\t\treturn new Disposer(() => {\n\t\t\t--this._counter;\n\n\t\t\tif (this._counter === 0) {\n\t\t\t\tthis.dispose();\n\t\t\t}\n\t\t});\n\t}\n\n}\n"]}
1
+ {"version":3,"file":"Disposer.js","sourceRoot":"","sources":["../../../../../src/.internal/core/util/Disposer.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAalC;;;;GAIG;AACH;IAOC;;OAEG;IACH;QARA;;WAEG;QACH;;;;;WAA2B;QAM1B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;IACxB,CAAC;IAED;;;;OAIG;;;;;eACH;YACC,OAAO,IAAI,CAAC,SAAS,CAAC;QACvB,CAAC;;IAID;;OAEG;;;;;eACH;YACC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;gBACpB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;gBACtB,IAAI,CAAC,QAAQ,EAAE,CAAC;aAChB;QACF,CAAC;;IACF,oBAAC;AAAD,CAAC,AAlCD,IAkCC;;AAED;;;;GAIG;AACH;IAYC;;;;OAIG;IACH,kBAAY,OAAmB;QAf/B;;WAEG;QACH;;;;;WAA2B;QAE3B;;WAEG;QACH;;;;;WAA6B;QAQ5B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IACzB,CAAC;IAED;;;;OAIG;;;;;eACH;YACC,OAAO,IAAI,CAAC,SAAS,CAAC;QACvB,CAAC;;IAED;;OAEG;;;;;eACH;YACC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;gBACpB,IAAI,CAAC,S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SAAS,IAAI,IAAI,EAAE;gBAC3B,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;aACzB;YAED,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;YAC1B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACrB,CAAC;;IAED;;OAEG;;;;;eACH;YACC,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QAChC,CAAC;;IAEF,2BAAC;AAAD,CAAC,AAlDD,CAA+D,aAAa,GAkD3E;;AAED;;;GAGG;AACH;IAAqC,mCAAQ;IAA7C;QAAA,qEA4BC;QA1BA;;;;WAIG;QACH;;;;mBAA2B,CAAC;WAAC;;IAqB9B,CAAC;IAnBA;;;;OAIG;;;;;eACH;YAAA,iBAYC;YAXA,wCAAwC;YACxC,EAAE,IAAI,CAAC,QAAQ,CAAC;YAEhB,gCAAgC;YAChC,OAAO,IAAI,QAAQ,CAAC;gBACnB,EAAE,KAAI,CAAC,QAAQ,CAAC;gBAEhB,IAAI,KAAI,CAAC,QAAQ,KAAK,CAAC,EAAE;oBACxB,KAAI,CAAC,OAAO,EAAE,CAAC;iBACf;YACF,CAAC,CAAC,CAAC;QACJ,CAAC;;IAEF,sBAAC;AAAD,CAAC,AA5BD,CAAqC,QAAQ,GA4B5C","sourcesContent":["/**\n * ============================================================================\n * IMPORTS\n * ============================================================================\n * @hidden\n */\nimport * as $array from \"./Array\";\nimport type { Optional } from \"./Type\";\n\n/**\n * Defines interface for disposable objects.\n *\n * @ignore Exclude from docs\n */\nexport interface IDisposer {\n\tisDisposed(): boolean;\n\tdispose(): void;\n}\n\n/**\n * A base class for disposable objects.\n *\n * @ignore Exclude from docs\n */\nexport abstract class DisposerClass implements IDisposer {\n\n\t/**\n\t * Is object disposed?\n\t */\n\tprivate _disposed: boolean;\n\n\t/**\n\t * Constructor.\n\t */\n\tconstructor() {\n\t\tthis._disposed = false;\n\t}\n\n\t/**\n\t * Checks if object is disposed.\n\t *\n\t * @return Disposed?\n\t */\n\tpublic isDisposed(): boolean {\n\t\treturn this._disposed;\n\t}\n\n\tprotected abstract _dispose(): void;\n\n\t/**\n\t * Disposes the object.\n\t */\n\tpublic dispose(): void {\n\t\tif (!this._disposed) {\n\t\t\tthis._disposed = true;\n\t\t\tthis._dispose();\n\t\t}\n\t}\n}\n\n/**\n * A class for creating an IDisposer.\n *\n * @ignore Exclude from docs\n */\nexport class Disposer implements IDisposer {\n\n\t/**\n\t * Is object disposed?\n\t */\n\tprivate _disposed: boolean;\n\n\t/**\n\t * Method that disposes the object.\n\t */\n\tprivate _dispose: () => void;\n\n\t/**\n\t * Constructor.\n\t *\n\t * @param dispose Function that disposes object\n\t */\n\tconstructor(dispose: () => void) {\n\t\tthis._disposed = false;\n\t\tthis._dispose = dispose;\n\t}\n\n\t/**\n\t * Checks if object is disposed.\n\t *\n\t * @return Disposed?\n\t */\n\tpublic isDisposed(): boolean {\n\t\treturn this._disposed;\n\t}\n\n\t/**\n\t * Disposes the object.\n\t */\n\tpublic dispose(): void {\n\t\tif (!this._disposed) {\n\t\t\tthis._disposed = true;\n\t\t\tthis._dispose();\n\t\t}\n\t}\n}\n\n/**\n * This can be extended by other classes to add a `_disposers` property.\n *\n * @ignore Exclude from docs\n */\nexport class ArrayDisposer extends DisposerClass {\n\tprotected _disposers: Array<IDisposer> = [];\n\n\tprotected _dispose(): void {\n\t\t$array.each(this._disposers, (x) => {\n\t\t\tx.dispose();\n\t\t});\n\t}\n}\n\n/**\n * A collection of related disposers that can be disposed in one go.\n *\n * @ignore Exclude from docs\n */\nexport class MultiDisposer extends DisposerClass {\n\tprotected _disposers: Array<IDisposer>;\n\n\tconstructor(disposers: Array<IDisposer>) {\n\t\tsuper();\n\t\tthis._disposers = disposers;\n\t}\n\n\tprotected _dispose(): void {\n\t\t$array.each(this._disposers, (x) => {\n\t\t\tx.dispose();\n\t\t});\n\t}\n}\n\n/**\n * A special kind of Disposer that has attached value set.\n *\n * If a new value is set using `set()` method, the old disposer value is\n * disposed.\n *\n * @ignore Exclude from docs\n * @todo Description\n */\nexport class MutableValueDisposer<T extends IDisposer> extends DisposerClass {\n\n\t/**\n\t * Current disposer.\n\t */\n\tprivate _disposer: Optional<IDisposer>;\n\n\t/**\n\t * Current value.\n\t */\n\tprivate _value: Optional<T>;\n\n\tprotected _dispose(): void {\n\t\tif (this._disposer != null) {\n\t\t\tthis._disposer.dispose();\n\t\t\tthis._disposer = undefined;\n\t\t}\n\t}\n\n\t/**\n\t * Returns current value.\n\t *\n\t * @return Value\n\t */\n\tpublic get(): Optional<T> {\n\t\treturn this._value;\n\t}\n\n\t/**\n\t * Sets value and disposes previous disposer if it was set.\n\t *\n\t * @param value New value\n\t * @param disposer Disposer\n\t */\n\tpublic set(value: Optional<T>, disposer: Optional<IDisposer>): void {\n\t\tif (this._disposer != null) {\n\t\t\tthis._disposer.dispose();\n\t\t}\n\n\t\tthis._disposer = disposer;\n\t\tthis._value = value;\n\t}\n\n\t/**\n\t * Resets the disposer value.\n\t */\n\tpublic reset(): void {\n\t\tthis.set(undefined, undefined);\n\t}\n\n}\n\n/**\n * @ignore Exclude from docs\n * @todo Description\n */\nexport class CounterDisposer extends Disposer {\n\n\t/**\n\t * [_counter description]\n\t *\n\t * @todo Description\n\t */\n\tprivate _counter: number = 0;\n\n\t/**\n\t * [increment description]\n\t *\n\t * @todo Description\n\t */\n\tpublic increment() {\n\t\t// TODO throw an error if it is disposed\n\t\t++this._counter;\n\n\t\t// TODO make this more efficient\n\t\treturn new Disposer(() => {\n\t\t\t--this._counter;\n\n\t\t\tif (this._counter === 0) {\n\t\t\t\tthis.dispose();\n\t\t\t}\n\t\t});\n\t}\n\n}\n"]}
@@ -2,7 +2,7 @@ import type { Percent } from "./Percent";
2
2
  import type { IPointerEvent } from "../render/backend/Renderer";
3
3
  import * as $type from "./Type";
4
4
  import type { IBounds } from "./IBounds";
5
- import { Disposer, IDisposer } from "./Disposer";
5
+ import { DisposerClass, IDisposer } from "./Disposer";
6
6
  /**
7
7
  * ============================================================================
8
8
  * DOM FUNCTIONS
@@ -96,7 +96,8 @@ export declare function getShadowRoot(a: Node): ShadowRoot | null;
96
96
  *
97
97
  * Can be used to dynamically add CSS to the document.
98
98
  */
99
- export declare class StyleRule extends Disposer {
99
+ export declare class StyleRule extends DisposerClass {
100
+ private _root;
100
101
  /**
101
102
  * CSS rule.
102
103
  */
@@ -122,6 +123,7 @@ export declare class StyleRule extends Disposer {
122
123
  constructor(element: ShadowRoot | null, selector: string, styles: {
123
124
  [name: string]: string;
124
125
  }, nonce?: string);
126
+ protected _dispose(): void;
125
127
  /**
126
128
  * Sets the same style properties with browser-specific prefixes.
127
129
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Utils.d.ts","sourceRoot":"","sources":["../../../../../src/.internal/core/util/Utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,KAAK,KAAK,MAAM,QAAQ,CAAC;AAGhC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEjD;;;;;GAKG;AAEH;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,MAAM,IAAI,GAAG,IAAI,CAczC;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAInD;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,SAAS,CAQxI;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,a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QAAQ,CAAC,IAAI,CAAC,CAaxF;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAGvE;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAgBzF;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAGzE;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI,GAAG,OAAO,CAE5C;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAQ5F;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,IAAI,EAAE,gBAAgB,GAAE,IAAiC,EAAE,eAAe,GAAE,IAAiC,GAAG,IAAI,CAQ3J;AAED;;;GAGG;AAUH;;;GAGG;AAUH;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAOhF;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,OAAO,GAAG,OAAO,CAiB3D"}
@@ -2,7 +2,7 @@ import { __extends, __read, __spreadArray } from "tslib";
2
2
  import * as $type from "./Type";
3
3
  import * as $array from "./Array";
4
4
  import * as $object from "./Object";
5
- import { Disposer } from "./Disposer";
5
+ import { Disposer, DisposerClass } from "./Disposer";
6
6
  /**
7
7
  * ============================================================================
8
8
  * DOM FUNCTIONS
@@ -318,20 +318,13 @@ var StyleRule = /** @class */ (function (_super) {
318
318
  */
319
319
  function StyleRule(element, selector, styles, nonce) {
320
320
  if (nonce === void 0) { nonce = ""; }
321
- var _this = this;
322
- var root = getStylesheet(element, nonce);
323
- // TODO test this
324
- _this = _super.call(this, function () {
325
- // TODO a bit hacky
326
- var index = $array.indexOf(root.cssRules, _this._rule);
327
- if (index === -1) {
328
- throw new Error("Could not dispose StyleRule");
329
- }
330
- else {
331
- // TODO if it's empty remove it from the DOM ?
332
- root.deleteRule(index);
333
- }
334
- }) || this;
321
+ var _this = _super.call(this) || this;
322
+ Object.defineProperty(_this, "_root", {
323
+ enumerable: true,
324
+ configurable: true,
325
+ writable: true,
326
+ value: void 0
327
+ });
335
328
  /**
336
329
  * CSS rule.
337
330
  */
@@ -341,7 +334,8 @@ var StyleRule = /** @class */ (function (_super) {
341
334
  writable: true,
342
335
  value: void 0
343
336
  });
344
- _this._rule = appendStylesheet(root, selector);
337
+ _this._root = getStylesheet(element, nonce);
338
+ _this._rule = appendStylesheet(_this._root, selector);
345
339
  $object.each(styles, function (key, value) {
346
340
  _this.setStyle(key, value);
347
341
  });
@@ -367,6 +361,23 @@ var StyleRule = /** @class */ (function (_super) {
367
361
  enumerable: false,
368
362
  configurable: true
369
363
  });
364
+ // TODO test this
365
+ Object.defineProperty(StyleRule.prototype, "_dispose", {
366
+ enumerable: false,
367
+ configurable: true,
368
+ writable: true,
369
+ value: function () {
370
+ // TODO a bit hacky
371
+ var index = $array.indexOf(this._root.cssRules, this._rule);
372
+ if (index === -1) {
373
+ throw new Error("Could not dispose StyleRule");
374
+ }
375
+ else {
376
+ // TODO if it's empty remove it from the DOM ?
377
+ this._root.deleteRule(index);
378
+ }
379
+ }
380
+ });
370
381
  /**
371
382
  * Sets the same style properties with browser-specific prefixes.
372
383
  *
@@ -406,7 +417,7 @@ var StyleRule = /** @class */ (function (_super) {
406
417
  }
407
418
  });
408
419
  return StyleRule;
409
- }(Disposer));
420
+ }(DisposerClass));
410
421
  export { StyleRule };
411
422
  // /**
412
423
  // * Applies a set of styles to an element. Stores the original styles so they