@simpludify/web 0.1.3 → 0.1.5

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.
@@ -1,6 +1,7 @@
1
- import type { CanvasUI, PointerRouting } from "@simpludify/core";
1
+ import type { CanvasUI, PointerRouting, VirtualInput } from "@simpludify/core";
2
2
  import { type PreparedScene, type RendererPort, type Scene } from "@simpludify/core";
3
3
  import { type CanvasPresentation } from "./canvas-visual.js";
4
+ import { type VirtualInputPresentation } from "./virtual-input-visual.js";
4
5
  export declare class PixiRenderer implements RendererPort {
5
6
  private readonly host;
6
7
  private readonly background;
@@ -8,6 +9,13 @@ export declare class PixiRenderer implements RendererPort {
8
9
  private readonly app;
9
10
  private readonly pendingUITextKeys;
10
11
  private readonly canvasPresentations;
12
+ private readonly virtualPresentations;
13
+ get virtualInputDiagnostics(): {
14
+ presentations: number;
15
+ controls: number;
16
+ visible: number;
17
+ };
18
+ prepareVirtualInput(input: VirtualInput): VirtualInputPresentation;
11
19
  get canvasDiagnostics(): {
12
20
  presentations: number;
13
21
  nodes: number;
package/dist/style.css CHANGED
@@ -5,7 +5,7 @@
5
5
  height: 100%;
6
6
  min-height: 20rem;
7
7
  overflow: hidden;
8
- background: var(--s-background);
8
+ background-color: var(--s-background);
9
9
  color: var(--s-text);
10
10
  font-family: var(--s-font);
11
11
  outline-offset: -4px;
@@ -42,7 +42,7 @@
42
42
  padding: 1rem;
43
43
  max-width: min(100%, 30rem);
44
44
  min-width: 0;
45
- background: var(--s-surface);
45
+ background-color: var(--s-surface);
46
46
  border: 1px solid color-mix(in srgb, var(--s-muted), transparent 65%);
47
47
  border-radius: 1rem;
48
48
  box-shadow: 0 0.5rem 2rem #0002;
@@ -78,7 +78,7 @@
78
78
  font: inherit;
79
79
  font-weight: 650;
80
80
  color: var(--s-background);
81
- background: var(--s-accent);
81
+ background-color: var(--s-accent);
82
82
  border: 0;
83
83
  border-radius: 0.6rem;
84
84
  padding: 0.7rem 1rem;
@@ -0,0 +1,22 @@
1
+ import { type VirtualInput } from "@simpludify/core";
2
+ import { Container, Graphics } from "pixi.js";
3
+ export interface VirtualInputPresentation {
4
+ update(): void;
5
+ dispose(): void;
6
+ }
7
+ /** Screen-space presentation only. The existing BrowserPointer is the sole event adapter. */
8
+ export declare class VirtualInputVisual implements VirtualInputPresentation {
9
+ private readonly input;
10
+ private readonly release;
11
+ readonly display: Container<import("pixi.js").ContainerChild>;
12
+ private readonly entries;
13
+ private dead;
14
+ private readonly off;
15
+ constructor(input: VirtualInput, release: (graphics: Graphics) => void);
16
+ get diagnostics(): {
17
+ controls: number;
18
+ visible: number;
19
+ };
20
+ update(): void;
21
+ dispose(): void;
22
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simpludify/web",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -14,7 +14,7 @@
14
14
  "./package.json": "./package.json"
15
15
  },
16
16
  "dependencies": {
17
- "@simpludify/core": "0.1.3",
17
+ "@simpludify/core": "0.1.5",
18
18
  "pixi.js": "8.22.0"
19
19
  },
20
20
  "description": "Browser host, PixiJS rendering and input for the experimental Simpludify 2D engine.",