vue-phaserjs 2.26.0 → 2.28.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/dist/components/index.d.ts +2 -2
- package/dist/index.js +25 -25
- package/dist/test/setup.d.ts +1 -0
- package/dist/test/setupCanvas.d.ts +1 -0
- package/package.json +11 -11
- package/dist/index2.js +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as Zone } from './Zone.vue';
|
|
2
2
|
import { default as Video } from './Video.vue';
|
|
3
3
|
import { default as Triangle } from './Triangle.vue';
|
|
4
|
-
import { default as Tilemap } from './Tilemap.vue';
|
|
5
4
|
import { default as TileSprite } from './TileSprite.vue';
|
|
5
|
+
import { default as Tilemap } from './Tilemap.vue';
|
|
6
6
|
import { default as Text } from './Text.vue';
|
|
7
7
|
import { default as Star } from './Star.vue';
|
|
8
8
|
import { default as Sprite } from './Sprite.vue';
|
|
@@ -25,4 +25,4 @@ import { default as Container } from './Container.vue';
|
|
|
25
25
|
import { default as Circle } from './Circle.vue';
|
|
26
26
|
import { default as BitmapText } from './BitmapText.vue';
|
|
27
27
|
import { default as Arc } from './Arc.vue';
|
|
28
|
-
export { Zone, Video, Triangle,
|
|
28
|
+
export { Zone, Video, Triangle, TileSprite, Tilemap, Text, Star, Sprite, Scene, RenderTexture, Rectangle, Polygon, PathFollower, Particles, Nineslice, Line, IsoTriangle, IsoBox, Image, Graphics, Game, Ellipse, Curve, Container, Circle, BitmapText, Arc, };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, defineComponent as a, getCurrentInstance as o, inject as s, nextTick as c, onMounted as l, onUnmounted as u, openBlock as d, provide as f, ref as p, renderSlot as m, toValue as h, unref as ee, useTemplateRef as g, watch as _ } from "vue";
|
|
2
|
-
import { ID_SEPARATOR as v, InvalidOperationError as y, NotFoundError as te, NotInitializedError as b, Operation as x,
|
|
2
|
+
import { ID_SEPARATOR as v, InvalidOperationError as y, NotFoundError as te, NotInitializedError as b, Operation as x, checkIsPlainObject as ne, takeOne as re, toKebabCase as ie } from "@esposter/shared";
|
|
3
3
|
import ae from "phaser4-rex-plugins/plugins/clickoutside.js";
|
|
4
4
|
import { defineStore as oe, storeToRefs as S } from "pinia";
|
|
5
5
|
import { Animations as se, Cameras as C, Game as ce, Loader as w, Scene as le, Scenes as T, Tilemaps as ue, Tweens as de, Utils as fe } from "phaser";
|
|
@@ -392,24 +392,7 @@ var he = (e, t, n) => {
|
|
|
392
392
|
return e.onComplete?.(t, s), s;
|
|
393
393
|
}, () => e.configuration, t, Ne, e.immediate), (e, t) => null;
|
|
394
394
|
}
|
|
395
|
-
}), Fe =
|
|
396
|
-
__name: "Tilemap",
|
|
397
|
-
props: {
|
|
398
|
-
configuration: {},
|
|
399
|
-
onComplete: { type: Function }
|
|
400
|
-
},
|
|
401
|
-
setup(e) {
|
|
402
|
-
let t = O(), n = p();
|
|
403
|
-
return Ce((t) => {
|
|
404
|
-
n.value = t.make.tilemap(e.configuration), e.onComplete?.(t, n.value);
|
|
405
|
-
}), _(() => e.configuration.key, (r) => {
|
|
406
|
-
let i = P(t), a = n.value;
|
|
407
|
-
r ? (n.value = i.make.tilemap(e.configuration), e.onComplete?.(i, n.value)) : n.value = void 0, a && a.destroy();
|
|
408
|
-
}), u(() => {
|
|
409
|
-
n.value && n.value.destroy();
|
|
410
|
-
}), (e, t) => m(e.$slots, "default");
|
|
411
|
-
}
|
|
412
|
-
}), Ie = {
|
|
395
|
+
}), Fe = {
|
|
413
396
|
displayHeight: (e) => (t) => {
|
|
414
397
|
t !== void 0 && e.setDisplaySize(e.displayWidth, t);
|
|
415
398
|
},
|
|
@@ -422,10 +405,10 @@ var he = (e, t, n) => {
|
|
|
422
405
|
width: (e) => (t) => {
|
|
423
406
|
t !== void 0 && e.setSize(t, e.height);
|
|
424
407
|
}
|
|
425
|
-
}, X = { ...ke },
|
|
408
|
+
}, X = { ...ke }, Ie = {
|
|
426
409
|
...H,
|
|
427
410
|
...U,
|
|
428
|
-
...
|
|
411
|
+
...Fe,
|
|
429
412
|
...I,
|
|
430
413
|
...W,
|
|
431
414
|
...G,
|
|
@@ -437,7 +420,7 @@ var he = (e, t, n) => {
|
|
|
437
420
|
...z,
|
|
438
421
|
...B,
|
|
439
422
|
...V
|
|
440
|
-
},
|
|
423
|
+
}, Le = /* @__PURE__ */ a({
|
|
441
424
|
__name: "TileSprite",
|
|
442
425
|
props: {
|
|
443
426
|
configuration: {},
|
|
@@ -448,7 +431,24 @@ var he = (e, t, n) => {
|
|
|
448
431
|
return F((t) => {
|
|
449
432
|
let { frame: n, height: r, texture: i, width: a, x: o, y: s } = e.configuration, c = t.add.tileSprite(o ?? 0, s ?? 0, a ?? 0, r ?? 0, i, n);
|
|
450
433
|
return e.onComplete?.(t, c), c;
|
|
451
|
-
}, () => e.configuration, t,
|
|
434
|
+
}, () => e.configuration, t, Ie, e.immediate), (e, t) => null;
|
|
435
|
+
}
|
|
436
|
+
}), Re = /* @__PURE__ */ a({
|
|
437
|
+
__name: "Tilemap",
|
|
438
|
+
props: {
|
|
439
|
+
configuration: {},
|
|
440
|
+
onComplete: { type: Function }
|
|
441
|
+
},
|
|
442
|
+
setup(e) {
|
|
443
|
+
let t = O(), n = p();
|
|
444
|
+
return Ce((t) => {
|
|
445
|
+
n.value = t.make.tilemap(e.configuration), e.onComplete?.(t, n.value);
|
|
446
|
+
}), _(() => e.configuration.key, (r) => {
|
|
447
|
+
let i = P(t), a = n.value;
|
|
448
|
+
r ? (n.value = i.make.tilemap(e.configuration), e.onComplete?.(i, n.value)) : n.value = void 0, a && a.destroy();
|
|
449
|
+
}), u(() => {
|
|
450
|
+
n.value && n.value.destroy();
|
|
451
|
+
}), (e, t) => m(e.$slots, "default");
|
|
452
452
|
}
|
|
453
453
|
}), ze = oe("phaser/text", () => ({ defaultTextStyle: p() })), Be = {
|
|
454
454
|
padding: (e) => (t) => {
|
|
@@ -462,7 +462,7 @@ var he = (e, t, n) => {
|
|
|
462
462
|
},
|
|
463
463
|
...H,
|
|
464
464
|
...U,
|
|
465
|
-
...
|
|
465
|
+
...Fe,
|
|
466
466
|
...I,
|
|
467
467
|
...W,
|
|
468
468
|
...G,
|
|
@@ -1233,4 +1233,4 @@ var he = (e, t, n) => {
|
|
|
1233
1233
|
});
|
|
1234
1234
|
}), Jt = w.FileTypes.JSONFile, Yt = class extends Jt {};
|
|
1235
1235
|
//#endregion
|
|
1236
|
-
export { H as AlphaSetterMap, J as AlphaSingleSetterMap, We as AnimationSetterMap, Bt as Arc, It as ArcSetterMap, ke as BaseTextureSetterMap, zt as BitmapText, Rt as BitmapTextSetterMap, U as BlendModeSetterMap, Lt as Circle,
|
|
1236
|
+
export { H as AlphaSetterMap, J as AlphaSingleSetterMap, We as AnimationSetterMap, Bt as Arc, It as ArcSetterMap, ke as BaseTextureSetterMap, zt as BitmapText, Rt as BitmapTextSetterMap, U as BlendModeSetterMap, Lt as Circle, Fe as ComputedSizeSetterMap, Ft as Container, Pt as ContainerSetterMap, Nt as Curve, Mt as CurveSetterMap, I as DepthSetterMap, jt as Ellipse, At as EllipseSetterMap, A as ExternalSceneStore, W as FlipSetterMap, kt as Game, E as GameObjectEventMap, Te as GameObjectSetterMap, V as GlobalSetterMap, bt as Graphics, yt as GraphicsSetterMap, vt as Image, _t as ImageSetterMap, D as InjectionKeyMap, gt as IsoBox, ht as IsoBoxSetterMap, mt as IsoTriangle, pt as IsoTriangleSetterMap, k as Lifecycle, ft as Line, dt as LineSetterMap, G as MaskSetterMap, ut as Nineslice, lt as NinesliceSetterMap, L as OriginSetterMap, ct as Particles, st as ParticlesSetterMap, ot as PathFollower, it as PathFollowerComponentSetterMap, at as PathFollowerSetterMap, rt as Polygon, nt as PolygonSetterMap, tt as Rectangle, et as RectangleSetterMap, K as RenderNodesSetterMap, $e as RenderTexture, Qe as RenderTextureSetterMap, Ze as Scene, R as ScrollFactorSetterMap, Y as ShapeSetterMap, Z as SizeSetterMap, Ke as Sprite, Ge as SpriteSetterMap, Ue as Star, He as StarSetterMap, Et as TILEMAP_TILED_JSON_EXTERNAL_KEY, Ve as Text, Be as TextSetterMap, Ae as TextureCropSetterMap, X as TextureSetterMap, Le as TileSprite, Ie as TileSpriteSetterMap, Tt as TiledJSONExternalFile, Re as Tilemap, Yt as TilemapFile, St as TilesetFile, q as TintSetterMap, z as TransformSetterMap, Pe as Triangle, Ne as TriangleSetterMap, Ee as TweenSetterMap, Me as Video, je as VideoSetterMap, B as VisibleSetterMap, Oe as Zone, De as ZoneSetterMap, Xe as createSceneClass, _e as getEventName, we as getInitializeGameObjectLifecycleHook, P as getScene, be as getUpdateEvent, ve as isEvent, Ce as onCreate, Wt as onInit, M as onNextTick, Gt as onPreload, Vt as onShutdown, Kt as onUpdate, he as pushGameObject, j as pushListener, Ot as registerTiledJSONExternalLoader, Ye as resetLifecycleListeners, Q as runLifecycleListeners, qt as sleep, Ht as useAnimations, qe as useCameraStore, N as useGame, F as useInitializeGameObject, ye as useInitializeGameObjectEvents, xe as useInitializeGameObjectSetters, O as useInjectSceneKey, Je as useInputStore, Se as usePhaserStore, ze as useTextStore, Ut as useTween };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-phaserjs",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.28.0",
|
|
4
4
|
"description": "A component library to integrate Phaser Framework with Vue.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"phaser",
|
|
@@ -36,23 +36,23 @@
|
|
|
36
36
|
"typecheck": "vue-tsc"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@esposter/configuration": "2.
|
|
39
|
+
"@esposter/configuration": "2.28.0",
|
|
40
40
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
41
|
-
"@vue/test-utils": "^2.4.
|
|
41
|
+
"@vue/test-utils": "^2.4.11",
|
|
42
42
|
"ctix": "^2.8.1",
|
|
43
43
|
"type-fest": "^5.7.0",
|
|
44
44
|
"unplugin-auto-import": "^21.0.0",
|
|
45
|
-
"vite": "^8.0.
|
|
46
|
-
"vitest": "^4.1.
|
|
47
|
-
"vue-tsc": "^3.3.
|
|
45
|
+
"vite": "^8.0.16",
|
|
46
|
+
"vitest": "^4.1.8",
|
|
47
|
+
"vue-tsc": "^3.3.5"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@esposter/shared": "2.
|
|
51
|
-
"parse-tmx": "2.
|
|
50
|
+
"@esposter/shared": "2.27.0",
|
|
51
|
+
"parse-tmx": "2.27.0",
|
|
52
52
|
"phaser": "^4.1.0",
|
|
53
|
-
"phaser4-rex-plugins": "^4.0.
|
|
53
|
+
"phaser4-rex-plugins": "^4.0.7",
|
|
54
54
|
"pinia": "^3.0.4",
|
|
55
|
-
"vue": "^3.5.
|
|
55
|
+
"vue": "^3.5.38"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "c633ee2d9e27aa520d3487a179982249463032a0"
|
|
58
58
|
}
|
package/dist/index2.js
DELETED
|
File without changes
|