@visactor/vgrammar-core 0.7.0 → 0.7.1
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.
- package/cjs/graph/animation/animation/index.d.ts +29 -0
- package/cjs/graph/animation/animation/index.js +176 -1
- package/cjs/graph/animation/animation/index.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/view/View.d.ts +1 -3
- package/cjs/view/View.js +0 -5
- package/cjs/view/View.js.map +1 -1
- package/es/graph/animation/animation/index.d.ts +29 -0
- package/es/graph/animation/animation/index.js +118 -0
- package/es/graph/animation/animation/index.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/view/View.d.ts +1 -3
- package/es/view/View.js +0 -5
- package/es/view/View.js.map +1 -1
- package/package.json +3 -3
|
@@ -9,3 +9,32 @@ import { scaleIn, scaleOut } from './scale';
|
|
|
9
9
|
import { update } from './update';
|
|
10
10
|
import { rotateIn, rotateOut } from './rotate';
|
|
11
11
|
export { clipIn, clipOut, fadeIn, fadeOut, moveIn, moveOut, scaleIn, scaleOut, rotateIn, rotateOut, growCenterIn, growCenterOut, growWidthIn, growWidthOut, growHeightIn, growHeightOut, growAngleIn, growAngleOut, growRadiusIn, growRadiusOut, growPointsIn, growPointsOut, growPointsXIn, growPointsXOut, growPointsYIn, growPointsYOut, growIntervalIn, growIntervalOut, update };
|
|
12
|
+
export declare const registerClipInAnimation: () => void;
|
|
13
|
+
export declare const registerClipOutAnimation: () => void;
|
|
14
|
+
export declare const registerFadeInAnimation: () => void;
|
|
15
|
+
export declare const registerFadeOutAnimation: () => void;
|
|
16
|
+
export declare const registerGrowCenterInAnimation: () => void;
|
|
17
|
+
export declare const registerGrowCenterOutAnimation: () => void;
|
|
18
|
+
export declare const registerGrowHeightInAnimation: () => void;
|
|
19
|
+
export declare const registerGrowHeightOutAnimation: () => void;
|
|
20
|
+
export declare const registerGrowWidthInAnimation: () => void;
|
|
21
|
+
export declare const registerGrowWidthOutAnimation: () => void;
|
|
22
|
+
export declare const registerGrowIntervalInAnimation: () => void;
|
|
23
|
+
export declare const registerGrowIntervalOutAnimation: () => void;
|
|
24
|
+
export declare const registerGrowPointsInAnimation: () => void;
|
|
25
|
+
export declare const registerGrowPointsOutAnimation: () => void;
|
|
26
|
+
export declare const registerGrowPointsXInAnimation: () => void;
|
|
27
|
+
export declare const registerGrowPointsXOutAnimation: () => void;
|
|
28
|
+
export declare const registerGrowPointsYInAnimation: () => void;
|
|
29
|
+
export declare const registerGrowPointsYOutAnimation: () => void;
|
|
30
|
+
export declare const registerGrowAngleInAnimation: () => void;
|
|
31
|
+
export declare const registerGrowAngleOutAnimation: () => void;
|
|
32
|
+
export declare const registerGrowRadiusInAnimation: () => void;
|
|
33
|
+
export declare const registerGrowRadiusOutAnimation: () => void;
|
|
34
|
+
export declare const registerMoveInAnimation: () => void;
|
|
35
|
+
export declare const registerMoveOutAnimation: () => void;
|
|
36
|
+
export declare const registerScaleInAnimation: () => void;
|
|
37
|
+
export declare const registerScaleOutAnimation: () => void;
|
|
38
|
+
export declare const registerRotateInAnimation: () => void;
|
|
39
|
+
export declare const registerRotateOutAnimation: () => void;
|
|
40
|
+
export declare const registerUpdateAnimation: () => void;
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: !0
|
|
5
|
-
}), exports.update = exports.growIntervalOut = exports.growIntervalIn = exports.growPointsYOut = exports.growPointsYIn = exports.growPointsXOut = exports.growPointsXIn = exports.growPointsOut = exports.growPointsIn = exports.growRadiusOut = exports.growRadiusIn = exports.growAngleOut = exports.growAngleIn = exports.growHeightOut = exports.growHeightIn = exports.growWidthOut = exports.growWidthIn = exports.growCenterOut = exports.growCenterIn = exports.rotateOut = exports.rotateIn = exports.scaleOut = exports.scaleIn = exports.moveOut = exports.moveIn = exports.fadeOut = exports.fadeIn = exports.clipOut = exports.clipIn = void 0
|
|
5
|
+
}), exports.registerGrowRadiusInAnimation = exports.registerGrowAngleOutAnimation = exports.registerGrowAngleInAnimation = exports.registerGrowPointsYOutAnimation = exports.registerGrowPointsYInAnimation = exports.registerGrowPointsXOutAnimation = exports.registerGrowPointsXInAnimation = exports.registerGrowPointsOutAnimation = exports.registerGrowPointsInAnimation = exports.registerGrowIntervalOutAnimation = exports.registerGrowIntervalInAnimation = exports.registerGrowWidthOutAnimation = exports.registerGrowWidthInAnimation = exports.registerGrowHeightOutAnimation = exports.registerGrowHeightInAnimation = exports.registerGrowCenterOutAnimation = exports.registerGrowCenterInAnimation = exports.registerFadeOutAnimation = exports.registerFadeInAnimation = exports.registerClipOutAnimation = exports.registerClipInAnimation = exports.update = exports.growIntervalOut = exports.growIntervalIn = exports.growPointsYOut = exports.growPointsYIn = exports.growPointsXOut = exports.growPointsXIn = exports.growPointsOut = exports.growPointsIn = exports.growRadiusOut = exports.growRadiusIn = exports.growAngleOut = exports.growAngleIn = exports.growHeightOut = exports.growHeightIn = exports.growWidthOut = exports.growWidthIn = exports.growCenterOut = exports.growCenterIn = exports.rotateOut = exports.rotateIn = exports.scaleOut = exports.scaleIn = exports.moveOut = exports.moveIn = exports.fadeOut = exports.fadeIn = exports.clipOut = exports.clipIn = void 0,
|
|
6
|
+
exports.registerUpdateAnimation = exports.registerRotateOutAnimation = exports.registerRotateInAnimation = exports.registerScaleOutAnimation = exports.registerScaleInAnimation = exports.registerMoveOutAnimation = exports.registerMoveInAnimation = exports.registerGrowRadiusOutAnimation = void 0;
|
|
6
7
|
|
|
7
8
|
const clip_1 = require("./clip");
|
|
8
9
|
|
|
@@ -188,4 +189,178 @@ Object.defineProperty(exports, "rotateIn", {
|
|
|
188
189
|
return rotate_1.rotateOut;
|
|
189
190
|
}
|
|
190
191
|
});
|
|
192
|
+
|
|
193
|
+
const factory_1 = require("../../../core/factory"), registerClipInAnimation = () => {
|
|
194
|
+
factory_1.Factory.registerAnimationType("clipIn", clip_1.clipIn);
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
exports.registerClipInAnimation = registerClipInAnimation;
|
|
198
|
+
|
|
199
|
+
const registerClipOutAnimation = () => {
|
|
200
|
+
factory_1.Factory.registerAnimationType("clipOut", clip_1.clipOut);
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
exports.registerClipOutAnimation = registerClipOutAnimation;
|
|
204
|
+
|
|
205
|
+
const registerFadeInAnimation = () => {
|
|
206
|
+
factory_1.Factory.registerAnimationType("fadeIn", fade_1.fadeIn);
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
exports.registerFadeInAnimation = registerFadeInAnimation;
|
|
210
|
+
|
|
211
|
+
const registerFadeOutAnimation = () => {
|
|
212
|
+
factory_1.Factory.registerAnimationType("fadeOut", fade_1.fadeOut);
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
exports.registerFadeOutAnimation = registerFadeOutAnimation;
|
|
216
|
+
|
|
217
|
+
const registerGrowCenterInAnimation = () => {
|
|
218
|
+
factory_1.Factory.registerAnimationType("growCenterIn", grow_cartesian_1.growCenterIn);
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
exports.registerGrowCenterInAnimation = registerGrowCenterInAnimation;
|
|
222
|
+
|
|
223
|
+
const registerGrowCenterOutAnimation = () => {
|
|
224
|
+
factory_1.Factory.registerAnimationType("growCenterOut", grow_cartesian_1.growCenterOut);
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
exports.registerGrowCenterOutAnimation = registerGrowCenterOutAnimation;
|
|
228
|
+
|
|
229
|
+
const registerGrowHeightInAnimation = () => {
|
|
230
|
+
factory_1.Factory.registerAnimationType("growHeightIn", grow_cartesian_1.growHeightIn);
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
exports.registerGrowHeightInAnimation = registerGrowHeightInAnimation;
|
|
234
|
+
|
|
235
|
+
const registerGrowHeightOutAnimation = () => {
|
|
236
|
+
factory_1.Factory.registerAnimationType("growHeightOut", grow_cartesian_1.growHeightOut);
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
exports.registerGrowHeightOutAnimation = registerGrowHeightOutAnimation;
|
|
240
|
+
|
|
241
|
+
const registerGrowWidthInAnimation = () => {
|
|
242
|
+
factory_1.Factory.registerAnimationType("growWidthIn", grow_cartesian_1.growWidthIn);
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
exports.registerGrowWidthInAnimation = registerGrowWidthInAnimation;
|
|
246
|
+
|
|
247
|
+
const registerGrowWidthOutAnimation = () => {
|
|
248
|
+
factory_1.Factory.registerAnimationType("growWidthOut", grow_cartesian_1.growWidthOut);
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
exports.registerGrowWidthOutAnimation = registerGrowWidthOutAnimation;
|
|
252
|
+
|
|
253
|
+
const registerGrowIntervalInAnimation = () => {
|
|
254
|
+
factory_1.Factory.registerAnimationType("growIntervalIn", grow_interval_1.growIntervalIn);
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
exports.registerGrowIntervalInAnimation = registerGrowIntervalInAnimation;
|
|
258
|
+
|
|
259
|
+
const registerGrowIntervalOutAnimation = () => {
|
|
260
|
+
factory_1.Factory.registerAnimationType("growIntervalOut", grow_interval_1.growIntervalOut);
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
exports.registerGrowIntervalOutAnimation = registerGrowIntervalOutAnimation;
|
|
264
|
+
|
|
265
|
+
const registerGrowPointsInAnimation = () => {
|
|
266
|
+
factory_1.Factory.registerAnimationType("growPointsIn", grow_points_1.growPointsIn);
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
exports.registerGrowPointsInAnimation = registerGrowPointsInAnimation;
|
|
270
|
+
|
|
271
|
+
const registerGrowPointsOutAnimation = () => {
|
|
272
|
+
factory_1.Factory.registerAnimationType("growPointsOut", grow_points_1.growPointsOut);
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
exports.registerGrowPointsOutAnimation = registerGrowPointsOutAnimation;
|
|
276
|
+
|
|
277
|
+
const registerGrowPointsXInAnimation = () => {
|
|
278
|
+
factory_1.Factory.registerAnimationType("growPointsXIn", grow_points_1.growPointsXIn);
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
exports.registerGrowPointsXInAnimation = registerGrowPointsXInAnimation;
|
|
282
|
+
|
|
283
|
+
const registerGrowPointsXOutAnimation = () => {
|
|
284
|
+
factory_1.Factory.registerAnimationType("growPointsXOut", grow_points_1.growPointsXOut);
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
exports.registerGrowPointsXOutAnimation = registerGrowPointsXOutAnimation;
|
|
288
|
+
|
|
289
|
+
const registerGrowPointsYInAnimation = () => {
|
|
290
|
+
factory_1.Factory.registerAnimationType("growPointsYIn", grow_points_1.growPointsYIn);
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
exports.registerGrowPointsYInAnimation = registerGrowPointsYInAnimation;
|
|
294
|
+
|
|
295
|
+
const registerGrowPointsYOutAnimation = () => {
|
|
296
|
+
factory_1.Factory.registerAnimationType("growPointsYOut", grow_points_1.growPointsYOut);
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
exports.registerGrowPointsYOutAnimation = registerGrowPointsYOutAnimation;
|
|
300
|
+
|
|
301
|
+
const registerGrowAngleInAnimation = () => {
|
|
302
|
+
factory_1.Factory.registerAnimationType("growAngleIn", grow_polar_1.growAngleIn);
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
exports.registerGrowAngleInAnimation = registerGrowAngleInAnimation;
|
|
306
|
+
|
|
307
|
+
const registerGrowAngleOutAnimation = () => {
|
|
308
|
+
factory_1.Factory.registerAnimationType("growAngleOut", grow_polar_1.growAngleOut);
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
exports.registerGrowAngleOutAnimation = registerGrowAngleOutAnimation;
|
|
312
|
+
|
|
313
|
+
const registerGrowRadiusInAnimation = () => {
|
|
314
|
+
factory_1.Factory.registerAnimationType("growRadiusIn", grow_polar_1.growRadiusIn);
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
exports.registerGrowRadiusInAnimation = registerGrowRadiusInAnimation;
|
|
318
|
+
|
|
319
|
+
const registerGrowRadiusOutAnimation = () => {
|
|
320
|
+
factory_1.Factory.registerAnimationType("growRadiusOut", grow_polar_1.growRadiusOut);
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
exports.registerGrowRadiusOutAnimation = registerGrowRadiusOutAnimation;
|
|
324
|
+
|
|
325
|
+
const registerMoveInAnimation = () => {
|
|
326
|
+
factory_1.Factory.registerAnimationType("moveIn", move_1.moveIn);
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
exports.registerMoveInAnimation = registerMoveInAnimation;
|
|
330
|
+
|
|
331
|
+
const registerMoveOutAnimation = () => {
|
|
332
|
+
factory_1.Factory.registerAnimationType("moveOut", move_1.moveOut);
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
exports.registerMoveOutAnimation = registerMoveOutAnimation;
|
|
336
|
+
|
|
337
|
+
const registerScaleInAnimation = () => {
|
|
338
|
+
factory_1.Factory.registerAnimationType("scaleIn", scale_1.scaleIn);
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
exports.registerScaleInAnimation = registerScaleInAnimation;
|
|
342
|
+
|
|
343
|
+
const registerScaleOutAnimation = () => {
|
|
344
|
+
factory_1.Factory.registerAnimationType("scaleOut", scale_1.scaleOut);
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
exports.registerScaleOutAnimation = registerScaleOutAnimation;
|
|
348
|
+
|
|
349
|
+
const registerRotateInAnimation = () => {
|
|
350
|
+
factory_1.Factory.registerAnimationType("rotateIn", rotate_1.rotateIn);
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
exports.registerRotateInAnimation = registerRotateInAnimation;
|
|
354
|
+
|
|
355
|
+
const registerRotateOutAnimation = () => {
|
|
356
|
+
factory_1.Factory.registerAnimationType("rotateOut", rotate_1.rotateOut);
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
exports.registerRotateOutAnimation = registerRotateOutAnimation;
|
|
360
|
+
|
|
361
|
+
const registerUpdateAnimation = () => {
|
|
362
|
+
factory_1.Factory.registerAnimationType("update", update_1.update);
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
exports.registerUpdateAnimation = registerUpdateAnimation;
|
|
191
366
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/graph/animation/animation/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/graph/animation/animation/index.ts"],"names":[],"mappings":";;;;AAAA,iCAAyC;AAoBvC,uFApBO,aAAM,OAoBP;AACN,wFArBe,cAAO,OAqBf;AApBT,iCAAyC;AAqBvC,uFArBO,aAAM,OAqBP;AACN,wFAtBe,cAAO,OAsBf;AArBT,qDAAuH;AA4BrH,6FA5BO,6BAAY,OA4BP;AACZ,8FA7BqB,8BAAa,OA6BrB;AAGb,6FAhCoC,6BAAY,OAgCpC;AACZ,8FAjCkD,8BAAa,OAiClD;AAHb,4FA9BiE,4BAAW,OA8BjE;AACX,6FA/B8E,6BAAY,OA+B9E;AA9Bd,6CAAsF;AAiCpF,4FAjCO,wBAAW,OAiCP;AACX,6FAlCoB,yBAAY,OAkCpB;AACZ,6FAnCkC,yBAAY,OAmClC;AACZ,8FApCgD,0BAAa,OAoChD;AAnCf,+CAOuB;AA6BrB,6FAnCA,0BAAY,OAmCA;AACZ,8FAnCA,2BAAa,OAmCA;AACb,8FAnCA,2BAAa,OAmCA;AACb,+FAnCA,4BAAc,OAmCA;AACd,8FAnCA,2BAAa,OAmCA;AACb,+FAnCA,4BAAc,OAmCA;AAjChB,mDAAkE;AAkChE,+FAlCO,8BAAc,OAkCP;AACd,gGAnCuB,+BAAe,OAmCvB;AAlCjB,iCAAyC;AAWvC,uFAXO,aAAM,OAWP;AACN,wFAZe,cAAO,OAY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C3C,iBAAO,CAAC,qBAAqB,CAAC,SAAS,EAAE,cAAO,CAAC,CAAC;AACpD,CAAC,CAAC;AAFW,QAAA,wBAAwB,4BAEnC;AAEK,MAAM,wBAAwB,GAAG,GAAG,EAAE;IAC3C,iBAAO,CAAC,qBAAqB,CAAC,SAAS,EAAE,eAAO,CAAC,CAAC;AACpD,CAAC,CAAC;AAFW,QAAA,wBAAwB,4BAEnC;AACK,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC5C,iBAAO,CAAC,qBAAqB,CAAC,UAAU,EAAE,gBAAQ,CAAC,CAAC;AACtD,CAAC,CAAC;AAFW,QAAA,yBAAyB,6BAEpC;AAEK,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC5C,iBAAO,CAAC,qBAAqB,CAAC,UAAU,EAAE,iBAAQ,CAAC,CAAC;AACtD,CAAC,CAAC;AAFW,QAAA,yBAAyB,6BAEpC;AACK,MAAM,0BAA0B,GAAG,GAAG,EAAE;IAC7C,iBAAO,CAAC,qBAAqB,CAAC,WAAW,EAAE,kBAAS,CAAC,CAAC;AACxD,CAAC,CAAC;AAFW,QAAA,0BAA0B,8BAErC;AAEK,MAAM,uBAAuB,GAAG,GAAG,EAAE;IAC1C,iBAAO,CAAC,qBAAqB,CAAC,QAAQ,EAAE,eAAM,CAAC,CAAC;AAClD,CAAC,CAAC;AAFW,QAAA,uBAAuB,2BAElC","file":"index.js","sourcesContent":["import { clipIn, clipOut } from './clip';\nimport { fadeIn, fadeOut } from './fade';\nimport { growCenterIn, growCenterOut, growHeightIn, growHeightOut, growWidthIn, growWidthOut } from './grow-cartesian';\nimport { growAngleIn, growAngleOut, growRadiusIn, growRadiusOut } from './grow-polar';\nimport {\n growPointsIn,\n growPointsOut,\n growPointsXIn,\n growPointsXOut,\n growPointsYIn,\n growPointsYOut\n} from './grow-points';\nimport { growIntervalIn, growIntervalOut } from './grow-interval';\nimport { moveIn, moveOut } from './move';\nimport { scaleIn, scaleOut } from './scale';\nimport { update } from './update';\nimport { rotateIn, rotateOut } from './rotate';\nimport { Factory } from '../../../core/factory';\n\nexport {\n clipIn,\n clipOut,\n fadeIn,\n fadeOut,\n moveIn,\n moveOut,\n scaleIn,\n scaleOut,\n rotateIn,\n rotateOut,\n growCenterIn,\n growCenterOut,\n growWidthIn,\n growWidthOut,\n growHeightIn,\n growHeightOut,\n growAngleIn,\n growAngleOut,\n growRadiusIn,\n growRadiusOut,\n growPointsIn,\n growPointsOut,\n growPointsXIn,\n growPointsXOut,\n growPointsYIn,\n growPointsYOut,\n growIntervalIn,\n growIntervalOut,\n update\n};\n\nexport const registerClipInAnimation = () => {\n Factory.registerAnimationType('clipIn', clipIn);\n};\nexport const registerClipOutAnimation = () => {\n Factory.registerAnimationType('clipOut', clipOut);\n};\n\nexport const registerFadeInAnimation = () => {\n Factory.registerAnimationType('fadeIn', fadeIn);\n};\nexport const registerFadeOutAnimation = () => {\n Factory.registerAnimationType('fadeOut', fadeOut);\n};\n\nexport const registerGrowCenterInAnimation = () => {\n Factory.registerAnimationType('growCenterIn', growCenterIn);\n};\nexport const registerGrowCenterOutAnimation = () => {\n Factory.registerAnimationType('growCenterOut', growCenterOut);\n};\nexport const registerGrowHeightInAnimation = () => {\n Factory.registerAnimationType('growHeightIn', growHeightIn);\n};\nexport const registerGrowHeightOutAnimation = () => {\n Factory.registerAnimationType('growHeightOut', growHeightOut);\n};\nexport const registerGrowWidthInAnimation = () => {\n Factory.registerAnimationType('growWidthIn', growWidthIn);\n};\nexport const registerGrowWidthOutAnimation = () => {\n Factory.registerAnimationType('growWidthOut', growWidthOut);\n};\n\nexport const registerGrowIntervalInAnimation = () => {\n Factory.registerAnimationType('growIntervalIn', growIntervalIn);\n};\nexport const registerGrowIntervalOutAnimation = () => {\n Factory.registerAnimationType('growIntervalOut', growIntervalOut);\n};\n\nexport const registerGrowPointsInAnimation = () => {\n Factory.registerAnimationType('growPointsIn', growPointsIn);\n};\nexport const registerGrowPointsOutAnimation = () => {\n Factory.registerAnimationType('growPointsOut', growPointsOut);\n};\nexport const registerGrowPointsXInAnimation = () => {\n Factory.registerAnimationType('growPointsXIn', growPointsXIn);\n};\nexport const registerGrowPointsXOutAnimation = () => {\n Factory.registerAnimationType('growPointsXOut', growPointsXOut);\n};\nexport const registerGrowPointsYInAnimation = () => {\n Factory.registerAnimationType('growPointsYIn', growPointsYIn);\n};\nexport const registerGrowPointsYOutAnimation = () => {\n Factory.registerAnimationType('growPointsYOut', growPointsYOut);\n};\n\nexport const registerGrowAngleInAnimation = () => {\n Factory.registerAnimationType('growAngleIn', growAngleIn);\n};\nexport const registerGrowAngleOutAnimation = () => {\n Factory.registerAnimationType('growAngleOut', growAngleOut);\n};\nexport const registerGrowRadiusInAnimation = () => {\n Factory.registerAnimationType('growRadiusIn', growRadiusIn);\n};\nexport const registerGrowRadiusOutAnimation = () => {\n Factory.registerAnimationType('growRadiusOut', growRadiusOut);\n};\n\nexport const registerMoveInAnimation = () => {\n Factory.registerAnimationType('moveIn', moveIn);\n};\nexport const registerMoveOutAnimation = () => {\n Factory.registerAnimationType('moveOut', moveOut);\n};\n\nexport const registerScaleInAnimation = () => {\n Factory.registerAnimationType('scaleIn', scaleIn);\n};\nexport const registerScaleOutAnimation = () => {\n Factory.registerAnimationType('scaleOut', scaleOut);\n};\n\nexport const registerRotateInAnimation = () => {\n Factory.registerAnimationType('rotateIn', rotateIn);\n};\nexport const registerRotateOutAnimation = () => {\n Factory.registerAnimationType('rotateOut', rotateOut);\n};\n\nexport const registerUpdateAnimation = () => {\n Factory.registerAnimationType('update', update);\n};\n"]}
|
package/cjs/index.d.ts
CHANGED
package/cjs/index.js
CHANGED
|
@@ -18,7 +18,7 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
|
|
|
18
18
|
Object.defineProperty(exports, "__esModule", {
|
|
19
19
|
value: !0
|
|
20
20
|
}), exports.ThemeManager = exports.SIGNAL_VIEW_BOX = exports.SIGNAL_WIDTH = exports.SIGNAL_VIEW_WIDTH = exports.SIGNAL_VIEW_HEIGHT = exports.SIGNAL_PADDING = exports.SIGNAL_HEIGHT = exports.SIGNAL_AUTOFIT = exports.Factory = exports.GrammarBase = exports.invokeFunctionType = exports.parseFunctionType = exports.View = exports.version = void 0,
|
|
21
|
-
exports.version = "0.7.
|
|
21
|
+
exports.version = "0.7.1", __exportStar(require("./graph"), exports);
|
|
22
22
|
|
|
23
23
|
var view_1 = require("./view");
|
|
24
24
|
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,OAAO,CAAC;AAE/B,0CAAwB;AAExB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,qCAAqE;AAA5D,yGAAA,iBAAiB,OAAA;AAAE,0GAAA,kBAAkB,OAAA;AAC9C,oDAAkD;AAAzC,2GAAA,WAAW,OAAA;AACpB,8CAA4B;AAC5B,0CAAwB;AACxB,0CAAyC;AAAhC,kGAAA,OAAO,OAAA;AAChB,8CAQ0B;AAPxB,2GAAA,cAAc,OAAA;AACd,0GAAA,aAAa,OAAA;AACb,2GAAA,cAAc,OAAA;AACd,+GAAA,kBAAkB,OAAA;AAClB,8GAAA,iBAAiB,OAAA;AACjB,yGAAA,YAAY,OAAA;AACZ,4GAAA,eAAe,OAAA;AAGjB,uDAAqD;AAA5C,6GAAA,YAAY,OAAA;AAErB,0CAAwB;AACxB,8CAA4B;AAC5B,+CAA6B;AAC7B,8DAA4C","file":"index.js","sourcesContent":["// -- Exports -----\nexport const version = \"0.7.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,OAAO,CAAC;AAE/B,0CAAwB;AAExB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,qCAAqE;AAA5D,yGAAA,iBAAiB,OAAA;AAAE,0GAAA,kBAAkB,OAAA;AAC9C,oDAAkD;AAAzC,2GAAA,WAAW,OAAA;AACpB,8CAA4B;AAC5B,0CAAwB;AACxB,0CAAyC;AAAhC,kGAAA,OAAO,OAAA;AAChB,8CAQ0B;AAPxB,2GAAA,cAAc,OAAA;AACd,0GAAA,aAAa,OAAA;AACb,2GAAA,cAAc,OAAA;AACd,+GAAA,kBAAkB,OAAA;AAClB,8GAAA,iBAAiB,OAAA;AACjB,yGAAA,YAAY,OAAA;AACZ,4GAAA,eAAe,OAAA;AAGjB,uDAAqD;AAA5C,6GAAA,YAAY,OAAA;AAErB,0CAAwB;AACxB,8CAA4B;AAC5B,+CAA6B;AAC7B,8DAA4C","file":"index.js","sourcesContent":["// -- Exports -----\nexport const version = \"0.7.1\";\n\nexport * from './graph';\n\nexport { View } from './view';\nexport { parseFunctionType, invokeFunctionType } from './parse/util';\nexport { GrammarBase } from './view/grammar-base';\nexport * from './util/text';\nexport * from './types';\nexport { Factory } from './core/factory';\nexport {\n SIGNAL_AUTOFIT,\n SIGNAL_HEIGHT,\n SIGNAL_PADDING,\n SIGNAL_VIEW_HEIGHT,\n SIGNAL_VIEW_WIDTH,\n SIGNAL_WIDTH,\n SIGNAL_VIEW_BOX\n} from './view/constants';\n\nexport { ThemeManager } from './theme/theme-manager';\n\nexport * from './glyph';\nexport * from './component';\nexport * from './transforms';\nexport * from './graph/animation/animation';\n"]}
|
package/cjs/view/View.d.ts
CHANGED
|
@@ -2,8 +2,7 @@ import type { IBounds, ILogger } from '@visactor/vutils';
|
|
|
2
2
|
import { EventEmitter } from '@visactor/vutils';
|
|
3
3
|
import type { IColor } from '@visactor/vrender';
|
|
4
4
|
import type { CoordinateType } from '@visactor/vgrammar-coordinate';
|
|
5
|
-
import type {
|
|
6
|
-
import type { IData, ISignal, ViewSpec, IView, IViewOptions, IViewThemeConfig, Hooks, IMark, EventSpec, MarkType, GrammarScaleType, SignalFunctionType, IScale, IGrammarBase, IGroupMark, IGlyphMark, ICoordinate, BaseEventHandler, IRecordedGrammars, IComponent, IRunningConfig, IViewAnimate, ITheme, TypeAnimation, IGlyphElement } from '../types/';
|
|
5
|
+
import type { IData, ISignal, ViewSpec, IView, IViewOptions, IViewThemeConfig, Hooks, IMark, EventSpec, MarkType, GrammarScaleType, SignalFunctionType, IScale, IGrammarBase, IGroupMark, IGlyphMark, ICoordinate, BaseEventHandler, IRecordedGrammars, IComponent, IRunningConfig, IViewAnimate, ITheme } from '../types/';
|
|
7
6
|
import type { IRenderer } from '../types/renderer';
|
|
8
7
|
import { LayoutState } from '../graph/enums';
|
|
9
8
|
import type { IAxis, ICrosshair, IDatazoom, IDimensionTooltip, IGrid, ILabel, ILegend, IPlayer, IScrollbar, ISlider, ITitle, ITooltip } from '../types/component';
|
|
@@ -38,7 +37,6 @@ export default class View extends EventEmitter implements IView {
|
|
|
38
37
|
private _cursorValue?;
|
|
39
38
|
private _observer;
|
|
40
39
|
static useRegisters(comps: (() => void)[]): void;
|
|
41
|
-
static useAnimations(comps: (TypeAnimation<IGlyphElement> | TypeAnimation<IElement>)[]): void;
|
|
42
40
|
constructor(options?: IViewOptions, config?: IViewThemeConfig);
|
|
43
41
|
getGrammarById(id: string): IGrammarBase;
|
|
44
42
|
getSignalById<T>(id: string): ISignal<T> | null;
|
package/cjs/view/View.js
CHANGED
|
@@ -42,11 +42,6 @@ class View extends vutils_1.EventEmitter {
|
|
|
42
42
|
fn();
|
|
43
43
|
}));
|
|
44
44
|
}
|
|
45
|
-
static useAnimations(comps) {
|
|
46
|
-
comps.forEach((comp => {
|
|
47
|
-
factory_1.Factory.registerAnimationType(comp.name, comp);
|
|
48
|
-
}));
|
|
49
|
-
}
|
|
50
45
|
constructor(options = {}, config = {}) {
|
|
51
46
|
super(), this._observer = null, this._onResize = (0, vutils_1.debounce)(((...args) => {
|
|
52
47
|
const size = this._getContainerSize();
|