vue-phaserjs 1.21.3 → 1.21.4
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/dist/index.js +31 -17
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -62388,7 +62388,7 @@ var rl = { exports: {} };
|
|
|
62388
62388
|
* @type {string}
|
|
62389
62389
|
* @since 3.0.0
|
|
62390
62390
|
*/
|
|
62391
|
-
VERSION: "3.85.
|
|
62391
|
+
VERSION: "3.85.2",
|
|
62392
62392
|
BlendModes: t(10312),
|
|
62393
62393
|
ScaleModes: t(29795),
|
|
62394
62394
|
/**
|
|
@@ -76857,8 +76857,13 @@ var rl = { exports: {} };
|
|
|
76857
76857
|
*/
|
|
76858
76858
|
setQuad: function(n, e, r, f, i, o) {
|
|
76859
76859
|
i === void 0 && (i = !1), o === void 0 && (o = this.quad);
|
|
76860
|
-
var u = this.matrix, h = u[0], d = u[1], p = u[2], g = u[3], x = u[4], m = u[5];
|
|
76861
|
-
|
|
76860
|
+
var u = this.matrix, h = u[0], d = u[1], p = u[2], g = u[3], x = u[4], m = u[5], A = n * h + e * p + x, T = n * d + e * g + m, C = n * h + f * p + x, S = n * d + f * g + m, w = r * h + f * p + x, D = r * d + f * g + m, B = r * h + e * p + x, R = r * d + e * g + m;
|
|
76861
|
+
if (i) {
|
|
76862
|
+
var N = Math.floor(A + 0.5), X = Math.floor(T + 0.5), V = N - A, K = X - T;
|
|
76863
|
+
o[0] = N, o[1] = X, o[2] = C + V, o[3] = S + K, o[4] = w + V, o[5] = D + K, o[6] = B + V, o[7] = R + K;
|
|
76864
|
+
} else
|
|
76865
|
+
o[0] = A, o[1] = T, o[2] = C, o[3] = S, o[4] = w, o[5] = D, o[6] = B, o[7] = R;
|
|
76866
|
+
return o;
|
|
76862
76867
|
},
|
|
76863
76868
|
/**
|
|
76864
76869
|
* Returns the X component of this matrix multiplied by the given values.
|
|
@@ -133351,17 +133356,8 @@ return new ` + this.key + `();
|
|
|
133351
133356
|
var R, N = this.game, X = this.canvas, V = B.backgroundColor;
|
|
133352
133357
|
if (N.config.context ? R = N.config.context : R = X.getContext("webgl", B.contextCreation) || X.getContext("experimental-webgl", B.contextCreation), !R || R.isContextLost())
|
|
133353
133358
|
throw this.contextLost = !0, new Error("WebGL unsupported");
|
|
133354
|
-
this.gl = R;
|
|
133355
|
-
var K =
|
|
133356
|
-
var L = R.getSupportedExtensions();
|
|
133357
|
-
K.supportedExtensions = L;
|
|
133358
|
-
var O = "ANGLE_instanced_arrays";
|
|
133359
|
-
K.instancedArraysExtension = L.indexOf(O) > -1 ? R.getExtension(O) : null;
|
|
133360
|
-
var I = "OES_vertex_array_object";
|
|
133361
|
-
K.vaoExtension = L.indexOf(I) > -1 ? R.getExtension(I) : null;
|
|
133362
|
-
};
|
|
133363
|
-
W(), this.setContextHandlers(), N.context = R;
|
|
133364
|
-
for (var G = 0; G <= 27; G++)
|
|
133359
|
+
this.gl = R, this.setExtensions(), this.setContextHandlers(), N.context = R;
|
|
133360
|
+
for (var K = 0; K <= 27; K++)
|
|
133365
133361
|
this.blendModes.push({ func: [R.ONE, R.ONE_MINUS_SRC_ALPHA], equation: R.FUNC_ADD });
|
|
133366
133362
|
this.blendModes[1].func = [R.ONE, R.DST_ALPHA], this.blendModes[2].func = [R.DST_COLOR, R.ONE_MINUS_SRC_ALPHA], this.blendModes[3].func = [R.ONE, R.ONE_MINUS_SRC_COLOR], this.blendModes[17] = { func: [R.ZERO, R.ONE_MINUS_SRC_ALPHA], equation: R.FUNC_REVERSE_SUBTRACT }, this.glFormats = [R.BYTE, R.SHORT, R.UNSIGNED_BYTE, R.UNSIGNED_SHORT, R.FLOAT], this.glFuncMap = {
|
|
133367
133363
|
mat2: { func: R.uniformMatrix2fv, length: 1, matrix: !0 },
|
|
@@ -133384,8 +133380,8 @@ return new ` + this.key + `();
|
|
|
133384
133380
|
"4i": { func: R.uniform4i, length: 4 },
|
|
133385
133381
|
"4iv": { func: R.uniform4iv, length: 1 }
|
|
133386
133382
|
}, (!B.maxTextures || B.maxTextures === -1) && (B.maxTextures = R.getParameter(R.MAX_TEXTURE_IMAGE_UNITS)), B.maxTextureSize || (B.maxTextureSize = R.getParameter(R.MAX_TEXTURE_SIZE)), this.compression = this.getCompressedTextures(), R.disable(R.DEPTH_TEST), R.disable(R.CULL_FACE), R.enable(R.BLEND), R.clearColor(V.redGL, V.greenGL, V.blueGL, V.alphaGL);
|
|
133387
|
-
var
|
|
133388
|
-
return
|
|
133383
|
+
var W = ["NEAREST", "LINEAR", "NEAREST_MIPMAP_NEAREST", "LINEAR_MIPMAP_NEAREST", "NEAREST_MIPMAP_LINEAR", "LINEAR_MIPMAP_LINEAR"];
|
|
133384
|
+
return W.indexOf(B.mipmapFilter) !== -1 && (this.mipmapFilter = R[B.mipmapFilter]), this.maxTextures = g.checkShaderMax(R, B.maxTextures), this.textureIndexes = [], this.createTemporaryTextures(), this.pipelines = new u(this), this.setBlendMode(n.BlendModes.NORMAL), this.projectionMatrix = new i().identity(), N.textures.once(p.READY, this.boot, this), this;
|
|
133389
133385
|
},
|
|
133390
133386
|
/**
|
|
133391
133387
|
* Internal boot handler. Calls 'boot' on each pipeline.
|
|
@@ -133402,6 +133398,24 @@ return new ` + this.key + `();
|
|
|
133402
133398
|
var W = this.gl;
|
|
133403
133399
|
W.bindFramebuffer(W.FRAMEBUFFER, null), W.enable(W.SCISSOR_TEST), B.scale.on(d.RESIZE, this.onResize, this), this.resize(X, V);
|
|
133404
133400
|
},
|
|
133401
|
+
/**
|
|
133402
|
+
* Queries the GL context to get the supported extensions.
|
|
133403
|
+
*
|
|
133404
|
+
* Then sets them into the `supportedExtensions`, `instancedArraysExtension` and `vaoExtension` properties.
|
|
133405
|
+
*
|
|
133406
|
+
* Called automatically during the `init` method.
|
|
133407
|
+
*
|
|
133408
|
+
* @method Phaser.Renderer.WebGL.WebGLRenderer#setExtensions
|
|
133409
|
+
* @since 3.85.2
|
|
133410
|
+
*/
|
|
133411
|
+
setExtensions: function() {
|
|
133412
|
+
var B = this.gl, R = B.getSupportedExtensions();
|
|
133413
|
+
this.supportedExtensions = R;
|
|
133414
|
+
var N = "ANGLE_instanced_arrays";
|
|
133415
|
+
this.instancedArraysExtension = R.indexOf(N) > -1 ? B.getExtension(N) : null;
|
|
133416
|
+
var X = "OES_vertex_array_object";
|
|
133417
|
+
this.vaoExtension = R.indexOf(X) > -1 ? B.getExtension(X) : null;
|
|
133418
|
+
},
|
|
133405
133419
|
/**
|
|
133406
133420
|
* Sets the handlers that are called when WebGL context is lost or restored by the browser.
|
|
133407
133421
|
*
|
|
@@ -133452,7 +133466,7 @@ return new ` + this.key + `();
|
|
|
133452
133466
|
var N = function(X) {
|
|
133453
133467
|
X.createResource();
|
|
133454
133468
|
};
|
|
133455
|
-
l(this.glTextureWrappers, N), l(this.glBufferWrappers, N), l(this.glFramebufferWrappers, N), l(this.glProgramWrappers, N), l(this.glAttribLocationWrappers, N), l(this.glUniformLocationWrappers, N), this.createTemporaryTextures(), this.pipelines.restoreContext(), this.resize(this.game.scale.baseSize.width, this.game.scale.baseSize.height), this.
|
|
133469
|
+
l(this.glTextureWrappers, N), l(this.glBufferWrappers, N), l(this.glFramebufferWrappers, N), l(this.glProgramWrappers, N), l(this.glAttribLocationWrappers, N), l(this.glUniformLocationWrappers, N), this.createTemporaryTextures(), this.pipelines.restoreContext(), this.resize(this.game.scale.baseSize.width, this.game.scale.baseSize.height), this.setExtensions(), this.contextLost = !1, console && console.warn("WebGL Context restored. Renderer running again."), this.emit(r.RESTORE_WEBGL, this), B.preventDefault();
|
|
133456
133470
|
},
|
|
133457
133471
|
/**
|
|
133458
133472
|
* Create temporary WebGL textures to stop WebGL errors on macOS.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-phaserjs",
|
|
3
|
-
"version": "1.21.
|
|
4
|
-
"description": "A component library to integrate Phaser Framework
|
|
3
|
+
"version": "1.21.4",
|
|
4
|
+
"description": "A component library to integrate Phaser Framework with Vue.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"vue",
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"export:gen": "ctix build --config ../configuration/.ctirc-vue && ctix build --config ../configuration/.ctirc-ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@esposter/shared": "1.21.
|
|
36
|
-
"parse-tmx": "1.21.
|
|
35
|
+
"@esposter/shared": "1.21.4",
|
|
36
|
+
"parse-tmx": "1.21.4"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@esposter/configuration": "1.21.
|
|
39
|
+
"@esposter/configuration": "1.21.4"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"phaser": "^3.85.
|
|
42
|
+
"phaser": "^3.85.2",
|
|
43
43
|
"phaser3-rex-plugins": "^1.80.7",
|
|
44
44
|
"pinia": "^2.2.2",
|
|
45
45
|
"vue": "^3.5.6"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "268837f01629fb18bcd9f6a7b358aeb1e8fd4e96"
|
|
48
48
|
}
|