@number10/jsx-pixi 5.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.
Files changed (63) hide show
  1. package/LICENSE +667 -0
  2. package/README.md +46 -0
  3. package/dist/appliers/pixi-background.d.ts +13 -0
  4. package/dist/appliers/pixi-background.d.ts.map +1 -0
  5. package/dist/appliers/pixi-base.d.ts +10 -0
  6. package/dist/appliers/pixi-base.d.ts.map +1 -0
  7. package/dist/appliers/pixi-gesture.d.ts +17 -0
  8. package/dist/appliers/pixi-gesture.d.ts.map +1 -0
  9. package/dist/appliers/pixi-node.d.ts +59 -0
  10. package/dist/appliers/pixi-node.d.ts.map +1 -0
  11. package/dist/appliers/pixi-particles.d.ts +86 -0
  12. package/dist/appliers/pixi-particles.d.ts.map +1 -0
  13. package/dist/appliers/pixi-text.d.ts +16 -0
  14. package/dist/appliers/pixi-text.d.ts.map +1 -0
  15. package/dist/appliers/pixi-tooltip.d.ts +6 -0
  16. package/dist/appliers/pixi-tooltip.d.ts.map +1 -0
  17. package/dist/appliers/pixi-vector-draw.d.ts +11 -0
  18. package/dist/appliers/pixi-vector-draw.d.ts.map +1 -0
  19. package/dist/custom/Particles.d.ts +5 -0
  20. package/dist/custom/Particles.d.ts.map +1 -0
  21. package/dist/index.cjs +8317 -0
  22. package/dist/index.cjs.map +1 -0
  23. package/dist/index.d.ts +30 -0
  24. package/dist/index.d.ts.map +1 -0
  25. package/dist/index.js +8208 -0
  26. package/dist/index.js.map +1 -0
  27. package/dist/jsx-dev-runtime.cjs +9 -0
  28. package/dist/jsx-dev-runtime.d.ts +7 -0
  29. package/dist/jsx-dev-runtime.d.ts.map +1 -0
  30. package/dist/jsx-dev-runtime.js +2 -0
  31. package/dist/jsx-runtime.cjs +21 -0
  32. package/dist/jsx-runtime.d.ts +7 -0
  33. package/dist/jsx-runtime.d.ts.map +1 -0
  34. package/dist/jsx-runtime.js +2 -0
  35. package/dist/jsx-types.d.ts +10 -0
  36. package/dist/jsx-types.d.ts.map +1 -0
  37. package/dist/mount-pixi.d.ts +23 -0
  38. package/dist/mount-pixi.d.ts.map +1 -0
  39. package/dist/pixi-debug-snapshot.d.ts +37 -0
  40. package/dist/pixi-debug-snapshot.d.ts.map +1 -0
  41. package/dist/pixi-effects-bridge.d.ts +2 -0
  42. package/dist/pixi-effects-bridge.d.ts.map +1 -0
  43. package/dist/pixi-gesture-manager.d.ts +42 -0
  44. package/dist/pixi-gesture-manager.d.ts.map +1 -0
  45. package/dist/pixi-host-adapter.d.ts +21 -0
  46. package/dist/pixi-host-adapter.d.ts.map +1 -0
  47. package/dist/pixi-layout-bridge.d.ts +8 -0
  48. package/dist/pixi-layout-bridge.d.ts.map +1 -0
  49. package/dist/pixi-scene-backgrounds.d.ts +68 -0
  50. package/dist/pixi-scene-backgrounds.d.ts.map +1 -0
  51. package/dist/pixi-scheduler.d.ts +23 -0
  52. package/dist/pixi-scheduler.d.ts.map +1 -0
  53. package/dist/pixi-surface-adapter.d.ts +77 -0
  54. package/dist/pixi-surface-adapter.d.ts.map +1 -0
  55. package/dist/pixi-vdom-runtime.d.ts +2 -0
  56. package/dist/pixi-vdom-runtime.d.ts.map +1 -0
  57. package/dist/utils/normalize-size.d.ts +17 -0
  58. package/dist/utils/normalize-size.d.ts.map +1 -0
  59. package/dist/vector/PixiVectorDrawContext.d.ts +35 -0
  60. package/dist/vector/PixiVectorDrawContext.d.ts.map +1 -0
  61. package/dist/vector/index.d.ts +2 -0
  62. package/dist/vector/index.d.ts.map +1 -0
  63. package/package.json +95 -0
@@ -0,0 +1,9 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ require("./index.cjs");
3
+ let _number10_jsx_core_jsx_dev_runtime = require("@number10/jsx-core/jsx-dev-runtime");
4
+ Object.defineProperty(exports, "jsxDEV", {
5
+ enumerable: true,
6
+ get: function() {
7
+ return _number10_jsx_core_jsx_dev_runtime.jsxDEV;
8
+ }
9
+ });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * JSX dev runtime for @number10/jsx-pixi.
3
+ * Re-exports from @number10/jsx-core.
4
+ */
5
+ export type { VNode, VNodeLike } from '@number10/jsx-core';
6
+ export { jsxDEV } from '@number10/jsx-core/jsx-dev-runtime';
7
+ //# sourceMappingURL=jsx-dev-runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx-dev-runtime.d.ts","sourceRoot":"","sources":["../src/jsx-dev-runtime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { jsxDEV } from "@number10/jsx-core/jsx-dev-runtime";
2
+ export { jsxDEV };
@@ -0,0 +1,21 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ require("./index.cjs");
3
+ let _number10_jsx_core_jsx_runtime = require("@number10/jsx-core/jsx-runtime");
4
+ Object.defineProperty(exports, "Fragment", {
5
+ enumerable: true,
6
+ get: function() {
7
+ return _number10_jsx_core_jsx_runtime.Fragment;
8
+ }
9
+ });
10
+ Object.defineProperty(exports, "jsx", {
11
+ enumerable: true,
12
+ get: function() {
13
+ return _number10_jsx_core_jsx_runtime.jsx;
14
+ }
15
+ });
16
+ Object.defineProperty(exports, "jsxs", {
17
+ enumerable: true,
18
+ get: function() {
19
+ return _number10_jsx_core_jsx_runtime.jsxs;
20
+ }
21
+ });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * JSX runtime for @number10/jsx-pixi.
3
+ * Re-exports from @number10/jsx-core.
4
+ */
5
+ export type { VNode, VNodeLike } from '@number10/jsx-core';
6
+ export { Fragment, jsx, jsxs } from '@number10/jsx-core/jsx-runtime';
7
+ //# sourceMappingURL=jsx-runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx-runtime.d.ts","sourceRoot":"","sources":["../src/jsx-runtime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { Fragment, jsx, jsxs } from "@number10/jsx-core/jsx-runtime";
2
+ export { Fragment, jsx, jsxs };
@@ -0,0 +1,10 @@
1
+ import { ParticlesProps } from './appliers/pixi-particles';
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ particles: ParticlesProps;
6
+ }
7
+ }
8
+ }
9
+ export {};
10
+ //# sourceMappingURL=jsx-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx-types.d.ts","sourceRoot":"","sources":["../src/jsx-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,SAAS,EAAE,cAAc,CAAA;SAC1B;KACF;CACF;AAED,OAAO,EAAE,CAAA"}
@@ -0,0 +1,23 @@
1
+ import { VNodeLike } from '@number10/jsx-core';
2
+ type InferComponentProps<C> = C extends (props: infer P) => VNodeLike ? P : never;
3
+ interface MountPixiJSXBaseOptions {
4
+ target: HTMLElement;
5
+ backgroundColor?: string;
6
+ width?: number;
7
+ height?: number;
8
+ }
9
+ export interface MountPixiJSXOptions<P = Record<string, unknown>> {
10
+ component: (props: P) => VNodeLike;
11
+ target: MountPixiJSXBaseOptions['target'];
12
+ backgroundColor?: MountPixiJSXBaseOptions['backgroundColor'];
13
+ width?: MountPixiJSXBaseOptions['width'];
14
+ height?: MountPixiJSXBaseOptions['height'];
15
+ /** Custom props passed to the component (merged with viewport dimensions) */
16
+ props?: P;
17
+ }
18
+ export declare function mountPixiJSX<C extends (props: never) => VNodeLike>(options: MountPixiJSXBaseOptions & {
19
+ component: C;
20
+ props?: InferComponentProps<C>;
21
+ }): Promise<void>;
22
+ export {};
23
+ //# sourceMappingURL=mount-pixi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mount-pixi.d.ts","sourceRoot":"","sources":["../src/mount-pixi.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAInD,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,SAAS,GAAG,CAAC,GAAG,KAAK,CAAA;AAEjF,UAAU,uBAAuB;IAC/B,MAAM,EAAE,WAAW,CAAA;IACnB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC9D,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,SAAS,CAAA;IAClC,MAAM,EAAE,uBAAuB,CAAC,QAAQ,CAAC,CAAA;IACzC,eAAe,CAAC,EAAE,uBAAuB,CAAC,iBAAiB,CAAC,CAAA;IAC5D,KAAK,CAAC,EAAE,uBAAuB,CAAC,OAAO,CAAC,CAAA;IACxC,MAAM,CAAC,EAAE,uBAAuB,CAAC,QAAQ,CAAC,CAAA;IAC1C,6EAA6E;IAC7E,KAAK,CAAC,EAAE,CAAC,CAAA;CACV;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,KAAK,KAAK,SAAS,EAChE,OAAO,EAAE,uBAAuB,GAAG;IACjC,SAAS,EAAE,CAAC,CAAA;IACZ,KAAK,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAA;CAC/B,GACA,OAAO,CAAC,IAAI,CAAC,CAAA"}
@@ -0,0 +1,37 @@
1
+ import { DebugSnapshot } from '@number10/jsx-components';
2
+ import * as PIXI from 'pixi.js';
3
+ interface PixiMountStats {
4
+ totalMounts: number;
5
+ byType: Map<string, number>;
6
+ byParent: Map<unknown, number>;
7
+ byKey: Map<string, number>;
8
+ }
9
+ export declare function registerPixiMountStatsProvider(provider: () => PixiMountStats): void;
10
+ /**
11
+ * Collect a one-shot PixiJS debug snapshot.
12
+ * Can be called directly (no hook needed) — used by the Pixi surface adapter
13
+ * to wire the collector into the SurfaceContext for the generic useDebugSnapshot hook.
14
+ *
15
+ * @param app - Optional Pixi Application for viewport.
16
+ * When omitted, viewport is left undefined.
17
+ */
18
+ export declare function collectPixiSnapshot(app?: PIXI.Application): DebugSnapshot;
19
+ /**
20
+ * Hook that collects PixiJS debug metrics on an interval and returns
21
+ * a {@link DebugSnapshot} suitable for the portable {@link DebugPanel}.
22
+ *
23
+ * Uses the shared Pixi ticker for FPS/frame timing and the portable
24
+ * {@link getMountStats} from the Pixi VDOM runtime for mount statistics.
25
+ *
26
+ * **Limitations compared to the Phaser hook:**
27
+ * - `phaserVersion` reports the Pixi version instead
28
+ * - `viewport` is only available when the surface adapter provides the app
29
+ * (via {@link collectPixiSnapshot}) — the standalone hook omits it
30
+ * - Pixi metrics marked as missing are simply omitted from the snapshot
31
+ *
32
+ * @param intervalMs - Refresh interval in milliseconds (default: 250)
33
+ * @returns Current debug snapshot, refreshed on the given interval
34
+ */
35
+ export declare function usePixiDebugSnapshot(intervalMs?: number): DebugSnapshot;
36
+ export {};
37
+ //# sourceMappingURL=pixi-debug-snapshot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pixi-debug-snapshot.d.ts","sourceRoot":"","sources":["../src/pixi-debug-snapshot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAG7D,OAAO,KAAK,IAAI,MAAM,SAAS,CAAA;AAG/B,UAAU,cAAc;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC3B,QAAQ,EAAE,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;IAC9B,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC3B;AAWD,wBAAgB,8BAA8B,CAAC,QAAQ,EAAE,MAAM,cAAc,GAAG,IAAI,CAEnF;AAkCD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,WAAW,GAAG,aAAa,CAsBzE;AAMD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,SAAM,GAAG,aAAa,CAiBpE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=pixi-effects-bridge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pixi-effects-bridge.d.ts","sourceRoot":"","sources":["../src/pixi-effects-bridge.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
1
+ import { GestureProps } from '@number10/jsx-core';
2
+ import * as PIXI from 'pixi.js';
3
+ export declare class PixiGestureManager {
4
+ private entries;
5
+ private app;
6
+ private isListening;
7
+ private lastMoveX;
8
+ private lastMoveY;
9
+ private activeMoveEntry;
10
+ private readonly onWheelDomEvent;
11
+ constructor(app: PIXI.Application);
12
+ private getLayoutBox;
13
+ private isPointInRect;
14
+ private resolveContainerWorldRect;
15
+ private resolveClipRect;
16
+ private intersectRects;
17
+ private resolveWorldHitArea;
18
+ private resolveEntryMetrics;
19
+ private containsPoint;
20
+ registerContainer(container: PIXI.Container, props: GestureProps<PIXI.FederatedPointerEvent>): void;
21
+ hasContainer(container: PIXI.Container): boolean;
22
+ unregisterContainer(container: PIXI.Container): void;
23
+ updateContainer(container: PIXI.Container, props: GestureProps<PIXI.FederatedPointerEvent>): void;
24
+ updateHitArea(container: PIXI.Container): void;
25
+ private ensureListening;
26
+ private stopListening;
27
+ private onPointerDown;
28
+ private onPointerMove;
29
+ private onPointerUp;
30
+ private onPointerUpOutside;
31
+ private onWheel;
32
+ private handlePointerUp;
33
+ private hitTest;
34
+ private getSurfaceZIndex;
35
+ private compareDisplayOrder;
36
+ private isContainerVisible;
37
+ private getWheelGlobalPoint;
38
+ private createEventData;
39
+ private createWheelEventData;
40
+ }
41
+ export declare function getPixiGestureManager(app: PIXI.Application): PixiGestureManager;
42
+ //# sourceMappingURL=pixi-gesture-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pixi-gesture-manager.d.ts","sourceRoot":"","sources":["../src/pixi-gesture-manager.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAEV,YAAY,EAGb,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,IAAI,MAAM,SAAS,CAAA;AAoC/B,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,OAAO,CAAqB;IACpC,OAAO,CAAC,GAAG,CAAkB;IAC7B,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,SAAS,CAAI;IACrB,OAAO,CAAC,SAAS,CAAI;IACrB,OAAO,CAAC,eAAe,CAA4B;IACnD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA6C;gBAEjE,GAAG,EAAE,IAAI,CAAC,WAAW;IAIjC,OAAO,CAAC,YAAY;IAepB,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,yBAAyB;IAqCjC,OAAO,CAAC,eAAe;IA6CvB,OAAO,CAAC,cAAc;IAqBtB,OAAO,CAAC,mBAAmB;IAwB3B,OAAO,CAAC,mBAAmB;IAyB3B,OAAO,CAAC,aAAa;IAwBrB,iBAAiB,CACf,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,KAAK,EAAE,YAAY,CAAC,IAAI,CAAC,qBAAqB,CAAC,GAC9C,IAAI;IA+BP,YAAY,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,GAAG,OAAO;IAIhD,mBAAmB,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,GAAG,IAAI;IAepD,eAAe,CACb,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,KAAK,EAAE,YAAY,CAAC,IAAI,CAAC,qBAAqB,CAAC,GAC9C,IAAI;IAqBP,aAAa,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,GAAG,IAAI;IAU9C,OAAO,CAAC,eAAe;IAevB,OAAO,CAAC,aAAa;IAarB,OAAO,CAAC,aAAa;IAyDrB,OAAO,CAAC,aAAa;IA0BrB,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,kBAAkB;IAK1B,OAAO,CAAC,OAAO;IA6Bf,OAAO,CAAC,eAAe;IAsFvB,OAAO,CAAC,OAAO;IAqBf,OAAO,CAAC,gBAAgB;IAgBxB,OAAO,CAAC,mBAAmB;IAuC3B,OAAO,CAAC,kBAAkB;IAS1B,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,eAAe;IAgCvB,OAAO,CAAC,oBAAoB;CAoC7B;AAQD,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,GAAG,kBAAkB,CAO/E"}
@@ -0,0 +1,21 @@
1
+ import { HostAdapter, HostContext, HostNode, HostParent, NodeType, Props, SurfaceContext } from '@number10/jsx-core';
2
+ export declare class PixiHostAdapter implements HostAdapter {
3
+ create(type: NodeType, props: Props, ctx: HostContext): HostNode;
4
+ patch(type: NodeType, node: HostNode, prev: Props, next: Props, ctx: HostContext): void;
5
+ append(parent: HostParent, child: HostNode, _ctx: HostContext): void;
6
+ insertBefore(parent: HostParent, child: HostNode, before: HostNode | null, _ctx: HostContext): void;
7
+ remove(_parent: HostParent, child: HostNode, _ctx: HostContext): void;
8
+ getChildren(parent: HostParent): readonly HostNode[];
9
+ isAlive(target: HostNode | HostParent): boolean;
10
+ setPosition(node: HostNode, x: number, y: number): void;
11
+ setSize(node: HostNode, width: number, height: number): void;
12
+ setDepth(node: HostNode, depth: number): void;
13
+ setVisible(node: HostNode, visible: boolean): void;
14
+ setAlpha(node: HostNode, alpha: number): void;
15
+ getSurfaceContext(target: HostNode | HostParent): SurfaceContext;
16
+ /**
17
+ * Get the PIXI Application from a node's surface context.
18
+ */
19
+ private getPixiApp;
20
+ }
21
+ //# sourceMappingURL=pixi-host-adapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pixi-host-adapter.d.ts","sourceRoot":"","sources":["../src/pixi-host-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAEV,WAAW,EACX,WAAW,EACX,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,KAAK,EACL,cAAc,EAEf,MAAM,oBAAoB,CAAA;AA2L3B,qBAAa,eAAgB,YAAW,WAAW;IACjD,MAAM,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,WAAW,GAAG,QAAQ;IA4FhE,KAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,WAAW,GAAG,IAAI;IAyFvF,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI;IAMpE,YAAY,CACV,MAAM,EAAE,UAAU,EAClB,KAAK,EAAE,QAAQ,EACf,MAAM,EAAE,QAAQ,GAAG,IAAI,EACvB,IAAI,EAAE,WAAW,GAChB,IAAI;IAYP,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI;IAarE,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,QAAQ,EAAE;IAIpD,OAAO,CAAC,MAAM,EAAE,QAAQ,GAAG,UAAU,GAAG,OAAO;IAQ/C,WAAW,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI;IAMvD,OAAO,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAU5D,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAO7C,UAAU,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI;IAIlD,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAI7C,iBAAiB,CAAC,MAAM,EAAE,QAAQ,GAAG,UAAU,GAAG,cAAc;IAehE;;OAEG;IACH,OAAO,CAAC,UAAU;CASnB"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * PixiJS layout bridge — wires renderer-specific callbacks into the core layout engine.
3
+ *
4
+ * Must be imported before any layout operations (usually in the package index).
5
+ * Mirrors @number10/jsx-phaser's phaser-layout-bridge.ts.
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=pixi-layout-bridge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pixi-layout-bridge.d.ts","sourceRoot":"","sources":["../src/pixi-layout-bridge.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -0,0 +1,68 @@
1
+ /**
2
+ * PixiJS scene backgrounds — decorative background layers for PIXI.Application.
3
+ *
4
+ * Mirrors @number10/jsx-phaser's scene-backgrounds.ts but uses native PIXI APIs
5
+ * (Graphics, TilingSprite, Container, Ticker) instead of Phaser game objects.
6
+ *
7
+ * Backgrounds are added to `app.stage` at a configurable zIndex (default -1)
8
+ * so they render behind the VDOM overlay layer.
9
+ */
10
+ import * as PIXI from 'pixi.js';
11
+ /** Built-in decorative background variants. */
12
+ export type SceneBackgroundType = 'grid' | 'logo' | 'gradient' | 'particles' | 'none';
13
+ /** Optional animation applied to a scene background after it is created. */
14
+ export type BackgroundAnimation = 'lemniscate' | 'wave' | 'pulse' | 'rotate' | 'static';
15
+ /** Configuration for {@link addPixiSceneBackground}. */
16
+ export interface BackgroundConfig {
17
+ /** Background variant to create. Use `'none'` to disable background creation. */
18
+ type: SceneBackgroundType;
19
+ /** Animation preset applied to the created background. */
20
+ animation?: BackgroundAnimation;
21
+ /** Background opacity, usually between `0` and `1`. */
22
+ opacity?: number;
23
+ /** Primary color as a numeric color, for example `0x4a9eff`. */
24
+ color?: number;
25
+ /** Secondary color used by gradient backgrounds. */
26
+ colorSecondary?: number;
27
+ /** Texture key or URL used by the logo background. */
28
+ logoUrl?: string;
29
+ /** zIndex for the background container on app.stage. Default -1 (behind VDOM). */
30
+ zIndex?: number;
31
+ }
32
+ /** Handle returned by {@link addPixiSceneBackground}. */
33
+ export interface SceneBackgroundHandle {
34
+ /** Root container for the background. */
35
+ container: PIXI.Container;
36
+ /** Stops animations, destroys display objects, and removes from stage. */
37
+ destroy: () => void;
38
+ /** Manually resize the background to match a viewport size. */
39
+ resize: (width: number, height: number) => void;
40
+ }
41
+ /** Default scene background used when no explicit config is provided. */
42
+ export declare const DEFAULT_BACKGROUND: BackgroundConfig;
43
+ /**
44
+ * Adds a decorative background layer to a PIXI.Application stage.
45
+ *
46
+ * The background is added to `app.stage` at a configurable zIndex (default -1)
47
+ * so it renders behind the VDOM overlay. All display objects, ticker callbacks,
48
+ * and generated textures are owned by this helper and cleaned up on `destroy()`.
49
+ *
50
+ * @param app - PIXI.Application that receives the background.
51
+ * @param config - Background type, colors, opacity, animation, and optional logo texture.
52
+ * @returns A handle for manual resize and cleanup, or `null` when `config.type` is `'none'`.
53
+ *
54
+ * @example
55
+ * ```ts
56
+ * const handle = addPixiSceneBackground(app, {
57
+ * type: 'grid',
58
+ * animation: 'wave',
59
+ * color: 0x4a9eff,
60
+ * opacity: 0.12,
61
+ * })
62
+ *
63
+ * // Later, if the background should be removed:
64
+ * handle?.destroy()
65
+ * ```
66
+ */
67
+ export declare function addPixiSceneBackground(app: PIXI.Application, config?: BackgroundConfig): SceneBackgroundHandle | null;
68
+ //# sourceMappingURL=pixi-scene-backgrounds.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pixi-scene-backgrounds.d.ts","sourceRoot":"","sources":["../src/pixi-scene-backgrounds.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,IAAI,MAAM,SAAS,CAAA;AAM/B,+CAA+C;AAC/C,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,CAAA;AAErF,4EAA4E;AAC5E,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEvF,wDAAwD;AACxD,MAAM,WAAW,gBAAgB;IAC/B,iFAAiF;IACjF,IAAI,EAAE,mBAAmB,CAAA;IAEzB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,mBAAmB,CAAA;IAE/B,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,oDAAoD;IACpD,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB,kFAAkF;IAClF,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,yDAAyD;AACzD,MAAM,WAAW,qBAAqB;IACpC,yCAAyC;IACzC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAA;IAEzB,0EAA0E;IAC1E,OAAO,EAAE,MAAM,IAAI,CAAA;IAEnB,+DAA+D;IAC/D,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;CAChD;AAMD,yEAAyE;AACzE,eAAO,MAAM,kBAAkB,EAAE,gBAKhC,CAAA;AAkRD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,IAAI,CAAC,WAAW,EACrB,MAAM,GAAE,gBAAqC,GAC5C,qBAAqB,GAAG,IAAI,CA4G9B"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * PixiJS scheduler — provides frame/timer callbacks for the VDOM runtime.
3
+ */
4
+ import * as PIXI from 'pixi.js';
5
+ /**
6
+ * Creates a scheduler backed by a PIXI.Ticker.
7
+ * Provides requestAnimationFrame, onFrame, setTimeout, and setInterval.
8
+ */
9
+ export declare function createPixiScheduler(): {
10
+ requestAnimationFrame(callback: (dt: number) => void): {
11
+ cancel: () => PIXI.Ticker;
12
+ };
13
+ onFrame(callback: (dt: number) => void): {
14
+ cancel: () => PIXI.Ticker;
15
+ };
16
+ setTimeout(callback: () => void, delay: number): {
17
+ cancel: () => void;
18
+ };
19
+ setInterval(callback: () => void, interval: number): {
20
+ cancel: () => void;
21
+ };
22
+ };
23
+ //# sourceMappingURL=pixi-scheduler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pixi-scheduler.d.ts","sourceRoot":"","sources":["../src/pixi-scheduler.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,IAAI,MAAM,SAAS,CAAA;AAE/B;;;GAGG;AACH,wBAAgB,mBAAmB;oCAIC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI;;;sBAQlC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI;;;yBAKjB,MAAM,IAAI,SAAS,MAAM;;;0BAIxB,MAAM,IAAI,YAAY,MAAM;;;EAKrD"}
@@ -0,0 +1,77 @@
1
+ import { AtlasFrameInfo, CreateRootSurfaceOptions, FrameRect, RootSurface, Size, SurfaceAdapter, SurfaceTarget, TextureResolver, UpdateRootSurfaceOptions, VDOMOperations } from '@number10/jsx-core';
2
+ import * as PIXI from 'pixi.js';
3
+ /**
4
+ * Returns the total count of user-loaded textures in the Pixi cache.
5
+ * Used by {@link collectPixiSnapshot} for the `textureCount` metric.
6
+ */
7
+ export declare function getPixiTextureCount(): number;
8
+ export interface PixiAtlasFrameData {
9
+ rect: FrameRect;
10
+ rotated: boolean;
11
+ trimmed: boolean;
12
+ sourceSize?: Size | undefined;
13
+ spriteSourceRect?: {
14
+ x: number;
15
+ y: number;
16
+ w: number;
17
+ h: number;
18
+ } | undefined;
19
+ }
20
+ export declare function parsePixiAtlasFrames(data: unknown): Map<string, PixiAtlasFrameData>;
21
+ export declare function resolvePixiSourceRegion(baseRect: FrameRect, sourceRect: {
22
+ x: number;
23
+ y: number;
24
+ w: number;
25
+ h: number;
26
+ }): FrameRect;
27
+ export declare function resolvePixiTexture(key: string, frame?: string | number, sourceRect?: {
28
+ x: number;
29
+ y: number;
30
+ w: number;
31
+ h: number;
32
+ }): PIXI.Texture | undefined;
33
+ declare class PixiTextureResolver implements TextureResolver {
34
+ load(key: string, url: string): Promise<void>;
35
+ loadAtlas(key: string, imageUrl: string, dataUrl: string): Promise<void>;
36
+ loadSVG(key: string, svg: string, width: number, height: number): Promise<void>;
37
+ isLoaded(key: string): boolean;
38
+ getFrameNames(key: string): string[];
39
+ getFrameRect(key: string, frame: string): FrameRect | undefined;
40
+ getFrameInfo(key: string, frame: string): AtlasFrameInfo | undefined;
41
+ /**
42
+ * Returns the texture dimensions from the cache.
43
+ * Falls back to 0×0 if the texture is not loaded.
44
+ */
45
+ getTextureSize(key: string): Size | undefined;
46
+ }
47
+ declare const pixiTextureResolver: PixiTextureResolver;
48
+ export { pixiTextureResolver };
49
+ export declare class PixiSurfaceAdapter implements SurfaceAdapter {
50
+ /** Map of surface id → root surface for lookup */
51
+ private roots;
52
+ /** Portal root container per application — high-depth container above normal UI */
53
+ private portalRoots;
54
+ /** Renderer-bound VDOM operations — set by the runtime after construction */
55
+ private vdom;
56
+ /**
57
+ * Set the renderer's VDOM operations.
58
+ * Called by the Pixi VDOM runtime after construction to avoid circular imports.
59
+ */
60
+ setVDOM(ops: VDOMOperations): void;
61
+ createRoot(options: CreateRootSurfaceOptions): RootSurface;
62
+ updateRoot(surface: RootSurface, options: UpdateRootSurfaceOptions): void;
63
+ destroyRoot(surface: RootSurface): void;
64
+ isAlive(surface: RootSurface): boolean;
65
+ getRootByTarget(target: SurfaceTarget): RootSurface | undefined;
66
+ syncPortalEventBlocking(surface: RootSurface, blockEvents: boolean): void;
67
+ /**
68
+ * Get or create the high-depth portal root container for an application.
69
+ * This is the parent container for all portal overlays in that app.
70
+ */
71
+ private getOrCreatePortalRoot;
72
+ /**
73
+ * Clean up portal root container if no portal surfaces remain for its app.
74
+ */
75
+ private cleanupPortalRootIfEmpty;
76
+ }
77
+ //# sourceMappingURL=pixi-surface-adapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pixi-surface-adapter.d.ts","sourceRoot":"","sources":["../src/pixi-surface-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EACV,cAAc,EACd,wBAAwB,EAExB,SAAS,EAET,WAAW,EACX,IAAI,EACJ,cAAc,EAEd,aAAa,EACb,eAAe,EACf,wBAAwB,EACxB,cAAc,EACf,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,IAAI,MAAM,SAAS,CAAA;AA+E/B;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,SAAS,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;IAC7B,gBAAgB,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAA;CAC9E;AA8DD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CA2CnF;AAED,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,SAAS,EACnB,UAAU,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GACzD,SAAS,CAUX;AAgCD,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,MAAM,EACX,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EACvB,UAAU,CAAC,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAC1D,IAAI,CAAC,OAAO,GAAG,SAAS,CAoD1B;AAED,cAAM,mBAAoB,YAAW,eAAe;IAC5C,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAM7C,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA8BxE,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAiCrF,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAI9B,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE;IAIpC,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS;IAI/D,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS;IAcpE;;;OAGG;IACH,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;CAK9C;AAGD,QAAA,MAAM,mBAAmB,qBAA4B,CAAA;AACrD,OAAO,EAAE,mBAAmB,EAAE,CAAA;AAM9B,qBAAa,kBAAmB,YAAW,cAAc;IACvD,kDAAkD;IAClD,OAAO,CAAC,KAAK,CAAqC;IAElD,mFAAmF;IACnF,OAAO,CAAC,WAAW,CAA8C;IAEjE,6EAA6E;IAC7E,OAAO,CAAC,IAAI,CAA4B;IAExC;;;OAGG;IACH,OAAO,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI;IAIlC,UAAU,CAAC,OAAO,EAAE,wBAAwB,GAAG,WAAW;IA4E1D,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,wBAAwB,GAAG,IAAI;IAgBzE,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAcvC,OAAO,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO;IAKtC,eAAe,CAAC,MAAM,EAAE,aAAa,GAAG,WAAW,GAAG,SAAS;IAU/D,uBAAuB,CAAC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,GAAG,IAAI;IAwCzE;;;OAGG;IACH,OAAO,CAAC,qBAAqB;IAY7B;;OAEG;IACH,OAAO,CAAC,wBAAwB;CAcjC"}
@@ -0,0 +1,2 @@
1
+ export declare const pixiVDOMRuntime: import('@number10/jsx-core').VDOMRuntime;
2
+ //# sourceMappingURL=pixi-vdom-runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pixi-vdom-runtime.d.ts","sourceRoot":"","sources":["../src/pixi-vdom-runtime.ts"],"names":[],"mappings":"AAqFA,eAAO,MAAM,eAAe,0CAiE3B,CAAA"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Numeric size normalization utilities.
3
+ * Parses various size representations into numeric values.
4
+ */
5
+ /**
6
+ * Normalize a value to a number with a fallback.
7
+ * @param value - String (e.g. '16px', '16'), number, or undefined
8
+ * @param fallback - Default value if value is not a valid number
9
+ */
10
+ export declare function normalizeNumericSize(value: unknown, fallback: number): number;
11
+ /**
12
+ * Normalize a value to an optional number.
13
+ * @param value - String (e.g. '16px', '16'), number, or undefined
14
+ * @returns Parsed number or undefined
15
+ */
16
+ export declare function normalizeOptionalNumericSize(value: unknown): number | undefined;
17
+ //# sourceMappingURL=normalize-size.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize-size.d.ts","sourceRoot":"","sources":["../../src/utils/normalize-size.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAG7E;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAiB/E"}
@@ -0,0 +1,35 @@
1
+ import { VectorDrawContext } from '@number10/jsx-core';
2
+ import * as PIXI from 'pixi.js';
3
+ export declare class PixiVectorDrawContext implements VectorDrawContext {
4
+ readonly graphics: PIXI.Graphics;
5
+ private fill;
6
+ private stroke;
7
+ private bufferedSubpaths;
8
+ private currentSubpath;
9
+ private usesNativePathCommands;
10
+ constructor(graphics: PIXI.Graphics);
11
+ private resetBufferedPath;
12
+ private ensureSubpath;
13
+ private replayBufferedSubpath;
14
+ clear(): this;
15
+ fillStyle(color: number, alpha?: number): this;
16
+ lineStyle(width: number, color: number, alpha?: number): this;
17
+ arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): this;
18
+ fillCircle(x: number, y: number, radius: number): this;
19
+ strokeCircle(x: number, y: number, radius: number): this;
20
+ fillRect(x: number, y: number, width: number, height: number): this;
21
+ strokeRect(x: number, y: number, width: number, height: number): this;
22
+ fillRoundedRect(x: number, y: number, width: number, height: number, radius: number): this;
23
+ strokeRoundedRect(x: number, y: number, width: number, height: number, radius: number): this;
24
+ beginPath(): this;
25
+ moveTo(x: number, y: number): this;
26
+ lineTo(x: number, y: number): this;
27
+ closePath(): this;
28
+ fillPath(): this;
29
+ strokePath(): this;
30
+ lineBetween(x1: number, y1: number, x2: number, y2: number): this;
31
+ fillCircleStyled(x: number, y: number, radius: number, color: number, alpha: number): this;
32
+ strokeLine(x1: number, y1: number, x2: number, y2: number, width: number, color: number, alpha: number): this;
33
+ fillArc(cx: number, cy: number, r: number, startAngle: number, endAngle: number, color: number, alpha: number): this;
34
+ }
35
+ //# sourceMappingURL=PixiVectorDrawContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PixiVectorDrawContext.d.ts","sourceRoot":"","sources":["../../src/vector/PixiVectorDrawContext.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ export { PixiVectorDrawContext } from './PixiVectorDrawContext';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA"}
package/package.json ADDED
@@ -0,0 +1,95 @@
1
+ {
2
+ "name": "@number10/jsx-pixi",
3
+ "version": "5.0.0",
4
+ "type": "module",
5
+ "description": "PixiJS 8 renderer adapter for @number10/jsx-core — full VDOM runtime, gestures, effects, backgrounds",
6
+ "author": "Michael Rieck (Michael--) <mr@number10.de>",
7
+ "license": "GPL-3.0-only",
8
+ "keywords": [
9
+ "pixi",
10
+ "pixijs",
11
+ "pixi-js",
12
+ "pixi8",
13
+ "jsx",
14
+ "tsx",
15
+ "typescript",
16
+ "vdom",
17
+ "hooks",
18
+ "components",
19
+ "renderer",
20
+ "game-engine",
21
+ "game-development",
22
+ "game-ui",
23
+ "game-ui-framework",
24
+ "html5-game",
25
+ "declarative",
26
+ "react-like",
27
+ "ui",
28
+ "ui-framework",
29
+ "webgl"
30
+ ],
31
+ "main": "./dist/index.cjs",
32
+ "module": "./dist/index.js",
33
+ "types": "./dist/index.d.ts",
34
+ "source": "./src/index.ts",
35
+ "exports": {
36
+ ".": {
37
+ "types": "./dist/index.d.ts",
38
+ "import": "./dist/index.js",
39
+ "require": "./dist/index.cjs"
40
+ },
41
+ "./jsx-runtime": {
42
+ "types": "./dist/jsx-runtime.d.ts",
43
+ "source": "./src/jsx-runtime.ts",
44
+ "import": "./dist/jsx-runtime.js",
45
+ "require": "./dist/jsx-runtime.cjs"
46
+ },
47
+ "./jsx-dev-runtime": {
48
+ "types": "./dist/jsx-dev-runtime.d.ts",
49
+ "source": "./src/jsx-dev-runtime.ts",
50
+ "import": "./dist/jsx-dev-runtime.js",
51
+ "require": "./dist/jsx-dev-runtime.cjs"
52
+ }
53
+ },
54
+ "files": [
55
+ "dist",
56
+ "README.md"
57
+ ],
58
+ "publishConfig": {
59
+ "access": "public"
60
+ },
61
+ "repository": {
62
+ "type": "git",
63
+ "url": "https://github.com/Michael--/phaserjsx",
64
+ "directory": "packages/pixi"
65
+ },
66
+ "homepage": "https://phaserjsx.number10.de/",
67
+ "bugs": {
68
+ "url": "https://github.com/Michael--/phaserjsx/issues"
69
+ },
70
+ "dependencies": {
71
+ "@preact/signals-core": "^1.14.2",
72
+ "@number10/jsx-components": "5.0.0",
73
+ "@number10/jsx-core": "5.0.0"
74
+ },
75
+ "peerDependencies": {
76
+ "pixi.js": "^8.19.0"
77
+ },
78
+ "peerDependenciesMeta": {
79
+ "pixi.js": {
80
+ "optional": false
81
+ }
82
+ },
83
+ "devDependencies": {
84
+ "pixi.js": "^8.19.0",
85
+ "typescript": "^6.0.3",
86
+ "vite": "^8.0.13",
87
+ "vite-plugin-dts": "^5.0.2",
88
+ "vitest": "^4.1.6"
89
+ },
90
+ "scripts": {
91
+ "build": "vite build",
92
+ "typecheck": "tsc --noEmit",
93
+ "test": "vitest run"
94
+ }
95
+ }