@tsparticles/engine 4.0.0-beta.1 → 4.0.0-beta.11

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 (190) hide show
  1. package/67.min.js +1 -0
  2. package/README.md +53 -944
  3. package/browser/Core/Engine.js +1 -1
  4. package/browser/Options/Classes/Options.js +1 -14
  5. package/browser/Options/Classes/Particles/Paint.js +20 -0
  6. package/browser/Options/Classes/Particles/ParticlesOptions.js +61 -22
  7. package/browser/Options/Interfaces/Particles/IPaint.js +1 -0
  8. package/browser/Utils/CanvasUtils.js +3 -3
  9. package/browser/Utils/Utils.js +16 -10
  10. package/browser/exports.js +1 -0
  11. package/cjs/Core/Engine.js +1 -1
  12. package/cjs/Options/Classes/Options.js +1 -14
  13. package/cjs/Options/Classes/Particles/Paint.js +20 -0
  14. package/cjs/Options/Classes/Particles/ParticlesOptions.js +61 -22
  15. package/cjs/Options/Interfaces/Particles/IPaint.js +1 -0
  16. package/cjs/Utils/CanvasUtils.js +3 -3
  17. package/cjs/Utils/Utils.js +16 -10
  18. package/cjs/exports.js +1 -0
  19. package/dist_browser_Core_Container_js.js +1 -1
  20. package/esm/Core/Engine.js +1 -1
  21. package/esm/Options/Classes/Options.js +1 -14
  22. package/esm/Options/Classes/Particles/Paint.js +20 -0
  23. package/esm/Options/Classes/Particles/ParticlesOptions.js +61 -22
  24. package/esm/Options/Interfaces/Particles/IPaint.js +1 -0
  25. package/esm/Utils/CanvasUtils.js +3 -3
  26. package/esm/Utils/Utils.js +16 -10
  27. package/esm/exports.js +1 -0
  28. package/package.json +2 -3
  29. package/report.html +1 -1
  30. package/tsparticles.engine.js +18 -8
  31. package/tsparticles.engine.min.js +2 -2
  32. package/types/Core/Interfaces/IPalette.d.ts +17 -2
  33. package/types/Options/Classes/Particles/Paint.d.ts +10 -0
  34. package/types/Options/Classes/Particles/ParticlesOptions.d.ts +4 -4
  35. package/types/Options/Interfaces/Particles/IPaint.d.ts +6 -0
  36. package/types/Options/Interfaces/Particles/IParticlesOptions.d.ts +3 -4
  37. package/types/export-types.d.ts +1 -0
  38. package/types/exports.d.ts +1 -0
  39. package/155.min.js +0 -1
  40. package/umd/Core/CanvasManager.js +0 -317
  41. package/umd/Core/Container.js +0 -383
  42. package/umd/Core/Engine.js +0 -183
  43. package/umd/Core/Interfaces/Colors.js +0 -12
  44. package/umd/Core/Interfaces/IBounds.js +0 -12
  45. package/umd/Core/Interfaces/IBubbleParticleData.js +0 -12
  46. package/umd/Core/Interfaces/ICircleBouncer.js +0 -12
  47. package/umd/Core/Interfaces/IColorManager.js +0 -12
  48. package/umd/Core/Interfaces/IContainerPlugin.js +0 -12
  49. package/umd/Core/Interfaces/ICoordinates.js +0 -12
  50. package/umd/Core/Interfaces/IDelta.js +0 -12
  51. package/umd/Core/Interfaces/IDimension.js +0 -12
  52. package/umd/Core/Interfaces/IDistance.js +0 -12
  53. package/umd/Core/Interfaces/IDrawParticleParams.js +0 -12
  54. package/umd/Core/Interfaces/IEffectDrawer.js +0 -12
  55. package/umd/Core/Interfaces/ILoadParams.js +0 -12
  56. package/umd/Core/Interfaces/IPalette.js +0 -12
  57. package/umd/Core/Interfaces/IParticleColorStyle.js +0 -12
  58. package/umd/Core/Interfaces/IParticleHslAnimation.js +0 -12
  59. package/umd/Core/Interfaces/IParticleLife.js +0 -12
  60. package/umd/Core/Interfaces/IParticleOpacityData.js +0 -12
  61. package/umd/Core/Interfaces/IParticleRetinaProps.js +0 -12
  62. package/umd/Core/Interfaces/IParticleRoll.js +0 -12
  63. package/umd/Core/Interfaces/IParticleRotateData.js +0 -12
  64. package/umd/Core/Interfaces/IParticleTransformValues.js +0 -12
  65. package/umd/Core/Interfaces/IParticleUpdater.js +0 -12
  66. package/umd/Core/Interfaces/IParticleValueAnimation.js +0 -12
  67. package/umd/Core/Interfaces/IPlugin.js +0 -12
  68. package/umd/Core/Interfaces/IPositionFromSizeParams.js +0 -12
  69. package/umd/Core/Interfaces/IRangeValue.js +0 -12
  70. package/umd/Core/Interfaces/IShapeDrawData.js +0 -12
  71. package/umd/Core/Interfaces/IShapeDrawer.js +0 -12
  72. package/umd/Core/Interfaces/IShapeValues.js +0 -12
  73. package/umd/Core/Interfaces/ISlowParticleData.js +0 -12
  74. package/umd/Core/Particle.js +0 -433
  75. package/umd/Core/ParticlesManager.js +0 -377
  76. package/umd/Core/RenderManager.js +0 -317
  77. package/umd/Core/Retina.js +0 -47
  78. package/umd/Core/Utils/Constants.js +0 -23
  79. package/umd/Core/Utils/EventListeners.js +0 -102
  80. package/umd/Core/Utils/PluginManager.js +0 -159
  81. package/umd/Core/Utils/Ranges.js +0 -91
  82. package/umd/Core/Utils/SpatialHashGrid.js +0 -116
  83. package/umd/Core/Utils/Vectors.js +0 -126
  84. package/umd/Enums/AnimationStatus.js +0 -18
  85. package/umd/Enums/Directions/MoveDirection.js +0 -27
  86. package/umd/Enums/Directions/OutModeDirection.js +0 -20
  87. package/umd/Enums/Directions/RotateDirection.js +0 -19
  88. package/umd/Enums/Modes/AnimationMode.js +0 -20
  89. package/umd/Enums/Modes/LimitMode.js +0 -18
  90. package/umd/Enums/Modes/OutMode.js +0 -21
  91. package/umd/Enums/Modes/PixelMode.js +0 -18
  92. package/umd/Enums/RangeType.js +0 -18
  93. package/umd/Enums/Types/AlterType.js +0 -18
  94. package/umd/Enums/Types/DestroyType.js +0 -19
  95. package/umd/Enums/Types/EasingType.js +0 -58
  96. package/umd/Enums/Types/EventType.js +0 -28
  97. package/umd/Enums/Types/GradientType.js +0 -19
  98. package/umd/Enums/Types/ParticleOutType.js +0 -19
  99. package/umd/Enums/Types/StartValueType.js +0 -19
  100. package/umd/Options/Classes/AnimatableColor.js +0 -52
  101. package/umd/Options/Classes/AnimationOptions.js +0 -79
  102. package/umd/Options/Classes/Background/Background.js +0 -56
  103. package/umd/Options/Classes/ColorAnimation.js +0 -44
  104. package/umd/Options/Classes/FullScreen/FullScreen.js +0 -34
  105. package/umd/Options/Classes/HslAnimation.js +0 -30
  106. package/umd/Options/Classes/Options.js +0 -171
  107. package/umd/Options/Classes/OptionsColor.js +0 -42
  108. package/umd/Options/Classes/Particles/Bounce/ParticlesBounce.js +0 -31
  109. package/umd/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +0 -21
  110. package/umd/Options/Classes/Particles/Effect/Effect.js +0 -46
  111. package/umd/Options/Classes/Particles/Fill.js +0 -42
  112. package/umd/Options/Classes/Particles/Move/Move.js +0 -120
  113. package/umd/Options/Classes/Particles/Move/MoveAngle.js +0 -35
  114. package/umd/Options/Classes/Particles/Move/MoveCenter.js +0 -45
  115. package/umd/Options/Classes/Particles/Move/MoveGravity.js +0 -45
  116. package/umd/Options/Classes/Particles/Move/OutModes.js +0 -38
  117. package/umd/Options/Classes/Particles/Move/Path/MovePath.js +0 -46
  118. package/umd/Options/Classes/Particles/Move/Spin.js +0 -40
  119. package/umd/Options/Classes/Particles/Number/ParticlesDensity.js +0 -41
  120. package/umd/Options/Classes/Particles/Number/ParticlesNumber.js +0 -37
  121. package/umd/Options/Classes/Particles/Number/ParticlesNumberLimit.js +0 -35
  122. package/umd/Options/Classes/Particles/Opacity/Opacity.js +0 -35
  123. package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.js +0 -34
  124. package/umd/Options/Classes/Particles/ParticlesOptions.js +0 -116
  125. package/umd/Options/Classes/Particles/Shape/Shape.js +0 -46
  126. package/umd/Options/Classes/Particles/Size/Size.js +0 -35
  127. package/umd/Options/Classes/Particles/Size/SizeAnimation.js +0 -34
  128. package/umd/Options/Classes/Particles/Stroke.js +0 -39
  129. package/umd/Options/Classes/Particles/ZIndex/ZIndex.js +0 -42
  130. package/umd/Options/Classes/ResizeEvent.js +0 -34
  131. package/umd/Options/Classes/ValueWithRandom.js +0 -56
  132. package/umd/Options/Interfaces/Background/IBackground.js +0 -12
  133. package/umd/Options/Interfaces/FullScreen/IFullScreen.js +0 -12
  134. package/umd/Options/Interfaces/IAnimatable.js +0 -12
  135. package/umd/Options/Interfaces/IAnimatableColor.js +0 -12
  136. package/umd/Options/Interfaces/IAnimation.js +0 -12
  137. package/umd/Options/Interfaces/IColorAnimation.js +0 -12
  138. package/umd/Options/Interfaces/IHslAnimation.js +0 -12
  139. package/umd/Options/Interfaces/IOptionLoader.js +0 -12
  140. package/umd/Options/Interfaces/IOptions.js +0 -12
  141. package/umd/Options/Interfaces/IOptionsColor.js +0 -12
  142. package/umd/Options/Interfaces/IResizeEvent.js +0 -12
  143. package/umd/Options/Interfaces/IValueWithRandom.js +0 -12
  144. package/umd/Options/Interfaces/Particles/Bounce/IParticlesBounce.js +0 -12
  145. package/umd/Options/Interfaces/Particles/Effect/IEffect.js +0 -12
  146. package/umd/Options/Interfaces/Particles/IFill.js +0 -12
  147. package/umd/Options/Interfaces/Particles/IParticlesOptions.js +0 -12
  148. package/umd/Options/Interfaces/Particles/IStroke.js +0 -12
  149. package/umd/Options/Interfaces/Particles/Move/IMove.js +0 -12
  150. package/umd/Options/Interfaces/Particles/Move/IMoveAngle.js +0 -12
  151. package/umd/Options/Interfaces/Particles/Move/IMoveCenter.js +0 -12
  152. package/umd/Options/Interfaces/Particles/Move/IMoveGravity.js +0 -12
  153. package/umd/Options/Interfaces/Particles/Move/IOutModes.js +0 -12
  154. package/umd/Options/Interfaces/Particles/Move/ISpin.js +0 -12
  155. package/umd/Options/Interfaces/Particles/Move/Path/IMovePath.js +0 -12
  156. package/umd/Options/Interfaces/Particles/Number/IParticlesDensity.js +0 -12
  157. package/umd/Options/Interfaces/Particles/Number/IParticlesNumber.js +0 -12
  158. package/umd/Options/Interfaces/Particles/Number/IParticlesNumberLimit.js +0 -12
  159. package/umd/Options/Interfaces/Particles/Opacity/IOpacity.js +0 -12
  160. package/umd/Options/Interfaces/Particles/Opacity/IOpacityAnimation.js +0 -12
  161. package/umd/Options/Interfaces/Particles/Shape/IShape.js +0 -12
  162. package/umd/Options/Interfaces/Particles/Size/ISize.js +0 -12
  163. package/umd/Options/Interfaces/Particles/Size/ISizeAnimation.js +0 -12
  164. package/umd/Options/Interfaces/Particles/ZIndex/IZIndex.js +0 -12
  165. package/umd/Types/CanvasContextType.js +0 -12
  166. package/umd/Types/CustomEventArgs.js +0 -12
  167. package/umd/Types/CustomEventListener.js +0 -12
  168. package/umd/Types/EasingFunction.js +0 -12
  169. package/umd/Types/EngineInitializers.js +0 -12
  170. package/umd/Types/ExportResult.js +0 -12
  171. package/umd/Types/ISourceOptions.js +0 -12
  172. package/umd/Types/ParticlesGroups.js +0 -12
  173. package/umd/Types/PathOptions.js +0 -12
  174. package/umd/Types/RangeValue.js +0 -12
  175. package/umd/Types/RecursivePartial.js +0 -12
  176. package/umd/Types/ShapeData.js +0 -12
  177. package/umd/Types/SingleOrMultiple.js +0 -12
  178. package/umd/Utils/CanvasUtils.js +0 -145
  179. package/umd/Utils/ColorUtils.js +0 -395
  180. package/umd/Utils/EventDispatcher.js +0 -63
  181. package/umd/Utils/LogUtils.js +0 -37
  182. package/umd/Utils/MathUtils.js +0 -203
  183. package/umd/Utils/OptionsUtils.js +0 -25
  184. package/umd/Utils/TypeUtils.js +0 -40
  185. package/umd/Utils/Utils.js +0 -484
  186. package/umd/bundle.js +0 -32
  187. package/umd/export-types.js +0 -12
  188. package/umd/exports.js +0 -82
  189. package/umd/index.js +0 -32
  190. package/umd/initEngine.js +0 -17
@@ -1,18 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.AnimationStatus = void 0;
13
- var AnimationStatus;
14
- (function (AnimationStatus) {
15
- AnimationStatus["increasing"] = "increasing";
16
- AnimationStatus["decreasing"] = "decreasing";
17
- })(AnimationStatus || (exports.AnimationStatus = AnimationStatus = {}));
18
- });
@@ -1,27 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.MoveDirection = void 0;
13
- var MoveDirection;
14
- (function (MoveDirection) {
15
- MoveDirection["bottom"] = "bottom";
16
- MoveDirection["bottomLeft"] = "bottom-left";
17
- MoveDirection["bottomRight"] = "bottom-right";
18
- MoveDirection["left"] = "left";
19
- MoveDirection["none"] = "none";
20
- MoveDirection["right"] = "right";
21
- MoveDirection["top"] = "top";
22
- MoveDirection["topLeft"] = "top-left";
23
- MoveDirection["topRight"] = "top-right";
24
- MoveDirection["outside"] = "outside";
25
- MoveDirection["inside"] = "inside";
26
- })(MoveDirection || (exports.MoveDirection = MoveDirection = {}));
27
- });
@@ -1,20 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.OutModeDirection = void 0;
13
- var OutModeDirection;
14
- (function (OutModeDirection) {
15
- OutModeDirection["bottom"] = "bottom";
16
- OutModeDirection["left"] = "left";
17
- OutModeDirection["right"] = "right";
18
- OutModeDirection["top"] = "top";
19
- })(OutModeDirection || (exports.OutModeDirection = OutModeDirection = {}));
20
- });
@@ -1,19 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.RotateDirection = void 0;
13
- var RotateDirection;
14
- (function (RotateDirection) {
15
- RotateDirection["clockwise"] = "clockwise";
16
- RotateDirection["counterClockwise"] = "counter-clockwise";
17
- RotateDirection["random"] = "random";
18
- })(RotateDirection || (exports.RotateDirection = RotateDirection = {}));
19
- });
@@ -1,20 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.AnimationMode = void 0;
13
- var AnimationMode;
14
- (function (AnimationMode) {
15
- AnimationMode["auto"] = "auto";
16
- AnimationMode["increase"] = "increase";
17
- AnimationMode["decrease"] = "decrease";
18
- AnimationMode["random"] = "random";
19
- })(AnimationMode || (exports.AnimationMode = AnimationMode = {}));
20
- });
@@ -1,18 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.LimitMode = void 0;
13
- var LimitMode;
14
- (function (LimitMode) {
15
- LimitMode["delete"] = "delete";
16
- LimitMode["wait"] = "wait";
17
- })(LimitMode || (exports.LimitMode = LimitMode = {}));
18
- });
@@ -1,21 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.OutMode = void 0;
13
- var OutMode;
14
- (function (OutMode) {
15
- OutMode["bounce"] = "bounce";
16
- OutMode["none"] = "none";
17
- OutMode["out"] = "out";
18
- OutMode["destroy"] = "destroy";
19
- OutMode["split"] = "split";
20
- })(OutMode || (exports.OutMode = OutMode = {}));
21
- });
@@ -1,18 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.PixelMode = void 0;
13
- var PixelMode;
14
- (function (PixelMode) {
15
- PixelMode["precise"] = "precise";
16
- PixelMode["percent"] = "percent";
17
- })(PixelMode || (exports.PixelMode = PixelMode = {}));
18
- });
@@ -1,18 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.RangeType = void 0;
13
- var RangeType;
14
- (function (RangeType) {
15
- RangeType["circle"] = "circle";
16
- RangeType["rectangle"] = "rectangle";
17
- })(RangeType || (exports.RangeType = RangeType = {}));
18
- });
@@ -1,18 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.AlterType = void 0;
13
- var AlterType;
14
- (function (AlterType) {
15
- AlterType["darken"] = "darken";
16
- AlterType["enlighten"] = "enlighten";
17
- })(AlterType || (exports.AlterType = AlterType = {}));
18
- });
@@ -1,19 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.DestroyType = void 0;
13
- var DestroyType;
14
- (function (DestroyType) {
15
- DestroyType["none"] = "none";
16
- DestroyType["max"] = "max";
17
- DestroyType["min"] = "min";
18
- })(DestroyType || (exports.DestroyType = DestroyType = {}));
19
- });
@@ -1,58 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.EasingType = void 0;
13
- var EasingType;
14
- (function (EasingType) {
15
- EasingType["easeInBack"] = "ease-in-back";
16
- EasingType["easeInBounce"] = "ease-in-bounce";
17
- EasingType["easeInCirc"] = "ease-in-circ";
18
- EasingType["easeInCubic"] = "ease-in-cubic";
19
- EasingType["easeInElastic"] = "ease-in-elastic";
20
- EasingType["easeInExpo"] = "ease-in-expo";
21
- EasingType["easeInGaussian"] = "ease-in-gaussian";
22
- EasingType["easeInLinear"] = "ease-in-linear";
23
- EasingType["easeInQuad"] = "ease-in-quad";
24
- EasingType["easeInQuart"] = "ease-in-quart";
25
- EasingType["easeInQuint"] = "ease-in-quint";
26
- EasingType["easeInSigmoid"] = "ease-in-sigmoid";
27
- EasingType["easeInSine"] = "ease-in-sine";
28
- EasingType["easeInSmoothstep"] = "ease-in-smoothstep";
29
- EasingType["easeOutBack"] = "ease-out-back";
30
- EasingType["easeOutBounce"] = "ease-out-bounce";
31
- EasingType["easeOutCirc"] = "ease-out-circ";
32
- EasingType["easeOutCubic"] = "ease-out-cubic";
33
- EasingType["easeOutElastic"] = "ease-out-elastic";
34
- EasingType["easeOutExpo"] = "ease-out-expo";
35
- EasingType["easeOutGaussian"] = "ease-out-gaussian";
36
- EasingType["easeOutLinear"] = "ease-out-linear";
37
- EasingType["easeOutQuad"] = "ease-out-quad";
38
- EasingType["easeOutQuart"] = "ease-out-quart";
39
- EasingType["easeOutQuint"] = "ease-out-quint";
40
- EasingType["easeOutSigmoid"] = "ease-out-sigmoid";
41
- EasingType["easeOutSine"] = "ease-out-sine";
42
- EasingType["easeOutSmoothstep"] = "ease-out-smoothstep";
43
- EasingType["easeInOutBack"] = "ease-in-out-back";
44
- EasingType["easeInOutBounce"] = "ease-in-out-bounce";
45
- EasingType["easeInOutCirc"] = "ease-in-out-circ";
46
- EasingType["easeInOutCubic"] = "ease-in-out-cubic";
47
- EasingType["easeInOutElastic"] = "ease-in-out-elastic";
48
- EasingType["easeInOutExpo"] = "ease-in-out-expo";
49
- EasingType["easeInOutGaussian"] = "ease-in-out-gaussian";
50
- EasingType["easeInOutLinear"] = "ease-in-out-linear";
51
- EasingType["easeInOutQuad"] = "ease-in-out-quad";
52
- EasingType["easeInOutQuart"] = "ease-in-out-quart";
53
- EasingType["easeInOutQuint"] = "ease-in-out-quint";
54
- EasingType["easeInOutSigmoid"] = "ease-in-out-sigmoid";
55
- EasingType["easeInOutSine"] = "ease-in-out-sine";
56
- EasingType["easeInOutSmoothstep"] = "ease-in-out-smoothstep";
57
- })(EasingType || (exports.EasingType = EasingType = {}));
58
- });
@@ -1,28 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.EventType = void 0;
13
- var EventType;
14
- (function (EventType) {
15
- EventType["configAdded"] = "configAdded";
16
- EventType["containerInit"] = "containerInit";
17
- EventType["particlesSetup"] = "particlesSetup";
18
- EventType["containerStarted"] = "containerStarted";
19
- EventType["containerStopped"] = "containerStopped";
20
- EventType["containerDestroyed"] = "containerDestroyed";
21
- EventType["containerPaused"] = "containerPaused";
22
- EventType["containerPlay"] = "containerPlay";
23
- EventType["containerBuilt"] = "containerBuilt";
24
- EventType["particleAdded"] = "particleAdded";
25
- EventType["particleDestroyed"] = "particleDestroyed";
26
- EventType["particleRemoved"] = "particleRemoved";
27
- })(EventType || (exports.EventType = EventType = {}));
28
- });
@@ -1,19 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.GradientType = void 0;
13
- var GradientType;
14
- (function (GradientType) {
15
- GradientType["linear"] = "linear";
16
- GradientType["radial"] = "radial";
17
- GradientType["random"] = "random";
18
- })(GradientType || (exports.GradientType = GradientType = {}));
19
- });
@@ -1,19 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ParticleOutType = void 0;
13
- var ParticleOutType;
14
- (function (ParticleOutType) {
15
- ParticleOutType["normal"] = "normal";
16
- ParticleOutType["inside"] = "inside";
17
- ParticleOutType["outside"] = "outside";
18
- })(ParticleOutType || (exports.ParticleOutType = ParticleOutType = {}));
19
- });
@@ -1,19 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.StartValueType = void 0;
13
- var StartValueType;
14
- (function (StartValueType) {
15
- StartValueType["max"] = "max";
16
- StartValueType["min"] = "min";
17
- StartValueType["random"] = "random";
18
- })(StartValueType || (exports.StartValueType = StartValueType = {}));
19
- });
@@ -1,52 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "../../Utils/TypeUtils.js", "./HslAnimation.js", "./OptionsColor.js"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.AnimatableColor = void 0;
13
- const TypeUtils_js_1 = require("../../Utils/TypeUtils.js");
14
- const HslAnimation_js_1 = require("./HslAnimation.js");
15
- const OptionsColor_js_1 = require("./OptionsColor.js");
16
- class AnimatableColor extends OptionsColor_js_1.OptionsColor {
17
- animation;
18
- constructor() {
19
- super();
20
- this.animation = new HslAnimation_js_1.HslAnimation();
21
- }
22
- static create(source, data) {
23
- const color = new AnimatableColor();
24
- color.load(source);
25
- if (data !== undefined) {
26
- if ((0, TypeUtils_js_1.isString)(data) || (0, TypeUtils_js_1.isArray)(data)) {
27
- color.load({ value: data });
28
- }
29
- else {
30
- color.load(data);
31
- }
32
- }
33
- return color;
34
- }
35
- load(data) {
36
- super.load(data);
37
- if ((0, TypeUtils_js_1.isNull)(data)) {
38
- return;
39
- }
40
- const colorAnimation = data.animation;
41
- if (colorAnimation !== undefined) {
42
- if (colorAnimation.enable === undefined) {
43
- this.animation.load(data.animation);
44
- }
45
- else {
46
- this.animation.h.load(colorAnimation);
47
- }
48
- }
49
- }
50
- }
51
- exports.AnimatableColor = AnimatableColor;
52
- });
@@ -1,79 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "../../Enums/Modes/AnimationMode.js", "../../Enums/Types/StartValueType.js", "../../Utils/TypeUtils.js", "../../Utils/MathUtils.js"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.RangedAnimationOptions = exports.AnimationOptions = void 0;
13
- const AnimationMode_js_1 = require("../../Enums/Modes/AnimationMode.js");
14
- const StartValueType_js_1 = require("../../Enums/Types/StartValueType.js");
15
- const TypeUtils_js_1 = require("../../Utils/TypeUtils.js");
16
- const MathUtils_js_1 = require("../../Utils/MathUtils.js");
17
- class AnimationOptions {
18
- count;
19
- decay;
20
- delay;
21
- enable;
22
- speed;
23
- sync;
24
- constructor() {
25
- this.count = 0;
26
- this.enable = false;
27
- this.speed = 1;
28
- this.decay = 0;
29
- this.delay = 0;
30
- this.sync = false;
31
- }
32
- load(data) {
33
- if ((0, TypeUtils_js_1.isNull)(data)) {
34
- return;
35
- }
36
- if (data.count !== undefined) {
37
- this.count = (0, MathUtils_js_1.setRangeValue)(data.count);
38
- }
39
- if (data.enable !== undefined) {
40
- this.enable = data.enable;
41
- }
42
- if (data.speed !== undefined) {
43
- this.speed = (0, MathUtils_js_1.setRangeValue)(data.speed);
44
- }
45
- if (data.decay !== undefined) {
46
- this.decay = (0, MathUtils_js_1.setRangeValue)(data.decay);
47
- }
48
- if (data.delay !== undefined) {
49
- this.delay = (0, MathUtils_js_1.setRangeValue)(data.delay);
50
- }
51
- if (data.sync !== undefined) {
52
- this.sync = data.sync;
53
- }
54
- }
55
- }
56
- exports.AnimationOptions = AnimationOptions;
57
- class RangedAnimationOptions extends AnimationOptions {
58
- mode;
59
- startValue;
60
- constructor() {
61
- super();
62
- this.mode = AnimationMode_js_1.AnimationMode.auto;
63
- this.startValue = StartValueType_js_1.StartValueType.random;
64
- }
65
- load(data) {
66
- super.load(data);
67
- if ((0, TypeUtils_js_1.isNull)(data)) {
68
- return;
69
- }
70
- if (data.mode !== undefined) {
71
- this.mode = data.mode;
72
- }
73
- if (data.startValue !== undefined) {
74
- this.startValue = data.startValue;
75
- }
76
- }
77
- }
78
- exports.RangedAnimationOptions = RangedAnimationOptions;
79
- });
@@ -1,56 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "../OptionsColor.js", "../../../Utils/TypeUtils.js"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.Background = void 0;
13
- const OptionsColor_js_1 = require("../OptionsColor.js");
14
- const TypeUtils_js_1 = require("../../../Utils/TypeUtils.js");
15
- class Background {
16
- color;
17
- image;
18
- opacity;
19
- position;
20
- repeat;
21
- size;
22
- constructor() {
23
- this.color = new OptionsColor_js_1.OptionsColor();
24
- this.color.value = "";
25
- this.image = "";
26
- this.position = "";
27
- this.repeat = "";
28
- this.size = "";
29
- this.opacity = 1;
30
- }
31
- load(data) {
32
- if ((0, TypeUtils_js_1.isNull)(data)) {
33
- return;
34
- }
35
- if (data.color !== undefined) {
36
- this.color = OptionsColor_js_1.OptionsColor.create(this.color, data.color);
37
- }
38
- if (data.image !== undefined) {
39
- this.image = data.image;
40
- }
41
- if (data.position !== undefined) {
42
- this.position = data.position;
43
- }
44
- if (data.repeat !== undefined) {
45
- this.repeat = data.repeat;
46
- }
47
- if (data.size !== undefined) {
48
- this.size = data.size;
49
- }
50
- if (data.opacity !== undefined) {
51
- this.opacity = data.opacity;
52
- }
53
- }
54
- }
55
- exports.Background = Background;
56
- });
@@ -1,44 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "./AnimationOptions.js", "../../Utils/TypeUtils.js", "../../Utils/MathUtils.js"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ColorAnimation = void 0;
13
- const AnimationOptions_js_1 = require("./AnimationOptions.js");
14
- const TypeUtils_js_1 = require("../../Utils/TypeUtils.js");
15
- const MathUtils_js_1 = require("../../Utils/MathUtils.js");
16
- class ColorAnimation extends AnimationOptions_js_1.AnimationOptions {
17
- max;
18
- min;
19
- offset;
20
- constructor(min, max) {
21
- super();
22
- this.min = min;
23
- this.max = max;
24
- this.offset = 0;
25
- this.sync = true;
26
- }
27
- load(data) {
28
- super.load(data);
29
- if ((0, TypeUtils_js_1.isNull)(data)) {
30
- return;
31
- }
32
- if (data.max !== undefined) {
33
- this.max = data.max;
34
- }
35
- if (data.min !== undefined) {
36
- this.min = data.min;
37
- }
38
- if (data.offset !== undefined) {
39
- this.offset = (0, MathUtils_js_1.setRangeValue)(data.offset);
40
- }
41
- }
42
- }
43
- exports.ColorAnimation = ColorAnimation;
44
- });
@@ -1,34 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "../../../Utils/TypeUtils.js"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.FullScreen = void 0;
13
- const TypeUtils_js_1 = require("../../../Utils/TypeUtils.js");
14
- class FullScreen {
15
- enable;
16
- zIndex;
17
- constructor() {
18
- this.enable = true;
19
- this.zIndex = 0;
20
- }
21
- load(data) {
22
- if ((0, TypeUtils_js_1.isNull)(data)) {
23
- return;
24
- }
25
- if (data.enable !== undefined) {
26
- this.enable = data.enable;
27
- }
28
- if (data.zIndex !== undefined) {
29
- this.zIndex = data.zIndex;
30
- }
31
- }
32
- }
33
- exports.FullScreen = FullScreen;
34
- });