@truelab/truengine 2.2.0 → 4.0.0-rc.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 (148) hide show
  1. package/dist/browserAll-chunk.js +7 -0
  2. package/dist/libs/particles.js +1812 -0
  3. package/dist/libs/pixi.js +740 -197
  4. package/dist/pixi-chunk.js +48946 -17692
  5. package/dist/truengine.js +19208 -15445
  6. package/dist/types/libs/particles.d.ts +2 -0
  7. package/dist/types/src/classes/assets.class.d.ts.map +1 -1
  8. package/dist/types/src/classes/bitmap.text.class.d.ts +8 -3
  9. package/dist/types/src/classes/bitmap.text.class.d.ts.map +1 -1
  10. package/dist/types/src/classes/container.class.d.ts +6 -0
  11. package/dist/types/src/classes/container.class.d.ts.map +1 -1
  12. package/dist/types/src/classes/engine.class.d.ts +6 -0
  13. package/dist/types/src/classes/engine.class.d.ts.map +1 -1
  14. package/dist/types/src/classes/loaders.class.d.ts +19 -2
  15. package/dist/types/src/classes/loaders.class.d.ts.map +1 -1
  16. package/dist/types/src/classes/sequence.class.d.ts.map +1 -1
  17. package/dist/types/src/classes/spine.assets.class.d.ts +16 -1
  18. package/dist/types/src/classes/spine.assets.class.d.ts.map +1 -1
  19. package/dist/types/src/classes/tile.class.d.ts.map +1 -1
  20. package/dist/types/src/components/abstract.component.d.ts +2 -2
  21. package/dist/types/src/components/abstract.component.d.ts.map +1 -1
  22. package/dist/types/src/components/bigwin.component.d.ts.map +1 -1
  23. package/dist/types/src/components/blackout.component.d.ts +4 -4
  24. package/dist/types/src/components/blackout.component.d.ts.map +1 -1
  25. package/dist/types/src/components/button.component.d.ts +4 -4
  26. package/dist/types/src/components/button.component.d.ts.map +1 -1
  27. package/dist/types/src/components/button.text.component.d.ts.map +1 -1
  28. package/dist/types/src/components/cheat.component.d.ts +36 -6
  29. package/dist/types/src/components/cheat.component.d.ts.map +1 -1
  30. package/dist/types/src/components/cheat.store.d.ts +40 -0
  31. package/dist/types/src/components/cheat.store.d.ts.map +1 -0
  32. package/dist/types/src/components/fpsmeter.component.d.ts +44 -0
  33. package/dist/types/src/components/fpsmeter.component.d.ts.map +1 -0
  34. package/dist/types/src/components/link.component.d.ts +4 -4
  35. package/dist/types/src/components/link.component.d.ts.map +1 -1
  36. package/dist/types/src/components/particles.component.d.ts +1 -1
  37. package/dist/types/src/components/particles.component.d.ts.map +1 -1
  38. package/dist/types/src/components/retrigger.component.d.ts.map +1 -1
  39. package/dist/types/src/components/slideshow/slides.reel.component.d.ts +4 -4
  40. package/dist/types/src/components/slideshow/slides.reel.component.d.ts.map +1 -1
  41. package/dist/types/src/components/slot/hints/hints.component.d.ts.map +1 -1
  42. package/dist/types/src/components/slot/lines/lines.static.component.d.ts +3 -3
  43. package/dist/types/src/components/slot/lines/lines.static.component.d.ts.map +1 -1
  44. package/dist/types/src/components/slot/payout/payout.base.component.d.ts +2 -2
  45. package/dist/types/src/components/slot/payout/payout.base.component.d.ts.map +1 -1
  46. package/dist/types/src/components/slot/reel.component.d.ts +1 -1
  47. package/dist/types/src/components/slot/reel.component.d.ts.map +1 -1
  48. package/dist/types/src/components/slot/slot.cheats.d.ts +45 -20
  49. package/dist/types/src/components/slot/slot.cheats.d.ts.map +1 -1
  50. package/dist/types/src/components/slot/slot.component.d.ts +9 -1
  51. package/dist/types/src/components/slot/slot.component.d.ts.map +1 -1
  52. package/dist/types/src/components/slot/slot.config.d.ts.map +1 -1
  53. package/dist/types/src/components/slot/symbol/symbol.component.d.ts +1 -1
  54. package/dist/types/src/components/slot/symbol/symbol.component.d.ts.map +1 -1
  55. package/dist/types/src/components/switch.component.d.ts +1 -1
  56. package/dist/types/src/components/switch.component.d.ts.map +1 -1
  57. package/dist/types/src/components/text.component.d.ts +2 -2
  58. package/dist/types/src/components/text.component.d.ts.map +1 -1
  59. package/dist/types/src/extends/events.types.d.ts +7 -1
  60. package/dist/types/src/extends/events.types.d.ts.map +1 -1
  61. package/dist/types/src/extends/interfaces.d.ts +3 -2
  62. package/dist/types/src/extends/interfaces.d.ts.map +1 -1
  63. package/dist/types/src/extends/short.types.d.ts +2 -2
  64. package/dist/types/src/extends/short.types.d.ts.map +1 -1
  65. package/dist/types/src/extends/struct.types.d.ts +2 -2
  66. package/dist/types/src/extends/struct.types.d.ts.map +1 -1
  67. package/dist/types/src/functions/convert/textstyle.func.d.ts +15 -0
  68. package/dist/types/src/functions/convert/textstyle.func.d.ts.map +1 -0
  69. package/dist/types/src/functions/debug/container.func.d.ts.map +1 -1
  70. package/dist/types/src/functions/debug/line.func.d.ts.map +1 -1
  71. package/dist/types/src/functions/demotexture.func.d.ts.map +1 -1
  72. package/dist/types/src/functions/draw/canvasExtract.func.d.ts +6 -6
  73. package/dist/types/src/functions/draw/canvasExtract.func.d.ts.map +1 -1
  74. package/dist/types/src/functions/draw/radialGradient.func.d.ts +2 -2
  75. package/dist/types/src/functions/draw/radialGradient.func.d.ts.map +1 -1
  76. package/dist/types/src/functions/draw/rect.func.d.ts.map +1 -1
  77. package/dist/types/src/functions/is.funcs.d.ts +5 -0
  78. package/dist/types/src/functions/is.funcs.d.ts.map +1 -1
  79. package/dist/types/src/functions/object/deepMerge.d.ts +3 -1
  80. package/dist/types/src/functions/object/deepMerge.d.ts.map +1 -1
  81. package/dist/types/src/index.d.ts +3 -0
  82. package/dist/types/src/index.d.ts.map +1 -1
  83. package/dist/types/src/libs/particles/ContainerParticle.d.ts +123 -0
  84. package/dist/types/src/libs/particles/ContainerParticle.d.ts.map +1 -0
  85. package/dist/types/src/libs/particles/Emitter.d.ts +303 -0
  86. package/dist/types/src/libs/particles/Emitter.d.ts.map +1 -0
  87. package/dist/types/src/libs/particles/EmitterConfig.d.ts +228 -0
  88. package/dist/types/src/libs/particles/EmitterConfig.d.ts.map +1 -0
  89. package/dist/types/src/libs/particles/Particle.d.ts +70 -0
  90. package/dist/types/src/libs/particles/Particle.d.ts.map +1 -0
  91. package/dist/types/src/libs/particles/ParticleUtils.d.ts +95 -0
  92. package/dist/types/src/libs/particles/ParticleUtils.d.ts.map +1 -0
  93. package/dist/types/src/libs/particles/PropertyList.d.ts +40 -0
  94. package/dist/types/src/libs/particles/PropertyList.d.ts.map +1 -0
  95. package/dist/types/src/libs/particles/PropertyNode.d.ts +74 -0
  96. package/dist/types/src/libs/particles/PropertyNode.d.ts.map +1 -0
  97. package/dist/types/src/libs/particles/behaviors/AccelerationMovement.d.ts +62 -0
  98. package/dist/types/src/libs/particles/behaviors/AccelerationMovement.d.ts.map +1 -0
  99. package/dist/types/src/libs/particles/behaviors/Alpha.d.ts +60 -0
  100. package/dist/types/src/libs/particles/behaviors/Alpha.d.ts.map +1 -0
  101. package/dist/types/src/libs/particles/behaviors/AnimatedTexture.d.ts +111 -0
  102. package/dist/types/src/libs/particles/behaviors/AnimatedTexture.d.ts.map +1 -0
  103. package/dist/types/src/libs/particles/behaviors/Behaviors.d.ts +71 -0
  104. package/dist/types/src/libs/particles/behaviors/Behaviors.d.ts.map +1 -0
  105. package/dist/types/src/libs/particles/behaviors/BlendMode.d.ts +31 -0
  106. package/dist/types/src/libs/particles/behaviors/BlendMode.d.ts.map +1 -0
  107. package/dist/types/src/libs/particles/behaviors/BurstSpawn.d.ts +43 -0
  108. package/dist/types/src/libs/particles/behaviors/BurstSpawn.d.ts.map +1 -0
  109. package/dist/types/src/libs/particles/behaviors/Color.d.ts +60 -0
  110. package/dist/types/src/libs/particles/behaviors/Color.d.ts.map +1 -0
  111. package/dist/types/src/libs/particles/behaviors/OrderedTexture.d.ts +33 -0
  112. package/dist/types/src/libs/particles/behaviors/OrderedTexture.d.ts.map +1 -0
  113. package/dist/types/src/libs/particles/behaviors/PathMovement.d.ts +68 -0
  114. package/dist/types/src/libs/particles/behaviors/PathMovement.d.ts.map +1 -0
  115. package/dist/types/src/libs/particles/behaviors/PointSpawn.d.ts +21 -0
  116. package/dist/types/src/libs/particles/behaviors/PointSpawn.d.ts.map +1 -0
  117. package/dist/types/src/libs/particles/behaviors/RandomTexture.d.ts +32 -0
  118. package/dist/types/src/libs/particles/behaviors/RandomTexture.d.ts.map +1 -0
  119. package/dist/types/src/libs/particles/behaviors/Rotation.d.ts +114 -0
  120. package/dist/types/src/libs/particles/behaviors/Rotation.d.ts.map +1 -0
  121. package/dist/types/src/libs/particles/behaviors/Scale.d.ts +74 -0
  122. package/dist/types/src/libs/particles/behaviors/Scale.d.ts.map +1 -0
  123. package/dist/types/src/libs/particles/behaviors/ShapeSpawn.d.ts +58 -0
  124. package/dist/types/src/libs/particles/behaviors/ShapeSpawn.d.ts.map +1 -0
  125. package/dist/types/src/libs/particles/behaviors/SingleTexture.d.ts +32 -0
  126. package/dist/types/src/libs/particles/behaviors/SingleTexture.d.ts.map +1 -0
  127. package/dist/types/src/libs/particles/behaviors/SpeedMovement.d.ts +76 -0
  128. package/dist/types/src/libs/particles/behaviors/SpeedMovement.d.ts.map +1 -0
  129. package/dist/types/src/libs/particles/behaviors/editor/Types.d.ts +104 -0
  130. package/dist/types/src/libs/particles/behaviors/editor/Types.d.ts.map +1 -0
  131. package/dist/types/src/libs/particles/behaviors/index.d.ts +21 -0
  132. package/dist/types/src/libs/particles/behaviors/index.d.ts.map +1 -0
  133. package/dist/types/src/libs/particles/behaviors/shapes/PolygonalChain.d.ts +57 -0
  134. package/dist/types/src/libs/particles/behaviors/shapes/PolygonalChain.d.ts.map +1 -0
  135. package/dist/types/src/libs/particles/behaviors/shapes/Rectangle.d.ts +59 -0
  136. package/dist/types/src/libs/particles/behaviors/shapes/Rectangle.d.ts.map +1 -0
  137. package/dist/types/src/libs/particles/behaviors/shapes/SpawnShape.d.ts +32 -0
  138. package/dist/types/src/libs/particles/behaviors/shapes/SpawnShape.d.ts.map +1 -0
  139. package/dist/types/src/libs/particles/behaviors/shapes/Torus.d.ts +71 -0
  140. package/dist/types/src/libs/particles/behaviors/shapes/Torus.d.ts.map +1 -0
  141. package/dist/types/src/libs/particles/behaviors/shapes/index.d.ts +5 -0
  142. package/dist/types/src/libs/particles/behaviors/shapes/index.d.ts.map +1 -0
  143. package/dist/types/src/libs/particles/index.d.ts +9 -0
  144. package/dist/types/src/libs/particles/index.d.ts.map +1 -0
  145. package/dist/types/src/scenes/masked.scene.d.ts.map +1 -1
  146. package/dist/types/vite.config.d.ts.map +1 -1
  147. package/dist/webworkerAll-chunk.js +3 -0
  148. package/package.json +11 -8
@@ -0,0 +1,111 @@
1
+ import { Texture } from 'pixi.js';
2
+ import { Particle } from '../Particle';
3
+ import { BehaviorOrder, IEmitterBehavior } from './Behaviors';
4
+ import { BehaviorEditorConfig } from './editor/Types';
5
+ /**
6
+ * The format of a single animation to be used on a particle.
7
+ */
8
+ export type AnimatedParticleArt = {
9
+ /**
10
+ * Framerate for the animation (in frames per second). A value of -1 will tie the framerate to
11
+ * the particle's lifetime so that the animation lasts exactly as long as the particle.
12
+ */
13
+ framerate: -1 | number;
14
+ /**
15
+ * If the animation should loop. Defaults to false.
16
+ */
17
+ loop?: boolean;
18
+ /**
19
+ * A list of textures or frame descriptions for duplicated frames.
20
+ * String values will be converted to textures with {@link ParticleUtils.GetTextureFromString}.
21
+ * Example of a texture repeated for 5 frames, followed by a second texture for one frame:
22
+ * ```javascript
23
+ * [{texture: 'myFirstTex', count: 5}, 'mySecondTex']
24
+ * ```
25
+ */
26
+ textures: (string | Texture | {
27
+ texture: string | Texture;
28
+ count: number;
29
+ })[];
30
+ };
31
+ /**
32
+ * Internal data format for playback.
33
+ */
34
+ export type ParsedAnimatedParticleArt = {
35
+ textures: Texture[];
36
+ duration: number;
37
+ framerate: number;
38
+ loop: boolean;
39
+ };
40
+ /**
41
+ * A Texture behavior that picks a random animation for each particle to play.
42
+ * See {@link AnimatedParticleArt} for detailed configuration info.
43
+ *
44
+ * Example config:
45
+ * ```javascript
46
+ * {
47
+ * type: 'animatedRandom',
48
+ * config: {
49
+ * anims: [
50
+ * {
51
+ * framerate: 25,
52
+ * loop: true,
53
+ * textures: ['frame1', 'frame2', 'frame3']
54
+ * },
55
+ * {
56
+ * framerate: 25,
57
+ * loop: true,
58
+ * textures: ['frame3', 'frame2', 'frame1']
59
+ * }
60
+ * ],
61
+ * }
62
+ * }
63
+ * ```
64
+ */
65
+ export declare class RandomAnimatedTextureBehavior implements IEmitterBehavior {
66
+ static type: string;
67
+ static editorConfig: BehaviorEditorConfig;
68
+ order: BehaviorOrder;
69
+ private anims;
70
+ constructor(config: {
71
+ /**
72
+ * Animation configuration to use for each particle, randomly chosen from the list.
73
+ */
74
+ anims: AnimatedParticleArt[];
75
+ });
76
+ initParticles(first: Particle): void;
77
+ updateParticle(particle: Particle, deltaSec: number): void;
78
+ }
79
+ /**
80
+ * A Texture behavior that uses a single animation for each particle to play.
81
+ * See {@link AnimatedParticleArt} for detailed configuration info.
82
+ *
83
+ * Example config:
84
+ * ```javascript
85
+ * {
86
+ * type: 'animatedSingle',
87
+ * config: {
88
+ * anim: {
89
+ * framerate: 25,
90
+ * loop: true,
91
+ * textures: ['frame1', 'frame2', 'frame3']
92
+ * }
93
+ * }
94
+ * }
95
+ * ```
96
+ */
97
+ export declare class SingleAnimatedTextureBehavior implements IEmitterBehavior {
98
+ static type: string;
99
+ static editorConfig: BehaviorEditorConfig;
100
+ order: BehaviorOrder;
101
+ private anim;
102
+ constructor(config: {
103
+ /**
104
+ * Animation configuration to use for each particle.
105
+ */
106
+ anim: AnimatedParticleArt;
107
+ });
108
+ initParticles(first: Particle): void;
109
+ updateParticle(particle: Particle, deltaSec: number): void;
110
+ }
111
+ //# sourceMappingURL=AnimatedTexture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnimatedTexture.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/particles/behaviors/AnimatedTexture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAErD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAC9B;;;OAGG;IACH,SAAS,EAAE,CAAC,CAAC,GAAG,MAAM,CAAA;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IACd;;;;;;;OAOG;IACH,QAAQ,EAAE,CAAC,MAAM,GAAG,OAAO,GAAG;QAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAA;CAChF,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACpC,QAAQ,EAAE,OAAO,EAAE,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;CAChB,CAAA;AAgCD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,6BAA8B,YAAW,gBAAgB;IAClE,OAAc,IAAI,SAAmB;IACrC,OAAc,YAAY,EAAE,oBAAoB,CAAO;IAEhD,KAAK,gBAAuB;IACnC,OAAO,CAAC,KAAK,CAA6B;gBAC9B,MAAM,EAAE;QAChB;;WAEG;QACH,KAAK,EAAE,mBAAmB,EAAE,CAAA;KAC/B;IAkBD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAsBpC,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;CAsB7D;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,6BAA8B,YAAW,gBAAgB;IAClE,OAAc,IAAI,SAAmB;IACrC,OAAc,YAAY,EAAE,oBAAoB,CAAO;IAEhD,KAAK,gBAAuB;IACnC,OAAO,CAAC,IAAI,CAA2B;gBAC3B,MAAM,EAAE;QAChB;;WAEG;QACH,IAAI,EAAE,mBAAmB,CAAA;KAC5B;IAcD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAoBpC,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;CAsB7D"}
@@ -0,0 +1,71 @@
1
+ import { Particle } from '../Particle';
2
+ import { BehaviorEditorConfig } from './editor/Types';
3
+ /**
4
+ * All behaviors instances must implement this interface, and the class must match the
5
+ * {@link IEmitterBehaviorClass} interface. All behaviors must have an order property and
6
+ * `initParticles` method. Implementing the `updateParticle` or `recycleParticle` methods is optional.
7
+ */
8
+ export type IEmitterBehavior = {
9
+ /**
10
+ * Order in which the behavior will be handled. Lower numbers are handled earlier, with an order of 0 getting
11
+ * special treatment before the Emitter's transformation is applied.
12
+ */
13
+ order: number;
14
+ /**
15
+ * Called to initialize a wave of particles, with a reference to the first particle in the linked list.
16
+ * @param first The first (maybe only) particle in a newly spawned wave of particles.
17
+ */
18
+ initParticles(first: Particle): void;
19
+ /**
20
+ * Updates a single particle for a given period of time elapsed. Return `true` to recycle the particle.
21
+ * @param particle The particle to update.
22
+ * @param deltaSec The time to advance the particle by in seconds.
23
+ */
24
+ updateParticle?(particle: Particle, deltaSec: number): void | boolean;
25
+ /**
26
+ * A hook for when a particle is recycled.
27
+ * @param particle The particle that was just recycled.
28
+ * @param natural `true` if the reycling was due to natural lifecycle, `false` if it was due to emitter cleanup.
29
+ */
30
+ recycleParticle?(particle: Particle, natural: boolean): void;
31
+ };
32
+ /**
33
+ * All behavior classes must match this interface. The instances need to implement the {@link IEmitterBehavior} interface.
34
+ */
35
+ export type IEmitterBehaviorClass = {
36
+ /**
37
+ * The unique type name that the behavior is registered under.
38
+ */
39
+ type: string;
40
+ /**
41
+ * Configuration data for an editor to display this behavior. Does not need to exist in production code.
42
+ */
43
+ editorConfig?: BehaviorEditorConfig;
44
+ /**
45
+ * The behavior constructor itself.
46
+ * @param config The config for the behavior, which should match its defined specifications.
47
+ */
48
+ new (config: any): IEmitterBehavior;
49
+ };
50
+ /**
51
+ * Standard behavior order values, specifying when/how they are used. Other numeric values can be used,
52
+ * but only the Spawn value will be handled in a special way. All other values will be sorted numerically.
53
+ * Behaviors with the same value will not be given any specific sort order, as they are assumed to not
54
+ * interfere with each other.
55
+ */
56
+ export declare enum BehaviorOrder {
57
+ /**
58
+ * Spawn - initial placement and/or rotation. This happens before rotation/translation due to
59
+ * emitter rotation/position is applied.
60
+ */
61
+ Spawn = 0,
62
+ /**
63
+ * Normal priority, for things that don't matter when they are applied.
64
+ */
65
+ Normal = 2,
66
+ /**
67
+ * Delayed priority, for things that need to read other values in order to act correctly.
68
+ */
69
+ Late = 5
70
+ }
71
+ //# sourceMappingURL=Behaviors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Behaviors.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/particles/behaviors/Behaviors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAErD;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC3B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAA;IACpC;;;;OAIG;IACH,cAAc,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAA;IACrE;;;;OAIG;IACH,eAAe,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAAA;CAC/D,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,YAAY,CAAC,EAAE,oBAAoB,CAAA;IACnC;;;OAGG;IACH,KAAK,MAAM,EAAE,GAAG,GAAG,gBAAgB,CAAA;CACtC,CAAA;AAED;;;;;GAKG;AACH,oBAAY,aAAa;IACrB;;;OAGG;IACH,KAAK,IAAI;IACT;;OAEG;IACH,MAAM,IAAI;IACV;;OAEG;IACH,IAAI,IAAI;CACX"}
@@ -0,0 +1,31 @@
1
+ import { Particle } from '../Particle';
2
+ import { BehaviorOrder, IEmitterBehavior } from './Behaviors';
3
+ import { BehaviorEditorConfig } from './editor/Types';
4
+ /**
5
+ * A Blend Mode behavior that applies a blend mode value to the particle at initialization.
6
+ *
7
+ * Example config:
8
+ * ```javascript
9
+ * {
10
+ * type: 'blendMode',
11
+ * config: {
12
+ * blendMode: 'multiply',
13
+ * }
14
+ * }
15
+ * ```
16
+ */
17
+ export declare class BlendModeBehavior implements IEmitterBehavior {
18
+ static type: string;
19
+ static editorConfig: BehaviorEditorConfig;
20
+ order: BehaviorOrder;
21
+ private value;
22
+ constructor(config: {
23
+ /**
24
+ * Blend mode of all particles. This value is a key from
25
+ * [PixiJs's BLEND_MODE enum](https://pixijs.download/release/docs/PIXI.html#BLEND_MODES).
26
+ */
27
+ blendMode: string;
28
+ });
29
+ initParticles(first: Particle): void;
30
+ }
31
+ //# sourceMappingURL=BlendMode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlendMode.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/particles/behaviors/BlendMode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAErD;;;;;;;;;;;;GAYG;AACH,qBAAa,iBAAkB,YAAW,gBAAgB;IACtD,OAAc,IAAI,SAAc;IAChC,OAAc,YAAY,EAAE,oBAAoB,CAAO;IAEhD,KAAK,gBAAuB;IACnC,OAAO,CAAC,KAAK,CAAQ;gBACT,MAAM,EAAE;QAChB;;;WAGG;QACH,SAAS,EAAE,MAAM,CAAA;KACpB;IAID,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;CAQvC"}
@@ -0,0 +1,43 @@
1
+ import { Particle } from '../Particle';
2
+ import { BehaviorOrder, IEmitterBehavior } from './Behaviors';
3
+ import { BehaviorEditorConfig } from './editor/Types';
4
+ /**
5
+ * A Spawn behavior that sends particles out from a single point or ring, and is capable of evenly spacing
6
+ * the particle's starting angles.
7
+ *
8
+ * Example config:
9
+ * ```javascript
10
+ * {
11
+ * type: 'spawnBurst',
12
+ * config: {
13
+ * spacing: 90,
14
+ * start: 0,
15
+ * distance: 40,
16
+ * }
17
+ * }
18
+ * ```
19
+ */
20
+ export declare class BurstSpawnBehavior implements IEmitterBehavior {
21
+ static type: string;
22
+ static editorConfig: BehaviorEditorConfig;
23
+ order: BehaviorOrder;
24
+ private spacing;
25
+ private start;
26
+ private distance;
27
+ constructor(config: {
28
+ /**
29
+ * Description: Spacing between each particle spawned in a wave, in degrees.
30
+ */
31
+ spacing: number;
32
+ /**
33
+ * Description: Angle to start placing particles at, in degrees. 0 is facing right, 90 is facing upwards.
34
+ */
35
+ start: number;
36
+ /**
37
+ * Description: Distance from the emitter to spawn particles, forming a ring/arc.
38
+ */
39
+ distance: number;
40
+ });
41
+ initParticles(first: Particle): void;
42
+ }
43
+ //# sourceMappingURL=BurstSpawn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BurstSpawn.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/particles/behaviors/BurstSpawn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAErD;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,kBAAmB,YAAW,gBAAgB;IACvD,OAAc,IAAI,SAAe;IACjC,OAAc,YAAY,EAAE,oBAAoB,CAAO;IAEvD,KAAK,gBAAsB;IAC3B,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,QAAQ,CAAQ;gBAEZ,MAAM,EAAE;QAChB;;WAEG;QACH,OAAO,EAAE,MAAM,CAAA;QACf;;WAEG;QACH,KAAK,EAAE,MAAM,CAAA;QACb;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAA;KACnB;IAMD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;CAsBvC"}
@@ -0,0 +1,60 @@
1
+ import { Particle } from '../Particle';
2
+ import { ValueList } from '../PropertyNode';
3
+ import { BehaviorOrder, IEmitterBehavior } from './Behaviors';
4
+ import { BehaviorEditorConfig } from './editor/Types';
5
+ /**
6
+ * A Color behavior that applies an interpolated or stepped list of values to the particle's tint property.
7
+ *
8
+ * Example config:
9
+ * ```javascript
10
+ * {
11
+ * type: 'color',
12
+ * config: {
13
+ * color: {
14
+ * list: [{value: '#ff0000' time: 0}, {value: '#00ff00', time: 0.5}, {value: '#0000ff', time: 1}]
15
+ * },
16
+ * }
17
+ * }
18
+ * ```
19
+ */
20
+ export declare class ColorBehavior implements IEmitterBehavior {
21
+ static type: string;
22
+ static editorConfig: BehaviorEditorConfig;
23
+ order: BehaviorOrder;
24
+ private list;
25
+ constructor(config: {
26
+ /**
27
+ * Color of the particles as 6 digit hex codes.
28
+ */
29
+ color: ValueList<string>;
30
+ });
31
+ initParticles(first: Particle): void;
32
+ updateParticle(particle: Particle): void;
33
+ }
34
+ /**
35
+ * A Color behavior that applies a single color to the particle's tint property at initialization.
36
+ *
37
+ * Example config:
38
+ * ```javascript
39
+ * {
40
+ * type: 'colorStatic',
41
+ * config: {
42
+ * color: '#ffff00',
43
+ * }
44
+ * }
45
+ * ```
46
+ */
47
+ export declare class StaticColorBehavior implements IEmitterBehavior {
48
+ static type: string;
49
+ static editorConfig: BehaviorEditorConfig;
50
+ order: BehaviorOrder;
51
+ private value;
52
+ constructor(config: {
53
+ /**
54
+ * Color of the particles as 6 digit hex codes.
55
+ */
56
+ color: string;
57
+ });
58
+ initParticles(first: Particle): void;
59
+ }
60
+ //# sourceMappingURL=Color.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Color.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/particles/behaviors/Color.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAGtC,OAAO,EAAgB,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAErD;;;;;;;;;;;;;;GAcG;AACH,qBAAa,aAAc,YAAW,gBAAgB;IAClD,OAAc,IAAI,SAAU;IAC5B,OAAc,YAAY,EAAE,oBAAoB,CAAO;IAEhD,KAAK,gBAAuB;IACnC,OAAO,CAAC,IAAI,CAAqB;gBACrB,MAAM,EAAE;QAChB;;WAEG;QACH,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;KAC3B;IAKD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAWpC,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;CAG3C;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,mBAAoB,YAAW,gBAAgB;IACxD,OAAc,IAAI,SAAgB;IAClC,OAAc,YAAY,EAAE,oBAAoB,CAAO;IAEhD,KAAK,gBAAuB;IACnC,OAAO,CAAC,KAAK,CAAQ;gBACT,MAAM,EAAE;QAChB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAA;KAChB;IAYD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;CAQvC"}
@@ -0,0 +1,33 @@
1
+ import { Texture } from 'pixi.js';
2
+ import { Particle } from '../Particle';
3
+ import { BehaviorOrder, IEmitterBehavior } from './Behaviors';
4
+ import { BehaviorEditorConfig } from './editor/Types';
5
+ /**
6
+ * A Texture behavior that assigns a texture to each particle from its list, in order, before looping around to the first
7
+ * texture again. String values will be converted to textures with {@link ParticleUtils.GetTextureFromString}.
8
+ *
9
+ * Example config:
10
+ * ```javascript
11
+ * {
12
+ * type: 'textureOrdered',
13
+ * config: {
14
+ * textures: ["myTex1Id", "myTex2Id", "myTex3Id", "myTex4Id"],
15
+ * }
16
+ * }
17
+ * ```
18
+ */
19
+ export declare class OrderedTextureBehavior implements IEmitterBehavior {
20
+ static type: string;
21
+ static editorConfig: BehaviorEditorConfig;
22
+ order: BehaviorOrder;
23
+ private textures;
24
+ private index;
25
+ constructor(config: {
26
+ /**
27
+ * Images to use for each particle, used in order before looping around
28
+ */
29
+ textures: Texture[];
30
+ });
31
+ initParticles(first: Particle): void;
32
+ }
33
+ //# sourceMappingURL=OrderedTexture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrderedTexture.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/particles/behaviors/OrderedTexture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAErD;;;;;;;;;;;;;GAaG;AACH,qBAAa,sBAAuB,YAAW,gBAAgB;IAC3D,OAAc,IAAI,SAAmB;IACrC,OAAc,YAAY,EAAE,oBAAoB,CAAO;IAEhD,KAAK,gBAAuB;IACnC,OAAO,CAAC,QAAQ,CAAW;IAC3B,OAAO,CAAC,KAAK,CAAQ;gBACT,MAAM,EAAE;QAChB;;WAEG;QACH,QAAQ,EAAE,OAAO,EAAE,CAAA;KACtB;IAKD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;CAWvC"}
@@ -0,0 +1,68 @@
1
+ import { Particle } from '../Particle';
2
+ import { ValueList } from '../PropertyNode';
3
+ import { BehaviorOrder, IEmitterBehavior } from './Behaviors';
4
+ import { BehaviorEditorConfig } from './editor/Types';
5
+ /**
6
+ * A particle that follows a path defined by an algebraic expression, e.g. "sin(x)" or
7
+ * "5x + 3".
8
+ * To use this class, the behavior config must have a "path" string or function.
9
+ *
10
+ * A string should have "x" in it to represent movement (from the
11
+ * speed settings of the behavior). It may have numbers, parentheses, the four basic
12
+ * operations, and any Math functions or properties (without the preceding "Math.").
13
+ * The overall movement of the particle and the expression value become x and y positions for
14
+ * the particle, respectively. The final position is rotated by the spawn rotation/angle of
15
+ * the particle.
16
+ *
17
+ * A function merely needs to accept the "x" argument and output the a corresponding "y" value.
18
+ *
19
+ * Some example paths:
20
+ *
21
+ * * `"sin(x/10) * 20"` A sine wave path.
22
+ * * `"cos(x/100) * 30"` Particles curve counterclockwise (for medium speed/low lifetime particles)
23
+ * * `"pow(x/10, 2) / 2"` Particles curve clockwise (remember, +y is down).
24
+ * * `(x) => Math.floor(x) * 3` Supplying an existing function should look like this
25
+ *
26
+ * Example configuration:
27
+ * ```javascript
28
+ * {
29
+ * "type": "movePath",
30
+ * "config": {
31
+ * "path": "round(sin(x) * 2",
32
+ * "speed": {
33
+ * "list": [{value: 10, time: 0}, {value: 100, time: 0.25}, {value: 0, time: 1}],
34
+ * },
35
+ * "minMult": 0.8
36
+ * }
37
+ *}
38
+ */
39
+ export declare class PathBehavior implements IEmitterBehavior {
40
+ static type: string;
41
+ static editorConfig: BehaviorEditorConfig;
42
+ order: BehaviorOrder;
43
+ /**
44
+ * The function representing the path the particle should take.
45
+ */
46
+ private path;
47
+ private list;
48
+ private minMult;
49
+ constructor(config: {
50
+ /**
51
+ * Algebraic expression describing the movement of the particle.
52
+ */
53
+ path: string | ((x: number) => number);
54
+ /**
55
+ * Speed of the particles in world units/second. This affects the x value in the path.
56
+ * Unlike normal speed movement, this can have negative values.
57
+ */
58
+ speed: ValueList<number>;
59
+ /**
60
+ * A value between minimum speed multipler and 1 is randomly generated and multiplied
61
+ * with each speed value to generate the actual speed for each particle.
62
+ */
63
+ minMult: number;
64
+ });
65
+ initParticles(first: Particle): void;
66
+ updateParticle(particle: Particle, deltaSec: number): void;
67
+ }
68
+ //# sourceMappingURL=PathMovement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PathMovement.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/particles/behaviors/PathMovement.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAGtC,OAAO,EAAgB,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AA4FrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,YAAa,YAAW,gBAAgB;IACjD,OAAc,IAAI,SAAa;IAC/B,OAAc,YAAY,EAAE,oBAAoB,CAAO;IAGhD,KAAK,gBAAqB;IACjC;;OAEG;IACH,OAAO,CAAC,IAAI,CAAuB;IACnC,OAAO,CAAC,IAAI,CAAsB;IAClC,OAAO,CAAC,OAAO,CAAQ;gBACX,MAAM,EAAE;QAChB;;WAEG;QACH,IAAI,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC,CAAA;QACtC;;;WAGG;QACH,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;QACxB;;;WAGG;QACH,OAAO,EAAE,MAAM,CAAA;KAClB;IA0BD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IA2BpC,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;CAY7D"}
@@ -0,0 +1,21 @@
1
+ import { Particle } from '../Particle';
2
+ import { BehaviorOrder, IEmitterBehavior } from './Behaviors';
3
+ import { BehaviorEditorConfig } from './editor/Types';
4
+ /**
5
+ * A Spawn behavior that sends particles out from a single point at the emitter's position.
6
+ *
7
+ * Example config:
8
+ * ```javascript
9
+ * {
10
+ * type: 'spawnPoint',
11
+ * config: {}
12
+ * }
13
+ * ```
14
+ */
15
+ export declare class PointSpawnBehavior implements IEmitterBehavior {
16
+ static type: string;
17
+ static editorConfig: BehaviorEditorConfig;
18
+ order: BehaviorOrder;
19
+ initParticles(_first: Particle): void;
20
+ }
21
+ //# sourceMappingURL=PointSpawn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PointSpawn.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/particles/behaviors/PointSpawn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAErD;;;;;;;;;;GAUG;AACH,qBAAa,kBAAmB,YAAW,gBAAgB;IACvD,OAAc,IAAI,SAAe;IACjC,OAAc,YAAY,EAAE,oBAAoB,CAAO;IAEvD,KAAK,gBAAsB;IAG3B,aAAa,CAAC,MAAM,EAAE,QAAQ,GAAG,IAAI;CAGxC"}
@@ -0,0 +1,32 @@
1
+ import { Texture } from 'pixi.js';
2
+ import { Particle } from '../Particle';
3
+ import { BehaviorOrder, IEmitterBehavior } from './Behaviors';
4
+ import { BehaviorEditorConfig } from './editor/Types';
5
+ /**
6
+ * A Texture behavior that assigns a random texture to each particle from its list.
7
+ * String values will be converted to textures with {@link ParticleUtils.GetTextureFromString}.
8
+ *
9
+ * Example config:
10
+ * ```javascript
11
+ * {
12
+ * type: 'textureRandom',
13
+ * config: {
14
+ * textures: ["myTex1Id", "myTex2Id", "myTex3Id", "myTex4Id"],
15
+ * }
16
+ * }
17
+ * ```
18
+ */
19
+ export declare class RandomTextureBehavior implements IEmitterBehavior {
20
+ static type: string;
21
+ static editorConfig: BehaviorEditorConfig;
22
+ order: BehaviorOrder;
23
+ private textures;
24
+ constructor(config: {
25
+ /**
26
+ * Images to use for each particle, randomly chosen from the list.
27
+ */
28
+ textures: (Texture | string)[];
29
+ });
30
+ initParticles(first: Particle): void;
31
+ }
32
+ //# sourceMappingURL=RandomTexture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RandomTexture.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/particles/behaviors/RandomTexture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAErD;;;;;;;;;;;;;GAaG;AACH,qBAAa,qBAAsB,YAAW,gBAAgB;IAC1D,OAAc,IAAI,SAAkB;IACpC,OAAc,YAAY,EAAE,oBAAoB,CAAO;IAEhD,KAAK,gBAAuB;IACnC,OAAO,CAAC,QAAQ,CAAW;gBACf,MAAM,EAAE;QAChB;;WAEG;QACH,QAAQ,EAAE,CAAC,OAAO,GAAG,MAAM,CAAC,EAAE,CAAA;KACjC;IAID,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;CAWvC"}
@@ -0,0 +1,114 @@
1
+ import { Particle } from '../Particle';
2
+ import { BehaviorOrder, IEmitterBehavior } from './Behaviors';
3
+ import { BehaviorEditorConfig } from './editor/Types';
4
+ /**
5
+ * A Rotation behavior that handles starting rotation, rotation speed, and rotational acceleration.
6
+ *
7
+ * Example configuration:
8
+ * ```javascript
9
+ * {
10
+ * "type": "rotation",
11
+ * "config": {
12
+ * "minStart": 0,
13
+ * "maxStart": 180,
14
+ * "minSpeed": 30,
15
+ * "maxSpeed": 45,
16
+ * "accel": 20
17
+ * }
18
+ *}
19
+ * ```
20
+ */
21
+ export declare class RotationBehavior implements IEmitterBehavior {
22
+ static type: string;
23
+ static editorConfig: BehaviorEditorConfig;
24
+ order: BehaviorOrder;
25
+ private minStart;
26
+ private maxStart;
27
+ private minSpeed;
28
+ private maxSpeed;
29
+ private accel;
30
+ constructor(config: {
31
+ /**
32
+ * Minimum starting rotation of the particles, in degrees. 0 is facing right, 90 is upwards.
33
+ */
34
+ minStart: number;
35
+ /**
36
+ * Maximum starting rotation of the particles, in degrees. 0 is facing right, 90 is upwards.
37
+ */
38
+ maxStart: number;
39
+ /**
40
+ * Minimum rotation speed of the particles, in degrees/second. Positive is counter-clockwise.
41
+ */
42
+ minSpeed: number;
43
+ /**
44
+ * Maximum rotation speed of the particles, in degrees/second. Positive is counter-clockwise.
45
+ */
46
+ maxSpeed: number;
47
+ /**
48
+ * Constant rotational acceleration of the particles, in degrees/second/second.
49
+ */
50
+ accel: number;
51
+ });
52
+ initParticles(first: Particle): void;
53
+ updateParticle(particle: Particle, deltaSec: number): void;
54
+ }
55
+ /**
56
+ * A Rotation behavior that handles starting rotation.
57
+ *
58
+ * Example configuration:
59
+ * ```javascript
60
+ * {
61
+ * "type": "rotationStatic",
62
+ * "config": {
63
+ * "min": 0,
64
+ * "max": 180,
65
+ * }
66
+ *}
67
+ * ```
68
+ */
69
+ export declare class StaticRotationBehavior implements IEmitterBehavior {
70
+ static type: string;
71
+ static editorConfig: BehaviorEditorConfig;
72
+ order: BehaviorOrder;
73
+ private min;
74
+ private max;
75
+ constructor(config: {
76
+ /**
77
+ * Minimum starting rotation of the particles, in degrees. 0 is facing right, 90 is upwards.
78
+ */
79
+ min: number;
80
+ /**
81
+ * Maximum starting rotation of the particles, in degrees. 0 is facing right, 90 is upwards.
82
+ */
83
+ max: number;
84
+ });
85
+ initParticles(first: Particle): void;
86
+ }
87
+ /**
88
+ * A Rotation behavior that blocks all rotation caused by spawn settings,
89
+ * by resetting it to the specified rotation (or 0).
90
+ *
91
+ * Example configuration:
92
+ * ```javascript
93
+ * {
94
+ * "type": "noRotation",
95
+ * "config": {
96
+ * "rotation": 0
97
+ * }
98
+ *}
99
+ * ```
100
+ */
101
+ export declare class NoRotationBehavior implements IEmitterBehavior {
102
+ static type: string;
103
+ static editorConfig: BehaviorEditorConfig;
104
+ order: number;
105
+ private rotation;
106
+ constructor(config: {
107
+ /**
108
+ * Locked rotation of the particles, in degrees. 0 is facing right, 90 is upwards.
109
+ */
110
+ rotation?: number;
111
+ });
112
+ initParticles(first: Particle): void;
113
+ }
114
+ //# sourceMappingURL=Rotation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Rotation.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/particles/behaviors/Rotation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAErD;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,gBAAiB,YAAW,gBAAgB;IACrD,OAAc,IAAI,SAAa;IAC/B,OAAc,YAAY,EAAE,oBAAoB,CAAO;IAEhD,KAAK,gBAAuB;IACnC,OAAO,CAAC,QAAQ,CAAQ;IACxB,OAAO,CAAC,QAAQ,CAAQ;IACxB,OAAO,CAAC,QAAQ,CAAQ;IACxB,OAAO,CAAC,QAAQ,CAAQ;IACxB,OAAO,CAAC,KAAK,CAAQ;gBACT,MAAM,EAAE;QAChB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAA;QAChB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAA;QAChB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAA;QAChB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAA;QAChB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAA;KAChB;IAQD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAepC,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;CAU7D;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,sBAAuB,YAAW,gBAAgB;IAC3D,OAAc,IAAI,SAAmB;IACrC,OAAc,YAAY,EAAE,oBAAoB,CAAO;IAEhD,KAAK,gBAAuB;IACnC,OAAO,CAAC,GAAG,CAAQ;IACnB,OAAO,CAAC,GAAG,CAAQ;gBACP,MAAM,EAAE;QAChB;;WAEG;QACH,GAAG,EAAE,MAAM,CAAA;QACX;;WAEG;QACH,GAAG,EAAE,MAAM,CAAA;KACd;IAKD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;CAavC;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,kBAAmB,YAAW,gBAAgB;IACvD,OAAc,IAAI,SAAe;IACjC,OAAc,YAAY,EAAE,oBAAoB,CAAO;IAEhD,KAAK,SAAyB;IAErC,OAAO,CAAC,QAAQ,CAAQ;gBACZ,MAAM,EAAE;QAChB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;IAID,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;CASvC"}