@drincs/pixi-vn-json 1.0.12 → 1.1.0

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 (60) hide show
  1. package/dist/classes/LabelJson.cjs +2 -2
  2. package/dist/classes/LabelJson.d.cts +7 -4
  3. package/dist/classes/LabelJson.d.ts +7 -4
  4. package/dist/classes/LabelJson.js +2 -2
  5. package/dist/classes/index.cjs +2 -2
  6. package/dist/classes/index.d.cts +6 -3
  7. package/dist/classes/index.d.ts +6 -3
  8. package/dist/classes/index.js +2 -2
  9. package/dist/functions/importer.cjs +2 -2
  10. package/dist/functions/importer.d.cts +6 -3
  11. package/dist/functions/importer.d.ts +6 -3
  12. package/dist/functions/importer.js +2 -2
  13. package/dist/functions/index.cjs +2 -2
  14. package/dist/functions/index.d.cts +6 -3
  15. package/dist/functions/index.d.ts +6 -3
  16. package/dist/functions/index.js +2 -2
  17. package/dist/functions/operation-utility.cjs +2 -2
  18. package/dist/functions/operation-utility.d.cts +6 -3
  19. package/dist/functions/operation-utility.d.ts +6 -3
  20. package/dist/functions/operation-utility.js +2 -2
  21. package/dist/functions/utility.d.cts +7 -4
  22. package/dist/functions/utility.d.ts +7 -4
  23. package/dist/functions/utility.js +1 -1
  24. package/dist/index.cjs +2 -2
  25. package/dist/index.d.cts +4 -1
  26. package/dist/index.d.ts +4 -1
  27. package/dist/index.js +2 -2
  28. package/dist/interface/PixiVNJson.d.cts +4 -1
  29. package/dist/interface/PixiVNJson.d.ts +4 -1
  30. package/dist/interface/PixiVNJsonCanvas.d.cts +45 -0
  31. package/dist/interface/PixiVNJsonCanvas.d.ts +45 -0
  32. package/dist/interface/PixiVNJsonEffect.cjs +1 -0
  33. package/dist/interface/PixiVNJsonEffect.d.cts +12 -0
  34. package/dist/interface/PixiVNJsonEffect.d.ts +12 -0
  35. package/dist/interface/PixiVNJsonEffect.js +0 -0
  36. package/dist/interface/PixiVNJsonLabelStep.d.cts +7 -4
  37. package/dist/interface/PixiVNJsonLabelStep.d.ts +7 -4
  38. package/dist/interface/PixiVNJsonLabels.d.cts +6 -3
  39. package/dist/interface/PixiVNJsonLabels.d.ts +6 -3
  40. package/dist/interface/PixiVNJsonOperations.d.cts +6 -3
  41. package/dist/interface/PixiVNJsonOperations.d.ts +6 -3
  42. package/dist/interface/PixiVNJsonSound.cjs +1 -0
  43. package/dist/interface/PixiVNJsonSound.d.cts +34 -0
  44. package/dist/interface/PixiVNJsonSound.d.ts +34 -0
  45. package/dist/interface/PixiVNJsonSound.js +0 -0
  46. package/dist/interface/PixiVNJsonTicker.cjs +1 -0
  47. package/dist/interface/PixiVNJsonTicker.d.cts +34 -0
  48. package/dist/interface/PixiVNJsonTicker.d.ts +34 -0
  49. package/dist/interface/PixiVNJsonTicker.js +0 -0
  50. package/dist/interface/index.d.cts +4 -1
  51. package/dist/interface/index.d.ts +4 -1
  52. package/dist/managers/TranslateManager.d.cts +6 -3
  53. package/dist/managers/TranslateManager.d.ts +6 -3
  54. package/dist/managers/index.d.cts +6 -3
  55. package/dist/managers/index.d.ts +6 -3
  56. package/package.json +2 -2
  57. package/dist/interface/PixiVNJsonMedia.d.cts +0 -67
  58. package/dist/interface/PixiVNJsonMedia.d.ts +0 -67
  59. /package/dist/interface/{PixiVNJsonMedia.cjs → PixiVNJsonCanvas.cjs} +0 -0
  60. /package/dist/interface/{PixiVNJsonMedia.js → PixiVNJsonCanvas.js} +0 -0
@@ -1,67 +0,0 @@
1
- import { ICanvasImageMemory, ICanvasVideoMemory, SoundOptions, SoundPlayOptions } from '@drincs/pixi-vn';
2
- import PixiVNJsonMediaTransiotions from './PixiVNJsonMediaTransiotions.js';
3
- import 'pixi.js';
4
-
5
- type PixiVNJsonCanvasShow = {
6
- type: "image" | "video";
7
- operationType: "show";
8
- alias: string;
9
- url: string;
10
- transition?: PixiVNJsonMediaTransiotions;
11
- };
12
- type PixiVNJsonImageEdit = {
13
- type: "image";
14
- operationType: "edit";
15
- alias: string;
16
- props?: Partial<ICanvasImageMemory>;
17
- };
18
- type PixiVNJsonVideoEdit = {
19
- type: "video";
20
- operationType: "edit";
21
- alias: string;
22
- props?: Partial<ICanvasVideoMemory>;
23
- };
24
- type PixiVNJsonCanvasRemove = {
25
- type: "image" | "video";
26
- operationType: "remove";
27
- alias: string;
28
- transition?: PixiVNJsonMediaTransiotions;
29
- };
30
- type PixiVNJsonVideoPauseResume = {
31
- type: "video";
32
- operationType: "pause" | "resume";
33
- alias: string;
34
- };
35
- type PixiVNJsonCanvas = (PixiVNJsonCanvasShow | PixiVNJsonImageEdit | PixiVNJsonVideoEdit | PixiVNJsonCanvasRemove | PixiVNJsonVideoPauseResume);
36
- type PixiVNJsonSoundAdd = {
37
- type: "sound";
38
- operationType: "add";
39
- alias: string;
40
- url: string;
41
- props?: SoundOptions;
42
- };
43
- type PixiVNJsonSoundPlay = {
44
- type: "sound";
45
- operationType: "play";
46
- alias: string;
47
- props?: SoundPlayOptions;
48
- };
49
- type PixiVNJsonSoundRemove = {
50
- type: "sound";
51
- operationType: "remove";
52
- alias: string;
53
- };
54
- type PixiVNJsonSoundPauseResume = {
55
- type: "sound";
56
- operationType: "pause" | "resume";
57
- alias: string;
58
- };
59
- type PixiVNJsonSoundVolume = {
60
- type: "sound";
61
- operationType: "volume";
62
- alias: string;
63
- value: number;
64
- };
65
- type PixiVNJsonSound = (PixiVNJsonSoundAdd | PixiVNJsonSoundPlay | PixiVNJsonSoundRemove | PixiVNJsonSoundPauseResume | PixiVNJsonSoundVolume);
66
-
67
- export type { PixiVNJsonCanvas, PixiVNJsonSound };