@tsparticles/engine 4.0.0-beta.1 → 4.0.0-beta.10
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/67.min.js +1 -0
- package/README.md +53 -944
- package/browser/Core/Engine.js +1 -1
- package/browser/Options/Classes/Options.js +1 -14
- package/browser/Options/Classes/Particles/Paint.js +20 -0
- package/browser/Options/Classes/Particles/ParticlesOptions.js +60 -22
- package/browser/Options/Interfaces/Particles/IPaint.js +1 -0
- package/browser/Utils/CanvasUtils.js +3 -3
- package/browser/Utils/Utils.js +16 -10
- package/browser/exports.js +1 -0
- package/cjs/Core/Engine.js +1 -1
- package/cjs/Options/Classes/Options.js +1 -14
- package/cjs/Options/Classes/Particles/Paint.js +20 -0
- package/cjs/Options/Classes/Particles/ParticlesOptions.js +60 -22
- package/cjs/Options/Interfaces/Particles/IPaint.js +1 -0
- package/cjs/Utils/CanvasUtils.js +3 -3
- package/cjs/Utils/Utils.js +16 -10
- package/cjs/exports.js +1 -0
- package/dist_browser_Core_Container_js.js +1 -1
- package/esm/Core/Engine.js +1 -1
- package/esm/Options/Classes/Options.js +1 -14
- package/esm/Options/Classes/Particles/Paint.js +20 -0
- package/esm/Options/Classes/Particles/ParticlesOptions.js +60 -22
- package/esm/Options/Interfaces/Particles/IPaint.js +1 -0
- package/esm/Utils/CanvasUtils.js +3 -3
- package/esm/Utils/Utils.js +16 -10
- package/esm/exports.js +1 -0
- package/package.json +2 -3
- package/report.html +1 -1
- package/tsparticles.engine.js +18 -8
- package/tsparticles.engine.min.js +2 -2
- package/types/Core/Interfaces/IPalette.d.ts +15 -2
- package/types/Options/Classes/Particles/Paint.d.ts +10 -0
- package/types/Options/Classes/Particles/ParticlesOptions.d.ts +4 -4
- package/types/Options/Interfaces/Particles/IPaint.d.ts +6 -0
- package/types/Options/Interfaces/Particles/IParticlesOptions.d.ts +3 -4
- package/types/export-types.d.ts +1 -0
- package/types/exports.d.ts +1 -0
- package/155.min.js +0 -1
- package/umd/Core/CanvasManager.js +0 -317
- package/umd/Core/Container.js +0 -383
- package/umd/Core/Engine.js +0 -183
- package/umd/Core/Interfaces/Colors.js +0 -12
- package/umd/Core/Interfaces/IBounds.js +0 -12
- package/umd/Core/Interfaces/IBubbleParticleData.js +0 -12
- package/umd/Core/Interfaces/ICircleBouncer.js +0 -12
- package/umd/Core/Interfaces/IColorManager.js +0 -12
- package/umd/Core/Interfaces/IContainerPlugin.js +0 -12
- package/umd/Core/Interfaces/ICoordinates.js +0 -12
- package/umd/Core/Interfaces/IDelta.js +0 -12
- package/umd/Core/Interfaces/IDimension.js +0 -12
- package/umd/Core/Interfaces/IDistance.js +0 -12
- package/umd/Core/Interfaces/IDrawParticleParams.js +0 -12
- package/umd/Core/Interfaces/IEffectDrawer.js +0 -12
- package/umd/Core/Interfaces/ILoadParams.js +0 -12
- package/umd/Core/Interfaces/IPalette.js +0 -12
- package/umd/Core/Interfaces/IParticleColorStyle.js +0 -12
- package/umd/Core/Interfaces/IParticleHslAnimation.js +0 -12
- package/umd/Core/Interfaces/IParticleLife.js +0 -12
- package/umd/Core/Interfaces/IParticleOpacityData.js +0 -12
- package/umd/Core/Interfaces/IParticleRetinaProps.js +0 -12
- package/umd/Core/Interfaces/IParticleRoll.js +0 -12
- package/umd/Core/Interfaces/IParticleRotateData.js +0 -12
- package/umd/Core/Interfaces/IParticleTransformValues.js +0 -12
- package/umd/Core/Interfaces/IParticleUpdater.js +0 -12
- package/umd/Core/Interfaces/IParticleValueAnimation.js +0 -12
- package/umd/Core/Interfaces/IPlugin.js +0 -12
- package/umd/Core/Interfaces/IPositionFromSizeParams.js +0 -12
- package/umd/Core/Interfaces/IRangeValue.js +0 -12
- package/umd/Core/Interfaces/IShapeDrawData.js +0 -12
- package/umd/Core/Interfaces/IShapeDrawer.js +0 -12
- package/umd/Core/Interfaces/IShapeValues.js +0 -12
- package/umd/Core/Interfaces/ISlowParticleData.js +0 -12
- package/umd/Core/Particle.js +0 -433
- package/umd/Core/ParticlesManager.js +0 -377
- package/umd/Core/RenderManager.js +0 -317
- package/umd/Core/Retina.js +0 -47
- package/umd/Core/Utils/Constants.js +0 -23
- package/umd/Core/Utils/EventListeners.js +0 -102
- package/umd/Core/Utils/PluginManager.js +0 -159
- package/umd/Core/Utils/Ranges.js +0 -91
- package/umd/Core/Utils/SpatialHashGrid.js +0 -116
- package/umd/Core/Utils/Vectors.js +0 -126
- package/umd/Enums/AnimationStatus.js +0 -18
- package/umd/Enums/Directions/MoveDirection.js +0 -27
- package/umd/Enums/Directions/OutModeDirection.js +0 -20
- package/umd/Enums/Directions/RotateDirection.js +0 -19
- package/umd/Enums/Modes/AnimationMode.js +0 -20
- package/umd/Enums/Modes/LimitMode.js +0 -18
- package/umd/Enums/Modes/OutMode.js +0 -21
- package/umd/Enums/Modes/PixelMode.js +0 -18
- package/umd/Enums/RangeType.js +0 -18
- package/umd/Enums/Types/AlterType.js +0 -18
- package/umd/Enums/Types/DestroyType.js +0 -19
- package/umd/Enums/Types/EasingType.js +0 -58
- package/umd/Enums/Types/EventType.js +0 -28
- package/umd/Enums/Types/GradientType.js +0 -19
- package/umd/Enums/Types/ParticleOutType.js +0 -19
- package/umd/Enums/Types/StartValueType.js +0 -19
- package/umd/Options/Classes/AnimatableColor.js +0 -52
- package/umd/Options/Classes/AnimationOptions.js +0 -79
- package/umd/Options/Classes/Background/Background.js +0 -56
- package/umd/Options/Classes/ColorAnimation.js +0 -44
- package/umd/Options/Classes/FullScreen/FullScreen.js +0 -34
- package/umd/Options/Classes/HslAnimation.js +0 -30
- package/umd/Options/Classes/Options.js +0 -171
- package/umd/Options/Classes/OptionsColor.js +0 -42
- package/umd/Options/Classes/Particles/Bounce/ParticlesBounce.js +0 -31
- package/umd/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +0 -21
- package/umd/Options/Classes/Particles/Effect/Effect.js +0 -46
- package/umd/Options/Classes/Particles/Fill.js +0 -42
- package/umd/Options/Classes/Particles/Move/Move.js +0 -120
- package/umd/Options/Classes/Particles/Move/MoveAngle.js +0 -35
- package/umd/Options/Classes/Particles/Move/MoveCenter.js +0 -45
- package/umd/Options/Classes/Particles/Move/MoveGravity.js +0 -45
- package/umd/Options/Classes/Particles/Move/OutModes.js +0 -38
- package/umd/Options/Classes/Particles/Move/Path/MovePath.js +0 -46
- package/umd/Options/Classes/Particles/Move/Spin.js +0 -40
- package/umd/Options/Classes/Particles/Number/ParticlesDensity.js +0 -41
- package/umd/Options/Classes/Particles/Number/ParticlesNumber.js +0 -37
- package/umd/Options/Classes/Particles/Number/ParticlesNumberLimit.js +0 -35
- package/umd/Options/Classes/Particles/Opacity/Opacity.js +0 -35
- package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.js +0 -34
- package/umd/Options/Classes/Particles/ParticlesOptions.js +0 -116
- package/umd/Options/Classes/Particles/Shape/Shape.js +0 -46
- package/umd/Options/Classes/Particles/Size/Size.js +0 -35
- package/umd/Options/Classes/Particles/Size/SizeAnimation.js +0 -34
- package/umd/Options/Classes/Particles/Stroke.js +0 -39
- package/umd/Options/Classes/Particles/ZIndex/ZIndex.js +0 -42
- package/umd/Options/Classes/ResizeEvent.js +0 -34
- package/umd/Options/Classes/ValueWithRandom.js +0 -56
- package/umd/Options/Interfaces/Background/IBackground.js +0 -12
- package/umd/Options/Interfaces/FullScreen/IFullScreen.js +0 -12
- package/umd/Options/Interfaces/IAnimatable.js +0 -12
- package/umd/Options/Interfaces/IAnimatableColor.js +0 -12
- package/umd/Options/Interfaces/IAnimation.js +0 -12
- package/umd/Options/Interfaces/IColorAnimation.js +0 -12
- package/umd/Options/Interfaces/IHslAnimation.js +0 -12
- package/umd/Options/Interfaces/IOptionLoader.js +0 -12
- package/umd/Options/Interfaces/IOptions.js +0 -12
- package/umd/Options/Interfaces/IOptionsColor.js +0 -12
- package/umd/Options/Interfaces/IResizeEvent.js +0 -12
- package/umd/Options/Interfaces/IValueWithRandom.js +0 -12
- package/umd/Options/Interfaces/Particles/Bounce/IParticlesBounce.js +0 -12
- package/umd/Options/Interfaces/Particles/Effect/IEffect.js +0 -12
- package/umd/Options/Interfaces/Particles/IFill.js +0 -12
- package/umd/Options/Interfaces/Particles/IParticlesOptions.js +0 -12
- package/umd/Options/Interfaces/Particles/IStroke.js +0 -12
- package/umd/Options/Interfaces/Particles/Move/IMove.js +0 -12
- package/umd/Options/Interfaces/Particles/Move/IMoveAngle.js +0 -12
- package/umd/Options/Interfaces/Particles/Move/IMoveCenter.js +0 -12
- package/umd/Options/Interfaces/Particles/Move/IMoveGravity.js +0 -12
- package/umd/Options/Interfaces/Particles/Move/IOutModes.js +0 -12
- package/umd/Options/Interfaces/Particles/Move/ISpin.js +0 -12
- package/umd/Options/Interfaces/Particles/Move/Path/IMovePath.js +0 -12
- package/umd/Options/Interfaces/Particles/Number/IParticlesDensity.js +0 -12
- package/umd/Options/Interfaces/Particles/Number/IParticlesNumber.js +0 -12
- package/umd/Options/Interfaces/Particles/Number/IParticlesNumberLimit.js +0 -12
- package/umd/Options/Interfaces/Particles/Opacity/IOpacity.js +0 -12
- package/umd/Options/Interfaces/Particles/Opacity/IOpacityAnimation.js +0 -12
- package/umd/Options/Interfaces/Particles/Shape/IShape.js +0 -12
- package/umd/Options/Interfaces/Particles/Size/ISize.js +0 -12
- package/umd/Options/Interfaces/Particles/Size/ISizeAnimation.js +0 -12
- package/umd/Options/Interfaces/Particles/ZIndex/IZIndex.js +0 -12
- package/umd/Types/CanvasContextType.js +0 -12
- package/umd/Types/CustomEventArgs.js +0 -12
- package/umd/Types/CustomEventListener.js +0 -12
- package/umd/Types/EasingFunction.js +0 -12
- package/umd/Types/EngineInitializers.js +0 -12
- package/umd/Types/ExportResult.js +0 -12
- package/umd/Types/ISourceOptions.js +0 -12
- package/umd/Types/ParticlesGroups.js +0 -12
- package/umd/Types/PathOptions.js +0 -12
- package/umd/Types/RangeValue.js +0 -12
- package/umd/Types/RecursivePartial.js +0 -12
- package/umd/Types/ShapeData.js +0 -12
- package/umd/Types/SingleOrMultiple.js +0 -12
- package/umd/Utils/CanvasUtils.js +0 -145
- package/umd/Utils/ColorUtils.js +0 -395
- package/umd/Utils/EventDispatcher.js +0 -63
- package/umd/Utils/LogUtils.js +0 -37
- package/umd/Utils/MathUtils.js +0 -203
- package/umd/Utils/OptionsUtils.js +0 -25
- package/umd/Utils/TypeUtils.js +0 -40
- package/umd/Utils/Utils.js +0 -484
- package/umd/bundle.js +0 -32
- package/umd/export-types.js +0 -12
- package/umd/exports.js +0 -82
- package/umd/index.js +0 -32
- package/umd/initEngine.js +0 -17
|
@@ -1,30 +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", "../../Core/Utils/Constants.js", "./ColorAnimation.js", "../../Utils/TypeUtils.js"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.HslAnimation = void 0;
|
|
13
|
-
const Constants_js_1 = require("../../Core/Utils/Constants.js");
|
|
14
|
-
const ColorAnimation_js_1 = require("./ColorAnimation.js");
|
|
15
|
-
const TypeUtils_js_1 = require("../../Utils/TypeUtils.js");
|
|
16
|
-
class HslAnimation {
|
|
17
|
-
h = new ColorAnimation_js_1.ColorAnimation(Constants_js_1.hMin, Constants_js_1.hMax);
|
|
18
|
-
l = new ColorAnimation_js_1.ColorAnimation(Constants_js_1.lMin, Constants_js_1.lMax);
|
|
19
|
-
s = new ColorAnimation_js_1.ColorAnimation(Constants_js_1.sMin, Constants_js_1.sMax);
|
|
20
|
-
load(data) {
|
|
21
|
-
if ((0, TypeUtils_js_1.isNull)(data)) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
this.h.load(data.h);
|
|
25
|
-
this.s.load(data.s);
|
|
26
|
-
this.l.load(data.l);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.HslAnimation = HslAnimation;
|
|
30
|
-
});
|
|
@@ -1,171 +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/Utils.js", "../../Utils/TypeUtils.js", "./Background/Background.js", "./FullScreen/FullScreen.js", "./ResizeEvent.js", "../../Utils/OptionsUtils.js", "../../Utils/MathUtils.js"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.Options = void 0;
|
|
13
|
-
const Utils_js_1 = require("../../Utils/Utils.js");
|
|
14
|
-
const TypeUtils_js_1 = require("../../Utils/TypeUtils.js");
|
|
15
|
-
const Background_js_1 = require("./Background/Background.js");
|
|
16
|
-
const FullScreen_js_1 = require("./FullScreen/FullScreen.js");
|
|
17
|
-
const ResizeEvent_js_1 = require("./ResizeEvent.js");
|
|
18
|
-
const OptionsUtils_js_1 = require("../../Utils/OptionsUtils.js");
|
|
19
|
-
const MathUtils_js_1 = require("../../Utils/MathUtils.js");
|
|
20
|
-
class Options {
|
|
21
|
-
autoPlay;
|
|
22
|
-
background;
|
|
23
|
-
clear;
|
|
24
|
-
defaultThemes;
|
|
25
|
-
delay;
|
|
26
|
-
detectRetina;
|
|
27
|
-
duration;
|
|
28
|
-
fpsLimit;
|
|
29
|
-
fullScreen;
|
|
30
|
-
hdr;
|
|
31
|
-
key;
|
|
32
|
-
name;
|
|
33
|
-
palette;
|
|
34
|
-
particles;
|
|
35
|
-
pauseOnBlur;
|
|
36
|
-
pauseOnOutsideViewport;
|
|
37
|
-
preset;
|
|
38
|
-
resize;
|
|
39
|
-
smooth;
|
|
40
|
-
style;
|
|
41
|
-
zLayers;
|
|
42
|
-
_container;
|
|
43
|
-
_pluginManager;
|
|
44
|
-
constructor(pluginManager, container) {
|
|
45
|
-
this._pluginManager = pluginManager;
|
|
46
|
-
this._container = container;
|
|
47
|
-
this.autoPlay = true;
|
|
48
|
-
this.background = new Background_js_1.Background();
|
|
49
|
-
this.clear = true;
|
|
50
|
-
this.defaultThemes = {};
|
|
51
|
-
this.delay = 0;
|
|
52
|
-
this.fullScreen = new FullScreen_js_1.FullScreen();
|
|
53
|
-
this.detectRetina = true;
|
|
54
|
-
this.duration = 0;
|
|
55
|
-
this.fpsLimit = 120;
|
|
56
|
-
this.hdr = true;
|
|
57
|
-
this.particles = (0, OptionsUtils_js_1.loadParticlesOptions)(this._pluginManager, this._container);
|
|
58
|
-
this.pauseOnBlur = true;
|
|
59
|
-
this.pauseOnOutsideViewport = true;
|
|
60
|
-
this.resize = new ResizeEvent_js_1.ResizeEvent();
|
|
61
|
-
this.smooth = false;
|
|
62
|
-
this.style = {};
|
|
63
|
-
this.zLayers = 100;
|
|
64
|
-
}
|
|
65
|
-
load(data) {
|
|
66
|
-
if ((0, TypeUtils_js_1.isNull)(data)) {
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
if (data.preset !== undefined) {
|
|
70
|
-
this.preset = data.preset;
|
|
71
|
-
(0, Utils_js_1.executeOnSingleOrMultiple)(this.preset, preset => {
|
|
72
|
-
this._importPreset(preset);
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
if (data.palette !== undefined) {
|
|
76
|
-
this.palette = data.palette;
|
|
77
|
-
this._importPalette(this.palette);
|
|
78
|
-
}
|
|
79
|
-
if (data.autoPlay !== undefined) {
|
|
80
|
-
this.autoPlay = data.autoPlay;
|
|
81
|
-
}
|
|
82
|
-
if (data.clear !== undefined) {
|
|
83
|
-
this.clear = data.clear;
|
|
84
|
-
}
|
|
85
|
-
if (data.key !== undefined) {
|
|
86
|
-
this.key = data.key;
|
|
87
|
-
}
|
|
88
|
-
if (data.name !== undefined) {
|
|
89
|
-
this.name = data.name;
|
|
90
|
-
}
|
|
91
|
-
if (data.delay !== undefined) {
|
|
92
|
-
this.delay = (0, MathUtils_js_1.setRangeValue)(data.delay);
|
|
93
|
-
}
|
|
94
|
-
const detectRetina = data.detectRetina;
|
|
95
|
-
if (detectRetina !== undefined) {
|
|
96
|
-
this.detectRetina = detectRetina;
|
|
97
|
-
}
|
|
98
|
-
if (data.duration !== undefined) {
|
|
99
|
-
this.duration = (0, MathUtils_js_1.setRangeValue)(data.duration);
|
|
100
|
-
}
|
|
101
|
-
const fpsLimit = data.fpsLimit;
|
|
102
|
-
if (fpsLimit !== undefined) {
|
|
103
|
-
this.fpsLimit = fpsLimit;
|
|
104
|
-
}
|
|
105
|
-
if (data.hdr !== undefined) {
|
|
106
|
-
this.hdr = data.hdr;
|
|
107
|
-
}
|
|
108
|
-
if (data.pauseOnBlur !== undefined) {
|
|
109
|
-
this.pauseOnBlur = data.pauseOnBlur;
|
|
110
|
-
}
|
|
111
|
-
if (data.pauseOnOutsideViewport !== undefined) {
|
|
112
|
-
this.pauseOnOutsideViewport = data.pauseOnOutsideViewport;
|
|
113
|
-
}
|
|
114
|
-
if (data.zLayers !== undefined) {
|
|
115
|
-
this.zLayers = data.zLayers;
|
|
116
|
-
}
|
|
117
|
-
this.background.load(data.background);
|
|
118
|
-
const fullScreen = data.fullScreen;
|
|
119
|
-
if ((0, TypeUtils_js_1.isBoolean)(fullScreen)) {
|
|
120
|
-
this.fullScreen.enable = fullScreen;
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
this.fullScreen.load(fullScreen);
|
|
124
|
-
}
|
|
125
|
-
this.particles.load(data.particles);
|
|
126
|
-
this.resize.load(data.resize);
|
|
127
|
-
this.style = (0, Utils_js_1.deepExtend)(this.style, data.style);
|
|
128
|
-
if (data.smooth !== undefined) {
|
|
129
|
-
this.smooth = data.smooth;
|
|
130
|
-
}
|
|
131
|
-
this._pluginManager.plugins.forEach(plugin => {
|
|
132
|
-
plugin.loadOptions(this._container, this, data);
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
_importPalette = palette => {
|
|
136
|
-
const paletteData = this._pluginManager.getPalette(palette);
|
|
137
|
-
if (!paletteData) {
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
this.load({
|
|
141
|
-
background: {
|
|
142
|
-
color: paletteData.background,
|
|
143
|
-
},
|
|
144
|
-
blend: {
|
|
145
|
-
enable: true,
|
|
146
|
-
mode: paletteData.blendMode,
|
|
147
|
-
},
|
|
148
|
-
particles: {
|
|
149
|
-
fill: {
|
|
150
|
-
color: paletteData.fill
|
|
151
|
-
? {
|
|
152
|
-
value: paletteData.colors,
|
|
153
|
-
}
|
|
154
|
-
: undefined,
|
|
155
|
-
enable: paletteData.fill,
|
|
156
|
-
},
|
|
157
|
-
stroke: !paletteData.fill
|
|
158
|
-
? paletteData.colors.map(color => ({
|
|
159
|
-
color: { value: color },
|
|
160
|
-
width: 1,
|
|
161
|
-
}))
|
|
162
|
-
: undefined,
|
|
163
|
-
},
|
|
164
|
-
});
|
|
165
|
-
};
|
|
166
|
-
_importPreset = preset => {
|
|
167
|
-
this.load(this._pluginManager.getPreset(preset));
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
exports.Options = Options;
|
|
171
|
-
});
|
|
@@ -1,42 +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.OptionsColor = void 0;
|
|
13
|
-
const TypeUtils_js_1 = require("../../Utils/TypeUtils.js");
|
|
14
|
-
class OptionsColor {
|
|
15
|
-
value;
|
|
16
|
-
constructor() {
|
|
17
|
-
this.value = "";
|
|
18
|
-
}
|
|
19
|
-
static create(source, data) {
|
|
20
|
-
const color = new OptionsColor();
|
|
21
|
-
color.load(source);
|
|
22
|
-
if (data !== undefined) {
|
|
23
|
-
if ((0, TypeUtils_js_1.isString)(data) || (0, TypeUtils_js_1.isArray)(data)) {
|
|
24
|
-
color.load({ value: data });
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
color.load(data);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return color;
|
|
31
|
-
}
|
|
32
|
-
load(data) {
|
|
33
|
-
if ((0, TypeUtils_js_1.isNull)(data)) {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
if (!(0, TypeUtils_js_1.isNull)(data.value)) {
|
|
37
|
-
this.value = data.value;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.OptionsColor = OptionsColor;
|
|
42
|
-
});
|
|
@@ -1,31 +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", "./ParticlesBounceFactor.js", "../../../../Utils/TypeUtils.js"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ParticlesBounce = void 0;
|
|
13
|
-
const ParticlesBounceFactor_js_1 = require("./ParticlesBounceFactor.js");
|
|
14
|
-
const TypeUtils_js_1 = require("../../../../Utils/TypeUtils.js");
|
|
15
|
-
class ParticlesBounce {
|
|
16
|
-
horizontal;
|
|
17
|
-
vertical;
|
|
18
|
-
constructor() {
|
|
19
|
-
this.horizontal = new ParticlesBounceFactor_js_1.ParticlesBounceFactor();
|
|
20
|
-
this.vertical = new ParticlesBounceFactor_js_1.ParticlesBounceFactor();
|
|
21
|
-
}
|
|
22
|
-
load(data) {
|
|
23
|
-
if ((0, TypeUtils_js_1.isNull)(data)) {
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
this.horizontal.load(data.horizontal);
|
|
27
|
-
this.vertical.load(data.vertical);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.ParticlesBounce = ParticlesBounce;
|
|
31
|
-
});
|
|
@@ -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", "../../ValueWithRandom.js"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ParticlesBounceFactor = void 0;
|
|
13
|
-
const ValueWithRandom_js_1 = require("../../ValueWithRandom.js");
|
|
14
|
-
class ParticlesBounceFactor extends ValueWithRandom_js_1.ValueWithRandom {
|
|
15
|
-
constructor() {
|
|
16
|
-
super();
|
|
17
|
-
this.value = 1;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.ParticlesBounceFactor = ParticlesBounceFactor;
|
|
21
|
-
});
|
|
@@ -1,46 +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/Utils.js", "../../../../Utils/TypeUtils.js"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.Effect = void 0;
|
|
13
|
-
const Utils_js_1 = require("../../../../Utils/Utils.js");
|
|
14
|
-
const TypeUtils_js_1 = require("../../../../Utils/TypeUtils.js");
|
|
15
|
-
class Effect {
|
|
16
|
-
close;
|
|
17
|
-
options;
|
|
18
|
-
type;
|
|
19
|
-
constructor() {
|
|
20
|
-
this.close = true;
|
|
21
|
-
this.options = {};
|
|
22
|
-
this.type = [];
|
|
23
|
-
}
|
|
24
|
-
load(data) {
|
|
25
|
-
if ((0, TypeUtils_js_1.isNull)(data)) {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
const options = data.options;
|
|
29
|
-
if (options !== undefined) {
|
|
30
|
-
for (const effect in options) {
|
|
31
|
-
const item = options[effect];
|
|
32
|
-
if (item) {
|
|
33
|
-
this.options[effect] = (0, Utils_js_1.deepExtend)(this.options[effect] ?? {}, item);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
if (data.close !== undefined) {
|
|
38
|
-
this.close = data.close;
|
|
39
|
-
}
|
|
40
|
-
if (data.type !== undefined) {
|
|
41
|
-
this.type = data.type;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.Effect = Effect;
|
|
46
|
-
});
|
|
@@ -1,42 +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", "../AnimatableColor.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.Fill = void 0;
|
|
13
|
-
const AnimatableColor_js_1 = require("../AnimatableColor.js");
|
|
14
|
-
const TypeUtils_js_1 = require("../../../Utils/TypeUtils.js");
|
|
15
|
-
const MathUtils_js_1 = require("../../../Utils/MathUtils.js");
|
|
16
|
-
class Fill {
|
|
17
|
-
color;
|
|
18
|
-
enable;
|
|
19
|
-
opacity;
|
|
20
|
-
constructor() {
|
|
21
|
-
this.enable = true;
|
|
22
|
-
this.color = new AnimatableColor_js_1.AnimatableColor();
|
|
23
|
-
this.color.value = "#fff";
|
|
24
|
-
this.opacity = 1;
|
|
25
|
-
}
|
|
26
|
-
load(data) {
|
|
27
|
-
if ((0, TypeUtils_js_1.isNull)(data)) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
if (data.color !== undefined) {
|
|
31
|
-
this.color = AnimatableColor_js_1.AnimatableColor.create(this.color, data.color);
|
|
32
|
-
}
|
|
33
|
-
if (data.enable !== undefined) {
|
|
34
|
-
this.enable = data.enable;
|
|
35
|
-
}
|
|
36
|
-
if (data.opacity !== undefined) {
|
|
37
|
-
this.opacity = (0, MathUtils_js_1.setRangeValue)(data.opacity);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.Fill = Fill;
|
|
42
|
-
});
|
|
@@ -1,120 +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/Directions/MoveDirection.js", "../../../../Utils/TypeUtils.js", "./MoveAngle.js", "./MoveCenter.js", "./MoveGravity.js", "./Path/MovePath.js", "./OutModes.js", "./Spin.js", "../../../../Utils/MathUtils.js"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.Move = void 0;
|
|
13
|
-
const MoveDirection_js_1 = require("../../../../Enums/Directions/MoveDirection.js");
|
|
14
|
-
const TypeUtils_js_1 = require("../../../../Utils/TypeUtils.js");
|
|
15
|
-
const MoveAngle_js_1 = require("./MoveAngle.js");
|
|
16
|
-
const MoveCenter_js_1 = require("./MoveCenter.js");
|
|
17
|
-
const MoveGravity_js_1 = require("./MoveGravity.js");
|
|
18
|
-
const MovePath_js_1 = require("./Path/MovePath.js");
|
|
19
|
-
const OutModes_js_1 = require("./OutModes.js");
|
|
20
|
-
const Spin_js_1 = require("./Spin.js");
|
|
21
|
-
const MathUtils_js_1 = require("../../../../Utils/MathUtils.js");
|
|
22
|
-
class Move {
|
|
23
|
-
angle;
|
|
24
|
-
center;
|
|
25
|
-
decay;
|
|
26
|
-
direction;
|
|
27
|
-
distance;
|
|
28
|
-
drift;
|
|
29
|
-
enable;
|
|
30
|
-
gravity;
|
|
31
|
-
outModes;
|
|
32
|
-
path;
|
|
33
|
-
random;
|
|
34
|
-
size;
|
|
35
|
-
speed;
|
|
36
|
-
spin;
|
|
37
|
-
straight;
|
|
38
|
-
vibrate;
|
|
39
|
-
warp;
|
|
40
|
-
constructor() {
|
|
41
|
-
this.angle = new MoveAngle_js_1.MoveAngle();
|
|
42
|
-
this.center = new MoveCenter_js_1.MoveCenter();
|
|
43
|
-
this.decay = 0;
|
|
44
|
-
this.distance = {};
|
|
45
|
-
this.direction = MoveDirection_js_1.MoveDirection.none;
|
|
46
|
-
this.drift = 0;
|
|
47
|
-
this.enable = false;
|
|
48
|
-
this.gravity = new MoveGravity_js_1.MoveGravity();
|
|
49
|
-
this.path = new MovePath_js_1.MovePath();
|
|
50
|
-
this.outModes = new OutModes_js_1.OutModes();
|
|
51
|
-
this.random = false;
|
|
52
|
-
this.size = false;
|
|
53
|
-
this.speed = 2;
|
|
54
|
-
this.spin = new Spin_js_1.Spin();
|
|
55
|
-
this.straight = false;
|
|
56
|
-
this.vibrate = false;
|
|
57
|
-
this.warp = false;
|
|
58
|
-
}
|
|
59
|
-
load(data) {
|
|
60
|
-
if ((0, TypeUtils_js_1.isNull)(data)) {
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
this.angle.load((0, TypeUtils_js_1.isNumber)(data.angle) ? { value: data.angle } : data.angle);
|
|
64
|
-
this.center.load(data.center);
|
|
65
|
-
if (data.decay !== undefined) {
|
|
66
|
-
this.decay = (0, MathUtils_js_1.setRangeValue)(data.decay);
|
|
67
|
-
}
|
|
68
|
-
if (data.direction !== undefined) {
|
|
69
|
-
this.direction = data.direction;
|
|
70
|
-
}
|
|
71
|
-
if (data.distance !== undefined) {
|
|
72
|
-
this.distance = (0, TypeUtils_js_1.isNumber)(data.distance)
|
|
73
|
-
? {
|
|
74
|
-
horizontal: data.distance,
|
|
75
|
-
vertical: data.distance,
|
|
76
|
-
}
|
|
77
|
-
: { ...data.distance };
|
|
78
|
-
}
|
|
79
|
-
if (data.drift !== undefined) {
|
|
80
|
-
this.drift = (0, MathUtils_js_1.setRangeValue)(data.drift);
|
|
81
|
-
}
|
|
82
|
-
if (data.enable !== undefined) {
|
|
83
|
-
this.enable = data.enable;
|
|
84
|
-
}
|
|
85
|
-
this.gravity.load(data.gravity);
|
|
86
|
-
const outModes = data.outModes;
|
|
87
|
-
if (outModes !== undefined) {
|
|
88
|
-
if ((0, TypeUtils_js_1.isObject)(outModes)) {
|
|
89
|
-
this.outModes.load(outModes);
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
this.outModes.load({
|
|
93
|
-
default: outModes,
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
this.path.load(data.path);
|
|
98
|
-
if (data.random !== undefined) {
|
|
99
|
-
this.random = data.random;
|
|
100
|
-
}
|
|
101
|
-
if (data.size !== undefined) {
|
|
102
|
-
this.size = data.size;
|
|
103
|
-
}
|
|
104
|
-
if (data.speed !== undefined) {
|
|
105
|
-
this.speed = (0, MathUtils_js_1.setRangeValue)(data.speed);
|
|
106
|
-
}
|
|
107
|
-
this.spin.load(data.spin);
|
|
108
|
-
if (data.straight !== undefined) {
|
|
109
|
-
this.straight = data.straight;
|
|
110
|
-
}
|
|
111
|
-
if (data.vibrate !== undefined) {
|
|
112
|
-
this.vibrate = data.vibrate;
|
|
113
|
-
}
|
|
114
|
-
if (data.warp !== undefined) {
|
|
115
|
-
this.warp = data.warp;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
exports.Move = Move;
|
|
120
|
-
});
|
|
@@ -1,35 +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", "../../../../Utils/MathUtils.js"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MoveAngle = void 0;
|
|
13
|
-
const TypeUtils_js_1 = require("../../../../Utils/TypeUtils.js");
|
|
14
|
-
const MathUtils_js_1 = require("../../../../Utils/MathUtils.js");
|
|
15
|
-
class MoveAngle {
|
|
16
|
-
offset;
|
|
17
|
-
value;
|
|
18
|
-
constructor() {
|
|
19
|
-
this.offset = 0;
|
|
20
|
-
this.value = 90;
|
|
21
|
-
}
|
|
22
|
-
load(data) {
|
|
23
|
-
if ((0, TypeUtils_js_1.isNull)(data)) {
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
if (data.offset !== undefined) {
|
|
27
|
-
this.offset = (0, MathUtils_js_1.setRangeValue)(data.offset);
|
|
28
|
-
}
|
|
29
|
-
if (data.value !== undefined) {
|
|
30
|
-
this.value = (0, MathUtils_js_1.setRangeValue)(data.value);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.MoveAngle = MoveAngle;
|
|
35
|
-
});
|
|
@@ -1,45 +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/PixelMode.js", "../../../../Utils/TypeUtils.js"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MoveCenter = void 0;
|
|
13
|
-
const PixelMode_js_1 = require("../../../../Enums/Modes/PixelMode.js");
|
|
14
|
-
const TypeUtils_js_1 = require("../../../../Utils/TypeUtils.js");
|
|
15
|
-
class MoveCenter {
|
|
16
|
-
mode;
|
|
17
|
-
radius;
|
|
18
|
-
x;
|
|
19
|
-
y;
|
|
20
|
-
constructor() {
|
|
21
|
-
this.x = 50;
|
|
22
|
-
this.y = 50;
|
|
23
|
-
this.mode = PixelMode_js_1.PixelMode.percent;
|
|
24
|
-
this.radius = 0;
|
|
25
|
-
}
|
|
26
|
-
load(data) {
|
|
27
|
-
if ((0, TypeUtils_js_1.isNull)(data)) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
if (data.x !== undefined) {
|
|
31
|
-
this.x = data.x;
|
|
32
|
-
}
|
|
33
|
-
if (data.y !== undefined) {
|
|
34
|
-
this.y = data.y;
|
|
35
|
-
}
|
|
36
|
-
if (data.mode !== undefined) {
|
|
37
|
-
this.mode = data.mode;
|
|
38
|
-
}
|
|
39
|
-
if (data.radius !== undefined) {
|
|
40
|
-
this.radius = data.radius;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
exports.MoveCenter = MoveCenter;
|
|
45
|
-
});
|
|
@@ -1,45 +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", "../../../../Utils/MathUtils.js"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MoveGravity = void 0;
|
|
13
|
-
const TypeUtils_js_1 = require("../../../../Utils/TypeUtils.js");
|
|
14
|
-
const MathUtils_js_1 = require("../../../../Utils/MathUtils.js");
|
|
15
|
-
class MoveGravity {
|
|
16
|
-
acceleration;
|
|
17
|
-
enable;
|
|
18
|
-
inverse;
|
|
19
|
-
maxSpeed;
|
|
20
|
-
constructor() {
|
|
21
|
-
this.acceleration = 9.81;
|
|
22
|
-
this.enable = false;
|
|
23
|
-
this.inverse = false;
|
|
24
|
-
this.maxSpeed = 50;
|
|
25
|
-
}
|
|
26
|
-
load(data) {
|
|
27
|
-
if ((0, TypeUtils_js_1.isNull)(data)) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
if (data.acceleration !== undefined) {
|
|
31
|
-
this.acceleration = (0, MathUtils_js_1.setRangeValue)(data.acceleration);
|
|
32
|
-
}
|
|
33
|
-
if (data.enable !== undefined) {
|
|
34
|
-
this.enable = data.enable;
|
|
35
|
-
}
|
|
36
|
-
if (data.inverse !== undefined) {
|
|
37
|
-
this.inverse = data.inverse;
|
|
38
|
-
}
|
|
39
|
-
if (data.maxSpeed !== undefined) {
|
|
40
|
-
this.maxSpeed = (0, MathUtils_js_1.setRangeValue)(data.maxSpeed);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
exports.MoveGravity = MoveGravity;
|
|
45
|
-
});
|
|
@@ -1,38 +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/OutMode.js", "../../../../Utils/TypeUtils.js"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.OutModes = void 0;
|
|
13
|
-
const OutMode_js_1 = require("../../../../Enums/Modes/OutMode.js");
|
|
14
|
-
const TypeUtils_js_1 = require("../../../../Utils/TypeUtils.js");
|
|
15
|
-
class OutModes {
|
|
16
|
-
bottom;
|
|
17
|
-
default;
|
|
18
|
-
left;
|
|
19
|
-
right;
|
|
20
|
-
top;
|
|
21
|
-
constructor() {
|
|
22
|
-
this.default = OutMode_js_1.OutMode.out;
|
|
23
|
-
}
|
|
24
|
-
load(data) {
|
|
25
|
-
if ((0, TypeUtils_js_1.isNull)(data)) {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
if (data.default !== undefined) {
|
|
29
|
-
this.default = data.default;
|
|
30
|
-
}
|
|
31
|
-
this.bottom = data.bottom ?? data.default;
|
|
32
|
-
this.left = data.left ?? data.default;
|
|
33
|
-
this.right = data.right ?? data.default;
|
|
34
|
-
this.top = data.top ?? data.default;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.OutModes = OutModes;
|
|
38
|
-
});
|