custom-pixi-particles 5.2.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +119 -82
- package/package.json +5 -5
- package/dist/index.d.ts +0 -11
- package/dist/index.js +0 -28
- package/dist/index.js.map +0 -1
- package/dist/lib/Model.d.ts +0 -32
- package/dist/lib/Model.js +0 -44
- package/dist/lib/Model.js.map +0 -1
- package/dist/lib/Particle.d.ts +0 -220
- package/dist/lib/Particle.js +0 -172
- package/dist/lib/Particle.js.map +0 -1
- package/dist/lib/ParticlePool.d.ts +0 -37
- package/dist/lib/ParticlePool.js +0 -56
- package/dist/lib/ParticlePool.js.map +0 -1
- package/dist/lib/behaviour/AngularVelocityBehaviour.d.ts +0 -57
- package/dist/lib/behaviour/AngularVelocityBehaviour.js +0 -87
- package/dist/lib/behaviour/AngularVelocityBehaviour.js.map +0 -1
- package/dist/lib/behaviour/Behaviour.d.ts +0 -33
- package/dist/lib/behaviour/Behaviour.js +0 -45
- package/dist/lib/behaviour/Behaviour.js.map +0 -1
- package/dist/lib/behaviour/BehaviourNames.d.ts +0 -11
- package/dist/lib/behaviour/BehaviourNames.js +0 -11
- package/dist/lib/behaviour/BehaviourNames.js.map +0 -1
- package/dist/lib/behaviour/ColorBehaviour.d.ts +0 -45
- package/dist/lib/behaviour/ColorBehaviour.js +0 -77
- package/dist/lib/behaviour/ColorBehaviour.js.map +0 -1
- package/dist/lib/behaviour/EmitDirectionBehaviour.d.ts +0 -46
- package/dist/lib/behaviour/EmitDirectionBehaviour.js +0 -64
- package/dist/lib/behaviour/EmitDirectionBehaviour.js.map +0 -1
- package/dist/lib/behaviour/EmitterBehaviours.d.ts +0 -63
- package/dist/lib/behaviour/EmitterBehaviours.js +0 -105
- package/dist/lib/behaviour/EmitterBehaviours.js.map +0 -1
- package/dist/lib/behaviour/LifeBehaviour.d.ts +0 -67
- package/dist/lib/behaviour/LifeBehaviour.js +0 -85
- package/dist/lib/behaviour/LifeBehaviour.js.map +0 -1
- package/dist/lib/behaviour/PositionBehaviour.d.ts +0 -177
- package/dist/lib/behaviour/PositionBehaviour.js +0 -534
- package/dist/lib/behaviour/PositionBehaviour.js.map +0 -1
- package/dist/lib/behaviour/RotationBehaviour.d.ts +0 -51
- package/dist/lib/behaviour/RotationBehaviour.js +0 -66
- package/dist/lib/behaviour/RotationBehaviour.js.map +0 -1
- package/dist/lib/behaviour/SizeBehaviour.d.ts +0 -31
- package/dist/lib/behaviour/SizeBehaviour.js +0 -71
- package/dist/lib/behaviour/SizeBehaviour.js.map +0 -1
- package/dist/lib/behaviour/TurbulenceBehaviour.d.ts +0 -72
- package/dist/lib/behaviour/TurbulenceBehaviour.js +0 -128
- package/dist/lib/behaviour/TurbulenceBehaviour.js.map +0 -1
- package/dist/lib/behaviour/index.d.ts +0 -12
- package/dist/lib/behaviour/index.js +0 -13
- package/dist/lib/behaviour/index.js.map +0 -1
- package/dist/lib/customPixiParticlesSettingsInterface.d.ts +0 -18
- package/dist/lib/customPixiParticlesSettingsInterface.js +0 -2
- package/dist/lib/customPixiParticlesSettingsInterface.js.map +0 -1
- package/dist/lib/emission/AbstractEmission.d.ts +0 -30
- package/dist/lib/emission/AbstractEmission.js +0 -39
- package/dist/lib/emission/AbstractEmission.js.map +0 -1
- package/dist/lib/emission/EmissionTypes.d.ts +0 -6
- package/dist/lib/emission/EmissionTypes.js +0 -6
- package/dist/lib/emission/EmissionTypes.js.map +0 -1
- package/dist/lib/emission/RandomEmission.d.ts +0 -44
- package/dist/lib/emission/RandomEmission.js +0 -66
- package/dist/lib/emission/RandomEmission.js.map +0 -1
- package/dist/lib/emission/StandardEmission.d.ts +0 -62
- package/dist/lib/emission/StandardEmission.js +0 -87
- package/dist/lib/emission/StandardEmission.js.map +0 -1
- package/dist/lib/emission/UniformEmission.d.ts +0 -56
- package/dist/lib/emission/UniformEmission.js +0 -83
- package/dist/lib/emission/UniformEmission.js.map +0 -1
- package/dist/lib/emission/index.d.ts +0 -6
- package/dist/lib/emission/index.js +0 -7
- package/dist/lib/emission/index.js.map +0 -1
- package/dist/lib/emitter/Duration.d.ts +0 -27
- package/dist/lib/emitter/Duration.js +0 -41
- package/dist/lib/emitter/Duration.js.map +0 -1
- package/dist/lib/emitter/Emitter.d.ts +0 -113
- package/dist/lib/emitter/Emitter.js +0 -201
- package/dist/lib/emitter/Emitter.js.map +0 -1
- package/dist/lib/emitter/index.d.ts +0 -3
- package/dist/lib/emitter/index.js +0 -4
- package/dist/lib/emitter/index.js.map +0 -1
- package/dist/lib/index.d.ts +0 -20
- package/dist/lib/index.js +0 -21
- package/dist/lib/index.js.map +0 -1
- package/dist/lib/parser/BehaviourParser.d.ts +0 -21
- package/dist/lib/parser/BehaviourParser.js +0 -72
- package/dist/lib/parser/BehaviourParser.js.map +0 -1
- package/dist/lib/parser/CompatibilityHelper.d.ts +0 -12
- package/dist/lib/parser/CompatibilityHelper.js +0 -19
- package/dist/lib/parser/CompatibilityHelper.js.map +0 -1
- package/dist/lib/parser/EmitControllerParser.d.ts +0 -27
- package/dist/lib/parser/EmitControllerParser.js +0 -39
- package/dist/lib/parser/EmitControllerParser.js.map +0 -1
- package/dist/lib/parser/EmitterParser.d.ts +0 -67
- package/dist/lib/parser/EmitterParser.js +0 -168
- package/dist/lib/parser/EmitterParser.js.map +0 -1
- package/dist/lib/parser/index.d.ts +0 -5
- package/dist/lib/parser/index.js +0 -6
- package/dist/lib/parser/index.js.map +0 -1
- package/dist/lib/pixi/Renderer.d.ts +0 -116
- package/dist/lib/pixi/Renderer.js +0 -508
- package/dist/lib/pixi/Renderer.js.map +0 -1
- package/dist/lib/util/Color.d.ts +0 -133
- package/dist/lib/util/Color.js +0 -173
- package/dist/lib/util/Color.js.map +0 -1
- package/dist/lib/util/List.d.ts +0 -49
- package/dist/lib/util/List.js +0 -87
- package/dist/lib/util/List.js.map +0 -1
- package/dist/lib/util/MinMax.d.ts +0 -34
- package/dist/lib/util/MinMax.js +0 -46
- package/dist/lib/util/MinMax.js.map +0 -1
- package/dist/lib/util/Point.d.ts +0 -34
- package/dist/lib/util/Point.js +0 -46
- package/dist/lib/util/Point.js.map +0 -1
- package/dist/lib/util/Random.d.ts +0 -24
- package/dist/lib/util/Random.js +0 -30
- package/dist/lib/util/Random.js.map +0 -1
- package/dist/lib/util/ThereBack.d.ts +0 -14
- package/dist/lib/util/ThereBack.js +0 -23
- package/dist/lib/util/ThereBack.js.map +0 -1
- package/dist/lib/util/index.d.ts +0 -5
- package/dist/lib/util/index.js +0 -6
- package/dist/lib/util/index.js.map +0 -1
- package/dist/lib/util/maths.d.ts +0 -10
- package/dist/lib/util/maths.js +0 -13
- package/dist/lib/util/maths.js.map +0 -1
- package/dist/lib/util/turbulencePool.d.ts +0 -4
- package/dist/lib/util/turbulencePool.js +0 -7
- package/dist/lib/util/turbulencePool.js.map +0 -1
package/dist/lib/util/Color.js
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @class Color
|
|
3
|
-
* @classdesc The Color class is used for representing colors
|
|
4
|
-
* @property {number} r - The red component of the color
|
|
5
|
-
* @property {number} g - The green component of the color
|
|
6
|
-
* @property {number} b - The blue component of the color
|
|
7
|
-
* @property {number} alpha - The alpha component of the color
|
|
8
|
-
* @property {number} hex - The hex representation of the color
|
|
9
|
-
* @constructor
|
|
10
|
-
* @param {number} [r=0] - The red component of the color
|
|
11
|
-
* @param {number} [g=0] - The green component of the color
|
|
12
|
-
* @param {number} [b=0] - The blue component of the color
|
|
13
|
-
* @param {number} [alpha=1] - The alpha component of the color
|
|
14
|
-
*/
|
|
15
|
-
export default class Color {
|
|
16
|
-
constructor(r, g, b, alpha) {
|
|
17
|
-
/**
|
|
18
|
-
* @function copyFrom
|
|
19
|
-
* @memberof Color
|
|
20
|
-
* @description Copies the values of an IColor object to the Color object
|
|
21
|
-
* @param {IColor} color - The IColor object to copy from
|
|
22
|
-
*/
|
|
23
|
-
this.copyFrom = (color) => {
|
|
24
|
-
this.r = color.r;
|
|
25
|
-
this.g = color.g;
|
|
26
|
-
this.b = color.b;
|
|
27
|
-
this.alpha = color.alpha;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* @function copyFromRawData
|
|
31
|
-
* @memberof Color
|
|
32
|
-
* @description Copies the values of a raw data object to the Color object
|
|
33
|
-
* @param {object} data - The raw data object to copy from
|
|
34
|
-
*/
|
|
35
|
-
this.copyFromRawData = (data) => {
|
|
36
|
-
this.r = data._r;
|
|
37
|
-
this.g = data._g;
|
|
38
|
-
this.b = data._b;
|
|
39
|
-
this.alpha = data._alpha;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* @function add
|
|
43
|
-
* @memberof Color
|
|
44
|
-
* @description Adds the values of a color object to the Color object
|
|
45
|
-
* @param {IColor} color - The IColor object to add
|
|
46
|
-
*/
|
|
47
|
-
this.add = (color) => {
|
|
48
|
-
this.r += color.r;
|
|
49
|
-
this.g += color.g;
|
|
50
|
-
this.b += color.b;
|
|
51
|
-
this.alpha += color.alpha;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* @function set
|
|
55
|
-
* @memberof Color
|
|
56
|
-
* @description Sets the values of the color object
|
|
57
|
-
* @param {number} r - The red component of the color
|
|
58
|
-
* @param {number} g - The green component of the color
|
|
59
|
-
* @param {number} b - The blue component of the color
|
|
60
|
-
* @param {number} alpha - The alpha component of the color
|
|
61
|
-
*/
|
|
62
|
-
this.set = (r, g, b, alpha) => {
|
|
63
|
-
this.r = r || 0;
|
|
64
|
-
this.g = g || 0;
|
|
65
|
-
this.b = b || 0;
|
|
66
|
-
this.alpha = alpha;
|
|
67
|
-
};
|
|
68
|
-
this.r = r || 0;
|
|
69
|
-
this.g = g || 0;
|
|
70
|
-
this.b = b || 0;
|
|
71
|
-
this.alpha = alpha || 1;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* @function r
|
|
75
|
-
* @memberof Color
|
|
76
|
-
* @description Gets the red component of the Color object
|
|
77
|
-
* @returns {number} The red component of the Color object
|
|
78
|
-
*/
|
|
79
|
-
get r() {
|
|
80
|
-
return this._r;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* @function r
|
|
84
|
-
* @memberof Color
|
|
85
|
-
* @description Sets the red component of the Color object
|
|
86
|
-
* @param {number} value - The red component value to set
|
|
87
|
-
*/
|
|
88
|
-
set r(value) {
|
|
89
|
-
const newValue = value === undefined ? 0 : value;
|
|
90
|
-
this._r = newValue;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* @function g
|
|
94
|
-
* @memberof Color
|
|
95
|
-
* @description Gets the green component of the Color object
|
|
96
|
-
* @returns {number} The green component of the Color object
|
|
97
|
-
*/
|
|
98
|
-
get g() {
|
|
99
|
-
return this._g;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* @function g
|
|
103
|
-
* @memberof Color
|
|
104
|
-
* @description Sets the green component of the Color object
|
|
105
|
-
* @param {number} value - The green component value to set
|
|
106
|
-
*/
|
|
107
|
-
set g(value) {
|
|
108
|
-
const newValue = value === undefined ? 0 : value;
|
|
109
|
-
this._g = newValue;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* @function b
|
|
113
|
-
* @memberof Color
|
|
114
|
-
* @description Gets the blue component of the Color object
|
|
115
|
-
* @returns {number} The blue component of the Color object
|
|
116
|
-
*/
|
|
117
|
-
get b() {
|
|
118
|
-
return this._b;
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* @function b
|
|
122
|
-
* @memberof Color
|
|
123
|
-
* @description Sets the blue component of the Color object
|
|
124
|
-
* @param {number} value - The blue component value to set
|
|
125
|
-
*/
|
|
126
|
-
set b(value) {
|
|
127
|
-
const newValue = value === undefined ? 0 : value;
|
|
128
|
-
this._b = newValue;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* @function alpha
|
|
132
|
-
* @memberof Color
|
|
133
|
-
* @description Gets the alpha value of the Color object
|
|
134
|
-
* @returns {number} The alpha value of the Color object
|
|
135
|
-
*/
|
|
136
|
-
get alpha() {
|
|
137
|
-
return this._alpha;
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* @function hex
|
|
141
|
-
* @memberof Color
|
|
142
|
-
* @description Gets the Color object's hex value
|
|
143
|
-
* @returns {number} The hex value of the Color object
|
|
144
|
-
*/
|
|
145
|
-
set alpha(value) {
|
|
146
|
-
const newValue = value === undefined ? 1 : value;
|
|
147
|
-
this._alpha = newValue;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* @function hex
|
|
151
|
-
* @memberof Color
|
|
152
|
-
* @description Gets the Color object's hex value
|
|
153
|
-
* @returns {number} The hex value of the Color object
|
|
154
|
-
*/
|
|
155
|
-
get hex() {
|
|
156
|
-
let hex = this.r << 16;
|
|
157
|
-
hex = hex | (this.g << 8);
|
|
158
|
-
hex = hex | this.b;
|
|
159
|
-
return hex;
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* @function hex
|
|
163
|
-
* @memberof Color
|
|
164
|
-
* @description Sets the Color object's value from a hex value
|
|
165
|
-
* @param {number} value - The hex value to set the Color object from
|
|
166
|
-
*/
|
|
167
|
-
set hex(value) {
|
|
168
|
-
this.r = (value & 0xff0000) >> 16;
|
|
169
|
-
this.g = (value & 0xff00) >> 8;
|
|
170
|
-
this.b = value & 0xff;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
//# sourceMappingURL=Color.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Color.js","sourceRoot":"","sources":["../../../src/lib/util/Color.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,OAAO,KAAK;IAMxB,YAAY,CAAU,EAAE,CAAU,EAAE,CAAU,EAAE,KAAc;QAoH9D;;;;;WAKG;QACH,aAAQ,GAAG,CAAC,KAAa,EAAE,EAAE;YAC3B,IAAI,C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;;;OAKG;IACH,IAAI,GAAG;QACL,IAAI,GAAG,GAAG,IAAI,CAAC,CAAC,IAAI,EAAE,CAAA;QACtB,GAAG,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAA;QACzB,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC,CAAA;QAClB,OAAO,GAAG,CAAA;IACZ,CAAC;IAED;;;;;OAKG;IACH,IAAI,GAAG,CAAC,KAAa;QACnB,IAAI,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAA;QACjC,IAAI,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;QAC9B,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI,CAAA;IACvB,CAAC;CAwDF"}
|
package/dist/lib/util/List.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* List is a class which allows items to be added, removed and iterated through.
|
|
3
|
-
*
|
|
4
|
-
* @class List
|
|
5
|
-
*/
|
|
6
|
-
export default class List {
|
|
7
|
-
/**
|
|
8
|
-
* Stores the first item of the list
|
|
9
|
-
*
|
|
10
|
-
* @member {any}
|
|
11
|
-
*/
|
|
12
|
-
first: any;
|
|
13
|
-
/**
|
|
14
|
-
* Stores the length of the list
|
|
15
|
-
*
|
|
16
|
-
* @member {number}
|
|
17
|
-
*/
|
|
18
|
-
length: number;
|
|
19
|
-
/**
|
|
20
|
-
* Returns true if the list is empty
|
|
21
|
-
*
|
|
22
|
-
* @returns {boolean}
|
|
23
|
-
*/
|
|
24
|
-
isEmpty(): boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Adds an item to the list
|
|
27
|
-
*
|
|
28
|
-
* @param {any} item
|
|
29
|
-
* @returns {any}
|
|
30
|
-
*/
|
|
31
|
-
add(item: any): any;
|
|
32
|
-
/**
|
|
33
|
-
* Iterates through the list, calling the callback for each item
|
|
34
|
-
*
|
|
35
|
-
* @param {any} callback
|
|
36
|
-
*/
|
|
37
|
-
forEach(callback: any): void;
|
|
38
|
-
/**
|
|
39
|
-
* Removes an item from the list
|
|
40
|
-
*
|
|
41
|
-
* @param {any} item
|
|
42
|
-
*/
|
|
43
|
-
remove(item: any): void;
|
|
44
|
-
/**
|
|
45
|
-
* Resets the list
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
|
-
reset(): void;
|
|
49
|
-
}
|
package/dist/lib/util/List.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* List is a class which allows items to be added, removed and iterated through.
|
|
3
|
-
*
|
|
4
|
-
* @class List
|
|
5
|
-
*/
|
|
6
|
-
export default class List {
|
|
7
|
-
constructor() {
|
|
8
|
-
/**
|
|
9
|
-
* Stores the first item of the list
|
|
10
|
-
*
|
|
11
|
-
* @member {any}
|
|
12
|
-
*/
|
|
13
|
-
this.first = null;
|
|
14
|
-
/**
|
|
15
|
-
* Stores the length of the list
|
|
16
|
-
*
|
|
17
|
-
* @member {number}
|
|
18
|
-
*/
|
|
19
|
-
this.length = 0;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Returns true if the list is empty
|
|
23
|
-
*
|
|
24
|
-
* @returns {boolean}
|
|
25
|
-
*/
|
|
26
|
-
isEmpty() {
|
|
27
|
-
return this.first === null;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Adds an item to the list
|
|
31
|
-
*
|
|
32
|
-
* @param {any} item
|
|
33
|
-
* @returns {any}
|
|
34
|
-
*/
|
|
35
|
-
add(item) {
|
|
36
|
-
item.prev = null;
|
|
37
|
-
item.next = null;
|
|
38
|
-
if (this.first) {
|
|
39
|
-
this.first.prev = item;
|
|
40
|
-
}
|
|
41
|
-
item.next = this.first;
|
|
42
|
-
this.first = item;
|
|
43
|
-
this.length++;
|
|
44
|
-
return item;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Iterates through the list, calling the callback for each item
|
|
48
|
-
*
|
|
49
|
-
* @param {any} callback
|
|
50
|
-
*/
|
|
51
|
-
forEach(callback) {
|
|
52
|
-
let current = this.first;
|
|
53
|
-
let next = null;
|
|
54
|
-
while (current) {
|
|
55
|
-
next = current.next;
|
|
56
|
-
callback(current);
|
|
57
|
-
current = next;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Removes an item from the list
|
|
62
|
-
*
|
|
63
|
-
* @param {any} item
|
|
64
|
-
*/
|
|
65
|
-
remove(item) {
|
|
66
|
-
const previous = item.prev;
|
|
67
|
-
const next = item.next;
|
|
68
|
-
if (previous)
|
|
69
|
-
previous.next = next;
|
|
70
|
-
if (next)
|
|
71
|
-
next.prev = previous;
|
|
72
|
-
if (this.first === item)
|
|
73
|
-
this.first = item.next;
|
|
74
|
-
item.prev = null;
|
|
75
|
-
item.next = null;
|
|
76
|
-
this.length--;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Resets the list
|
|
80
|
-
*
|
|
81
|
-
*/
|
|
82
|
-
reset() {
|
|
83
|
-
this.first = null;
|
|
84
|
-
this.length = 0;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
//# sourceMappingURL=List.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"List.js","sourceRoot":"","sources":["../../../src/lib/util/List.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,IAAI;IAAzB;QACE;;;;WAIG;QACH,UAAK,GAAQ,IAAI,CAAA;QAEjB;;;;WAIG;QACH,WAAM,GAAG,CAAC,CAAA;IAyEZ,CAAC;IAvEC;;;;OAIG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,KAAK,KAAK,IAAI,CAAA;IAC5B,CAAC;IAED;;;;;OAKG;IACH,GAAG,CAAC,IAAS;QACX,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB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
|
|
|
1
|
-
export default class MinMax {
|
|
2
|
-
min: number;
|
|
3
|
-
max: number;
|
|
4
|
-
constructor(min?: number, max?: number);
|
|
5
|
-
/**
|
|
6
|
-
* Sets the x and y coordinates of a Point
|
|
7
|
-
* @param {number} min - The x coordinate
|
|
8
|
-
* @param {number} max - The y coordinate
|
|
9
|
-
* @return {MinMax} - The MinMax instance
|
|
10
|
-
*/
|
|
11
|
-
set: (min: number, max: number) => this;
|
|
12
|
-
/**
|
|
13
|
-
* Copies the x and y coordinates from another Point
|
|
14
|
-
* @param {IMinMax} data - The Point instance to copy from
|
|
15
|
-
* @return {MinMax} - The MinMax instance
|
|
16
|
-
*/
|
|
17
|
-
copyFrom: (data: IMinMax) => this;
|
|
18
|
-
/**
|
|
19
|
-
* Copies the x and y coordinates from an object with numeric x and y properties
|
|
20
|
-
* @param {IMinMax} data - The object to copy from
|
|
21
|
-
* @return {MinMax} - The MinMax instance
|
|
22
|
-
*/
|
|
23
|
-
copyFromRawData: (data: IMinMax) => void;
|
|
24
|
-
/**
|
|
25
|
-
* Adds the x and y coordinates of another Point to this Point
|
|
26
|
-
* @param {IMinMax} data - The other Point instance
|
|
27
|
-
* @return {MinMax} - The MinMax instance
|
|
28
|
-
*/
|
|
29
|
-
add: (data: IMinMax) => this;
|
|
30
|
-
}
|
|
31
|
-
export interface IMinMax {
|
|
32
|
-
min: number;
|
|
33
|
-
max: number;
|
|
34
|
-
}
|
package/dist/lib/util/MinMax.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export default class MinMax {
|
|
2
|
-
constructor(min, max) {
|
|
3
|
-
/**
|
|
4
|
-
* Sets the x and y coordinates of a Point
|
|
5
|
-
* @param {number} min - The x coordinate
|
|
6
|
-
* @param {number} max - The y coordinate
|
|
7
|
-
* @return {MinMax} - The MinMax instance
|
|
8
|
-
*/
|
|
9
|
-
this.set = (min, max) => {
|
|
10
|
-
this.min = min;
|
|
11
|
-
this.max = max === undefined ? this.max : max;
|
|
12
|
-
return this;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Copies the x and y coordinates from another Point
|
|
16
|
-
* @param {IMinMax} data - The Point instance to copy from
|
|
17
|
-
* @return {MinMax} - The MinMax instance
|
|
18
|
-
*/
|
|
19
|
-
this.copyFrom = (data) => {
|
|
20
|
-
this.min = data.min;
|
|
21
|
-
this.max = data.max;
|
|
22
|
-
return this;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Copies the x and y coordinates from an object with numeric x and y properties
|
|
26
|
-
* @param {IMinMax} data - The object to copy from
|
|
27
|
-
* @return {MinMax} - The MinMax instance
|
|
28
|
-
*/
|
|
29
|
-
this.copyFromRawData = (data) => {
|
|
30
|
-
this.copyFrom(data);
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* Adds the x and y coordinates of another Point to this Point
|
|
34
|
-
* @param {IMinMax} data - The other Point instance
|
|
35
|
-
* @return {MinMax} - The MinMax instance
|
|
36
|
-
*/
|
|
37
|
-
this.add = (data) => {
|
|
38
|
-
this.min += data.min;
|
|
39
|
-
this.max += data.max;
|
|
40
|
-
return this;
|
|
41
|
-
};
|
|
42
|
-
this.min = min || 0;
|
|
43
|
-
this.max = max || 0;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=MinMax.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MinMax.js","sourceRoot":"","sources":["../../../src/lib/util/MinMax.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,MAAM;IAIzB,YAAY,GAAY,EAAE,GAAY;QAKtC;;;;;WAKG;QACH,QAAG,GAAG,CAAC,GAAW,EAAE,GAAW,EAAE,EAAE;YACjC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAA;YACd,IAAI,CAAC,GAAG,GAAG,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAA;YAC7C,OAAO,IAAI,CAAA;QACb,CAAC,CAAA;QAED;;;;WAIG;QACH,aAAQ,GAAG,CAAC,IAAa,EAAE,EAAE;YAC3B,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAA;YACnB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAA;YACnB,OAAO,IAAI,CAAA;QACb,CAAC,CAAA;QAED;;;;WAIG;QACH,oBAAe,GAAG,CAAC,IAAa,EAAE,EAAE;YAClC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;QACrB,CAAC,CAAA;QAED;;;;WAIG;QACH,QAAG,GAAG,CAAC,IAAa,EAAE,EAAE;YACtB,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,CAAA;YACpB,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,CAAA;YACpB,OAAO,IAAI,CAAA;QACb,CAAC,CAAA;QA7CC,IAAI,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,CAAA;QACnB,IAAI,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,CAAA;IACrB,CAAC;CA4CF"}
|
package/dist/lib/util/Point.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export default class Point {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
constructor(x?: number, y?: number);
|
|
5
|
-
/**
|
|
6
|
-
* Sets the x and y coordinates of a Point
|
|
7
|
-
* @param {number} x - The x coordinate
|
|
8
|
-
* @param {number} y - The y coordinate
|
|
9
|
-
* @return {Point} - The Point instance
|
|
10
|
-
*/
|
|
11
|
-
set: (x: number, y: number) => this;
|
|
12
|
-
/**
|
|
13
|
-
* Copies the x and y coordinates from another Point
|
|
14
|
-
* @param {IPoint} point - The Point instance to copy from
|
|
15
|
-
* @return {Point} - The Point instance
|
|
16
|
-
*/
|
|
17
|
-
copyFrom: (point: IPoint) => this;
|
|
18
|
-
/**
|
|
19
|
-
* Copies the x and y coordinates from an object with numeric x and y properties
|
|
20
|
-
* @param {IPoint} data - The object to copy from
|
|
21
|
-
* @return {Point} - The Point instance
|
|
22
|
-
*/
|
|
23
|
-
copyFromRawData: (data: IPoint) => void;
|
|
24
|
-
/**
|
|
25
|
-
* Adds the x and y coordinates of another Point to this Point
|
|
26
|
-
* @param {IPoint} point - The other Point instance
|
|
27
|
-
* @return {Point} - The Point instance
|
|
28
|
-
*/
|
|
29
|
-
add: (point: IPoint) => this;
|
|
30
|
-
}
|
|
31
|
-
export interface IPoint {
|
|
32
|
-
x: number;
|
|
33
|
-
y: number;
|
|
34
|
-
}
|
package/dist/lib/util/Point.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export default class Point {
|
|
2
|
-
constructor(x, y) {
|
|
3
|
-
/**
|
|
4
|
-
* Sets the x and y coordinates of a Point
|
|
5
|
-
* @param {number} x - The x coordinate
|
|
6
|
-
* @param {number} y - The y coordinate
|
|
7
|
-
* @return {Point} - The Point instance
|
|
8
|
-
*/
|
|
9
|
-
this.set = (x, y) => {
|
|
10
|
-
this.x = x;
|
|
11
|
-
this.y = y === undefined ? this.y : y;
|
|
12
|
-
return this;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Copies the x and y coordinates from another Point
|
|
16
|
-
* @param {IPoint} point - The Point instance to copy from
|
|
17
|
-
* @return {Point} - The Point instance
|
|
18
|
-
*/
|
|
19
|
-
this.copyFrom = (point) => {
|
|
20
|
-
this.x = point.x || 0;
|
|
21
|
-
this.y = point.y || 0;
|
|
22
|
-
return this;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Copies the x and y coordinates from an object with numeric x and y properties
|
|
26
|
-
* @param {IPoint} data - The object to copy from
|
|
27
|
-
* @return {Point} - The Point instance
|
|
28
|
-
*/
|
|
29
|
-
this.copyFromRawData = (data) => {
|
|
30
|
-
this.copyFrom(data);
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* Adds the x and y coordinates of another Point to this Point
|
|
34
|
-
* @param {IPoint} point - The other Point instance
|
|
35
|
-
* @return {Point} - The Point instance
|
|
36
|
-
*/
|
|
37
|
-
this.add = (point) => {
|
|
38
|
-
this.x += point.x;
|
|
39
|
-
this.y += point.y;
|
|
40
|
-
return this;
|
|
41
|
-
};
|
|
42
|
-
this.x = x || 0;
|
|
43
|
-
this.y = y || 0;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=Point.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Point.js","sourceRoot":"","sources":["../../../src/lib/util/Point.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,KAAK;IAIxB,YAAY,CAAU,EAAE,CAAU;QAKlC;;;;;WAKG;QACH,QAAG,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE;YAC7B,IAAI,CAAC,CAAC,GAAG,CAAC,CAAA;YACV,IAAI,CAAC,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;YACrC,OAAO,IAAI,CAAA;QACb,CAAC,CAAA;QAED;;;;WAIG;QACH,aAAQ,GAAG,CAAC,KAAa,EAAE,EAAE;YAC3B,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,CAAA;YACrB,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,CAAA;YACrB,OAAO,IAAI,CAAA;QACb,CAAC,CAAA;QAED;;;;WAIG;QACH,oBAAe,GAAG,CAAC,IAAY,EAAE,EAAE;YACjC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;QACrB,CAAC,CAAA;QAED;;;;WAIG;QACH,QAAG,GAAG,CAAC,KAAa,EAAE,EAAE;YACtB,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAA;YACjB,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAA;YACjB,OAAO,IAAI,CAAA;QACb,CAAC,CAAA;QA7CC,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACf,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IACjB,CAAC;CA4CF"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @class Random
|
|
3
|
-
*
|
|
4
|
-
* @description This class provides methods to generate random numbers.
|
|
5
|
-
*/
|
|
6
|
-
export default class Random {
|
|
7
|
-
/**
|
|
8
|
-
* @static
|
|
9
|
-
* @method get
|
|
10
|
-
* @returns {number} A random number between 0 and 1
|
|
11
|
-
*
|
|
12
|
-
* @description Generates a random number between 0 and 1.
|
|
13
|
-
*/
|
|
14
|
-
static get: () => number;
|
|
15
|
-
/**
|
|
16
|
-
* Returns a random number between a specified range
|
|
17
|
-
*
|
|
18
|
-
* @param {number} min - The lowest number in the range
|
|
19
|
-
* @param {number} max - The highest number in the range
|
|
20
|
-
*
|
|
21
|
-
* @returns {number} A random number between min and max
|
|
22
|
-
*/
|
|
23
|
-
static uniform: (min: number, max: number) => number;
|
|
24
|
-
}
|
package/dist/lib/util/Random.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @class Random
|
|
3
|
-
*
|
|
4
|
-
* @description This class provides methods to generate random numbers.
|
|
5
|
-
*/
|
|
6
|
-
class Random {
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* @static
|
|
10
|
-
* @method get
|
|
11
|
-
* @returns {number} A random number between 0 and 1
|
|
12
|
-
*
|
|
13
|
-
* @description Generates a random number between 0 and 1.
|
|
14
|
-
*/
|
|
15
|
-
Random.get = () => {
|
|
16
|
-
return Random.uniform(0, 1);
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Returns a random number between a specified range
|
|
20
|
-
*
|
|
21
|
-
* @param {number} min - The lowest number in the range
|
|
22
|
-
* @param {number} max - The highest number in the range
|
|
23
|
-
*
|
|
24
|
-
* @returns {number} A random number between min and max
|
|
25
|
-
*/
|
|
26
|
-
Random.uniform = (min, max) => {
|
|
27
|
-
return Math.random() * (max - min) + min;
|
|
28
|
-
};
|
|
29
|
-
export default Random;
|
|
30
|
-
//# sourceMappingURL=Random.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Random.js","sourceRoot":"","sources":["../../../src/lib/util/Random.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAqB,MAAM;;AACzB;;;;;;GAMG;AACI,UAAG,GAAG,GAAG,EAAE;IAChB,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AAC7B,CAAC,CAAA;AAED;;;;;;;GAOG;AACI,cAAO,GAAG,CAAC,GAAW,EAAE,GAAW,EAAE,EAAE;IAC5C,OAAO,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,CAAA;AAC1C,CAAC,CAAA;eAtBkB,MAAM"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export default class ThereBack {
|
|
2
|
-
x: string;
|
|
3
|
-
y: string;
|
|
4
|
-
ease: string;
|
|
5
|
-
constructor(x?: string, y?: string, ease?: string);
|
|
6
|
-
set: (x: string, y: string, ease: string) => this;
|
|
7
|
-
copyFrom: (data: IThereBack) => this;
|
|
8
|
-
copyFromRawData: (data: IThereBack) => void;
|
|
9
|
-
}
|
|
10
|
-
export interface IThereBack {
|
|
11
|
-
x: string;
|
|
12
|
-
y: string;
|
|
13
|
-
ease: string;
|
|
14
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export default class ThereBack {
|
|
2
|
-
constructor(x, y, ease) {
|
|
3
|
-
this.set = (x, y, ease) => {
|
|
4
|
-
this.x = x || '';
|
|
5
|
-
this.y = y || '';
|
|
6
|
-
this.ease = ease || '';
|
|
7
|
-
return this;
|
|
8
|
-
};
|
|
9
|
-
this.copyFrom = (data) => {
|
|
10
|
-
this.x = data.x || '';
|
|
11
|
-
this.y = data.y || '';
|
|
12
|
-
this.ease = data.ease || '';
|
|
13
|
-
return this;
|
|
14
|
-
};
|
|
15
|
-
this.copyFromRawData = (data) => {
|
|
16
|
-
this.copyFrom(data);
|
|
17
|
-
};
|
|
18
|
-
this.x = x || '';
|
|
19
|
-
this.y = y || '';
|
|
20
|
-
this.ease = ease || '';
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=ThereBack.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThereBack.js","sourceRoot":"","sources":["../../../src/lib/util/ThereBack.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,SAAS;IAK5B,YAAY,CAAU,EAAE,CAAU,EAAE,IAAa;QAMjD,QAAG,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,IAAY,EAAE,EAAE;YAC3C,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,CAAA;YAChB,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,CAAA;YAChB,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAA;YACtB,OAAO,IAAI,CAAA;QACb,CAAC,CAAA;QAED,aAAQ,GAAG,CAAC,IAAgB,EAAE,EAAE;YAC9B,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI,EAAE,CAAA;YACrB,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI,EAAE,CAAA;YACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE,CAAA;YAC3B,OAAO,IAAI,CAAA;QACb,CAAC,CAAA;QAED,oBAAe,GAAG,CAAC,IAAgB,EAAE,EAAE;YACrC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;QACrB,CAAC,CAAA;QArBC,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,CAAA;QAChB,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,CAAA;QAChB,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAA;IACxB,CAAC;CAmBF"}
|
package/dist/lib/util/index.d.ts
DELETED
package/dist/lib/util/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/util/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,IAAI,MAAM,SAAS,CAAA;AAC1B,OAAO,MAAM,MAAM,UAAU,CAAA;AAE7B,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,CAAA"}
|
package/dist/lib/util/maths.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
EPSILON: number;
|
|
3
|
-
/**
|
|
4
|
-
* Converts degrees to radians
|
|
5
|
-
* @param {number} degrees - the number of degrees
|
|
6
|
-
* @returns {number} - the number of radians
|
|
7
|
-
*/
|
|
8
|
-
degreesToRadians: (degrees: number) => number;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
package/dist/lib/util/maths.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const DEGREES_MULTIPLIER = Math.PI / 180.0;
|
|
2
|
-
export default {
|
|
3
|
-
EPSILON: 2.220446049250313e-16,
|
|
4
|
-
/**
|
|
5
|
-
* Converts degrees to radians
|
|
6
|
-
* @param {number} degrees - the number of degrees
|
|
7
|
-
* @returns {number} - the number of radians
|
|
8
|
-
*/
|
|
9
|
-
degreesToRadians: (degrees) => {
|
|
10
|
-
return degrees * DEGREES_MULTIPLIER;
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=maths.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maths.js","sourceRoot":"","sources":["../../../src/lib/util/maths.ts"],"names":[],"mappings":"AAAA,MAAM,kBAAkB,GAAG,IAAI,CAAC,EAAE,GAAG,KAAK,CAAA;AAE1C,eAAe;IACb,OAAO,EAAE,qBAAqB;IAE9B;;;;OAIG;IACH,gBAAgB,EAAE,CAAC,OAAe,EAAE,EAAE;QACpC,OAAO,OAAO,GAAG,kBAAkB,CAAA;IACrC,CAAC;CACF,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"turbulencePool.js","sourceRoot":"","sources":["../../../src/lib/util/turbulencePool.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAA;AAEzB,MAAM,CAAC,OAAO,OAAO,cAAc;IAAnC;QACE,SAAI,GAAS,IAAI,IAAI,EAAE,CAAA;IACzB,CAAC;CAAA"}
|