melonjs 19.9.0 → 19.9.1
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/build/application/application.d.ts.map +1 -1
- package/build/application/resize.d.ts.map +1 -1
- package/build/camera/camera2d.d.ts.map +1 -1
- package/build/index.js +95 -44
- package/build/index.js.map +2 -2
- package/build/particles/particle.d.ts.map +1 -1
- package/build/particles/settings.d.ts +3 -1
- package/build/particles/settings.d.ts.map +1 -1
- package/build/renderable/container.d.ts.map +1 -1
- package/build/renderable/entity/entity.d.ts.map +1 -1
- package/build/renderable/frameAnimation.d.ts.map +1 -1
- package/build/renderable/nineslicesprite.d.ts.map +1 -1
- package/build/renderable/sprite.d.ts +3 -1
- package/build/renderable/sprite.d.ts.map +1 -1
- package/build/renderable/text/bitmaptext.d.ts.map +1 -1
- package/build/renderable/text/bitmaptextdata.d.ts.map +1 -1
- package/build/renderable/text/text.d.ts.map +1 -1
- package/build/state/stage.d.ts.map +1 -1
- package/build/video/texture/cache.d.ts.map +1 -1
- package/build/video/webgl/shadereffect.d.ts.map +1 -1
- package/build/video/webgl/webgl_renderer.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../src/application/application.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AAGpD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AA8BxC,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AAOnD,OAAO,KAAK,EACX,mBAAmB,EACnB,2BAA2B,EAC3B,MAAM,eAAe,CAAC;AAgEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,OAAO,OAAO,WAAW;IAC/B;;OAEG;IACH,aAAa,EAAG,WAAW,CAAC;IAE5B;;OAEG;IACH,QAAQ,EAAG,QAAQ,CAAC;IAEpB;;OAEG;IACH,QA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AE,MAAM,EAAE,KAAK,GAAE,OAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/D,cAAc;IACd,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKzB,cAAc;IACd,OAAO,IAAI,IAAI;IASf,cAAc;IACd,QAAQ,IAAI,IAAI;IAShB;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IA+C1B;;OAEG;IACH,IAAI,IAAI,IAAI;CAqBZ;AAED;;;;;GAKG;AACH,eAAO,IAAI,IAAI,EAAE,WAAW,CAAC;AAE7B;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,WAAW,QAE9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resize.d.ts","sourceRoot":"","sources":["../../src/application/resize.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAkChD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"resize.d.ts","sourceRoot":"","sources":["../../src/application/resize.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAkChD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,CAyGhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"camera2d.d.ts","sourceRoot":"","sources":["../../src/camera/camera2d.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAgB,MAAM,qBAAqB,CAAC;AAC7D,OAAO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CAAC,EAAE,QAAQ,GAAG,QAAQ;IAS1D;;;;;;OAMG;IACH,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,QAAQ,GAAG,QAAQ;IAS1D;;;;;;;;OAQG;IACH,0BAA0B,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;IA0BpD;;;OAGG;IACH,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;IAMhC;;;OAGG;IACM,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;IA+H7D;;;;;;OAMG;IACH,4BAA4B,CAC3B,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GAChB,IAAI;IAIP;;;;;OAKG;IACH,6BAA6B,CAC5B,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GAChB,IAAI;IAIP;;OAEG;IACM,OAAO,IAAI,IAAI;CAkBxB"}
|
package/build/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* melonJS Game Engine - 19.9.
|
|
2
|
+
* melonJS Game Engine - 19.9.1
|
|
3
3
|
* http://www.melonjs.org
|
|
4
4
|
* melonjs is licensed under the MIT License.
|
|
5
5
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -15250,9 +15250,9 @@ var BitmapTextData = class {
|
|
|
15250
15250
|
}
|
|
15251
15251
|
const paddingValues = padding[0].split("=")[1].split(",");
|
|
15252
15252
|
this.padTop = parseFloat(paddingValues[0]);
|
|
15253
|
-
this.
|
|
15253
|
+
this.padRight = parseFloat(paddingValues[1]);
|
|
15254
15254
|
this.padBottom = parseFloat(paddingValues[2]);
|
|
15255
|
-
this.
|
|
15255
|
+
this.padLeft = parseFloat(paddingValues[3]);
|
|
15256
15256
|
this.lineHeight = parseFloat(getValueFromPair(lines[1], /lineHeight=\d+/g));
|
|
15257
15257
|
const baseLine = parseFloat(getValueFromPair(lines[1], /base=\d+/g));
|
|
15258
15258
|
for (let i = 4; i < lines.length; i++) {
|
|
@@ -15308,9 +15308,9 @@ var BitmapTextData = class {
|
|
|
15308
15308
|
const common = attrs(commonTag[0]);
|
|
15309
15309
|
const pad = (info.get("padding") ?? "0,0,0,0").split(",");
|
|
15310
15310
|
this.padTop = parseFloat(pad[0]);
|
|
15311
|
-
this.
|
|
15311
|
+
this.padRight = parseFloat(pad[1]);
|
|
15312
15312
|
this.padBottom = parseFloat(pad[2]);
|
|
15313
|
-
this.
|
|
15313
|
+
this.padLeft = parseFloat(pad[3]);
|
|
15314
15314
|
this.lineHeight = num(common, "lineHeight");
|
|
15315
15315
|
const baseLine = num(common, "base");
|
|
15316
15316
|
for (const m of fontData.matchAll(/<char\b[^>]*>/g)) {
|
|
@@ -17795,6 +17795,11 @@ var ShaderEffect = class _ShaderEffect {
|
|
|
17795
17795
|
* water.setTime(me.timer.getTime() / 1000);
|
|
17796
17796
|
*/
|
|
17797
17797
|
setTexture(name, image, repeat = "no-repeat") {
|
|
17798
|
+
if (typeof image?.videoWidth === "number") {
|
|
17799
|
+
throw new TypeError(
|
|
17800
|
+
"ShaderEffect.setTexture does not support HTMLVideoElement (extra textures upload once and would freeze on the first frame)"
|
|
17801
|
+
);
|
|
17802
|
+
}
|
|
17798
17803
|
if (typeof this._shader === "undefined" || this.destroyed === true) {
|
|
17799
17804
|
return this;
|
|
17800
17805
|
}
|
|
@@ -18381,7 +18386,7 @@ var Camera2d = class extends Renderable {
|
|
|
18381
18386
|
if (target.x - this.pos.x > this.deadzone.right) {
|
|
18382
18387
|
targetX = Math.min(
|
|
18383
18388
|
target.x - this.deadzone.right,
|
|
18384
|
-
this.bounds.
|
|
18389
|
+
this.bounds.right - this.width
|
|
18385
18390
|
);
|
|
18386
18391
|
} else if (target.x - this.pos.x < this.deadzone.pos.x) {
|
|
18387
18392
|
targetX = Math.max(target.x - this.deadzone.pos.x, this.bounds.left);
|
|
@@ -18394,7 +18399,7 @@ var Camera2d = class extends Renderable {
|
|
|
18394
18399
|
if (target.y - this.pos.y > this.deadzone.bottom) {
|
|
18395
18400
|
targetY = Math.min(
|
|
18396
18401
|
target.y - this.deadzone.bottom,
|
|
18397
|
-
this.bounds.
|
|
18402
|
+
this.bounds.bottom - this.height
|
|
18398
18403
|
);
|
|
18399
18404
|
} else if (target.y - this.pos.y < this.deadzone.pos.y) {
|
|
18400
18405
|
targetY = Math.max(target.y - this.deadzone.pos.y, this.bounds.top);
|
|
@@ -18591,8 +18596,8 @@ var Camera2d = class extends Renderable {
|
|
|
18591
18596
|
moveTo(x, y) {
|
|
18592
18597
|
const _x = this.pos.x;
|
|
18593
18598
|
const _y = this.pos.y;
|
|
18594
|
-
this.pos.x = clamp(x, this.bounds.left, this.bounds.
|
|
18595
|
-
this.pos.y = clamp(y, this.bounds.top, this.bounds.
|
|
18599
|
+
this.pos.x = clamp(x, this.bounds.left, this.bounds.right - this.width);
|
|
18600
|
+
this.pos.y = clamp(y, this.bounds.top, this.bounds.bottom - this.height);
|
|
18596
18601
|
if (_x !== this.pos.x || _y !== this.pos.y) {
|
|
18597
18602
|
this.isDirty = true;
|
|
18598
18603
|
}
|
|
@@ -18955,6 +18960,8 @@ var Camera2d = class extends Renderable {
|
|
|
18955
18960
|
* @ignore
|
|
18956
18961
|
*/
|
|
18957
18962
|
destroy() {
|
|
18963
|
+
off(GAME_RESET, this.reset, this);
|
|
18964
|
+
off(CANVAS_ONRESIZE, this.resize, this);
|
|
18958
18965
|
if (this._colorMatrixEffect) {
|
|
18959
18966
|
if (typeof this._colorMatrixEffect.destroy === "function") {
|
|
18960
18967
|
this._colorMatrixEffect.destroy();
|
|
@@ -19143,7 +19150,7 @@ var FrameAnimation = class {
|
|
|
19143
19150
|
*/
|
|
19144
19151
|
setCurrentAnimation(name, resetAnim, preserve_dt = false) {
|
|
19145
19152
|
if (typeof this.anim[name] !== "undefined") {
|
|
19146
|
-
if (!this.isCurrentAnimation(name)) {
|
|
19153
|
+
if (!this.isCurrentAnimation(name) || this._animDone) {
|
|
19147
19154
|
this.current.name = name;
|
|
19148
19155
|
this.current.length = this.anim[this.current.name].length;
|
|
19149
19156
|
const opts = parseAnimationOptions(resetAnim);
|
|
@@ -19305,6 +19312,10 @@ var FrameAnimation = class {
|
|
|
19305
19312
|
}
|
|
19306
19313
|
}
|
|
19307
19314
|
duration = this.getAnimationFrameObjectByIndex(this.current.idx).delay;
|
|
19315
|
+
if (duration <= 0) {
|
|
19316
|
+
this.dt = 0;
|
|
19317
|
+
break;
|
|
19318
|
+
}
|
|
19308
19319
|
}
|
|
19309
19320
|
}
|
|
19310
19321
|
return changed;
|
|
@@ -19420,9 +19431,18 @@ var Sprite = class extends Renderable {
|
|
|
19420
19431
|
if (this.animationpause) {
|
|
19421
19432
|
this.image.pause();
|
|
19422
19433
|
}
|
|
19423
|
-
this.removeStatePauseListener = on(
|
|
19434
|
+
this.removeStatePauseListener = on(STATE_PAUSE, () => {
|
|
19424
19435
|
this.image.pause();
|
|
19425
19436
|
});
|
|
19437
|
+
this._lastVideoFrameVersion = -1;
|
|
19438
|
+
if (typeof this.image.requestVideoFrameCallback === "function") {
|
|
19439
|
+
this.image.version ??= 0;
|
|
19440
|
+
const tick = () => {
|
|
19441
|
+
this.image.version = (this.image.version ?? -1) + 1;
|
|
19442
|
+
this._videoFrameHandle = this.image.requestVideoFrameCallback(tick);
|
|
19443
|
+
};
|
|
19444
|
+
this._videoFrameHandle = this.image.requestVideoFrameCallback(tick);
|
|
19445
|
+
}
|
|
19426
19446
|
this.image.onended = () => {
|
|
19427
19447
|
if (typeof this.onended === "function") {
|
|
19428
19448
|
if (!this.image.loop) {
|
|
@@ -19709,7 +19729,7 @@ var Sprite = class extends Renderable {
|
|
|
19709
19729
|
* this.setCurrentAnimation("walk");
|
|
19710
19730
|
*
|
|
19711
19731
|
* // set "walk" animation if it is not the current animation
|
|
19712
|
-
* if (this.isCurrentAnimation("walk")) {
|
|
19732
|
+
* if (!this.isCurrentAnimation("walk")) {
|
|
19713
19733
|
* this.setCurrentAnimation("walk");
|
|
19714
19734
|
* }
|
|
19715
19735
|
*
|
|
@@ -19861,7 +19881,14 @@ var Sprite = class extends Renderable {
|
|
|
19861
19881
|
} else if (this.image.paused) {
|
|
19862
19882
|
this.image.play();
|
|
19863
19883
|
}
|
|
19864
|
-
|
|
19884
|
+
if (this.image.version === void 0) {
|
|
19885
|
+
if (!this.image.paused) {
|
|
19886
|
+
this.isDirty = true;
|
|
19887
|
+
}
|
|
19888
|
+
} else if (this.image.version !== this._lastVideoFrameVersion) {
|
|
19889
|
+
this._lastVideoFrameVersion = this.image.version;
|
|
19890
|
+
this.isDirty = true;
|
|
19891
|
+
}
|
|
19865
19892
|
} else {
|
|
19866
19893
|
this._frameAnim.update(dt);
|
|
19867
19894
|
}
|
|
@@ -19957,6 +19984,10 @@ var Sprite = class extends Renderable {
|
|
|
19957
19984
|
this.offset = void 0;
|
|
19958
19985
|
if (this.isVideo) {
|
|
19959
19986
|
this.removeStatePauseListener();
|
|
19987
|
+
if (typeof this._videoFrameHandle !== "undefined") {
|
|
19988
|
+
this.image.cancelVideoFrameCallback(this._videoFrameHandle);
|
|
19989
|
+
delete this.image.version;
|
|
19990
|
+
}
|
|
19960
19991
|
this.image.onended = void 0;
|
|
19961
19992
|
this.image.pause();
|
|
19962
19993
|
this.image.currentTime = 0;
|
|
@@ -20205,6 +20236,11 @@ var Stage = class {
|
|
|
20205
20236
|
* @ignore
|
|
20206
20237
|
*/
|
|
20207
20238
|
destroy(app) {
|
|
20239
|
+
this.cameras.forEach((camera) => {
|
|
20240
|
+
if (camera !== default_camera && !this.settings.cameras.includes(camera)) {
|
|
20241
|
+
camera.destroy();
|
|
20242
|
+
}
|
|
20243
|
+
});
|
|
20208
20244
|
this.cameras.clear();
|
|
20209
20245
|
this.lights.forEach((light) => {
|
|
20210
20246
|
if (!light.ancestor) {
|
|
@@ -23544,9 +23580,9 @@ var Container = class _Container extends Renderable {
|
|
|
23544
23580
|
* @returns {Renderable} child
|
|
23545
23581
|
*/
|
|
23546
23582
|
getNextChild(child) {
|
|
23547
|
-
const index = this.getChildren().indexOf(child)
|
|
23548
|
-
if (index
|
|
23549
|
-
return this.getChildAt(index);
|
|
23583
|
+
const index = this.getChildren().indexOf(child);
|
|
23584
|
+
if (index !== -1 && index + 1 < this.getChildren().length) {
|
|
23585
|
+
return this.getChildAt(index + 1);
|
|
23550
23586
|
}
|
|
23551
23587
|
return void 0;
|
|
23552
23588
|
}
|
|
@@ -23968,7 +24004,7 @@ var Container = class _Container extends Renderable {
|
|
|
23968
24004
|
*/
|
|
23969
24005
|
destroy() {
|
|
23970
24006
|
this.reset();
|
|
23971
|
-
super.destroy(arguments);
|
|
24007
|
+
super.destroy(...arguments);
|
|
23972
24008
|
colorPool.release(this.backgroundColor);
|
|
23973
24009
|
}
|
|
23974
24010
|
/**
|
|
@@ -23992,12 +24028,13 @@ var Container = class _Container extends Renderable {
|
|
|
23992
24028
|
if (isFloating) {
|
|
23993
24029
|
globalFloatingCounter++;
|
|
23994
24030
|
}
|
|
23995
|
-
|
|
24031
|
+
let inViewport = false;
|
|
23996
24032
|
cameras.forEach((camera) => {
|
|
23997
24033
|
if (camera.isVisible(obj, isFloating)) {
|
|
23998
|
-
|
|
24034
|
+
inViewport = true;
|
|
23999
24035
|
}
|
|
24000
24036
|
});
|
|
24037
|
+
obj.inViewport = inViewport;
|
|
24001
24038
|
this.isDirty |= (obj.inViewport || obj.alwaysUpdate) && obj.update(dt);
|
|
24002
24039
|
if (globalFloatingCounter > 0) {
|
|
24003
24040
|
globalFloatingCounter--;
|
|
@@ -27300,7 +27337,7 @@ var Text = class extends Renderable {
|
|
|
27300
27337
|
if (!Array.isArray(value)) {
|
|
27301
27338
|
this._text = ("" + value).split("\n");
|
|
27302
27339
|
} else {
|
|
27303
|
-
this._text = value;
|
|
27340
|
+
this._text = value.slice();
|
|
27304
27341
|
}
|
|
27305
27342
|
}
|
|
27306
27343
|
if (this._text.length > 0 && this.wordWrapWidth > 0) {
|
|
@@ -27725,7 +27762,7 @@ var BitmapText = class extends Renderable {
|
|
|
27725
27762
|
if (!Array.isArray(value)) {
|
|
27726
27763
|
this._text = ("" + value).split("\n");
|
|
27727
27764
|
} else {
|
|
27728
|
-
this._text = value;
|
|
27765
|
+
this._text = value.slice();
|
|
27729
27766
|
}
|
|
27730
27767
|
this.isDirty = true;
|
|
27731
27768
|
}
|
|
@@ -32269,14 +32306,6 @@ var TextureCache = class {
|
|
|
32269
32306
|
*/
|
|
32270
32307
|
get(image, atlas) {
|
|
32271
32308
|
let entry = this.cache.get(image)[0];
|
|
32272
|
-
if (typeof entry !== "undefined" && typeof atlas !== "undefined") {
|
|
32273
|
-
this.cache.forEach((value, key) => {
|
|
32274
|
-
const _atlas = value.getAtlas();
|
|
32275
|
-
if (key === image && _atlas.width === atlas.framewidth && _atlas.height === atlas.frameheight) {
|
|
32276
|
-
entry = value;
|
|
32277
|
-
}
|
|
32278
|
-
});
|
|
32279
|
-
}
|
|
32280
32309
|
if (typeof entry === "undefined") {
|
|
32281
32310
|
if (!atlas) {
|
|
32282
32311
|
atlas = createAtlas(
|
|
@@ -34000,7 +34029,7 @@ var Particle = class extends Renderable {
|
|
|
34000
34029
|
this.life = this.life > dt ? this.life - dt : 0;
|
|
34001
34030
|
if (this.alive && this.life <= 0) {
|
|
34002
34031
|
const parent = this.ancestor;
|
|
34003
|
-
parent.
|
|
34032
|
+
parent.removeChildNow(this, true);
|
|
34004
34033
|
particlePool.release(this);
|
|
34005
34034
|
this.alive = false;
|
|
34006
34035
|
return false;
|
|
@@ -34310,7 +34339,7 @@ var Entity = class _Entity extends Renderable {
|
|
|
34310
34339
|
this.renderable.destroy.apply(this.renderable, arguments);
|
|
34311
34340
|
this.children.splice(0, 1);
|
|
34312
34341
|
}
|
|
34313
|
-
super.destroy(arguments);
|
|
34342
|
+
super.destroy(...arguments);
|
|
34314
34343
|
}
|
|
34315
34344
|
/**
|
|
34316
34345
|
* onDeactivateEvent Notification function
|
|
@@ -34672,10 +34701,10 @@ var NineSliceSprite = class extends Sprite {
|
|
|
34672
34701
|
const sy = g_offset.y + frame_offset.y;
|
|
34673
34702
|
const corner_width = this.insetx || w / 4;
|
|
34674
34703
|
const corner_height = this.insety || h / 4;
|
|
34675
|
-
const image_center_width = w -
|
|
34676
|
-
const image_center_height = h -
|
|
34677
|
-
const target_center_width = this.nss_width -
|
|
34678
|
-
const target_center_height = this.nss_height -
|
|
34704
|
+
const image_center_width = w - corner_width * 2;
|
|
34705
|
+
const image_center_height = h - corner_height * 2;
|
|
34706
|
+
const target_center_width = this.nss_width - corner_width * 2;
|
|
34707
|
+
const target_center_height = this.nss_height - corner_height * 2;
|
|
34679
34708
|
sColX[0] = sx;
|
|
34680
34709
|
sColX[1] = sx + corner_width;
|
|
34681
34710
|
sColX[2] = sx + w - corner_width;
|
|
@@ -34918,7 +34947,7 @@ var Trigger = class extends Renderable {
|
|
|
34918
34947
|
};
|
|
34919
34948
|
|
|
34920
34949
|
// src/version.ts
|
|
34921
|
-
var version = "19.9.
|
|
34950
|
+
var version = "19.9.1";
|
|
34922
34951
|
|
|
34923
34952
|
// src/system/bootstrap.ts
|
|
34924
34953
|
var initialized = false;
|
|
@@ -39249,8 +39278,16 @@ var WebGLRenderer = class extends Renderer {
|
|
|
39249
39278
|
this.currentBatcher.useShader(shader);
|
|
39250
39279
|
shader._prepareTextures?.(this.currentBatcher);
|
|
39251
39280
|
}
|
|
39252
|
-
const reupload = typeof image.videoWidth !== "undefined";
|
|
39253
39281
|
const texture = this.cache.get(image);
|
|
39282
|
+
let reupload = false;
|
|
39283
|
+
if (typeof image.videoWidth !== "undefined") {
|
|
39284
|
+
if (image.version === void 0 || useLit) {
|
|
39285
|
+
reupload = true;
|
|
39286
|
+
} else if (texture._videoFrameVersion !== image.version) {
|
|
39287
|
+
texture._videoFrameVersion = image.version;
|
|
39288
|
+
reupload = true;
|
|
39289
|
+
}
|
|
39290
|
+
}
|
|
39254
39291
|
const uvs = texture.getUVs(sx, sy, sw, sh);
|
|
39255
39292
|
if (useLit) {
|
|
39256
39293
|
this.currentBatcher.addQuad(
|
|
@@ -44091,13 +44128,23 @@ function onresize(game2) {
|
|
|
44091
44128
|
canvasMaxWidth = parseInt(style.maxWidth, 10) || Infinity;
|
|
44092
44129
|
canvasMaxHeight = parseInt(style.maxHeight, 10) || Infinity;
|
|
44093
44130
|
}
|
|
44131
|
+
let measuredElement;
|
|
44094
44132
|
if (typeof game2.settings.scaleTarget !== "undefined") {
|
|
44095
|
-
|
|
44133
|
+
measuredElement = game2.settings.scaleTarget;
|
|
44134
|
+
nodeBounds = getElementBounds(measuredElement);
|
|
44096
44135
|
} else {
|
|
44097
|
-
|
|
44098
|
-
|
|
44099
|
-
|
|
44100
|
-
|
|
44136
|
+
measuredElement = getParentElement(game2.getParentElement());
|
|
44137
|
+
nodeBounds = getElementBounds(measuredElement);
|
|
44138
|
+
}
|
|
44139
|
+
let availWidth = nodeBounds.width;
|
|
44140
|
+
let availHeight = nodeBounds.height;
|
|
44141
|
+
if (typeof measuredElement === "object" && typeof globalThis.getComputedStyle === "function") {
|
|
44142
|
+
const style = globalThis.getComputedStyle(measuredElement);
|
|
44143
|
+
availWidth -= (parseFloat(style.paddingLeft) || 0) + (parseFloat(style.paddingRight) || 0) + (parseFloat(style.borderLeftWidth) || 0) + (parseFloat(style.borderRightWidth) || 0);
|
|
44144
|
+
availHeight -= (parseFloat(style.paddingTop) || 0) + (parseFloat(style.paddingBottom) || 0) + (parseFloat(style.borderTopWidth) || 0) + (parseFloat(style.borderBottomWidth) || 0);
|
|
44145
|
+
}
|
|
44146
|
+
const _max_width = Math.min(canvasMaxWidth, Math.max(0, availWidth));
|
|
44147
|
+
const _max_height = Math.min(canvasMaxHeight, Math.max(0, availHeight));
|
|
44101
44148
|
const screenRatio = _max_width / _max_height;
|
|
44102
44149
|
if (settings.scaleMethod === "fill-min" && screenRatio > renderer2.designRatio || settings.scaleMethod === "fill-max" && screenRatio < renderer2.designRatio || settings.scaleMethod === "flex-width") {
|
|
44103
44150
|
const sWidth = Math.min(canvasMaxWidth, settings.height * screenRatio);
|
|
@@ -44354,7 +44401,11 @@ var Application = class {
|
|
|
44354
44401
|
on(WINDOW_ONORIENTATION_CHANGE, () => {
|
|
44355
44402
|
onresize(this);
|
|
44356
44403
|
});
|
|
44357
|
-
this.
|
|
44404
|
+
const canvas = this.renderer.getCanvas();
|
|
44405
|
+
if (canvas.style.display === "") {
|
|
44406
|
+
canvas.style.display = "block";
|
|
44407
|
+
}
|
|
44408
|
+
this.parentElement.appendChild(canvas);
|
|
44358
44409
|
if (platform.isMobile) {
|
|
44359
44410
|
enableSwipe(false);
|
|
44360
44411
|
}
|
|
@@ -45162,7 +45213,7 @@ var DropTarget = class extends Renderable {
|
|
|
45162
45213
|
* @param {string} checkMethod - the checkmethod (defaults to CHECKMETHOD_OVERLAP)
|
|
45163
45214
|
*/
|
|
45164
45215
|
setCheckMethod(checkMethod) {
|
|
45165
|
-
if (typeof this.getBounds()[
|
|
45216
|
+
if (typeof this.getBounds()[checkMethod] === "function") {
|
|
45166
45217
|
this.checkMethod = checkMethod;
|
|
45167
45218
|
}
|
|
45168
45219
|
}
|