@tsparticles/engine 3.2.0 → 3.2.2
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/373.min.js +1 -1
- package/373.min.js.LICENSE.txt +1 -1
- package/438.min.js +1 -1
- package/438.min.js.LICENSE.txt +1 -1
- package/browser/Core/Container.js +1 -1
- package/browser/Core/Engine.js +1 -1
- package/browser/Core/Particle.js +1 -2
- package/browser/Core/Particles.js +1 -1
- package/browser/Core/Utils/EventListeners.js +4 -3
- package/browser/Core/Utils/QuadTree.js +4 -5
- package/browser/Core/Utils/Ranges.js +55 -0
- package/browser/Core/Utils/{Vector3d.js → Vectors.js} +15 -1
- package/browser/Options/Classes/AnimatableColor.js +1 -1
- package/browser/Options/Classes/BackgroundMask/BackgroundMask.js +1 -1
- package/browser/Options/Classes/Options.js +2 -1
- package/browser/Options/Classes/OptionsColor.js +1 -1
- package/browser/Options/Classes/Particles/Move/Move.js +1 -1
- package/browser/Types/RangeType.js +1 -0
- package/browser/Utils/ColorUtils.js +2 -1
- package/browser/Utils/NumberUtils.js +2 -2
- package/browser/Utils/TypeUtils.js +18 -0
- package/browser/Utils/Utils.js +2 -19
- package/browser/exports.js +3 -5
- package/cjs/Core/Container.js +1 -1
- package/cjs/Core/Engine.js +1 -1
- package/cjs/Core/Particle.js +4 -5
- package/cjs/Core/Particles.js +2 -2
- package/cjs/Core/Utils/EventListeners.js +4 -3
- package/cjs/Core/Utils/QuadTree.js +7 -8
- package/cjs/Core/Utils/Ranges.js +61 -0
- package/cjs/Core/Utils/{Vector3d.js → Vectors.js} +18 -3
- package/cjs/Options/Classes/AnimatableColor.js +2 -2
- package/cjs/Options/Classes/BackgroundMask/BackgroundMask.js +2 -2
- package/cjs/Options/Classes/Options.js +2 -1
- package/cjs/Options/Classes/OptionsColor.js +2 -2
- package/cjs/Options/Classes/Particles/Move/Move.js +4 -4
- package/cjs/Types/RangeType.js +2 -0
- package/cjs/Utils/ColorUtils.js +9 -8
- package/cjs/Utils/NumberUtils.js +9 -9
- package/cjs/Utils/TypeUtils.js +27 -0
- package/cjs/Utils/Utils.js +13 -36
- package/cjs/exports.js +3 -5
- package/dist_browser_Core_Container_js.js +5 -5
- package/dist_browser_Core_Particle_js.js +2 -2
- package/esm/Core/Container.js +1 -1
- package/esm/Core/Engine.js +1 -1
- package/esm/Core/Particle.js +1 -2
- package/esm/Core/Particles.js +1 -1
- package/esm/Core/Utils/EventListeners.js +4 -3
- package/esm/Core/Utils/QuadTree.js +4 -5
- package/esm/Core/Utils/Ranges.js +55 -0
- package/esm/Core/Utils/{Vector3d.js → Vectors.js} +15 -1
- package/esm/Options/Classes/AnimatableColor.js +1 -1
- package/esm/Options/Classes/BackgroundMask/BackgroundMask.js +1 -1
- package/esm/Options/Classes/Options.js +2 -1
- package/esm/Options/Classes/OptionsColor.js +1 -1
- package/esm/Options/Classes/Particles/Move/Move.js +1 -1
- package/esm/Types/RangeType.js +1 -0
- package/esm/Utils/ColorUtils.js +2 -1
- package/esm/Utils/NumberUtils.js +2 -2
- package/esm/Utils/TypeUtils.js +18 -0
- package/esm/Utils/Utils.js +2 -19
- package/esm/exports.js +3 -5
- package/package.json +1 -1
- package/report.html +1 -1
- package/tsparticles.engine.js +30 -50
- package/tsparticles.engine.min.js +1 -1
- package/tsparticles.engine.min.js.LICENSE.txt +1 -1
- package/types/Core/Interfaces/ICircleBouncer.d.ts +1 -1
- package/types/Core/Interfaces/IMovePathGenerator.d.ts +1 -1
- package/types/Core/Particle.d.ts +1 -2
- package/types/Core/Utils/QuadTree.d.ts +2 -3
- package/types/Core/Utils/Ranges.d.ts +21 -0
- package/types/Core/Utils/{Vector3d.d.ts → Vectors.d.ts} +6 -0
- package/types/Types/RangeType.d.ts +4 -0
- package/types/Utils/NumberUtils.d.ts +1 -1
- package/types/Utils/TypeUtils.d.ts +6 -0
- package/types/Utils/Utils.d.ts +0 -6
- package/types/exports.d.ts +3 -5
- package/umd/Core/Container.js +1 -1
- package/umd/Core/Engine.js +1 -1
- package/umd/Core/Particle.js +5 -6
- package/umd/Core/Particles.js +3 -3
- package/umd/Core/Utils/EventListeners.js +5 -4
- package/umd/Core/Utils/QuadTree.js +8 -9
- package/umd/Core/Utils/Ranges.js +71 -0
- package/umd/Core/Utils/{Vector3d.js → Vectors.js} +19 -4
- package/umd/Options/Classes/AnimatableColor.js +3 -3
- package/umd/Options/Classes/BackgroundMask/BackgroundMask.js +3 -3
- package/umd/Options/Classes/Options.js +3 -2
- package/umd/Options/Classes/OptionsColor.js +3 -3
- package/umd/Options/Classes/Particles/Move/Move.js +5 -5
- package/umd/{Core/Utils/Range.js → Types/RangeType.js} +0 -10
- package/umd/Utils/ColorUtils.js +10 -9
- package/umd/Utils/NumberUtils.js +10 -10
- package/umd/Utils/TypeUtils.js +37 -0
- package/umd/Utils/Utils.js +14 -37
- package/umd/exports.js +4 -6
- package/browser/Core/Utils/Circle.js +0 -28
- package/browser/Core/Utils/Range.js +0 -8
- package/browser/Core/Utils/Rectangle.js +0 -22
- package/browser/Core/Utils/Vector.js +0 -20
- package/cjs/Core/Utils/Circle.js +0 -32
- package/cjs/Core/Utils/Range.js +0 -12
- package/cjs/Core/Utils/Rectangle.js +0 -26
- package/cjs/Core/Utils/Vector.js +0 -24
- package/esm/Core/Utils/Circle.js +0 -28
- package/esm/Core/Utils/Range.js +0 -8
- package/esm/Core/Utils/Rectangle.js +0 -22
- package/esm/Core/Utils/Vector.js +0 -20
- package/types/Core/Utils/Circle.d.ts +0 -8
- package/types/Core/Utils/Range.d.ts +0 -7
- package/types/Core/Utils/Rectangle.d.ts +0 -9
- package/types/Core/Utils/Vector.d.ts +0 -8
- package/umd/Core/Utils/Circle.js +0 -42
- package/umd/Core/Utils/Rectangle.js +0 -36
- package/umd/Core/Utils/Vector.js +0 -34
|
@@ -0,0 +1,71 @@
|
|
|
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/NumberUtils.js"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Rectangle = exports.Circle = exports.BaseRange = void 0;
|
|
13
|
+
const NumberUtils_js_1 = require("../../Utils/NumberUtils.js");
|
|
14
|
+
const squareExp = 2;
|
|
15
|
+
class BaseRange {
|
|
16
|
+
constructor(x, y, type) {
|
|
17
|
+
this.position = {
|
|
18
|
+
x: x,
|
|
19
|
+
y: y,
|
|
20
|
+
};
|
|
21
|
+
this.type = type;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.BaseRange = BaseRange;
|
|
25
|
+
class Circle extends BaseRange {
|
|
26
|
+
constructor(x, y, radius) {
|
|
27
|
+
super(x, y, "circle");
|
|
28
|
+
this.radius = radius;
|
|
29
|
+
}
|
|
30
|
+
contains(point) {
|
|
31
|
+
return (0, NumberUtils_js_1.getDistance)(point, this.position) <= this.radius;
|
|
32
|
+
}
|
|
33
|
+
intersects(range) {
|
|
34
|
+
const pos1 = this.position, pos2 = range.position, distPos = { x: Math.abs(pos2.x - pos1.x), y: Math.abs(pos2.y - pos1.y) }, r = this.radius;
|
|
35
|
+
if (range instanceof Circle || range.type === "circle") {
|
|
36
|
+
const circleRange = range, rSum = r + circleRange.radius, dist = Math.sqrt(distPos.x ** squareExp + distPos.y ** squareExp);
|
|
37
|
+
return rSum > dist;
|
|
38
|
+
}
|
|
39
|
+
else if (range instanceof Rectangle || range.type === "rectangle") {
|
|
40
|
+
const rectRange = range, { width, height } = rectRange.size, edges = Math.pow(distPos.x - width, squareExp) + Math.pow(distPos.y - height, squareExp);
|
|
41
|
+
return (edges <= r ** squareExp ||
|
|
42
|
+
(distPos.x <= r + width && distPos.y <= r + height) ||
|
|
43
|
+
distPos.x <= width ||
|
|
44
|
+
distPos.y <= height);
|
|
45
|
+
}
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.Circle = Circle;
|
|
50
|
+
class Rectangle extends BaseRange {
|
|
51
|
+
constructor(x, y, width, height) {
|
|
52
|
+
super(x, y, "rectangle");
|
|
53
|
+
this.size = {
|
|
54
|
+
height: height,
|
|
55
|
+
width: width,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
contains(point) {
|
|
59
|
+
const w = this.size.width, h = this.size.height, pos = this.position;
|
|
60
|
+
return point.x >= pos.x && point.x <= pos.x + w && point.y >= pos.y && point.y <= pos.y + h;
|
|
61
|
+
}
|
|
62
|
+
intersects(range) {
|
|
63
|
+
if (range instanceof Circle) {
|
|
64
|
+
return range.intersects(this);
|
|
65
|
+
}
|
|
66
|
+
const w = this.size.width, h = this.size.height, pos1 = this.position, pos2 = range.position, size2 = range instanceof Rectangle ? range.size : { width: 0, height: 0 }, w2 = size2.width, h2 = size2.height;
|
|
67
|
+
return pos2.x < pos1.x + w && pos2.x + w2 > pos1.x && pos2.y < pos1.y + h && pos2.y + h2 > pos1.y;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.Rectangle = Rectangle;
|
|
71
|
+
});
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "./Constants.js", "../../Utils/
|
|
7
|
+
define(["require", "exports", "./Constants.js", "../../Utils/TypeUtils.js"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.Vector3d = void 0;
|
|
12
|
+
exports.Vector = exports.Vector3d = void 0;
|
|
13
13
|
const Constants_js_1 = require("./Constants.js");
|
|
14
|
-
const
|
|
14
|
+
const TypeUtils_js_1 = require("../../Utils/TypeUtils.js");
|
|
15
15
|
const origin = {
|
|
16
16
|
x: 0,
|
|
17
17
|
y: 0,
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
this.x = Math.cos(angle) * length;
|
|
24
24
|
this.y = Math.sin(angle) * length;
|
|
25
25
|
};
|
|
26
|
-
if (!(0,
|
|
26
|
+
if (!(0, TypeUtils_js_1.isNumber)(xOrCoords) && xOrCoords) {
|
|
27
27
|
this.x = xOrCoords.x;
|
|
28
28
|
this.y = xOrCoords.y;
|
|
29
29
|
const coords3d = xOrCoords;
|
|
@@ -120,4 +120,19 @@
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
exports.Vector3d = Vector3d;
|
|
123
|
+
class Vector extends Vector3d {
|
|
124
|
+
constructor(xOrCoords, y) {
|
|
125
|
+
super(xOrCoords, y, origin.z);
|
|
126
|
+
}
|
|
127
|
+
static get origin() {
|
|
128
|
+
return Vector.create(origin.x, origin.y);
|
|
129
|
+
}
|
|
130
|
+
static clone(source) {
|
|
131
|
+
return Vector.create(source.x, source.y);
|
|
132
|
+
}
|
|
133
|
+
static create(x, y) {
|
|
134
|
+
return new Vector(x, y);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
exports.Vector = Vector;
|
|
123
138
|
});
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "../../Utils/
|
|
7
|
+
define(["require", "exports", "../../Utils/TypeUtils.js", "./HslAnimation.js", "./OptionsColor.js"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AnimatableColor = void 0;
|
|
13
|
-
const
|
|
13
|
+
const TypeUtils_js_1 = require("../../Utils/TypeUtils.js");
|
|
14
14
|
const HslAnimation_js_1 = require("./HslAnimation.js");
|
|
15
15
|
const OptionsColor_js_1 = require("./OptionsColor.js");
|
|
16
16
|
class AnimatableColor extends OptionsColor_js_1.OptionsColor {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
const color = new AnimatableColor();
|
|
23
23
|
color.load(source);
|
|
24
24
|
if (data !== undefined) {
|
|
25
|
-
if ((0,
|
|
25
|
+
if ((0, TypeUtils_js_1.isString)(data) || (0, TypeUtils_js_1.isArray)(data)) {
|
|
26
26
|
color.load({ value: data });
|
|
27
27
|
}
|
|
28
28
|
else {
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "./BackgroundMaskCover.js", "../../../Utils/
|
|
7
|
+
define(["require", "exports", "./BackgroundMaskCover.js", "../../../Utils/TypeUtils.js"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.BackgroundMask = void 0;
|
|
13
13
|
const BackgroundMaskCover_js_1 = require("./BackgroundMaskCover.js");
|
|
14
|
-
const
|
|
14
|
+
const TypeUtils_js_1 = require("../../../Utils/TypeUtils.js");
|
|
15
15
|
class BackgroundMask {
|
|
16
16
|
constructor() {
|
|
17
17
|
this.composite = "destination-out";
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
this.composite = data.composite;
|
|
27
27
|
}
|
|
28
28
|
if (data.cover !== undefined) {
|
|
29
|
-
const cover = data.cover, color = ((0,
|
|
29
|
+
const cover = data.cover, color = ((0, TypeUtils_js_1.isString)(data.cover) ? { color: data.cover } : data.cover);
|
|
30
30
|
this.cover.load(cover.color !== undefined || cover.image !== undefined ? cover : { color: color });
|
|
31
31
|
}
|
|
32
32
|
if (data.enable !== undefined) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "../../Utils/Utils.js", "./Background/Background.js", "./BackgroundMask/BackgroundMask.js", "./FullScreen/FullScreen.js", "./Interactivity/Interactivity.js", "./ManualParticle.js", "./Responsive.js", "./Theme/Theme.js", "../../Utils/OptionsUtils.js", "../../Utils/NumberUtils.js"], factory);
|
|
7
|
+
define(["require", "exports", "../../Utils/Utils.js", "./Background/Background.js", "./BackgroundMask/BackgroundMask.js", "./FullScreen/FullScreen.js", "./Interactivity/Interactivity.js", "./ManualParticle.js", "./Responsive.js", "./Theme/Theme.js", "../../Utils/TypeUtils.js", "../../Utils/OptionsUtils.js", "../../Utils/NumberUtils.js"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
const ManualParticle_js_1 = require("./ManualParticle.js");
|
|
19
19
|
const Responsive_js_1 = require("./Responsive.js");
|
|
20
20
|
const Theme_js_1 = require("./Theme/Theme.js");
|
|
21
|
+
const TypeUtils_js_1 = require("../../Utils/TypeUtils.js");
|
|
21
22
|
const OptionsUtils_js_1 = require("../../Utils/OptionsUtils.js");
|
|
22
23
|
const NumberUtils_js_1 = require("../../Utils/NumberUtils.js");
|
|
23
24
|
class Options {
|
|
@@ -96,7 +97,7 @@
|
|
|
96
97
|
}
|
|
97
98
|
this.background.load(data.background);
|
|
98
99
|
const fullScreen = data.fullScreen;
|
|
99
|
-
if ((0,
|
|
100
|
+
if ((0, TypeUtils_js_1.isBoolean)(fullScreen)) {
|
|
100
101
|
this.fullScreen.enable = fullScreen;
|
|
101
102
|
}
|
|
102
103
|
else {
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "../../Utils/
|
|
7
|
+
define(["require", "exports", "../../Utils/TypeUtils.js"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.OptionsColor = void 0;
|
|
13
|
-
const
|
|
13
|
+
const TypeUtils_js_1 = require("../../Utils/TypeUtils.js");
|
|
14
14
|
class OptionsColor {
|
|
15
15
|
constructor() {
|
|
16
16
|
this.value = "";
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
const color = new OptionsColor();
|
|
20
20
|
color.load(source);
|
|
21
21
|
if (data !== undefined) {
|
|
22
|
-
if ((0,
|
|
22
|
+
if ((0, TypeUtils_js_1.isString)(data) || (0, TypeUtils_js_1.isArray)(data)) {
|
|
23
23
|
color.load({ value: data });
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "../../../../Utils/
|
|
7
|
+
define(["require", "exports", "../../../../Utils/TypeUtils.js", "./MoveAngle.js", "./MoveAttract.js", "./MoveCenter.js", "./MoveGravity.js", "./Path/MovePath.js", "./MoveTrail.js", "./OutModes.js", "./Spin.js", "../../../../Utils/NumberUtils.js"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Move = void 0;
|
|
13
|
-
const
|
|
13
|
+
const TypeUtils_js_1 = require("../../../../Utils/TypeUtils.js");
|
|
14
14
|
const MoveAngle_js_1 = require("./MoveAngle.js");
|
|
15
15
|
const MoveAttract_js_1 = require("./MoveAttract.js");
|
|
16
16
|
const MoveCenter_js_1 = require("./MoveCenter.js");
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
if (!data) {
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
|
-
this.angle.load((0,
|
|
49
|
+
this.angle.load((0, TypeUtils_js_1.isNumber)(data.angle) ? { value: data.angle } : data.angle);
|
|
50
50
|
this.attract.load(data.attract);
|
|
51
51
|
this.center.load(data.center);
|
|
52
52
|
if (data.decay !== undefined) {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
this.direction = data.direction;
|
|
57
57
|
}
|
|
58
58
|
if (data.distance !== undefined) {
|
|
59
|
-
this.distance = (0,
|
|
59
|
+
this.distance = (0, TypeUtils_js_1.isNumber)(data.distance)
|
|
60
60
|
? {
|
|
61
61
|
horizontal: data.distance,
|
|
62
62
|
vertical: data.distance,
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
this.gravity.load(data.gravity);
|
|
73
73
|
const outModes = data.outModes;
|
|
74
74
|
if (outModes !== undefined) {
|
|
75
|
-
if ((0,
|
|
75
|
+
if ((0, TypeUtils_js_1.isObject)(outModes)) {
|
|
76
76
|
this.outModes.load(outModes);
|
|
77
77
|
}
|
|
78
78
|
else {
|
|
@@ -9,14 +9,4 @@
|
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.Range = void 0;
|
|
13
|
-
class Range {
|
|
14
|
-
constructor(x, y) {
|
|
15
|
-
this.position = {
|
|
16
|
-
x: x,
|
|
17
|
-
y: y,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.Range = Range;
|
|
22
12
|
});
|
package/umd/Utils/ColorUtils.js
CHANGED
|
@@ -4,15 +4,16 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "./NumberUtils.js", "./
|
|
7
|
+
define(["require", "exports", "./NumberUtils.js", "./TypeUtils.js", "../Core/Utils/Constants.js", "./Utils.js"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.updateColor = exports.updateColorValue = exports.getHslAnimationFromHsl = exports.getHslFromAnimation = exports.getLinkRandomColor = exports.getLinkColor = exports.colorMix = exports.getStyleFromHsl = exports.getStyleFromRgb = exports.getRandomRgbColor = exports.hslaToRgba = exports.hslToRgb = exports.stringToRgb = exports.stringToAlpha = exports.rgbToHsl = exports.rangeColorToHsl = exports.colorToHsl = exports.colorToRgb = exports.rangeColorToRgb = exports.addColorManager = void 0;
|
|
13
13
|
const NumberUtils_js_1 = require("./NumberUtils.js");
|
|
14
|
-
const
|
|
14
|
+
const TypeUtils_js_1 = require("./TypeUtils.js");
|
|
15
15
|
const Constants_js_1 = require("../Core/Utils/Constants.js");
|
|
16
|
+
const Utils_js_1 = require("./Utils.js");
|
|
16
17
|
const randomColorValue = "random", midColorValue = "mid", colorManagers = new Map();
|
|
17
18
|
function addColorManager(manager) {
|
|
18
19
|
colorManagers.set(manager.key, manager);
|
|
@@ -42,11 +43,11 @@
|
|
|
42
43
|
if (!input) {
|
|
43
44
|
return;
|
|
44
45
|
}
|
|
45
|
-
const color = (0,
|
|
46
|
-
if ((0,
|
|
46
|
+
const color = (0, TypeUtils_js_1.isString)(input) ? { value: input } : input;
|
|
47
|
+
if ((0, TypeUtils_js_1.isString)(color.value)) {
|
|
47
48
|
return colorToRgb(color.value, index, useIndex);
|
|
48
49
|
}
|
|
49
|
-
if ((0,
|
|
50
|
+
if ((0, TypeUtils_js_1.isArray)(color.value)) {
|
|
50
51
|
return rangeColorToRgb({
|
|
51
52
|
value: (0, Utils_js_1.itemFromArray)(color.value, index, useIndex),
|
|
52
53
|
});
|
|
@@ -63,11 +64,11 @@
|
|
|
63
64
|
if (!input) {
|
|
64
65
|
return;
|
|
65
66
|
}
|
|
66
|
-
const color = (0,
|
|
67
|
-
if ((0,
|
|
67
|
+
const color = (0, TypeUtils_js_1.isString)(input) ? { value: input } : input;
|
|
68
|
+
if ((0, TypeUtils_js_1.isString)(color.value)) {
|
|
68
69
|
return color.value === randomColorValue ? getRandomRgbColor() : stringToRgb(color.value);
|
|
69
70
|
}
|
|
70
|
-
if ((0,
|
|
71
|
+
if ((0, TypeUtils_js_1.isArray)(color.value)) {
|
|
71
72
|
return colorToRgb({
|
|
72
73
|
value: (0, Utils_js_1.itemFromArray)(color.value, index, useIndex),
|
|
73
74
|
});
|
|
@@ -220,7 +221,7 @@
|
|
|
220
221
|
}
|
|
221
222
|
exports.getLinkColor = getLinkColor;
|
|
222
223
|
function getLinkRandomColor(optColor, blink, consent) {
|
|
223
|
-
const color = (0,
|
|
224
|
+
const color = (0, TypeUtils_js_1.isString)(optColor) ? optColor : optColor.value;
|
|
224
225
|
if (color === randomColorValue) {
|
|
225
226
|
if (consent) {
|
|
226
227
|
return rangeColorToRgb({
|
package/umd/Utils/NumberUtils.js
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "../Core/Utils/
|
|
7
|
+
define(["require", "exports", "../Core/Utils/Vectors.js", "./TypeUtils.js", "../Core/Utils/Constants.js"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.parseAlpha = exports.calcExactPositionOrRandomFromSizeRanged = exports.calcExactPositionOrRandomFromSize = exports.calcPositionOrRandomFromSizeRanged = exports.calcPositionOrRandomFromSize = exports.calcPositionFromSize = exports.collisionVelocity = exports.getParticleBaseVelocity = exports.getParticleDirectionAngle = exports.degToRad = exports.getDistance = exports.getDistances = exports.setRangeValue = exports.getRangeMax = exports.getRangeMin = exports.getRangeValue = exports.randomInRange = exports.mix = exports.clamp = exports.getRandom = exports.setRandom = exports.getEasing = exports.addEasing = void 0;
|
|
13
|
-
const
|
|
14
|
-
const
|
|
13
|
+
const Vectors_js_1 = require("../Core/Utils/Vectors.js");
|
|
14
|
+
const TypeUtils_js_1 = require("./TypeUtils.js");
|
|
15
15
|
const Constants_js_1 = require("../Core/Utils/Constants.js");
|
|
16
16
|
let _random = Math.random;
|
|
17
17
|
const easings = new Map(), double = 2, doublePI = Math.PI * double;
|
|
@@ -53,19 +53,19 @@
|
|
|
53
53
|
}
|
|
54
54
|
exports.randomInRange = randomInRange;
|
|
55
55
|
function getRangeValue(value) {
|
|
56
|
-
return (0,
|
|
56
|
+
return (0, TypeUtils_js_1.isNumber)(value) ? value : randomInRange(value);
|
|
57
57
|
}
|
|
58
58
|
exports.getRangeValue = getRangeValue;
|
|
59
59
|
function getRangeMin(value) {
|
|
60
|
-
return (0,
|
|
60
|
+
return (0, TypeUtils_js_1.isNumber)(value) ? value : value.min;
|
|
61
61
|
}
|
|
62
62
|
exports.getRangeMin = getRangeMin;
|
|
63
63
|
function getRangeMax(value) {
|
|
64
|
-
return (0,
|
|
64
|
+
return (0, TypeUtils_js_1.isNumber)(value) ? value : value.max;
|
|
65
65
|
}
|
|
66
66
|
exports.getRangeMax = getRangeMax;
|
|
67
67
|
function setRangeValue(source, value) {
|
|
68
|
-
if (source === value || (value === undefined && (0,
|
|
68
|
+
if (source === value || (value === undefined && (0, TypeUtils_js_1.isNumber)(source))) {
|
|
69
69
|
return source;
|
|
70
70
|
}
|
|
71
71
|
const min = getRangeMin(source), max = getRangeMax(source);
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
}
|
|
93
93
|
exports.degToRad = degToRad;
|
|
94
94
|
function getParticleDirectionAngle(direction, position, center) {
|
|
95
|
-
if ((0,
|
|
95
|
+
if ((0, TypeUtils_js_1.isNumber)(direction)) {
|
|
96
96
|
return degToRad(direction);
|
|
97
97
|
}
|
|
98
98
|
const empty = 0, half = 0.5, quarter = 0.25, threeQuarter = half + quarter;
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
exports.getParticleDirectionAngle = getParticleDirectionAngle;
|
|
125
125
|
function getParticleBaseVelocity(direction) {
|
|
126
|
-
const baseVelocity =
|
|
126
|
+
const baseVelocity = Vectors_js_1.Vector.origin;
|
|
127
127
|
baseVelocity.length = 1;
|
|
128
128
|
baseVelocity.angle = direction;
|
|
129
129
|
return baseVelocity;
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
exports.getParticleBaseVelocity = getParticleBaseVelocity;
|
|
132
132
|
function collisionVelocity(v1, v2, m1, m2) {
|
|
133
133
|
const double = 2;
|
|
134
|
-
return
|
|
134
|
+
return Vectors_js_1.Vector.create((v1.x * (m1 - m2)) / (m1 + m2) + (v2.x * double * m2) / (m1 + m2), v1.y);
|
|
135
135
|
}
|
|
136
136
|
exports.collisionVelocity = collisionVelocity;
|
|
137
137
|
function calcPositionFromSize(data) {
|
|
@@ -0,0 +1,37 @@
|
|
|
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.isArray = exports.isObject = exports.isFunction = exports.isNumber = exports.isString = exports.isBoolean = void 0;
|
|
13
|
+
function isBoolean(arg) {
|
|
14
|
+
return typeof arg === "boolean";
|
|
15
|
+
}
|
|
16
|
+
exports.isBoolean = isBoolean;
|
|
17
|
+
function isString(arg) {
|
|
18
|
+
return typeof arg === "string";
|
|
19
|
+
}
|
|
20
|
+
exports.isString = isString;
|
|
21
|
+
function isNumber(arg) {
|
|
22
|
+
return typeof arg === "number";
|
|
23
|
+
}
|
|
24
|
+
exports.isNumber = isNumber;
|
|
25
|
+
function isFunction(arg) {
|
|
26
|
+
return typeof arg === "function";
|
|
27
|
+
}
|
|
28
|
+
exports.isFunction = isFunction;
|
|
29
|
+
function isObject(arg) {
|
|
30
|
+
return typeof arg === "object" && arg !== null;
|
|
31
|
+
}
|
|
32
|
+
exports.isObject = isObject;
|
|
33
|
+
function isArray(arg) {
|
|
34
|
+
return Array.isArray(arg);
|
|
35
|
+
}
|
|
36
|
+
exports.isArray = isArray;
|
|
37
|
+
});
|
package/umd/Utils/Utils.js
CHANGED
|
@@ -4,15 +4,16 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "./NumberUtils.js", "../Core/Utils/Constants.js", "../Core/Utils/
|
|
7
|
+
define(["require", "exports", "./NumberUtils.js", "../Core/Utils/Constants.js", "./TypeUtils.js", "../Core/Utils/Vectors.js"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.updateAnimation = exports.
|
|
12
|
+
exports.updateAnimation = exports.getSize = exports.getPosition = exports.initParticleNumericAnimationValue = exports.findItemFromSingleOrMultiple = exports.itemFromSingleOrMultiple = exports.executeOnSingleOrMultiple = exports.rectBounce = exports.circleBounce = exports.circleBounceDataFromParticle = exports.divMode = exports.singleDivModeExecute = exports.divModeExecute = exports.isDivModeEnabled = exports.deepExtend = exports.calculateBounds = exports.areBoundsInside = exports.isPointInside = exports.itemFromArray = exports.arrayRandomIndex = exports.loadFont = exports.isInArray = exports.safeMutationObserver = exports.safeIntersectionObserver = exports.safeMatchMedia = exports.hasMatchMedia = exports.isSsr = exports.getLogger = exports.setLogger = void 0;
|
|
13
13
|
const NumberUtils_js_1 = require("./NumberUtils.js");
|
|
14
14
|
const Constants_js_1 = require("../Core/Utils/Constants.js");
|
|
15
|
-
const
|
|
15
|
+
const TypeUtils_js_1 = require("./TypeUtils.js");
|
|
16
|
+
const Vectors_js_1 = require("../Core/Utils/Vectors.js");
|
|
16
17
|
const _logger = {
|
|
17
18
|
debug: console.debug,
|
|
18
19
|
error: console.error,
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
const res = executeOnSingleOrMultiple(selectors, (selector) => {
|
|
54
55
|
return element.matches(selector);
|
|
55
56
|
});
|
|
56
|
-
return isArray(res) ? res.some((t) => t) : res;
|
|
57
|
+
return (0, TypeUtils_js_1.isArray)(res) ? res.some((t) => t) : res;
|
|
57
58
|
}
|
|
58
59
|
function isSsr() {
|
|
59
60
|
return typeof window === "undefined" || !window || typeof window.document === "undefined" || !window.document;
|
|
@@ -86,7 +87,7 @@
|
|
|
86
87
|
exports.safeMutationObserver = safeMutationObserver;
|
|
87
88
|
function isInArray(value, array) {
|
|
88
89
|
const invalidIndex = -1;
|
|
89
|
-
return value === array || (isArray(array) && array.indexOf(value) > invalidIndex);
|
|
90
|
+
return value === array || ((0, TypeUtils_js_1.isArray)(array) && array.indexOf(value) > invalidIndex);
|
|
90
91
|
}
|
|
91
92
|
exports.isInArray = isInArray;
|
|
92
93
|
async function loadFont(font, weight) {
|
|
@@ -141,15 +142,15 @@
|
|
|
141
142
|
if (source === undefined || source === null) {
|
|
142
143
|
continue;
|
|
143
144
|
}
|
|
144
|
-
if (!isObject(source)) {
|
|
145
|
+
if (!(0, TypeUtils_js_1.isObject)(source)) {
|
|
145
146
|
destination = source;
|
|
146
147
|
continue;
|
|
147
148
|
}
|
|
148
149
|
const sourceIsArray = Array.isArray(source);
|
|
149
|
-
if (sourceIsArray && (isObject(destination) || !destination || !Array.isArray(destination))) {
|
|
150
|
+
if (sourceIsArray && ((0, TypeUtils_js_1.isObject)(destination) || !destination || !Array.isArray(destination))) {
|
|
150
151
|
destination = [];
|
|
151
152
|
}
|
|
152
|
-
else if (!sourceIsArray && (isObject(destination) || !destination || Array.isArray(destination))) {
|
|
153
|
+
else if (!sourceIsArray && ((0, TypeUtils_js_1.isObject)(destination) || !destination || Array.isArray(destination))) {
|
|
153
154
|
destination = {};
|
|
154
155
|
}
|
|
155
156
|
for (const key in source) {
|
|
@@ -158,7 +159,7 @@
|
|
|
158
159
|
}
|
|
159
160
|
const sourceDict = source, value = sourceDict[key], destDict = destination;
|
|
160
161
|
destDict[key] =
|
|
161
|
-
isObject(value) && Array.isArray(value)
|
|
162
|
+
(0, TypeUtils_js_1.isObject)(value) && Array.isArray(value)
|
|
162
163
|
? value.map((v) => deepExtend(destDict[key], v))
|
|
163
164
|
: deepExtend(destDict[key], value);
|
|
164
165
|
}
|
|
@@ -201,7 +202,7 @@
|
|
|
201
202
|
radius: p.getRadius(),
|
|
202
203
|
mass: p.getMass(),
|
|
203
204
|
velocity: p.velocity,
|
|
204
|
-
factor:
|
|
205
|
+
factor: Vectors_js_1.Vector.create((0, NumberUtils_js_1.getRangeValue)(p.options.bounce.horizontal.value), (0, NumberUtils_js_1.getRangeValue)(p.options.bounce.vertical.value)),
|
|
205
206
|
};
|
|
206
207
|
}
|
|
207
208
|
exports.circleBounceDataFromParticle = circleBounceDataFromParticle;
|
|
@@ -278,15 +279,15 @@
|
|
|
278
279
|
exports.rectBounce = rectBounce;
|
|
279
280
|
function executeOnSingleOrMultiple(obj, callback) {
|
|
280
281
|
const defaultIndex = 0;
|
|
281
|
-
return isArray(obj) ? obj.map((item, index) => callback(item, index)) : callback(obj, defaultIndex);
|
|
282
|
+
return (0, TypeUtils_js_1.isArray)(obj) ? obj.map((item, index) => callback(item, index)) : callback(obj, defaultIndex);
|
|
282
283
|
}
|
|
283
284
|
exports.executeOnSingleOrMultiple = executeOnSingleOrMultiple;
|
|
284
285
|
function itemFromSingleOrMultiple(obj, index, useIndex) {
|
|
285
|
-
return isArray(obj) ? itemFromArray(obj, index, useIndex) : obj;
|
|
286
|
+
return (0, TypeUtils_js_1.isArray)(obj) ? itemFromArray(obj, index, useIndex) : obj;
|
|
286
287
|
}
|
|
287
288
|
exports.itemFromSingleOrMultiple = itemFromSingleOrMultiple;
|
|
288
289
|
function findItemFromSingleOrMultiple(obj, callback) {
|
|
289
|
-
if (isArray(obj)) {
|
|
290
|
+
if ((0, TypeUtils_js_1.isArray)(obj)) {
|
|
290
291
|
return obj.find((t, index) => callback(t, index));
|
|
291
292
|
}
|
|
292
293
|
const defaultIndex = 0;
|
|
@@ -372,30 +373,6 @@
|
|
|
372
373
|
return getPositionOrSize(size, canvasSize);
|
|
373
374
|
}
|
|
374
375
|
exports.getSize = getSize;
|
|
375
|
-
function isBoolean(arg) {
|
|
376
|
-
return typeof arg === "boolean";
|
|
377
|
-
}
|
|
378
|
-
exports.isBoolean = isBoolean;
|
|
379
|
-
function isString(arg) {
|
|
380
|
-
return typeof arg === "string";
|
|
381
|
-
}
|
|
382
|
-
exports.isString = isString;
|
|
383
|
-
function isNumber(arg) {
|
|
384
|
-
return typeof arg === "number";
|
|
385
|
-
}
|
|
386
|
-
exports.isNumber = isNumber;
|
|
387
|
-
function isFunction(arg) {
|
|
388
|
-
return typeof arg === "function";
|
|
389
|
-
}
|
|
390
|
-
exports.isFunction = isFunction;
|
|
391
|
-
function isObject(arg) {
|
|
392
|
-
return typeof arg === "object" && arg !== null;
|
|
393
|
-
}
|
|
394
|
-
exports.isObject = isObject;
|
|
395
|
-
function isArray(arg) {
|
|
396
|
-
return Array.isArray(arg);
|
|
397
|
-
}
|
|
398
|
-
exports.isArray = isArray;
|
|
399
376
|
function checkDestroy(particle, destroyType, value, minValue, maxValue) {
|
|
400
377
|
switch (destroyType) {
|
|
401
378
|
case "max":
|
package/umd/exports.js
CHANGED
|
@@ -18,20 +18,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
if (v !== undefined) module.exports = v;
|
|
19
19
|
}
|
|
20
20
|
else if (typeof define === "function" && define.amd) {
|
|
21
|
-
define(["require", "exports", "./Core/Utils/
|
|
21
|
+
define(["require", "exports", "./Core/Utils/Constants.js", "./Core/Utils/ExternalInteractorBase.js", "./Core/Utils/ParticlesInteractorBase.js", "./Core/Utils/Point.js", "./Core/Utils/Ranges.js", "./Core/Utils/Vectors.js", "./Enums/Directions/MoveDirection.js", "./Enums/Directions/RotateDirection.js", "./Enums/Directions/OutModeDirection.js", "./Enums/Modes/AnimationMode.js", "./Enums/Modes/CollisionMode.js", "./Enums/Modes/LimitMode.js", "./Enums/Modes/OutMode.js", "./Enums/Modes/PixelMode.js", "./Enums/Modes/ThemeMode.js", "./Enums/Modes/ResponsiveMode.js", "./Enums/Types/AlterType.js", "./Enums/Types/DestroyType.js", "./Enums/Types/GradientType.js", "./Enums/Types/InteractorType.js", "./Enums/Types/ParticleOutType.js", "./Enums/Types/StartValueType.js", "./Enums/Types/DivType.js", "./Enums/Types/EasingType.js", "./Enums/Types/EventType.js", "./Enums/AnimationStatus.js", "./Enums/InteractivityDetect.js", "./Options/Classes/AnimatableColor.js", "./Options/Classes/AnimationOptions.js", "./Options/Classes/Background/Background.js", "./Options/Classes/BackgroundMask/BackgroundMask.js", "./Options/Classes/BackgroundMask/BackgroundMaskCover.js", "./Options/Classes/ColorAnimation.js", "./Options/Classes/FullScreen/FullScreen.js", "./Options/Classes/HslAnimation.js", "./Options/Classes/Interactivity/Events/ClickEvent.js", "./Options/Classes/Interactivity/Events/DivEvent.js", "./Options/Classes/Interactivity/Events/ClickEvent.js", "./Options/Classes/Interactivity/Events/DivEvent.js", "./Options/Classes/Interactivity/Events/Events.js", "./Options/Classes/Interactivity/Events/HoverEvent.js", "./Options/Classes/Interactivity/Events/Parallax.js", "./Options/Classes/Interactivity/Events/ResizeEvent.js", "./Options/Classes/Interactivity/Interactivity.js", "./Options/Classes/Interactivity/Modes/Modes.js", "./Options/Classes/ManualParticle.js", "./Options/Classes/Options.js", "./Options/Classes/OptionsColor.js", "./Options/Classes/Particles/Bounce/ParticlesBounce.js", "./Options/Classes/Particles/Bounce/ParticlesBounceFactor.js", "./Options/Classes/Particles/Collisions/Collisions.js", "./Options/Classes/Particles/Collisions/CollisionsAbsorb.js", "./Options/Classes/Particles/Collisions/CollisionsOverlap.js", "./Options/Classes/Particles/ParticlesOptions.js", "./Options/Classes/Particles/Shadow.js", "./Options/Classes/Particles/Stroke.js", "./Options/Classes/Particles/Move/MoveAttract.js", "./Options/Classes/Particles/Move/Move.js", "./Options/Classes/Particles/Move/MoveAngle.js", "./Options/Classes/Particles/Move/MoveCenter.js", "./Options/Classes/Particles/Move/MoveGravity.js", "./Options/Classes/Particles/Move/OutModes.js", "./Options/Classes/Particles/Move/Path/MovePath.js", "./Options/Classes/Particles/Move/Spin.js", "./Options/Classes/Particles/Move/MoveTrail.js", "./Options/Classes/Particles/Number/ParticlesNumber.js", "./Options/Classes/Particles/Number/ParticlesNumberLimit.js", "./Options/Classes/Particles/Number/ParticlesDensity.js", "./Options/Classes/Particles/Opacity/Opacity.js", "./Options/Classes/Particles/Opacity/OpacityAnimation.js", "./Options/Classes/Particles/Shape/Shape.js", "./Options/Classes/Particles/Size/Size.js", "./Options/Classes/Particles/Size/SizeAnimation.js", "./Options/Classes/Particles/ZIndex/ZIndex.js", "./Options/Classes/Responsive.js", "./Options/Classes/Theme/Theme.js", "./Options/Classes/Theme/ThemeDefault.js", "./Options/Classes/ValueWithRandom.js", "./Utils/CanvasUtils.js", "./Utils/ColorUtils.js", "./Utils/HslColorManager.js", "./Utils/NumberUtils.js", "./Utils/OptionsUtils.js", "./Utils/RgbColorManager.js", "./Utils/Utils.js", "./Utils/TypeUtils.js"], factory);
|
|
22
22
|
}
|
|
23
23
|
})(function (require, exports) {
|
|
24
24
|
"use strict";
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
__exportStar(require("./Core/Utils/Circle.js"), exports);
|
|
27
26
|
__exportStar(require("./Core/Utils/Constants.js"), exports);
|
|
28
27
|
__exportStar(require("./Core/Utils/ExternalInteractorBase.js"), exports);
|
|
29
28
|
__exportStar(require("./Core/Utils/ParticlesInteractorBase.js"), exports);
|
|
30
29
|
__exportStar(require("./Core/Utils/Point.js"), exports);
|
|
31
|
-
__exportStar(require("./Core/Utils/
|
|
32
|
-
__exportStar(require("./Core/Utils/
|
|
33
|
-
__exportStar(require("./Core/Utils/Vector.js"), exports);
|
|
34
|
-
__exportStar(require("./Core/Utils/Vector3d.js"), exports);
|
|
30
|
+
__exportStar(require("./Core/Utils/Ranges.js"), exports);
|
|
31
|
+
__exportStar(require("./Core/Utils/Vectors.js"), exports);
|
|
35
32
|
__exportStar(require("./Enums/Directions/MoveDirection.js"), exports);
|
|
36
33
|
__exportStar(require("./Enums/Directions/RotateDirection.js"), exports);
|
|
37
34
|
__exportStar(require("./Enums/Directions/OutModeDirection.js"), exports);
|
|
@@ -111,4 +108,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
111
108
|
__exportStar(require("./Utils/OptionsUtils.js"), exports);
|
|
112
109
|
__exportStar(require("./Utils/RgbColorManager.js"), exports);
|
|
113
110
|
__exportStar(require("./Utils/Utils.js"), exports);
|
|
111
|
+
__exportStar(require("./Utils/TypeUtils.js"), exports);
|
|
114
112
|
});
|