react-design-editor 0.0.32 → 0.0.36

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 (101) hide show
  1. package/README.md +37 -33
  2. package/dist/react-design-editor.js +33723 -13736
  3. package/dist/react-design-editor.min.js +1 -1
  4. package/dist/react-design-editor.min.js.LICENSE.txt +13 -2
  5. package/lib/Canvas.d.ts +18 -32
  6. package/lib/Canvas.js +172 -245
  7. package/lib/CanvasObject.d.ts +10 -10
  8. package/lib/CanvasObject.js +96 -89
  9. package/lib/constants/code.d.ts +19 -0
  10. package/lib/constants/code.js +22 -0
  11. package/lib/constants/defaults.d.ts +38 -0
  12. package/lib/constants/defaults.js +69 -0
  13. package/lib/constants/index.d.ts +3 -0
  14. package/lib/constants/index.js +26 -0
  15. package/lib/handlers/AlignmentHandler.d.ts +18 -18
  16. package/lib/handlers/AlignmentHandler.js +58 -58
  17. package/lib/handlers/AnimationHandler.d.ts +50 -48
  18. package/lib/handlers/AnimationHandler.js +323 -298
  19. package/lib/handlers/ChartHandler.d.ts +8 -8
  20. package/lib/handlers/ChartHandler.js +8 -8
  21. package/lib/handlers/ContextmenuHandler.d.ts +28 -23
  22. package/lib/handlers/ContextmenuHandler.js +65 -56
  23. package/lib/handlers/CropHandler.d.ts +43 -37
  24. package/lib/handlers/CropHandler.js +261 -243
  25. package/lib/handlers/CustomHandler.d.ts +7 -0
  26. package/lib/handlers/CustomHandler.js +10 -0
  27. package/lib/handlers/DrawingHandler.d.ts +28 -28
  28. package/lib/handlers/DrawingHandler.js +318 -318
  29. package/lib/handlers/ElementHandler.d.ts +80 -80
  30. package/lib/handlers/ElementHandler.js +154 -154
  31. package/lib/handlers/EventHandler.d.ts +170 -182
  32. package/lib/handlers/EventHandler.js +880 -904
  33. package/lib/handlers/FiberHandler.d.ts +6 -0
  34. package/lib/handlers/FiberHandler.js +23 -0
  35. package/lib/handlers/GridHandler.d.ts +19 -18
  36. package/lib/handlers/GridHandler.js +77 -76
  37. package/lib/handlers/GuidelineHandler.d.ts +61 -39
  38. package/lib/handlers/GuidelineHandler.js +315 -266
  39. package/lib/handlers/Handler.d.ts +622 -543
  40. package/lib/handlers/Handler.js +1638 -1510
  41. package/lib/handlers/ImageHandler.d.ts +307 -307
  42. package/lib/handlers/ImageHandler.js +529 -484
  43. package/lib/handlers/InteractionHandler.d.ts +45 -45
  44. package/lib/handlers/InteractionHandler.js +164 -159
  45. package/lib/handlers/LinkHandler.d.ts +115 -116
  46. package/lib/handlers/LinkHandler.js +247 -246
  47. package/lib/handlers/NodeHandler.d.ts +50 -50
  48. package/lib/handlers/NodeHandler.js +274 -274
  49. package/lib/handlers/PortHandler.d.ts +22 -22
  50. package/lib/handlers/PortHandler.js +179 -179
  51. package/lib/handlers/ShortcutHandler.d.ts +119 -119
  52. package/lib/handlers/ShortcutHandler.js +151 -150
  53. package/lib/handlers/TooltipHandler.d.ts +33 -24
  54. package/lib/handlers/TooltipHandler.js +91 -78
  55. package/lib/handlers/TransactionHandler.d.ts +59 -54
  56. package/lib/handlers/TransactionHandler.js +137 -132
  57. package/lib/handlers/WorkareaHandler.d.ts +43 -41
  58. package/lib/handlers/WorkareaHandler.js +354 -352
  59. package/lib/handlers/ZoomHandler.d.ts +48 -48
  60. package/lib/handlers/ZoomHandler.js +143 -143
  61. package/lib/handlers/index.d.ts +23 -21
  62. package/lib/handlers/index.js +48 -44
  63. package/lib/index.d.ts +6 -5
  64. package/lib/index.js +20 -19
  65. package/lib/objects/Arrow.d.ts +2 -2
  66. package/lib/objects/Arrow.js +40 -39
  67. package/lib/objects/Chart.d.ts +10 -10
  68. package/lib/objects/Chart.js +117 -116
  69. package/lib/objects/CirclePort.d.ts +2 -2
  70. package/lib/objects/CirclePort.js +28 -28
  71. package/lib/objects/Cube.d.ts +5 -5
  72. package/lib/objects/Cube.js +71 -71
  73. package/lib/objects/CurvedLink.d.ts +2 -2
  74. package/lib/objects/CurvedLink.js +51 -49
  75. package/lib/objects/Element.d.ts +13 -13
  76. package/lib/objects/Element.js +77 -76
  77. package/lib/objects/Gif.d.ts +3 -3
  78. package/lib/objects/Gif.js +41 -38
  79. package/lib/objects/Iframe.d.ts +9 -9
  80. package/lib/objects/Iframe.js +63 -62
  81. package/lib/objects/Line.d.ts +2 -2
  82. package/lib/objects/Line.js +24 -24
  83. package/lib/objects/Link.d.ts +15 -15
  84. package/lib/objects/Link.js +106 -104
  85. package/lib/objects/Node.d.ts +59 -59
  86. package/lib/objects/Node.js +271 -268
  87. package/lib/objects/OrthogonalLink.d.ts +2 -2
  88. package/lib/objects/OrthogonalLink.js +54 -52
  89. package/lib/objects/Port.d.ts +12 -12
  90. package/lib/objects/Port.js +28 -28
  91. package/lib/objects/Svg.d.ts +8 -0
  92. package/lib/objects/Svg.js +59 -0
  93. package/lib/objects/Video.d.ts +14 -14
  94. package/lib/objects/Video.js +113 -112
  95. package/lib/objects/index.d.ts +15 -14
  96. package/lib/objects/index.js +32 -30
  97. package/lib/utils/ObjectUtil.d.ts +407 -413
  98. package/lib/utils/ObjectUtil.js +13 -13
  99. package/lib/utils/index.d.ts +1 -1
  100. package/lib/utils/index.js +13 -13
  101. package/package.json +20 -17
@@ -1,298 +1,323 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const animejs_1 = __importDefault(require("animejs"));
7
- class AnimationHandler {
8
- constructor(handler) {
9
- /**
10
- * Play the animation
11
- * @param {string} id
12
- * @param {boolean} [hasControls]
13
- * @returns
14
- */
15
- this.play = (id, hasControls) => {
16
- const findObject = this.handler.findById(id);
17
- if (!findObject) {
18
- return;
19
- }
20
- if (findObject.anime) {
21
- findObject.anime.restart();
22
- return;
23
- }
24
- if (findObject.animation.type === 'none') {
25
- return;
26
- }
27
- const instance = this.getAnimation(findObject, hasControls);
28
- if (instance) {
29
- findObject.set('anime', instance);
30
- findObject.set({
31
- hasControls: false,
32
- lockMovementX: true,
33
- lockMovementY: true,
34
- hoverCursor: 'pointer',
35
- });
36
- this.handler.canvas.requestRenderAll();
37
- instance.play();
38
- }
39
- };
40
- /**
41
- * Pause the animation
42
- * @param {string} id
43
- * @returns
44
- */
45
- this.pause = (id) => {
46
- const findObject = this.handler.findById(id);
47
- if (!findObject) {
48
- return;
49
- }
50
- findObject.anime.pause();
51
- };
52
- /**
53
- * Stop the animation
54
- * @param {string} id
55
- * @param {boolean} [hasControls=true]
56
- * @returns
57
- */
58
- this.stop = (id, hasControls = true) => {
59
- const findObject = this.handler.findById(id);
60
- if (!findObject) {
61
- return;
62
- }
63
- this.initAnimation(findObject, hasControls);
64
- };
65
- /**
66
- * Restart the animation
67
- * @param {string} id
68
- * @returns
69
- */
70
- this.restart = (id) => {
71
- const findObject = this.handler.findById(id);
72
- if (!findObject) {
73
- return;
74
- }
75
- if (!findObject.anime) {
76
- return;
77
- }
78
- this.stop(id);
79
- this.play(id);
80
- };
81
- /**
82
- * Init animation
83
- * @param {FabricObject} obj
84
- * @param {boolean} [hasControls=true]
85
- * @returns
86
- */
87
- this.initAnimation = (obj, hasControls = true) => {
88
- if (!obj.anime) {
89
- return;
90
- }
91
- let option;
92
- if (this.handler.editable) {
93
- option = {
94
- anime: null,
95
- hasControls,
96
- lockMovementX: !hasControls,
97
- lockMovementY: !hasControls,
98
- hoverCursor: hasControls ? 'move' : 'pointer',
99
- };
100
- }
101
- else {
102
- option = {
103
- anime: null,
104
- hasControls: false,
105
- lockMovementX: true,
106
- lockMovementY: true,
107
- hoverCursor: 'pointer',
108
- };
109
- }
110
- animejs_1.default.remove(obj);
111
- const { type } = obj.animation;
112
- if (type === 'fade') {
113
- Object.assign(option, {
114
- opacity: obj.originOpacity,
115
- originOpacity: null,
116
- });
117
- }
118
- else if (type === 'bounce') {
119
- if (obj.animation.bounce === 'vertical') {
120
- Object.assign(option, {
121
- top: obj.originTop,
122
- originTop: null,
123
- });
124
- }
125
- else {
126
- Object.assign(option, {
127
- left: obj.originLeft,
128
- originLeft: null,
129
- });
130
- }
131
- }
132
- else if (type === 'shake') {
133
- if (obj.animation.shake === 'vertical') {
134
- Object.assign(option, {
135
- top: obj.originTop,
136
- originTop: null,
137
- });
138
- }
139
- else {
140
- Object.assign(option, {
141
- left: obj.originLeft,
142
- originLeft: null,
143
- });
144
- }
145
- }
146
- else if (type === 'scaling') {
147
- Object.assign(option, {
148
- scaleX: obj.originScaleX,
149
- scaleY: obj.originScaleY,
150
- originScaleX: null,
151
- originScaleY: null,
152
- });
153
- }
154
- else if (type === 'rotation') {
155
- Object.assign(option, {
156
- angle: obj.originAngle,
157
- originAngle: null,
158
- });
159
- }
160
- else if (type === 'flash') {
161
- Object.assign(option, {
162
- fill: obj.originFill,
163
- stroke: obj.originStroke,
164
- originFill: null,
165
- origniStroke: null,
166
- });
167
- }
168
- else {
169
- console.warn('Not supported type.');
170
- }
171
- obj.set(option);
172
- this.handler.canvas.renderAll();
173
- };
174
- /**
175
- * Get animation option
176
- * @param {FabricObject} obj
177
- * @param {boolean} [hasControls]
178
- * @returns
179
- */
180
- this.getAnimation = (obj, hasControls) => {
181
- const { delay = 100, duration = 100, autoplay = true, loop = true, type, ...other } = obj.animation;
182
- const option = {
183
- targets: obj,
184
- delay,
185
- loop,
186
- autoplay,
187
- duration,
188
- direction: 'alternate',
189
- begin: () => {
190
- obj.set({
191
- hasControls: false,
192
- lockMovementX: true,
193
- lockMovementY: true,
194
- hoverCursor: 'pointer',
195
- });
196
- this.handler.canvas.requestRenderAll();
197
- },
198
- update: (e) => {
199
- if (type === 'flash') {
200
- // I do not know why it works. Magic code...
201
- const fill = e.animations[0].currentValue;
202
- const stroke = e.animations[1].currentValue;
203
- obj.set('fill', '');
204
- obj.set('fill', fill);
205
- obj.set('stroke', stroke);
206
- }
207
- obj.setCoords();
208
- this.handler.canvas.requestRenderAll();
209
- },
210
- complete: () => {
211
- this.initAnimation(obj, hasControls);
212
- },
213
- };
214
- if (type === 'fade') {
215
- const { opacity = 0 } = other;
216
- obj.set('originOpacity', obj.opacity);
217
- Object.assign(option, {
218
- opacity,
219
- easing: 'easeInQuad',
220
- });
221
- }
222
- else if (type === 'bounce') {
223
- const { offset = 1 } = other;
224
- if (other.bounce === 'vertical') {
225
- obj.set('originTop', obj.top);
226
- Object.assign(option, {
227
- top: obj.top + offset,
228
- easing: 'easeInQuad',
229
- });
230
- }
231
- else {
232
- obj.set('originLeft', obj.left);
233
- Object.assign(option, {
234
- left: obj.left + offset,
235
- easing: 'easeInQuad',
236
- });
237
- }
238
- }
239
- else if (type === 'shake') {
240
- const { offset = 1 } = other;
241
- if (other.shake === 'vertical') {
242
- obj.set('originTop', obj.top);
243
- Object.assign(option, {
244
- top: obj.top + offset,
245
- delay: 0,
246
- elasticity: 1000,
247
- duration: 500,
248
- });
249
- }
250
- else {
251
- obj.set('originLeft', obj.left);
252
- Object.assign(option, {
253
- left: obj.left + offset,
254
- delay: 0,
255
- elasticity: 1000,
256
- duration: 500,
257
- });
258
- }
259
- }
260
- else if (type === 'scaling') {
261
- const { scale = 1 } = other;
262
- obj.set('originScaleX', obj.scaleX);
263
- obj.set('originScaleY', obj.scaleY);
264
- const scaleX = obj.scaleX * scale;
265
- const scaleY = obj.scaleY * scale;
266
- Object.assign(option, {
267
- scaleX,
268
- scaleY,
269
- easing: 'easeInQuad',
270
- });
271
- }
272
- else if (type === 'rotation') {
273
- obj.set('originAngle', obj.angle);
274
- Object.assign(option, {
275
- angle: other.angle,
276
- easing: 'easeInQuad',
277
- });
278
- }
279
- else if (type === 'flash') {
280
- const { fill = obj.fill, stroke = obj.stroke } = other;
281
- obj.set('originFill', obj.fill);
282
- obj.set('originStroke', obj.stroke);
283
- Object.assign(option, {
284
- fill,
285
- stroke,
286
- easing: 'easeInQuad',
287
- });
288
- }
289
- else {
290
- console.warn('Not supported type.');
291
- return null;
292
- }
293
- return animejs_1.default(option);
294
- };
295
- this.handler = handler;
296
- }
297
- }
298
- exports.default = AnimationHandler;
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const animejs_1 = __importDefault(require("animejs"));
7
+ class AnimationHandler {
8
+ constructor(handler) {
9
+ /**
10
+ * Play the animation
11
+ * @param {string} id
12
+ * @param {boolean} [hasControls]
13
+ * @returns
14
+ */
15
+ this.play = (id, hasControls) => {
16
+ const findObject = this.handler.findById(id);
17
+ if (!findObject) {
18
+ return;
19
+ }
20
+ if (findObject.anime) {
21
+ findObject.anime.restart();
22
+ return;
23
+ }
24
+ if (findObject.animation.type === 'none') {
25
+ return;
26
+ }
27
+ const instance = this.getAnime(findObject, hasControls);
28
+ if (instance) {
29
+ findObject.set('anime', instance);
30
+ findObject.set({
31
+ hasControls: false,
32
+ lockMovementX: true,
33
+ lockMovementY: true,
34
+ hoverCursor: 'pointer',
35
+ });
36
+ this.handler.canvas.requestRenderAll();
37
+ instance.play();
38
+ }
39
+ };
40
+ /**
41
+ * Pause the animation
42
+ * @param {string} id
43
+ * @returns
44
+ */
45
+ this.pause = (id) => {
46
+ const findObject = this.handler.findById(id);
47
+ if (!findObject) {
48
+ return;
49
+ }
50
+ findObject.anime.pause();
51
+ };
52
+ /**
53
+ * Stop the animation
54
+ * @param {string} id
55
+ * @param {boolean} [hasControls=true]
56
+ * @returns
57
+ */
58
+ this.stop = (id, hasControls = true) => {
59
+ const findObject = this.handler.findById(id);
60
+ if (!findObject) {
61
+ return;
62
+ }
63
+ this.resetAnimation(findObject, hasControls);
64
+ };
65
+ /**
66
+ * Restart the animation
67
+ * @param {string} id
68
+ * @returns
69
+ */
70
+ this.restart = (id) => {
71
+ const findObject = this.handler.findById(id);
72
+ if (!findObject) {
73
+ return;
74
+ }
75
+ if (!findObject.anime) {
76
+ return;
77
+ }
78
+ this.stop(id);
79
+ this.play(id);
80
+ };
81
+ /**
82
+ * Reset animation
83
+ *
84
+ * @param {FabricObject} obj
85
+ * @param {boolean} [hasControls=true]
86
+ * @returns
87
+ */
88
+ this.resetAnimation = (obj, hasControls = true) => {
89
+ if (!obj.anime) {
90
+ return;
91
+ }
92
+ let option;
93
+ if (this.handler.editable) {
94
+ option = {
95
+ anime: null,
96
+ hasControls,
97
+ lockMovementX: !hasControls,
98
+ lockMovementY: !hasControls,
99
+ hoverCursor: hasControls ? 'move' : 'pointer',
100
+ };
101
+ }
102
+ else {
103
+ option = {
104
+ anime: null,
105
+ hasControls: false,
106
+ lockMovementX: true,
107
+ lockMovementY: true,
108
+ hoverCursor: 'pointer',
109
+ };
110
+ }
111
+ animejs_1.default.remove(obj);
112
+ const { type } = obj.animation;
113
+ if (type === 'fade') {
114
+ Object.assign(option, {
115
+ opacity: obj.originOpacity,
116
+ originOpacity: null,
117
+ });
118
+ }
119
+ else if (type === 'bounce') {
120
+ if (obj.animation.bounce === 'vertical') {
121
+ Object.assign(option, {
122
+ top: obj.originTop,
123
+ originTop: null,
124
+ });
125
+ }
126
+ else {
127
+ Object.assign(option, {
128
+ left: obj.originLeft,
129
+ originLeft: null,
130
+ });
131
+ }
132
+ }
133
+ else if (type === 'shake') {
134
+ if (obj.animation.shake === 'vertical') {
135
+ Object.assign(option, {
136
+ top: obj.originTop,
137
+ originTop: null,
138
+ });
139
+ }
140
+ else {
141
+ Object.assign(option, {
142
+ left: obj.originLeft,
143
+ originLeft: null,
144
+ });
145
+ }
146
+ }
147
+ else if (type === 'scaling') {
148
+ Object.assign(option, {
149
+ scaleX: obj.originScaleX,
150
+ scaleY: obj.originScaleY,
151
+ originScaleX: null,
152
+ originScaleY: null,
153
+ });
154
+ }
155
+ else if (type === 'rotation') {
156
+ Object.assign(option, {
157
+ angle: obj.originAngle,
158
+ rotation: obj.originAngle,
159
+ left: obj.originLeft,
160
+ top: obj.originTop,
161
+ originLeft: null,
162
+ originTop: null,
163
+ originAngle: null,
164
+ });
165
+ }
166
+ else if (type === 'flash') {
167
+ Object.assign(option, {
168
+ fill: obj.originFill,
169
+ stroke: obj.originStroke,
170
+ originFill: null,
171
+ originStroke: null,
172
+ });
173
+ }
174
+ else {
175
+ console.warn('Not supported type.');
176
+ }
177
+ obj.set(option);
178
+ this.handler.canvas.renderAll();
179
+ };
180
+ /**
181
+ * Get animation option
182
+ *
183
+ * @param {FabricObject} obj
184
+ * @param {boolean} [hasControls]
185
+ * @returns
186
+ */
187
+ this.getAnime = (obj, hasControls) => {
188
+ const { delay = 0, duration = 100, autoplay = true, loop = true, type, ...other } = obj.animation;
189
+ const option = {
190
+ targets: obj,
191
+ delay,
192
+ loop,
193
+ autoplay,
194
+ duration,
195
+ direction: 'alternate',
196
+ begin: () => {
197
+ obj.set({
198
+ hasControls: false,
199
+ lockMovementX: true,
200
+ lockMovementY: true,
201
+ hoverCursor: 'pointer',
202
+ });
203
+ this.handler.canvas.requestRenderAll();
204
+ },
205
+ update: (instance) => {
206
+ if (type === 'flash') {
207
+ // I don't know why it works. Magic code...
208
+ const fill = instance.animations[0].currentValue;
209
+ const stroke = instance.animations[1].currentValue;
210
+ obj.set('fill', '');
211
+ obj.set('fill', fill);
212
+ obj.set('stroke', stroke);
213
+ }
214
+ else if (type === 'rotation') {
215
+ let angle = instance.animations[0].currentValue;
216
+ if (typeof angle === 'string') {
217
+ angle = parseInt(angle, 10);
218
+ }
219
+ obj.rotate(angle);
220
+ this.handler.canvas.requestRenderAll();
221
+ return;
222
+ }
223
+ obj.setCoords();
224
+ this.handler.canvas.requestRenderAll();
225
+ },
226
+ complete: () => {
227
+ this.resetAnimation(obj, hasControls);
228
+ },
229
+ };
230
+ if (type === 'fade') {
231
+ const { opacity = 0 } = other;
232
+ obj.set('originOpacity', obj.opacity);
233
+ Object.assign(option, {
234
+ opacity,
235
+ easing: 'easeInQuad',
236
+ });
237
+ }
238
+ else if (type === 'bounce') {
239
+ const { offset = 1 } = other;
240
+ if (other.bounce === 'vertical') {
241
+ obj.set('originTop', obj.top);
242
+ Object.assign(option, {
243
+ top: obj.top + offset,
244
+ easing: 'easeInQuad',
245
+ });
246
+ }
247
+ else {
248
+ obj.set('originLeft', obj.left);
249
+ Object.assign(option, {
250
+ left: obj.left + offset,
251
+ easing: 'easeInQuad',
252
+ });
253
+ }
254
+ }
255
+ else if (type === 'shake') {
256
+ const { offset = 1 } = other;
257
+ if (other.shake === 'vertical') {
258
+ obj.set('originTop', obj.top);
259
+ Object.assign(option, {
260
+ top: obj.top + offset,
261
+ delay: 0,
262
+ elasticity: 1000,
263
+ duration: 500,
264
+ });
265
+ }
266
+ else {
267
+ obj.set('originLeft', obj.left);
268
+ Object.assign(option, {
269
+ left: obj.left + offset,
270
+ delay: 0,
271
+ elasticity: 1000,
272
+ duration: 500,
273
+ });
274
+ }
275
+ }
276
+ else if (type === 'scaling') {
277
+ const { scale = 2 } = other;
278
+ obj.set('originScaleX', obj.scaleX);
279
+ obj.set('originScaleY', obj.scaleY);
280
+ obj.set({
281
+ originScaleX: obj.scaleX,
282
+ originScaleY: obj.scaleY,
283
+ });
284
+ const scaleX = obj.scaleX * scale;
285
+ const scaleY = obj.scaleY * scale;
286
+ Object.assign(option, {
287
+ scaleX,
288
+ scaleY,
289
+ easing: 'easeInQuad',
290
+ });
291
+ }
292
+ else if (type === 'rotation') {
293
+ const { angle = 360 } = other;
294
+ obj.set('rotation', obj.angle);
295
+ obj.set('originAngle', obj.angle);
296
+ obj.set('originLeft', obj.left);
297
+ obj.set('originTop', obj.top);
298
+ Object.assign(option, {
299
+ rotation: angle,
300
+ easing: 'linear',
301
+ direction: 'normal',
302
+ });
303
+ }
304
+ else if (type === 'flash') {
305
+ const { fill = obj.fill, stroke = obj.stroke } = other;
306
+ obj.set('originFill', obj.fill);
307
+ obj.set('originStroke', obj.stroke);
308
+ Object.assign(option, {
309
+ fill,
310
+ stroke,
311
+ easing: 'easeInQuad',
312
+ });
313
+ }
314
+ else {
315
+ console.warn('Not supported type.');
316
+ return null;
317
+ }
318
+ return animejs_1.default(option);
319
+ };
320
+ this.handler = handler;
321
+ }
322
+ }
323
+ exports.default = AnimationHandler;
@@ -1,8 +1,8 @@
1
- import * as echarts from 'echarts';
2
- import Handler from './Handler';
3
- declare class ChartHandler {
4
- handler?: Handler;
5
- instance?: echarts.ECharts;
6
- constructor(handler: Handler);
7
- }
8
- export default ChartHandler;
1
+ import * as echarts from 'echarts';
2
+ import Handler from './Handler';
3
+ declare class ChartHandler {
4
+ handler?: Handler;
5
+ instance?: echarts.ECharts;
6
+ constructor(handler: Handler);
7
+ }
8
+ export default ChartHandler;