@vpmedia/phaser 1.14.0 → 1.15.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 +1 -1
- package/package.json +2 -2
- package/src/phaser/core/animation_parser.js +0 -2
- package/src/phaser/core/device.js +2 -0
- package/src/phaser/core/device_util.js +0 -9
- package/src/phaser/core/frame_util.js +0 -2
- package/src/phaser/core/input_mouse.js +2 -2
- package/src/phaser/core/loader_parser.js +0 -4
- package/src/phaser/core/tween_easing.js +0 -31
- package/src/phaser/display/bitmap_text.js +2 -2
- package/src/phaser/display/button.js +2 -2
- package/src/phaser/display/canvas/graphics.js +0 -3
- package/src/phaser/display/canvas/masker.js +0 -2
- package/src/phaser/display/canvas/pool.js +0 -7
- package/src/phaser/display/canvas/tinter.js +0 -5
- package/src/phaser/display/canvas/util.js +0 -9
- package/src/phaser/display/graphics.js +2 -2
- package/src/phaser/display/graphics_data_util.js +0 -1
- package/src/phaser/display/group.js +2 -2
- package/src/phaser/display/image.js +2 -2
- package/src/phaser/display/sprite_batch.js +0 -1
- package/src/phaser/display/sprite_util.js +0 -5
- package/src/phaser/display/text.js +2 -2
- package/src/phaser/display/webgl/earcut.js +0 -27
- package/src/phaser/display/webgl/graphics.js +0 -12
- package/src/phaser/display/webgl/mask_manager.js +0 -2
- package/src/phaser/display/webgl/texture_util.js +0 -2
- package/src/phaser/display/webgl/util.js +0 -4
- package/src/phaser/geom/circle.js +0 -1
- package/src/phaser/geom/ellipse.js +0 -1
- package/src/phaser/geom/line.js +0 -1
- package/src/phaser/geom/matrix.js +0 -1
- package/src/phaser/geom/point.js +0 -1
- package/src/phaser/geom/rectangle.js +0 -1
- package/src/phaser/geom/rounded_rectangle.js +0 -1
- package/src/phaser/geom/util/circle.js +0 -7
- package/src/phaser/geom/util/ellipse.js +0 -1
- package/src/phaser/geom/util/line.js +0 -5
- package/src/phaser/geom/util/matrix.js +0 -3
- package/src/phaser/geom/util/point.js +0 -20
- package/src/phaser/geom/util/polygon.js +0 -1
- package/src/phaser/geom/util/rectangle.js +0 -16
- package/src/phaser/geom/util/rounded_rectangle.js +0 -1
- package/src/phaser/util/math.js +0 -22
- package/{types → typedefs}/global.d.ts +1 -1
- package/types/phaser/core/animation.d.ts +1 -1
- package/types/phaser/core/animation.d.ts.map +1 -1
- package/types/phaser/core/animation_manager.d.ts +1 -1
- package/types/phaser/core/animation_manager.d.ts.map +1 -1
- package/types/phaser/core/animation_parser.d.ts +0 -2
- package/types/phaser/core/animation_parser.d.ts.map +1 -1
- package/types/phaser/core/cache.d.ts +4 -4
- package/types/phaser/core/cache.d.ts.map +1 -1
- package/types/phaser/core/device.d.ts +2 -0
- package/types/phaser/core/device.d.ts.map +1 -1
- package/types/phaser/core/device_util.d.ts +0 -9
- package/types/phaser/core/device_util.d.ts.map +1 -1
- package/types/phaser/core/dom.d.ts +3 -3
- package/types/phaser/core/dom.d.ts.map +1 -1
- package/types/phaser/core/event_manager.d.ts +15 -15
- package/types/phaser/core/event_manager.d.ts.map +1 -1
- package/types/phaser/core/factory.d.ts +5 -5
- package/types/phaser/core/factory.d.ts.map +1 -1
- package/types/phaser/core/frame.d.ts +7 -8
- package/types/phaser/core/frame.d.ts.map +1 -1
- package/types/phaser/core/frame_data.d.ts +3 -3
- package/types/phaser/core/frame_data.d.ts.map +1 -1
- package/types/phaser/core/frame_util.d.ts +0 -2
- package/types/phaser/core/frame_util.d.ts.map +1 -1
- package/types/phaser/core/game.d.ts +15 -15
- package/types/phaser/core/game.d.ts.map +1 -1
- package/types/phaser/core/input.d.ts +18 -18
- package/types/phaser/core/input.d.ts.map +1 -1
- package/types/phaser/core/input_handler.d.ts +2 -2
- package/types/phaser/core/input_handler.d.ts.map +1 -1
- package/types/phaser/core/input_mouse.d.ts +8 -8
- package/types/phaser/core/input_mouse.d.ts.map +1 -1
- package/types/phaser/core/input_mspointer.d.ts +6 -6
- package/types/phaser/core/input_mspointer.d.ts.map +1 -1
- package/types/phaser/core/input_pointer.d.ts +2 -2
- package/types/phaser/core/input_pointer.d.ts.map +1 -1
- package/types/phaser/core/input_touch.d.ts +7 -7
- package/types/phaser/core/input_touch.d.ts.map +1 -1
- package/types/phaser/core/loader.d.ts +6 -6
- package/types/phaser/core/loader.d.ts.map +1 -1
- package/types/phaser/core/loader_parser.d.ts +0 -4
- package/types/phaser/core/loader_parser.d.ts.map +1 -1
- package/types/phaser/core/scale_manager.d.ts +9 -9
- package/types/phaser/core/scale_manager.d.ts.map +1 -1
- package/types/phaser/core/signal.d.ts +4 -4
- package/types/phaser/core/signal.d.ts.map +1 -1
- package/types/phaser/core/signal_binding.d.ts +1 -1
- package/types/phaser/core/signal_binding.d.ts.map +1 -1
- package/types/phaser/core/sound.d.ts +1 -1
- package/types/phaser/core/sound.d.ts.map +1 -1
- package/types/phaser/core/sound_manager.d.ts +2 -2
- package/types/phaser/core/sound_manager.d.ts.map +1 -1
- package/types/phaser/core/tween.d.ts +1 -1
- package/types/phaser/core/tween.d.ts.map +1 -1
- package/types/phaser/core/tween_data.d.ts +1 -1
- package/types/phaser/core/tween_data.d.ts.map +1 -1
- package/types/phaser/core/tween_easing.d.ts +0 -31
- package/types/phaser/core/tween_easing.d.ts.map +1 -1
- package/types/phaser/display/bitmap_text.d.ts +5 -5
- package/types/phaser/display/bitmap_text.d.ts.map +1 -1
- package/types/phaser/display/button.d.ts +3 -3
- package/types/phaser/display/button.d.ts.map +1 -1
- package/types/phaser/display/canvas/buffer.d.ts +1 -1
- package/types/phaser/display/canvas/buffer.d.ts.map +1 -1
- package/types/phaser/display/canvas/graphics.d.ts +0 -3
- package/types/phaser/display/canvas/graphics.d.ts.map +1 -1
- package/types/phaser/display/canvas/masker.d.ts +0 -2
- package/types/phaser/display/canvas/masker.d.ts.map +1 -1
- package/types/phaser/display/canvas/pool.d.ts +0 -7
- package/types/phaser/display/canvas/pool.d.ts.map +1 -1
- package/types/phaser/display/canvas/renderer.d.ts +1 -1
- package/types/phaser/display/canvas/tinter.d.ts +0 -5
- package/types/phaser/display/canvas/tinter.d.ts.map +1 -1
- package/types/phaser/display/canvas/util.d.ts +0 -9
- package/types/phaser/display/canvas/util.d.ts.map +1 -1
- package/types/phaser/display/display_object.d.ts +5 -5
- package/types/phaser/display/display_object.d.ts.map +1 -1
- package/types/phaser/display/graphics.d.ts +10 -10
- package/types/phaser/display/graphics.d.ts.map +1 -1
- package/types/phaser/display/graphics_data.d.ts +1 -1
- package/types/phaser/display/graphics_data.d.ts.map +1 -1
- package/types/phaser/display/graphics_data_util.d.ts +0 -1
- package/types/phaser/display/graphics_data_util.d.ts.map +1 -1
- package/types/phaser/display/group.d.ts +6 -6
- package/types/phaser/display/group.d.ts.map +1 -1
- package/types/phaser/display/image.d.ts +11 -13
- package/types/phaser/display/image.d.ts.map +1 -1
- package/types/phaser/display/sprite_batch.d.ts +1 -2
- package/types/phaser/display/sprite_batch.d.ts.map +1 -1
- package/types/phaser/display/sprite_util.d.ts +0 -5
- package/types/phaser/display/sprite_util.d.ts.map +1 -1
- package/types/phaser/display/text.d.ts +7 -7
- package/types/phaser/display/text.d.ts.map +1 -1
- package/types/phaser/display/webgl/earcut.d.ts +0 -27
- package/types/phaser/display/webgl/earcut.d.ts.map +1 -1
- package/types/phaser/display/webgl/filter_manager.d.ts +1 -1
- package/types/phaser/display/webgl/filter_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/graphics.d.ts +0 -12
- package/types/phaser/display/webgl/graphics.d.ts.map +1 -1
- package/types/phaser/display/webgl/graphics_data.d.ts +2 -2
- package/types/phaser/display/webgl/graphics_data.d.ts.map +1 -1
- package/types/phaser/display/webgl/mask_manager.d.ts +0 -2
- package/types/phaser/display/webgl/mask_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/render_texture.d.ts +1 -1
- package/types/phaser/display/webgl/render_texture.d.ts.map +1 -1
- package/types/phaser/display/webgl/renderer.d.ts +1 -1
- package/types/phaser/display/webgl/shader/complex.d.ts +2 -2
- package/types/phaser/display/webgl/shader/complex.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/fast.d.ts +2 -2
- package/types/phaser/display/webgl/shader/fast.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/normal.d.ts +1 -1
- package/types/phaser/display/webgl/shader/normal.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/primitive.d.ts +2 -2
- package/types/phaser/display/webgl/shader/primitive.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/strip.d.ts +2 -2
- package/types/phaser/display/webgl/shader/strip.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader_manager.d.ts +5 -5
- package/types/phaser/display/webgl/shader_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/sprite_batch.d.ts +1 -1
- package/types/phaser/display/webgl/sprite_batch.d.ts.map +1 -1
- package/types/phaser/display/webgl/texture.d.ts +1 -1
- package/types/phaser/display/webgl/texture.d.ts.map +1 -1
- package/types/phaser/display/webgl/texture_util.d.ts +0 -2
- package/types/phaser/display/webgl/texture_util.d.ts.map +1 -1
- package/types/phaser/display/webgl/util.d.ts +0 -4
- package/types/phaser/display/webgl/util.d.ts.map +1 -1
- package/types/phaser/geom/circle.d.ts +1 -3
- package/types/phaser/geom/circle.d.ts.map +1 -1
- package/types/phaser/geom/ellipse.d.ts +1 -3
- package/types/phaser/geom/ellipse.d.ts.map +1 -1
- package/types/phaser/geom/line.d.ts +2 -3
- package/types/phaser/geom/line.d.ts.map +1 -1
- package/types/phaser/geom/matrix.d.ts +3 -5
- package/types/phaser/geom/matrix.d.ts.map +1 -1
- package/types/phaser/geom/point.d.ts +1 -2
- package/types/phaser/geom/point.d.ts.map +1 -1
- package/types/phaser/geom/polygon.d.ts +1 -1
- package/types/phaser/geom/polygon.d.ts.map +1 -1
- package/types/phaser/geom/rectangle.d.ts +2 -3
- package/types/phaser/geom/rectangle.d.ts.map +1 -1
- package/types/phaser/geom/rounded_rectangle.d.ts +0 -1
- package/types/phaser/geom/rounded_rectangle.d.ts.map +1 -1
- package/types/phaser/geom/util/circle.d.ts +0 -7
- package/types/phaser/geom/util/circle.d.ts.map +1 -1
- package/types/phaser/geom/util/ellipse.d.ts +0 -1
- package/types/phaser/geom/util/ellipse.d.ts.map +1 -1
- package/types/phaser/geom/util/line.d.ts +0 -5
- package/types/phaser/geom/util/line.d.ts.map +1 -1
- package/types/phaser/geom/util/matrix.d.ts +0 -3
- package/types/phaser/geom/util/matrix.d.ts.map +1 -1
- package/types/phaser/geom/util/point.d.ts +0 -20
- package/types/phaser/geom/util/point.d.ts.map +1 -1
- package/types/phaser/geom/util/polygon.d.ts +0 -1
- package/types/phaser/geom/util/polygon.d.ts.map +1 -1
- package/types/phaser/geom/util/rectangle.d.ts +0 -16
- package/types/phaser/geom/util/rectangle.d.ts.map +1 -1
- package/types/phaser/geom/util/rounded_rectangle.d.ts +0 -1
- package/types/phaser/geom/util/rounded_rectangle.d.ts.map +1 -1
- package/types/phaser/util/math.d.ts +0 -22
- package/types/phaser/util/math.d.ts.map +1 -1
|
@@ -9,6 +9,7 @@ import { AnimationManager } from '../core/animation_manager';
|
|
|
9
9
|
import { EventManager } from '../core/event_manager';
|
|
10
10
|
import { Rectangle } from '../geom/rectangle';
|
|
11
11
|
import { DisplayObject } from './display_object';
|
|
12
|
+
import { Game } from '../core/game';
|
|
12
13
|
import { clone } from '../geom/util/rectangle';
|
|
13
14
|
import { IMAGE, PENDING_ATLAS, BLEND_NORMAL, SCALE_NEAREST } from '../core/const';
|
|
14
15
|
import { setTexture, getBounds, getLocalBounds, renderCanvas, renderWebGL } from './sprite_util';
|
|
@@ -16,8 +17,7 @@ import { setTexture, getBounds, getLocalBounds, renderCanvas, renderWebGL } from
|
|
|
16
17
|
export class Image extends DisplayObject {
|
|
17
18
|
/**
|
|
18
19
|
* TBD.
|
|
19
|
-
*
|
|
20
|
-
* @param {object} game - TBD.
|
|
20
|
+
* @param {Game} game - TBD.
|
|
21
21
|
* @param {number} x - TBD.
|
|
22
22
|
* @param {number} y - TBD.
|
|
23
23
|
* @param {string} key - TBD.
|
|
@@ -10,7 +10,6 @@ import { SCALE_LINEAR } from '../core/const';
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* TBD.
|
|
13
|
-
*
|
|
14
13
|
* @param {object} target - TBD.
|
|
15
14
|
* @param {object} texture - TBD.
|
|
16
15
|
* @param {boolean} destroyBase - TBD.
|
|
@@ -27,7 +26,6 @@ export function setTexture(target, texture, destroyBase = false) {
|
|
|
27
26
|
|
|
28
27
|
/**
|
|
29
28
|
* TBD.
|
|
30
|
-
*
|
|
31
29
|
* @param {object} target - TBD.
|
|
32
30
|
* @param {object} matrix - TBD.
|
|
33
31
|
* @returns {object} TBD.
|
|
@@ -111,7 +109,6 @@ export function getBounds(target, matrix = null) {
|
|
|
111
109
|
|
|
112
110
|
/**
|
|
113
111
|
* TBD.
|
|
114
|
-
*
|
|
115
112
|
* @param {object} target - TBD.
|
|
116
113
|
* @returns {object} TBD.
|
|
117
114
|
*/
|
|
@@ -132,7 +129,6 @@ export function getLocalBounds(target) {
|
|
|
132
129
|
|
|
133
130
|
/**
|
|
134
131
|
* TBD.
|
|
135
|
-
*
|
|
136
132
|
* @param {object} target - TBD.
|
|
137
133
|
* @param {object} renderSession - TBD.
|
|
138
134
|
* @param {object} matrix - TBD.
|
|
@@ -182,7 +178,6 @@ export function renderWebGL(target, renderSession, matrix) {
|
|
|
182
178
|
|
|
183
179
|
/**
|
|
184
180
|
* TBD.
|
|
185
|
-
*
|
|
186
181
|
* @param {object} target - TBD.
|
|
187
182
|
* @param {object} renderSession - TBD.
|
|
188
183
|
* @param {object} matrix - TBD.
|
|
@@ -9,6 +9,7 @@ import { Rectangle } from '../geom/rectangle';
|
|
|
9
9
|
import { Image } from './image';
|
|
10
10
|
import { create, remove } from './canvas/pool';
|
|
11
11
|
import { textureFromCanvas } from './webgl/texture_util';
|
|
12
|
+
import { Game } from '../core/game';
|
|
12
13
|
import { TEXT } from '../core/const';
|
|
13
14
|
import { snapToCeil } from '../util/math';
|
|
14
15
|
import { renderCanvas, renderWebGL, getBounds } from './sprite_util';
|
|
@@ -16,8 +17,7 @@ import { renderCanvas, renderWebGL, getBounds } from './sprite_util';
|
|
|
16
17
|
export class Text extends Image {
|
|
17
18
|
/**
|
|
18
19
|
* TBD.
|
|
19
|
-
*
|
|
20
|
-
* @param {object} game - TBD.
|
|
20
|
+
* @param {Game} game - TBD.
|
|
21
21
|
* @param {number} x - TBD.
|
|
22
22
|
* @param {number} y - TBD.
|
|
23
23
|
* @param {string} text - TBD.
|
|
@@ -8,7 +8,6 @@ import { Node } from './earcut_node';
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* TBD.
|
|
11
|
-
*
|
|
12
11
|
* @param {object} list - TBD.
|
|
13
12
|
* @returns {object} TBD.
|
|
14
13
|
*/
|
|
@@ -75,7 +74,6 @@ export function sortLinked(list) {
|
|
|
75
74
|
|
|
76
75
|
/**
|
|
77
76
|
* TBD.
|
|
78
|
-
*
|
|
79
77
|
* @param {object} a - TBD.
|
|
80
78
|
* @param {object} b - TBD.
|
|
81
79
|
* @returns {number} TBD.
|
|
@@ -86,7 +84,6 @@ export function compareX(a, b) {
|
|
|
86
84
|
|
|
87
85
|
/**
|
|
88
86
|
* TBD.
|
|
89
|
-
*
|
|
90
87
|
* @param {number} x - TBD.
|
|
91
88
|
* @param {number} y - TBD.
|
|
92
89
|
* @param {number} minX - TBD.
|
|
@@ -111,7 +108,6 @@ export function zOrder(x, y, minX, minY, size) {
|
|
|
111
108
|
|
|
112
109
|
/**
|
|
113
110
|
* TBD.
|
|
114
|
-
*
|
|
115
111
|
* @param {object} start - TBD.
|
|
116
112
|
* @param {number} minX - TBD.
|
|
117
113
|
* @param {number} minY - TBD.
|
|
@@ -132,7 +128,6 @@ export function indexCurve(start, minX, minY, size) {
|
|
|
132
128
|
|
|
133
129
|
/**
|
|
134
130
|
* TBD.
|
|
135
|
-
*
|
|
136
131
|
* @param {object} start - TBD.
|
|
137
132
|
* @returns {object} TBD.
|
|
138
133
|
*/
|
|
@@ -148,7 +143,6 @@ export function getLeftmost(start) {
|
|
|
148
143
|
|
|
149
144
|
/**
|
|
150
145
|
* TBD.
|
|
151
|
-
*
|
|
152
146
|
* @param {number} ax - TBD.
|
|
153
147
|
* @param {number} ay - TBD.
|
|
154
148
|
* @param {number} bx - TBD.
|
|
@@ -169,7 +163,6 @@ export function pointInTriangle(ax, ay, bx, by, cx, cy, px, py) {
|
|
|
169
163
|
|
|
170
164
|
/**
|
|
171
165
|
* TBD.
|
|
172
|
-
*
|
|
173
166
|
* @param {object} p - TBD.
|
|
174
167
|
* @param {object} q - TBD.
|
|
175
168
|
* @param {object} r - TBD.
|
|
@@ -181,7 +174,6 @@ export function area(p, q, r) {
|
|
|
181
174
|
|
|
182
175
|
/**
|
|
183
176
|
* TBD.
|
|
184
|
-
*
|
|
185
177
|
* @param {object} p1 - TBD.
|
|
186
178
|
* @param {object} p2 - TBD.
|
|
187
179
|
* @returns {boolean} TBD.
|
|
@@ -192,7 +184,6 @@ export function equals(p1, p2) {
|
|
|
192
184
|
|
|
193
185
|
/**
|
|
194
186
|
* TBD.
|
|
195
|
-
*
|
|
196
187
|
* @param {object} p1 - TBD.
|
|
197
188
|
* @param {object} q1 - TBD.
|
|
198
189
|
* @param {object} p2 - TBD.
|
|
@@ -207,7 +198,6 @@ export function intersects(p1, q1, p2, q2) {
|
|
|
207
198
|
|
|
208
199
|
/**
|
|
209
200
|
* TBD.
|
|
210
|
-
*
|
|
211
201
|
* @param {object} a - TBD.
|
|
212
202
|
* @param {object} b - TBD.
|
|
213
203
|
* @returns {boolean} TBD.
|
|
@@ -230,7 +220,6 @@ export function intersectsPolygon(a, b) {
|
|
|
230
220
|
|
|
231
221
|
/**
|
|
232
222
|
* TBD.
|
|
233
|
-
*
|
|
234
223
|
* @param {object} a - TBD.
|
|
235
224
|
* @param {object} b - TBD.
|
|
236
225
|
* @returns {object} TBD.
|
|
@@ -243,7 +232,6 @@ export function locallyInside(a, b) {
|
|
|
243
232
|
|
|
244
233
|
/**
|
|
245
234
|
* TBD.
|
|
246
|
-
*
|
|
247
235
|
* @param {object} a - TBD.
|
|
248
236
|
* @param {object} b - TBD.
|
|
249
237
|
* @returns {boolean} TBD.
|
|
@@ -267,7 +255,6 @@ export function middleInside(a, b) {
|
|
|
267
255
|
|
|
268
256
|
/**
|
|
269
257
|
* TBD.
|
|
270
|
-
*
|
|
271
258
|
* @param {object} a - TBD.
|
|
272
259
|
* @param {object} b - TBD.
|
|
273
260
|
* @returns {boolean} TBD.
|
|
@@ -286,7 +273,6 @@ export function isValidDiagonal(a, b) {
|
|
|
286
273
|
|
|
287
274
|
/**
|
|
288
275
|
* TBD.
|
|
289
|
-
*
|
|
290
276
|
* @param {object} a - TBD.
|
|
291
277
|
* @param {object} b - TBD.
|
|
292
278
|
* @returns {object} TBD.
|
|
@@ -309,7 +295,6 @@ export function splitPolygon(a, b) {
|
|
|
309
295
|
|
|
310
296
|
/**
|
|
311
297
|
* TBD.
|
|
312
|
-
*
|
|
313
298
|
* @param {number} i - TBD.
|
|
314
299
|
* @param {number} x - TBD.
|
|
315
300
|
* @param {number} y - TBD.
|
|
@@ -332,7 +317,6 @@ export function insertNode(i, x, y, last) {
|
|
|
332
317
|
|
|
333
318
|
/**
|
|
334
319
|
* TBD.
|
|
335
|
-
*
|
|
336
320
|
* @param {object} p - TBD.
|
|
337
321
|
*/
|
|
338
322
|
export function removeNode(p) {
|
|
@@ -348,7 +332,6 @@ export function removeNode(p) {
|
|
|
348
332
|
|
|
349
333
|
/**
|
|
350
334
|
* TBD.
|
|
351
|
-
*
|
|
352
335
|
* @param {object} ear - TBD.
|
|
353
336
|
* @returns {boolean} TBD.
|
|
354
337
|
*/
|
|
@@ -369,7 +352,6 @@ export function isEar(ear) {
|
|
|
369
352
|
|
|
370
353
|
/**
|
|
371
354
|
* TBD.
|
|
372
|
-
*
|
|
373
355
|
* @param {object} ear - TBD.
|
|
374
356
|
* @param {number} minX - TBD.
|
|
375
357
|
* @param {number} minY - TBD.
|
|
@@ -420,7 +402,6 @@ export function isEarHashed(ear, minX, minY, size) {
|
|
|
420
402
|
|
|
421
403
|
/**
|
|
422
404
|
* TBD.
|
|
423
|
-
*
|
|
424
405
|
* @param {object} data - TBD.
|
|
425
406
|
* @param {number} start - TBD.
|
|
426
407
|
* @param {number} end - TBD.
|
|
@@ -449,7 +430,6 @@ export function linkedList(data, start, end, dim, clockwise) {
|
|
|
449
430
|
|
|
450
431
|
/**
|
|
451
432
|
* TBD.
|
|
452
|
-
*
|
|
453
433
|
* @param {object} start - TBD.
|
|
454
434
|
* @param {object} end - TBD.
|
|
455
435
|
* @returns {object} TBD.
|
|
@@ -476,7 +456,6 @@ export function filterPoints(start, end) {
|
|
|
476
456
|
|
|
477
457
|
/**
|
|
478
458
|
* TBD.
|
|
479
|
-
*
|
|
480
459
|
* @param {object} hole - TBD.
|
|
481
460
|
* @param {object} outerNode - TBD.
|
|
482
461
|
* @returns {object} TBD.
|
|
@@ -527,7 +506,6 @@ export function findHoleBridge(hole, outerNode) {
|
|
|
527
506
|
|
|
528
507
|
/**
|
|
529
508
|
* TBD.
|
|
530
|
-
*
|
|
531
509
|
* @param {object} hole - TBD.
|
|
532
510
|
* @param {object} outerNode - TBD.
|
|
533
511
|
*/
|
|
@@ -541,7 +519,6 @@ export function eliminateHole(hole, outerNode) {
|
|
|
541
519
|
|
|
542
520
|
/**
|
|
543
521
|
* TBD.
|
|
544
|
-
*
|
|
545
522
|
* @param {object} data - TBD.
|
|
546
523
|
* @param {object} holeIndices - TBD.
|
|
547
524
|
* @param {object} outerNode - TBD.
|
|
@@ -573,7 +550,6 @@ export function eliminateHoles(data, holeIndices, outerNode, dim) {
|
|
|
573
550
|
|
|
574
551
|
/**
|
|
575
552
|
* TBD.
|
|
576
|
-
*
|
|
577
553
|
* @param {object} start - TBD.
|
|
578
554
|
* @param {object} triangles - TBD.
|
|
579
555
|
* @param {number} dim - TBD.
|
|
@@ -602,7 +578,6 @@ export function cureLocalIntersections(start, triangles, dim) {
|
|
|
602
578
|
|
|
603
579
|
/**
|
|
604
580
|
* TBD.
|
|
605
|
-
*
|
|
606
581
|
* @param {object} start - TBD.
|
|
607
582
|
* @param {object} triangles - TBD.
|
|
608
583
|
* @param {number} dim - TBD.
|
|
@@ -635,7 +610,6 @@ export function splitEarcut(start, triangles, dim, minX, minY, size) {
|
|
|
635
610
|
|
|
636
611
|
/**
|
|
637
612
|
* TBD.
|
|
638
|
-
*
|
|
639
613
|
* @param {object} ear - TBD.
|
|
640
614
|
* @param {object} triangles - TBD.
|
|
641
615
|
* @param {number} dim - TBD.
|
|
@@ -687,7 +661,6 @@ export function earcutLinked(ear, triangles, dim, minX, minY, size, pass) {
|
|
|
687
661
|
|
|
688
662
|
/**
|
|
689
663
|
* TBD.
|
|
690
|
-
*
|
|
691
664
|
* @param {object} data - TBD.
|
|
692
665
|
* @param {object} holeIndices - TBD.
|
|
693
666
|
* @param {number} dim - TBD.
|
|
@@ -18,7 +18,6 @@ import { triangulate } from './earcut';
|
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* TBD.
|
|
21
|
-
*
|
|
22
21
|
* @returns {number} TBD.
|
|
23
22
|
*/
|
|
24
23
|
export function getStencilBufferLimit() {
|
|
@@ -30,7 +29,6 @@ export function getStencilBufferLimit() {
|
|
|
30
29
|
|
|
31
30
|
/**
|
|
32
31
|
* TBD.
|
|
33
|
-
*
|
|
34
32
|
* @returns {object[]} TBD.
|
|
35
33
|
*/
|
|
36
34
|
export function getGraphicsDataPool() {
|
|
@@ -42,7 +40,6 @@ export function getGraphicsDataPool() {
|
|
|
42
40
|
|
|
43
41
|
/**
|
|
44
42
|
* TBD.
|
|
45
|
-
*
|
|
46
43
|
* @param {object} webGL - TBD.
|
|
47
44
|
* @param {number} type - TBD.
|
|
48
45
|
* @returns {object} TBD.
|
|
@@ -67,7 +64,6 @@ export function switchMode(webGL, type) {
|
|
|
67
64
|
|
|
68
65
|
/**
|
|
69
66
|
* TBD.
|
|
70
|
-
*
|
|
71
67
|
* @param {object} graphicsData - TBD.
|
|
72
68
|
* @param {object} webGLData - TBD.
|
|
73
69
|
*/
|
|
@@ -233,7 +229,6 @@ export function buildLine(graphicsData, webGLData) {
|
|
|
233
229
|
|
|
234
230
|
/**
|
|
235
231
|
* TBD.
|
|
236
|
-
*
|
|
237
232
|
* @param {object} graphicsData - TBD.
|
|
238
233
|
* @param {object} webGLData - TBD.
|
|
239
234
|
*/
|
|
@@ -278,7 +273,6 @@ export function buildRectangle(graphicsData, webGLData) {
|
|
|
278
273
|
|
|
279
274
|
/**
|
|
280
275
|
* TBD.
|
|
281
|
-
*
|
|
282
276
|
* @param {number} fromX - TBD.
|
|
283
277
|
* @param {number} fromY - TBD.
|
|
284
278
|
* @param {number} cpX - TBD.
|
|
@@ -318,7 +312,6 @@ export function quadraticBezierCurve(fromX, fromY, cpX, cpY, toX, toY) {
|
|
|
318
312
|
|
|
319
313
|
/**
|
|
320
314
|
* TBD.
|
|
321
|
-
*
|
|
322
315
|
* @param {object} graphicsData - TBD.
|
|
323
316
|
* @param {object} webGLData - TBD.
|
|
324
317
|
*/
|
|
@@ -380,7 +373,6 @@ export function buildRoundedRectangle(graphicsData, webGLData) {
|
|
|
380
373
|
|
|
381
374
|
/**
|
|
382
375
|
* TBD.
|
|
383
|
-
*
|
|
384
376
|
* @param {object} graphicsData - TBD.
|
|
385
377
|
* @param {object} webGLData - TBD.
|
|
386
378
|
*/
|
|
@@ -432,7 +424,6 @@ export function buildCircle(graphicsData, webGLData) {
|
|
|
432
424
|
|
|
433
425
|
/**
|
|
434
426
|
* TBD.
|
|
435
|
-
*
|
|
436
427
|
* @param {object} graphicsData - TBD.
|
|
437
428
|
* @param {object} webGLData - TBD.
|
|
438
429
|
*/
|
|
@@ -477,7 +468,6 @@ export function buildComplexPoly(graphicsData, webGLData) {
|
|
|
477
468
|
|
|
478
469
|
/**
|
|
479
470
|
* TBD.
|
|
480
|
-
*
|
|
481
471
|
* @param {object} graphicsData - TBD.
|
|
482
472
|
* @param {object} webGLData - TBD.
|
|
483
473
|
* @returns {boolean} TBD.
|
|
@@ -517,7 +507,6 @@ export function buildPoly(graphicsData, webGLData) {
|
|
|
517
507
|
|
|
518
508
|
/**
|
|
519
509
|
* TBD.
|
|
520
|
-
*
|
|
521
510
|
* @param {object} graphics - TBD.
|
|
522
511
|
* @param {object} gl - TBD.
|
|
523
512
|
*/
|
|
@@ -607,7 +596,6 @@ export function updateGraphics(graphics, gl) {
|
|
|
607
596
|
|
|
608
597
|
/**
|
|
609
598
|
* TBD.
|
|
610
|
-
*
|
|
611
599
|
* @param {object} graphics - TBD.
|
|
612
600
|
* @param {object} renderSession - TBD.
|
|
613
601
|
*/
|
|
@@ -8,7 +8,6 @@ import { updateGraphics } from './graphics';
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* TBD.
|
|
11
|
-
*
|
|
12
11
|
* @param {object} maskData - TBD.
|
|
13
12
|
* @param {object} renderSession - TBD.
|
|
14
13
|
*/
|
|
@@ -29,7 +28,6 @@ export function pushMask(maskData, renderSession) {
|
|
|
29
28
|
|
|
30
29
|
/**
|
|
31
30
|
* TBD.
|
|
32
|
-
*
|
|
33
31
|
* @param {object} maskData - TBD.
|
|
34
32
|
* @param {object} renderSession - TBD.
|
|
35
33
|
*/
|
|
@@ -9,7 +9,6 @@ import { Texture } from './texture';
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* TBD.
|
|
12
|
-
*
|
|
13
12
|
* @param {HTMLCanvasElement} canvas - TBD.
|
|
14
13
|
* @param {number} scaleMode - TBD.
|
|
15
14
|
* @returns {object} TBD.
|
|
@@ -26,7 +25,6 @@ export function baseTextureFromCanvas(canvas, scaleMode) {
|
|
|
26
25
|
|
|
27
26
|
/**
|
|
28
27
|
* TBD.
|
|
29
|
-
*
|
|
30
28
|
* @param {HTMLCanvasElement} canvas - TBD.
|
|
31
29
|
* @param {number} scaleMode - TBD.
|
|
32
30
|
* @returns {object} TBD.
|
|
@@ -12,7 +12,6 @@ export function initDefaultShaders() {}
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* TBD.
|
|
15
|
-
*
|
|
16
15
|
* @param {object} gl - TBD.
|
|
17
16
|
* @param {string[]|string} shaderSrc - TBD.
|
|
18
17
|
* @param {object} shaderType - TBD.
|
|
@@ -37,7 +36,6 @@ export function compileShader(gl, shaderSrc, shaderType) {
|
|
|
37
36
|
|
|
38
37
|
/**
|
|
39
38
|
* TBD.
|
|
40
|
-
*
|
|
41
39
|
* @param {object} gl - TBD.
|
|
42
40
|
* @param {string[]|string} shaderSrc - TBD.
|
|
43
41
|
* @returns {object} TBD.
|
|
@@ -48,7 +46,6 @@ export function compileVertexShader(gl, shaderSrc) {
|
|
|
48
46
|
|
|
49
47
|
/**
|
|
50
48
|
* TBD.
|
|
51
|
-
*
|
|
52
49
|
* @param {object} gl - TBD.
|
|
53
50
|
* @param {string[]|string} shaderSrc - TBD.
|
|
54
51
|
* @returns {object} TBD.
|
|
@@ -59,7 +56,6 @@ export function compileFragmentShader(gl, shaderSrc) {
|
|
|
59
56
|
|
|
60
57
|
/**
|
|
61
58
|
* TBD.
|
|
62
|
-
*
|
|
63
59
|
* @param {object} gl - TBD.
|
|
64
60
|
* @param {string[]|string} vertexSrc - TBD.
|
|
65
61
|
* @param {string[]|string} fragmentSrc - TBD.
|
package/src/phaser/geom/line.js
CHANGED
package/src/phaser/geom/point.js
CHANGED
|
@@ -10,7 +10,6 @@ import { degToRad, distance } from '../../util/math';
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* TBD.
|
|
13
|
-
*
|
|
14
13
|
* @param {Circle} input - TBD.
|
|
15
14
|
* @param {Circle} output - TBD.
|
|
16
15
|
* @returns {Circle} TBD.
|
|
@@ -25,7 +24,6 @@ export function clone(input, output = null) {
|
|
|
25
24
|
|
|
26
25
|
/**
|
|
27
26
|
* TBD.
|
|
28
|
-
*
|
|
29
27
|
* @param {Circle} a - TBD.
|
|
30
28
|
* @param {number} x - TBD.
|
|
31
29
|
* @param {number} y - TBD.
|
|
@@ -42,7 +40,6 @@ export function contains(a, x, y) {
|
|
|
42
40
|
|
|
43
41
|
/**
|
|
44
42
|
* TBD.
|
|
45
|
-
*
|
|
46
43
|
* @param {Circle} a - TBD.
|
|
47
44
|
* @param {Circle} b - TBD.
|
|
48
45
|
* @returns {boolean} TBD.
|
|
@@ -53,7 +50,6 @@ export function equals(a, b) {
|
|
|
53
50
|
|
|
54
51
|
/**
|
|
55
52
|
* TBD.
|
|
56
|
-
*
|
|
57
53
|
* @param {Circle} a - TBD.
|
|
58
54
|
* @param {Circle} b - TBD.
|
|
59
55
|
* @returns {boolean} TBD.
|
|
@@ -64,7 +60,6 @@ export function intersects(a, b) {
|
|
|
64
60
|
|
|
65
61
|
/**
|
|
66
62
|
* TBD.
|
|
67
|
-
*
|
|
68
63
|
* @param {Circle} a - TBD.
|
|
69
64
|
* @param {number} angle - TBD.
|
|
70
65
|
* @param {boolean} asDegrees - TBD.
|
|
@@ -83,7 +78,6 @@ export function circumferencePoint(a, angle, asDegrees = false, output = null) {
|
|
|
83
78
|
|
|
84
79
|
/**
|
|
85
80
|
* TBD.
|
|
86
|
-
*
|
|
87
81
|
* @param {Circle} a - TBD.
|
|
88
82
|
* @param {number} angle - TBD.
|
|
89
83
|
* @param {boolean} asDegrees - TBD.
|
|
@@ -102,7 +96,6 @@ export function intersectsPoint(a, angle, asDegrees = false, output = null) {
|
|
|
102
96
|
|
|
103
97
|
/**
|
|
104
98
|
* TBD.
|
|
105
|
-
*
|
|
106
99
|
* @param {Circle} c - TBD.
|
|
107
100
|
* @param {object} r - TBD.
|
|
108
101
|
* @returns {boolean} TBD.
|
|
@@ -10,7 +10,6 @@ import { intersects as intersectsRect } from './rectangle';
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* TBD.
|
|
13
|
-
*
|
|
14
13
|
* @param {Line} input - TBD.
|
|
15
14
|
* @param {Line} output - TBD.
|
|
16
15
|
* @returns {Line} TBD.
|
|
@@ -26,7 +25,6 @@ export function clone(input, output = null) {
|
|
|
26
25
|
|
|
27
26
|
/**
|
|
28
27
|
* TBD.
|
|
29
|
-
*
|
|
30
28
|
* @param {object} a - TBD.
|
|
31
29
|
* @param {object} b - TBD.
|
|
32
30
|
* @param {object} e - TBD.
|
|
@@ -63,7 +61,6 @@ export function intersectsPoints(a, b, e, f, asSegment = true, output = null) {
|
|
|
63
61
|
|
|
64
62
|
/**
|
|
65
63
|
* TBD.
|
|
66
|
-
*
|
|
67
64
|
* @param {object} a - TBD.
|
|
68
65
|
* @param {object} b - TBD.
|
|
69
66
|
* @param {boolean} asSegment - TBD.
|
|
@@ -76,7 +73,6 @@ export function intersects(a, b, asSegment, result) {
|
|
|
76
73
|
|
|
77
74
|
/**
|
|
78
75
|
* TBD.
|
|
79
|
-
*
|
|
80
76
|
* @param {object} line - TBD.
|
|
81
77
|
* @param {object} rect - TBD.
|
|
82
78
|
* @returns {boolean} TBD.
|
|
@@ -134,7 +130,6 @@ export function intersectsRectangle(line, rect) {
|
|
|
134
130
|
|
|
135
131
|
/**
|
|
136
132
|
* TBD.
|
|
137
|
-
*
|
|
138
133
|
* @param {object} a - TBD.
|
|
139
134
|
* @param {object} b - TBD.
|
|
140
135
|
* @returns {number} TBD.
|
|
@@ -8,7 +8,6 @@ import { Matrix } from '../matrix';
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* TBD.
|
|
11
|
-
*
|
|
12
11
|
* @param {Matrix} input - TBD.
|
|
13
12
|
* @param {Matrix} output - TBD.
|
|
14
13
|
* @returns {Matrix} TBD.
|
|
@@ -26,7 +25,6 @@ export function clone(input, output = null) {
|
|
|
26
25
|
|
|
27
26
|
/**
|
|
28
27
|
* TBD.
|
|
29
|
-
*
|
|
30
28
|
* @returns {Matrix} TBD.
|
|
31
29
|
*/
|
|
32
30
|
export function getIdentityMatrix() {
|
|
@@ -41,7 +39,6 @@ export function getIdentityMatrix() {
|
|
|
41
39
|
|
|
42
40
|
/**
|
|
43
41
|
* TBD.
|
|
44
|
-
*
|
|
45
42
|
* @returns {Matrix} TBD.
|
|
46
43
|
*/
|
|
47
44
|
export function getTempMatrix() {
|