@ignifx/editor-host 0.17.0 → 0.18.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/grid.js +32 -5
- package/dist/grid.js.map +1 -1
- package/dist/index.d.ts +38 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +119 -31
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
- package/skills/editor-host/SKILL.md +7 -4
package/dist/grid.js
CHANGED
|
@@ -13,10 +13,14 @@ import { addToScene, createGridMaterial, createGround, createPlane, createTextur
|
|
|
13
13
|
const GRID_MESH_NAME = "ignifx-editor-grid";
|
|
14
14
|
/** The name of the 2D grid's mesh in the render overlay. */
|
|
15
15
|
const SCREEN_GRID_MESH_NAME = "ignifx-editor-grid-2d";
|
|
16
|
+
/** The name of the 3D grid's mesh in the render overlay, drawn when `setGrid` asks for `overlay`. */
|
|
17
|
+
const OVERLAY_GRID_MESH_NAME = "ignifx-editor-grid-overlay";
|
|
16
18
|
/** How visible the minor lines are next to the major ones, `0..1`. */
|
|
17
19
|
const MINOR_VISIBILITY = .4;
|
|
18
20
|
/** The 3D grid's line opacity; below 1, Lite's grid material leaves the space between lines clear. */
|
|
19
21
|
const GROUND_OPACITY = .8;
|
|
22
|
+
/** The 3D grid's line opacity over the scene: it hides nothing, so it stays fainter than the depth-tested one. */
|
|
23
|
+
const OVERLAY_GROUND_OPACITY = .5;
|
|
20
24
|
/** The 2D grid's line opacity: it draws over the sprites, so it stays faint. */
|
|
21
25
|
const SCREEN_OPACITY = .35;
|
|
22
26
|
/** The fade texture's side, in texels. */
|
|
@@ -25,7 +29,8 @@ const FADE_SIZE = 64;
|
|
|
25
29
|
const FADE_START = .12;
|
|
26
30
|
/**
|
|
27
31
|
* Builds the grid of one scene view: a ground plane in the render scene, depth-tested against the
|
|
28
|
-
* document's meshes,
|
|
32
|
+
* document's meshes, the same plane in the render overlay, drawn over them (`setGrid`'s
|
|
33
|
+
* `overlay`), and a screen plane in the render overlay, over the 2D view's sprites.
|
|
29
34
|
*
|
|
30
35
|
* @remarks
|
|
31
36
|
* Lite's grid material works in object space, so each plane is a unit square scaled to the
|
|
@@ -60,6 +65,22 @@ function createEditorGrid(handles, overlay) {
|
|
|
60
65
|
opacityTexture: fade,
|
|
61
66
|
backFaceCulling: false
|
|
62
67
|
}), handles.scene, GROUND_OPACITY);
|
|
68
|
+
const overlayGround = makePlane(createGround(engine, {
|
|
69
|
+
width: 1,
|
|
70
|
+
height: 1,
|
|
71
|
+
subdivisions: 1
|
|
72
|
+
}), OVERLAY_GRID_MESH_NAME, createGridMaterial({
|
|
73
|
+
name: OVERLAY_GRID_MESH_NAME,
|
|
74
|
+
lineColor: [
|
|
75
|
+
.6,
|
|
76
|
+
.6,
|
|
77
|
+
.6
|
|
78
|
+
],
|
|
79
|
+
minorUnitVisibility: MINOR_VISIBILITY,
|
|
80
|
+
opacity: OVERLAY_GROUND_OPACITY,
|
|
81
|
+
opacityTexture: fade,
|
|
82
|
+
backFaceCulling: false
|
|
83
|
+
}), overlay.lite.scene, OVERLAY_GROUND_OPACITY);
|
|
63
84
|
const screen = makePlane(createPlane(engine, { size: 1 }), SCREEN_GRID_MESH_NAME, createGridMaterial({
|
|
64
85
|
name: SCREEN_GRID_MESH_NAME,
|
|
65
86
|
lineColor: [
|
|
@@ -75,13 +96,15 @@ function createEditorGrid(handles, overlay) {
|
|
|
75
96
|
return {
|
|
76
97
|
place(placement) {
|
|
77
98
|
if (isDisposed) return;
|
|
78
|
-
|
|
99
|
+
const isGround = placement?.plane === "ground";
|
|
100
|
+
ground.mesh.visible = isGround && !placement.overlay;
|
|
101
|
+
overlayGround.mesh.visible = isGround && placement.overlay;
|
|
79
102
|
screen.mesh.visible = placement?.plane === "screen";
|
|
80
103
|
if (placement === null) return;
|
|
81
104
|
const { centerX, centerY, extent } = placement;
|
|
82
|
-
const target = placement.plane === "
|
|
105
|
+
const target = placement.plane === "screen" ? screen : placement.overlay ? overlayGround : ground;
|
|
83
106
|
if (placement.plane === "ground") {
|
|
84
|
-
target.mesh.position.set(centerX,
|
|
107
|
+
target.mesh.position.set(centerX, placement.height, centerY);
|
|
85
108
|
target.mesh.scaling.set(extent, 1, extent);
|
|
86
109
|
setShaderUniform(target.material, "gridOffset", [
|
|
87
110
|
centerX / extent,
|
|
@@ -107,7 +130,11 @@ function createEditorGrid(handles, overlay) {
|
|
|
107
130
|
dispose() {
|
|
108
131
|
if (isDisposed) return;
|
|
109
132
|
isDisposed = true;
|
|
110
|
-
for (const plane of [
|
|
133
|
+
for (const plane of [
|
|
134
|
+
ground,
|
|
135
|
+
overlayGround,
|
|
136
|
+
screen
|
|
137
|
+
]) {
|
|
111
138
|
removeFromScene(plane.scene, plane.mesh);
|
|
112
139
|
disposeMeshGpu(plane.mesh);
|
|
113
140
|
}
|
package/dist/grid.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.js","names":[],"sources":["../src/lite/grid.ts"],"sourcesContent":["/**\n * The scene view's grid (engine ask E31), drawn with Babylon Lite's `createGridMaterial`. Every Lite\n * claim here was read from the pinned `@babylonjs/lite` 1.34 `index.d.ts` and\n * `lib/material/grid/grid-material.js`.\n *\n * The host loads this module with `import()` once a scene view has a canvas, so the grid's shader\n * code stays out of the host's first chunk (`CONSTITUTION.md` §2.5).\n */\n\nimport {\n addToScene,\n createGridMaterial,\n createGround,\n createPlane,\n createTexture2DFromPixels,\n disposeMeshGpu,\n releaseTexture,\n removeFromScene,\n setShaderUniform,\n} from \"@babylonjs/lite\";\nimport { EDITOR_ONLY_METADATA_KEY } from \"@ignifx/core\";\nimport type { GridPlacement } from \"../scene/grid.js\";\nimport type { Mesh, SceneContext, ShaderMaterial } from \"@babylonjs/lite\";\nimport type { AppLiteHandles, RenderOverlay } from \"@ignifx/core\";\n\n/** The name of the 3D grid's mesh in the render scene. */\nexport const GRID_MESH_NAME = \"ignifx-editor-grid\";\n\n/** The name of the 2D grid's mesh in the render overlay. */\nexport const SCREEN_GRID_MESH_NAME = \"ignifx-editor-grid-2d\";\n\n/** How visible the minor lines are next to the major ones, `0..1`. */\nconst MINOR_VISIBILITY = 0.4;\n\n/** The 3D grid's line opacity; below 1, Lite's grid material leaves the space between lines clear. */\nconst GROUND_OPACITY = 0.8;\n\n/** The 2D grid's line opacity: it draws over the sprites, so it stays faint. */\nconst SCREEN_OPACITY = 0.35;\n\n/** The fade texture's side, in texels. */\nconst FADE_SIZE = 64;\n\n/** The fade starts this far from the centre, as a fraction of the side. */\nconst FADE_START = 0.12;\n\n/** The fade ends this far from the centre: the grid is gone before the square's edge. */\nconst FADE_END = 0.48;\n\n/** The grid of one scene view. */\nexport interface EditorGridView {\n /**\n * Draws the grid where a placement says, or hides it.\n *\n * @param placement - This frame's grid, or `null` to hide it.\n */\n place(placement: GridPlacement | null): void;\n /** Removes the grid's meshes and releases their GPU resources. Calling it again does nothing. */\n dispose(): void;\n}\n\n/** One drawn plane: its mesh, material and the scene that holds it. */\ninterface GridPlane {\n readonly mesh: Mesh;\n readonly material: ShaderMaterial;\n readonly scene: SceneContext;\n readonly opacity: number;\n}\n\n/**\n * Builds the grid of one scene view: a ground plane in the render scene, depth-tested against the\n * document's meshes, and a screen plane in the render overlay, over the 2D view's sprites.\n *\n * @remarks\n * Lite's grid material works in object space, so each plane is a unit square scaled to the\n * placement's extent, with `gridRatio = step / extent` and `gridOffset = centre / extent`: the lines\n * stay on world multiples of the step wherever the square moves. Neither mesh is pickable, casts\n * shadows or belongs to an entity, so no pick, selection or `readBack` reaches it, and both carry\n * core's `EDITOR_ONLY_METADATA_KEY`, so no render texture (the game view) draws them.\n *\n * @param handles - The app's Lite engine and render scene (`app.lite`).\n * @param overlay - The view's open render overlay; the grid does not own it.\n * @returns The grid, hidden until the first {@link EditorGridView.place}.\n */\nexport function createEditorGrid(handles: AppLiteHandles, overlay: RenderOverlay): EditorGridView {\n const { engine } = handles;\n const fade = createTexture2DFromPixels(engine, radialFade(), FADE_SIZE, FADE_SIZE, {\n minFilter: \"linear\",\n magFilter: \"linear\",\n });\n const ground = makePlane(\n createGround(engine, { width: 1, height: 1, subdivisions: 1 }),\n GRID_MESH_NAME,\n createGridMaterial({\n name: GRID_MESH_NAME,\n lineColor: [0.6, 0.6, 0.6],\n minorUnitVisibility: MINOR_VISIBILITY,\n opacity: GROUND_OPACITY,\n opacityTexture: fade,\n backFaceCulling: false,\n }),\n handles.scene,\n GROUND_OPACITY,\n );\n const screen = makePlane(\n createPlane(engine, { size: 1 }),\n SCREEN_GRID_MESH_NAME,\n createGridMaterial({\n name: SCREEN_GRID_MESH_NAME,\n lineColor: [0.75, 0.75, 0.75],\n minorUnitVisibility: MINOR_VISIBILITY,\n opacity: SCREEN_OPACITY,\n backFaceCulling: false,\n }),\n overlay.lite.scene,\n SCREEN_OPACITY,\n );\n let isDisposed = false;\n\n return {\n place(placement: GridPlacement | null): void {\n if (isDisposed) {\n return;\n }\n ground.mesh.visible = placement?.plane === \"ground\";\n screen.mesh.visible = placement?.plane === \"screen\";\n if (placement === null) {\n return;\n }\n const { centerX, centerY, extent } = placement;\n const target = placement.plane === \"ground\" ? ground : screen;\n if (placement.plane === \"ground\") {\n target.mesh.position.set(centerX, 0, centerY);\n target.mesh.scaling.set(extent, 1, extent);\n setShaderUniform(target.material, \"gridOffset\", [centerX / extent, 0, centerY / extent]);\n } else {\n target.mesh.position.set(centerX, centerY, 0);\n target.mesh.scaling.set(extent, extent, 1);\n setShaderUniform(target.material, \"gridOffset\", [centerX / extent, centerY / extent, 0]);\n }\n setShaderUniform(target.material, \"gridControl\", [\n placement.step / extent,\n placement.majorEvery,\n MINOR_VISIBILITY,\n target.opacity,\n ]);\n },\n dispose(): void {\n if (isDisposed) {\n return;\n }\n isDisposed = true;\n for (const plane of [ground, screen]) {\n removeFromScene(plane.scene, plane.mesh);\n disposeMeshGpu(plane.mesh);\n }\n releaseTexture(fade);\n },\n };\n}\n\n/**\n * Names a grid mesh, gives it its material, keeps it out of picks and shadows, and adds it hidden.\n *\n * @param mesh - The unit square.\n * @param name - The mesh's name.\n * @param material - Its grid material.\n * @param scene - The scene that draws it.\n * @param opacity - The material's line opacity, written back with every placement.\n * @returns The plane.\n */\nfunction makePlane(\n mesh: Mesh,\n name: string,\n material: ShaderMaterial,\n scene: SceneContext,\n opacity: number,\n): GridPlane {\n mesh.name = name;\n mesh.material = material;\n mesh.pickable = false;\n mesh.receiveShadows = false;\n mesh.visible = false;\n // Drawn in the scene view only, never in a render texture such as the Game panel's view.\n mesh.metadata = { ...mesh.metadata, [EDITOR_ONLY_METADATA_KEY]: true };\n addToScene(scene, mesh);\n return { mesh, material, scene, opacity };\n}\n\n/**\n * A square of white texels whose alpha is 1 near the centre and falls smoothly to 0 before the\n * edge, for the grid material's `opacityTexture`.\n *\n * @returns `FADE_SIZE²` RGBA texels.\n */\nfunction radialFade(): Uint8Array {\n const data = new Uint8Array(FADE_SIZE * FADE_SIZE * 4);\n for (let row = 0; row < FADE_SIZE; row += 1) {\n for (let col = 0; col < FADE_SIZE; col += 1) {\n const u = (col + 0.5) / FADE_SIZE - 0.5;\n const v = (row + 0.5) / FADE_SIZE - 0.5;\n const t = Math.min(1, Math.max(0, (Math.hypot(u, v) - FADE_START) / (FADE_END - FADE_START)));\n const alpha = 1 - t * t * (3 - 2 * t);\n const index = (row * FADE_SIZE + col) * 4;\n data[index] = 255;\n data[index + 1] = 255;\n data[index + 2] = 255;\n data[index + 3] = Math.round(alpha * 255);\n }\n }\n return data;\n}\n"],"mappings":";;;;;;;;;;;;AA0BA,MAAa,iBAAiB;;AAG9B,MAAa,wBAAwB;;AAGrC,MAAM,mBAAmB;;AAGzB,MAAM,iBAAiB;;AAGvB,MAAM,iBAAiB;;AAGvB,MAAM,YAAY;;AAGlB,MAAM,aAAa;;;;;;;;;;;;;;;;AAwCnB,SAAgB,iBAAiB,SAAyB,SAAwC;CAChG,MAAM,EAAE,WAAW;CACnB,MAAM,OAAO,0BAA0B,QAAQ,WAAW,GAAG,WAAW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UAAgB;GACd,IAAI,YACF;GAEF,aAAa;GACb,KAAK,MAAM,SAAS,CAAC,QAAQ,MAAM,GAAG;IACpC,gBAAgB,MAAM,OAAO,MAAM,IAAI;IACvC,eAAe,MAAM,IAAI;GAC3B;GACA,eAAe,IAAI;EACrB;CACF;AACF;;;;;;;;;;;AAYA,SAAS,UACP,MACA,MACA,UACA,OACA,SACW;CACX,KAAK,OAAO;CACZ,KAAK,WAAW;CAChB,KAAK,WAAW;CAChB,KAAK,iBAAiB;CACtB,KAAK,UAAU;CAEf,KAAK,WAAW;EAAE,GAAG,KAAK;GAAW,2BAA2B;CAAK;CACrE,WAAW,OAAO,IAAI;CACtB,OAAO;EAAE;EAAM;EAAU;EAAO;CAAQ;AAC1C;;;;;;;AAQA,SAAS,aAAyB;CAChC,MAAM,uBAAO,IAAI,WAAW,KAAyB;CACrD,KAAK,IAAI,MAAM,GAAG,MAAM,WAAW,OAAO,GACxC,KAAK,IAAI,MAAM,GAAG,MAAM,WAAW,OAAO,GAAG;EAC3C,MAAM,KAAK,MAAM,MAAO,YAAY;EACpC,MAAM,KAAK,MAAM,MAAO,YAAY;EACpC,MAAM,IAAI,KAAK,IAAI,GAAG,KAAK,IAAI,IAAI,KAAK,MAAM,GAAG,CAAC,IAAI,cAAe,GAAsB,CAAC;EAC5F,MAAM,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI;EACnC,MAAM,SAAS,MAAM,YAAY,OAAO;EACxC,KAAK,SAAS;EACd,KAAK,QAAQ,KAAK;EAClB,KAAK,QAAQ,KAAK;EAClB,KAAK,QAAQ,KAAK,KAAK,MAAM,QAAQ,GAAG;CAC1C;CAEF,OAAO;AACT"}
|
|
1
|
+
{"version":3,"file":"grid.js","names":[],"sources":["../src/lite/grid.ts"],"sourcesContent":["/**\n * The scene view's grid (engine ask E31), drawn with Babylon Lite's `createGridMaterial`. Every Lite\n * claim here was read from the pinned `@babylonjs/lite` 1.34 `index.d.ts` and\n * `lib/material/grid/grid-material.js`.\n *\n * The host loads this module with `import()` once a scene view has a canvas, so the grid's shader\n * code stays out of the host's first chunk (`CONSTITUTION.md` §2.5).\n */\n\nimport {\n addToScene,\n createGridMaterial,\n createGround,\n createPlane,\n createTexture2DFromPixels,\n disposeMeshGpu,\n releaseTexture,\n removeFromScene,\n setShaderUniform,\n} from \"@babylonjs/lite\";\nimport { EDITOR_ONLY_METADATA_KEY } from \"@ignifx/core\";\nimport type { GridPlacement } from \"../scene/grid.js\";\nimport type { Mesh, SceneContext, ShaderMaterial } from \"@babylonjs/lite\";\nimport type { AppLiteHandles, RenderOverlay } from \"@ignifx/core\";\n\n/** The name of the 3D grid's mesh in the render scene. */\nexport const GRID_MESH_NAME = \"ignifx-editor-grid\";\n\n/** The name of the 2D grid's mesh in the render overlay. */\nexport const SCREEN_GRID_MESH_NAME = \"ignifx-editor-grid-2d\";\n\n/** The name of the 3D grid's mesh in the render overlay, drawn when `setGrid` asks for `overlay`. */\nexport const OVERLAY_GRID_MESH_NAME = \"ignifx-editor-grid-overlay\";\n\n/** How visible the minor lines are next to the major ones, `0..1`. */\nconst MINOR_VISIBILITY = 0.4;\n\n/** The 3D grid's line opacity; below 1, Lite's grid material leaves the space between lines clear. */\nconst GROUND_OPACITY = 0.8;\n\n/** The 3D grid's line opacity over the scene: it hides nothing, so it stays fainter than the depth-tested one. */\nconst OVERLAY_GROUND_OPACITY = 0.5;\n\n/** The 2D grid's line opacity: it draws over the sprites, so it stays faint. */\nconst SCREEN_OPACITY = 0.35;\n\n/** The fade texture's side, in texels. */\nconst FADE_SIZE = 64;\n\n/** The fade starts this far from the centre, as a fraction of the side. */\nconst FADE_START = 0.12;\n\n/** The fade ends this far from the centre: the grid is gone before the square's edge. */\nconst FADE_END = 0.48;\n\n/** The grid of one scene view. */\nexport interface EditorGridView {\n /**\n * Draws the grid where a placement says, or hides it.\n *\n * @param placement - This frame's grid, or `null` to hide it.\n */\n place(placement: GridPlacement | null): void;\n /** Removes the grid's meshes and releases their GPU resources. Calling it again does nothing. */\n dispose(): void;\n}\n\n/** One drawn plane: its mesh, material and the scene that holds it. */\ninterface GridPlane {\n readonly mesh: Mesh;\n readonly material: ShaderMaterial;\n readonly scene: SceneContext;\n readonly opacity: number;\n}\n\n/**\n * Builds the grid of one scene view: a ground plane in the render scene, depth-tested against the\n * document's meshes, the same plane in the render overlay, drawn over them (`setGrid`'s\n * `overlay`), and a screen plane in the render overlay, over the 2D view's sprites.\n *\n * @remarks\n * Lite's grid material works in object space, so each plane is a unit square scaled to the\n * placement's extent, with `gridRatio = step / extent` and `gridOffset = centre / extent`: the lines\n * stay on world multiples of the step wherever the square moves. Neither mesh is pickable, casts\n * shadows or belongs to an entity, so no pick, selection or `readBack` reaches it, and both carry\n * core's `EDITOR_ONLY_METADATA_KEY`, so no render texture (the game view) draws them.\n *\n * @param handles - The app's Lite engine and render scene (`app.lite`).\n * @param overlay - The view's open render overlay; the grid does not own it.\n * @returns The grid, hidden until the first {@link EditorGridView.place}.\n */\nexport function createEditorGrid(handles: AppLiteHandles, overlay: RenderOverlay): EditorGridView {\n const { engine } = handles;\n const fade = createTexture2DFromPixels(engine, radialFade(), FADE_SIZE, FADE_SIZE, {\n minFilter: \"linear\",\n magFilter: \"linear\",\n });\n const ground = makePlane(\n createGround(engine, { width: 1, height: 1, subdivisions: 1 }),\n GRID_MESH_NAME,\n createGridMaterial({\n name: GRID_MESH_NAME,\n lineColor: [0.6, 0.6, 0.6],\n minorUnitVisibility: MINOR_VISIBILITY,\n opacity: GROUND_OPACITY,\n opacityTexture: fade,\n backFaceCulling: false,\n }),\n handles.scene,\n GROUND_OPACITY,\n );\n const overlayGround = makePlane(\n createGround(engine, { width: 1, height: 1, subdivisions: 1 }),\n OVERLAY_GRID_MESH_NAME,\n createGridMaterial({\n name: OVERLAY_GRID_MESH_NAME,\n lineColor: [0.6, 0.6, 0.6],\n minorUnitVisibility: MINOR_VISIBILITY,\n opacity: OVERLAY_GROUND_OPACITY,\n opacityTexture: fade,\n backFaceCulling: false,\n }),\n overlay.lite.scene,\n OVERLAY_GROUND_OPACITY,\n );\n const screen = makePlane(\n createPlane(engine, { size: 1 }),\n SCREEN_GRID_MESH_NAME,\n createGridMaterial({\n name: SCREEN_GRID_MESH_NAME,\n lineColor: [0.75, 0.75, 0.75],\n minorUnitVisibility: MINOR_VISIBILITY,\n opacity: SCREEN_OPACITY,\n backFaceCulling: false,\n }),\n overlay.lite.scene,\n SCREEN_OPACITY,\n );\n let isDisposed = false;\n\n return {\n place(placement: GridPlacement | null): void {\n if (isDisposed) {\n return;\n }\n const isGround = placement?.plane === \"ground\";\n ground.mesh.visible = isGround && !placement.overlay;\n overlayGround.mesh.visible = isGround && placement.overlay;\n screen.mesh.visible = placement?.plane === \"screen\";\n if (placement === null) {\n return;\n }\n const { centerX, centerY, extent } = placement;\n const target = placement.plane === \"screen\" ? screen : placement.overlay ? overlayGround : ground;\n if (placement.plane === \"ground\") {\n target.mesh.position.set(centerX, placement.height, centerY);\n target.mesh.scaling.set(extent, 1, extent);\n setShaderUniform(target.material, \"gridOffset\", [centerX / extent, 0, centerY / extent]);\n } else {\n target.mesh.position.set(centerX, centerY, 0);\n target.mesh.scaling.set(extent, extent, 1);\n setShaderUniform(target.material, \"gridOffset\", [centerX / extent, centerY / extent, 0]);\n }\n setShaderUniform(target.material, \"gridControl\", [\n placement.step / extent,\n placement.majorEvery,\n MINOR_VISIBILITY,\n target.opacity,\n ]);\n },\n dispose(): void {\n if (isDisposed) {\n return;\n }\n isDisposed = true;\n for (const plane of [ground, overlayGround, screen]) {\n removeFromScene(plane.scene, plane.mesh);\n disposeMeshGpu(plane.mesh);\n }\n releaseTexture(fade);\n },\n };\n}\n\n/**\n * Names a grid mesh, gives it its material, keeps it out of picks and shadows, and adds it hidden.\n *\n * @param mesh - The unit square.\n * @param name - The mesh's name.\n * @param material - Its grid material.\n * @param scene - The scene that draws it.\n * @param opacity - The material's line opacity, written back with every placement.\n * @returns The plane.\n */\nfunction makePlane(\n mesh: Mesh,\n name: string,\n material: ShaderMaterial,\n scene: SceneContext,\n opacity: number,\n): GridPlane {\n mesh.name = name;\n mesh.material = material;\n mesh.pickable = false;\n mesh.receiveShadows = false;\n mesh.visible = false;\n // Drawn in the scene view only, never in a render texture such as the Game panel's view.\n mesh.metadata = { ...mesh.metadata, [EDITOR_ONLY_METADATA_KEY]: true };\n addToScene(scene, mesh);\n return { mesh, material, scene, opacity };\n}\n\n/**\n * A square of white texels whose alpha is 1 near the centre and falls smoothly to 0 before the\n * edge, for the grid material's `opacityTexture`.\n *\n * @returns `FADE_SIZE²` RGBA texels.\n */\nfunction radialFade(): Uint8Array {\n const data = new Uint8Array(FADE_SIZE * FADE_SIZE * 4);\n for (let row = 0; row < FADE_SIZE; row += 1) {\n for (let col = 0; col < FADE_SIZE; col += 1) {\n const u = (col + 0.5) / FADE_SIZE - 0.5;\n const v = (row + 0.5) / FADE_SIZE - 0.5;\n const t = Math.min(1, Math.max(0, (Math.hypot(u, v) - FADE_START) / (FADE_END - FADE_START)));\n const alpha = 1 - t * t * (3 - 2 * t);\n const index = (row * FADE_SIZE + col) * 4;\n data[index] = 255;\n data[index + 1] = 255;\n data[index + 2] = 255;\n data[index + 3] = Math.round(alpha * 255);\n }\n }\n return data;\n}\n"],"mappings":";;;;;;;;;;;;AA0BA,MAAa,iBAAiB;;AAG9B,MAAa,wBAAwB;;AAGrC,MAAa,yBAAyB;;AAGtC,MAAM,mBAAmB;;AAGzB,MAAM,iBAAiB;;AAGvB,MAAM,yBAAyB;;AAG/B,MAAM,iBAAiB;;AAGvB,MAAM,YAAY;;AAGlB,MAAM,aAAa;;;;;;;;;;;;;;;;;AAyCnB,SAAgB,iBAAiB,SAAyB,SAAwC;CAChG,MAAM,EAAE,WAAW;CACnB,MAAM,OAAO,0BAA0B,QAAQ,WAAW,GAAG,WAAW,WAAW;EACjF,WAAW;EACX,WAAW;CACb,CAAC;CACD,MAAM,SAAS,UACb,aAAa,QAAQ;EAAE,OAAO;EAAG,QAAQ;EAAG,cAA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KAAK,MAAM,QAAQ,GAAG;CAC1C;CAEF,OAAO;AACT"}
|
package/dist/index.d.ts
CHANGED
|
@@ -395,6 +395,13 @@ export declare const HostCapability: {
|
|
|
395
395
|
* `RpcErrorCode.methodNotFound`.
|
|
396
396
|
*/
|
|
397
397
|
readonly grid: "grid";
|
|
398
|
+
/**
|
|
399
|
+
* The scene host's `setGrid` takes `overlay` (the 3D grid draws over the scene, so a floor mesh
|
|
400
|
+
* does not hide it) and `height` (the world `y` of the 3D grid's plane). From the editor's ask of
|
|
401
|
+
* 2026-11-04 (additive in 0.3); without it, the host ignores both fields and draws the grid
|
|
402
|
+
* depth-tested at `y = 0`.
|
|
403
|
+
*/
|
|
404
|
+
readonly gridOverlay: "gridOverlay";
|
|
398
405
|
/**
|
|
399
406
|
* The scene host answers `setTilemapCells`: it writes cells into the open scene's live tilemaps,
|
|
400
407
|
* so a tilemap editor's painting shows without a save. Additive in 0.3; without it, the scene
|
|
@@ -1103,7 +1110,9 @@ export declare function isSceneOp(value: unknown): value is SceneOp;
|
|
|
1103
1110
|
*
|
|
1104
1111
|
* The host handles these requests one at a time, in the order they arrive: a request starts only
|
|
1105
1112
|
* after the previous one has been answered, so `applyOps` sent right after `openScene` sees the new
|
|
1106
|
-
* scene.
|
|
1113
|
+
* scene. `renderThumbnail` is the exception: it renders on a stage of its own, never reads the
|
|
1114
|
+
* document, and runs beside the queue, so it holds up no other request and its answer may come
|
|
1115
|
+
* before those of requests sent earlier. Until the host's app has started, every one of them fails with `RpcErrorCode.notReady`;
|
|
1107
1116
|
* the host's first `schemasChanged` is the editor's cue that they are accepted. A method that needs
|
|
1108
1117
|
* an open scene fails with `RpcErrorCode.noScene` while none is open. A method whose capability the
|
|
1109
1118
|
* host does not list in `ready` fails with `RpcErrorCode.methodNotFound`.
|
|
@@ -1846,6 +1855,13 @@ export declare const GRID_MIN_SIZE = .001;
|
|
|
1846
1855
|
* @public
|
|
1847
1856
|
*/
|
|
1848
1857
|
export declare const GRID_MAX_SIZE = 1e3;
|
|
1858
|
+
/**
|
|
1859
|
+
* The farthest from `y = 0` the 3D grid's plane may be put with `setGrid`'s `height`, in metres,
|
|
1860
|
+
* either way.
|
|
1861
|
+
*
|
|
1862
|
+
* @public
|
|
1863
|
+
*/
|
|
1864
|
+
export declare const GRID_MAX_HEIGHT = 1e5;
|
|
1849
1865
|
/**
|
|
1850
1866
|
* The parameters of `setGrid`. Each call sets the whole grid: a field left out takes its default.
|
|
1851
1867
|
*
|
|
@@ -1860,6 +1876,19 @@ interface SetGridParams {
|
|
|
1860
1876
|
* host draws every tenth one instead.
|
|
1861
1877
|
*/
|
|
1862
1878
|
readonly size?: number;
|
|
1879
|
+
/**
|
|
1880
|
+
* Whether the 3D grid draws over the scene instead of being hidden by the meshes in front of it,
|
|
1881
|
+
* so a floor at the grid's height does not cover it. Defaults to `false`: the grid is
|
|
1882
|
+
* depth-tested like a mesh. The 2D grid always draws over the sprites. Needs the host capability
|
|
1883
|
+
* `gridOverlay`; an older host ignores it.
|
|
1884
|
+
*/
|
|
1885
|
+
readonly overlay?: boolean;
|
|
1886
|
+
/**
|
|
1887
|
+
* The world `y` of the 3D grid's plane, in metres, from `-`{@link GRID_MAX_HEIGHT} to
|
|
1888
|
+
* {@link GRID_MAX_HEIGHT}. Defaults to `0`. The 2D grid ignores it. Needs the host capability
|
|
1889
|
+
* `gridOverlay`; an older host ignores it.
|
|
1890
|
+
*/
|
|
1891
|
+
readonly height?: number;
|
|
1863
1892
|
}
|
|
1864
1893
|
/**
|
|
1865
1894
|
* The most numbers the `cells` of one `setTilemapCells` request may hold: a million cells. A request
|
|
@@ -2546,8 +2575,9 @@ export declare function isSetAnimateMaterialsParams(value: unknown): value is Se
|
|
|
2546
2575
|
* Checks the parameters of `setGrid`.
|
|
2547
2576
|
*
|
|
2548
2577
|
* @param value - The received `params`.
|
|
2549
|
-
* @returns True for an object whose `visible`, if present,
|
|
2550
|
-
* present, is a number from {@link GRID_MIN_SIZE} to {@link GRID_MAX_SIZE}
|
|
2578
|
+
* @returns True for an object whose `visible` and `overlay`, if present, are booleans, whose `size`,
|
|
2579
|
+
* if present, is a number from {@link GRID_MIN_SIZE} to {@link GRID_MAX_SIZE}, and whose `height`,
|
|
2580
|
+
* if present, is a number within {@link GRID_MAX_HEIGHT} of zero.
|
|
2551
2581
|
*
|
|
2552
2582
|
* @public
|
|
2553
2583
|
*/
|
|
@@ -3211,7 +3241,11 @@ export declare const RenderViewMethod: {
|
|
|
3211
3241
|
* request; one with `HostCapability.gameView2d` renders a `Camera2D` document camera too.
|
|
3212
3242
|
*/
|
|
3213
3243
|
readonly gameViewFrame: "gameViewFrame";
|
|
3214
|
-
/**
|
|
3244
|
+
/**
|
|
3245
|
+
* Renders one model or prefab asset on its own and answers the image: {@link ThumbnailResult}.
|
|
3246
|
+
* It runs beside the one-at-a-time queue of the other methods, so a thumbnail never holds them
|
|
3247
|
+
* up; thumbnails are answered in the order they were asked for.
|
|
3248
|
+
*/
|
|
3215
3249
|
readonly renderThumbnail: "renderThumbnail";
|
|
3216
3250
|
};
|
|
3217
3251
|
/**
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/protocol/connect.ts","../src/protocol/rpc.ts","../src/protocol/version.ts","../src/protocol/handshake.ts","../src/protocol/heartbeat.ts","../src/protocol/scene-file.ts","../src/protocol/scene-ops.ts","../src/protocol/scene.ts","../src/protocol/play.ts","../src/protocol/render-views.ts","../src/channel.ts","../src/scene/asset-reload.ts","../src/host.ts","../src/play-controls.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;qBA0Ba;;;;;;;UAQI;;WAEN,aAAa;;;;;;;;;;;wBAYR,uBAAuB,iBAAiB,SAAS;;;;;;;;;;;;qBCpCpD;;;;;;KAOD;;;;;;;;;;qBAWC;;WAEX;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;;;;WAKA;;WAEA;;;;;;;;WAQA;;;;;WAKA;;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A,sBAAsB;;;;;;;WAOtB,kCAAkC;;WAElC,mBAAmB;;WAEnB,WAAW;;WAEX,SAAS;;WAET;;;;;;WAMA;;WAEA;;WAEA,gBAAgB;;;;;;;UAQV;;WAEN,KAAK;;WAEL,WAAW;;;;;WAKX,aAAa;;WAEb;;WAEA;;;;;;;;;;;;;;;;;;EAkBT,aAAa,QAAQ,oBAAoB;;EAEzC;;GAEC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAqDY,gBAAgB,SAAS,oBAAoB,QAAQ;;;;;;;;UC5H1D;;WAEN;;WAEA;;WAEA;;WAEA,gBAAgB;;;;;;;UAQV;;WAEN;;EAET;;GAEC,OAAO;;;;;;;;UASO;;WAEN;;;;;;;;;EAST,OAAO,KAAK,MAAM;;EAElB;;GAEC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA2XM,wBAAwB,KAAK,KAAK,SAAS,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgCvE,4BAA4B,SAAS,4BAA4B"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/protocol/connect.ts","../src/protocol/rpc.ts","../src/protocol/version.ts","../src/protocol/handshake.ts","../src/protocol/heartbeat.ts","../src/protocol/scene-file.ts","../src/protocol/scene-ops.ts","../src/protocol/scene.ts","../src/protocol/play.ts","../src/protocol/render-views.ts","../src/channel.ts","../src/scene/asset-reload.ts","../src/host.ts","../src/play-controls.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;qBA0Ba;;;;;;;UAQI;;WAEN,aAAa;;;;;;;;;;;wBAYR,uBAAuB,iBAAiB,SAAS;;;;;;;;;;;;qBCpCpD;;;;;;KAOD;;;;;;;;;;qBAWC;;WAEX;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;;;;WAKA;;WAEA;;;;;;;;WAQA;;;;;WAKA;;;;;;;YAQU,uBAAuB,2BAA2B;;;;;;UAO7C;;WAEN,MAAM;;WAEN;;WAEA;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;;;;;;;WAOtB,kCAAkC;;WAElC,mBAAmB;;WAEnB,WAAW;;WAEX,SAAS;;WAET;;;;;;WAMA;;WAEA;;WAEA,gBAAgB;;;;;;;UAQV;;WAEN,KAAK;;WAEL,WAAW;;;;;WAKX,aAAa;;WAEb;;WAEA;;;;;;;;;;;;;;;;;;EAkBT,aAAa,QAAQ,oBAAoB;;EAEzC;;GAEC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAqDY,gBAAgB,SAAS,oBAAoB,QAAQ;;;;;;;;UC5H1D;;WAEN;;WAEA;;WAEA;;WAEA,gBAAgB;;;;;;;UAQV;;WAEN;;EAET;;GAEC,OAAO;;;;;;;;UASO;;WAEN;;;;;;;;;EAST,OAAO,KAAK,MAAM;;EAElB;;GAEC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA2XM,wBAAwB,KAAK,KAAK,SAAS,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgCvE,4BAA4B,SAAS,4BAA4B"}
|
package/dist/index.js
CHANGED
|
@@ -282,6 +282,13 @@ const HostCapability = {
|
|
|
282
282
|
*/
|
|
283
283
|
grid: "grid",
|
|
284
284
|
/**
|
|
285
|
+
* The scene host's `setGrid` takes `overlay` (the 3D grid draws over the scene, so a floor mesh
|
|
286
|
+
* does not hide it) and `height` (the world `y` of the 3D grid's plane). From the editor's ask of
|
|
287
|
+
* 2026-11-04 (additive in 0.3); without it, the host ignores both fields and draws the grid
|
|
288
|
+
* depth-tested at `y = 0`.
|
|
289
|
+
*/
|
|
290
|
+
gridOverlay: "gridOverlay",
|
|
291
|
+
/**
|
|
285
292
|
* The scene host answers `setTilemapCells`: it writes cells into the open scene's live tilemaps,
|
|
286
293
|
* so a tilemap editor's painting shows without a save. Additive in 0.3; without it, the scene
|
|
287
294
|
* host answers `setTilemapCells` with `RpcErrorCode.methodNotFound`.
|
|
@@ -1092,7 +1099,9 @@ function isSceneOp(value) {
|
|
|
1092
1099
|
*
|
|
1093
1100
|
* The host handles these requests one at a time, in the order they arrive: a request starts only
|
|
1094
1101
|
* after the previous one has been answered, so `applyOps` sent right after `openScene` sees the new
|
|
1095
|
-
* scene.
|
|
1102
|
+
* scene. `renderThumbnail` is the exception: it renders on a stage of its own, never reads the
|
|
1103
|
+
* document, and runs beside the queue, so it holds up no other request and its answer may come
|
|
1104
|
+
* before those of requests sent earlier. Until the host's app has started, every one of them fails with `RpcErrorCode.notReady`;
|
|
1096
1105
|
* the host's first `schemasChanged` is the editor's cue that they are accepted. A method that needs
|
|
1097
1106
|
* an open scene fails with `RpcErrorCode.noScene` while none is open. A method whose capability the
|
|
1098
1107
|
* host does not list in `ready` fails with `RpcErrorCode.methodNotFound`.
|
|
@@ -1361,6 +1370,13 @@ const GRID_MIN_SIZE = .001;
|
|
|
1361
1370
|
*/
|
|
1362
1371
|
const GRID_MAX_SIZE = 1e3;
|
|
1363
1372
|
/**
|
|
1373
|
+
* The farthest from `y = 0` the 3D grid's plane may be put with `setGrid`'s `height`, in metres,
|
|
1374
|
+
* either way.
|
|
1375
|
+
*
|
|
1376
|
+
* @public
|
|
1377
|
+
*/
|
|
1378
|
+
const GRID_MAX_HEIGHT = 1e5;
|
|
1379
|
+
/**
|
|
1364
1380
|
* The most numbers the `cells` of one `setTilemapCells` request may hold: a million cells. A request
|
|
1365
1381
|
* with more fails with `invalidParams`.
|
|
1366
1382
|
*
|
|
@@ -1707,15 +1723,17 @@ function isSetAnimateMaterialsParams(value) {
|
|
|
1707
1723
|
* Checks the parameters of `setGrid`.
|
|
1708
1724
|
*
|
|
1709
1725
|
* @param value - The received `params`.
|
|
1710
|
-
* @returns True for an object whose `visible`, if present,
|
|
1711
|
-
* present, is a number from {@link GRID_MIN_SIZE} to {@link GRID_MAX_SIZE}
|
|
1726
|
+
* @returns True for an object whose `visible` and `overlay`, if present, are booleans, whose `size`,
|
|
1727
|
+
* if present, is a number from {@link GRID_MIN_SIZE} to {@link GRID_MAX_SIZE}, and whose `height`,
|
|
1728
|
+
* if present, is a number within {@link GRID_MAX_HEIGHT} of zero.
|
|
1712
1729
|
*
|
|
1713
1730
|
* @public
|
|
1714
1731
|
*/
|
|
1715
1732
|
function isSetGridParams(value) {
|
|
1716
1733
|
if (!isRecord(value)) return false;
|
|
1717
1734
|
const size = value["size"];
|
|
1718
|
-
|
|
1735
|
+
const height = value["height"];
|
|
1736
|
+
return optionalField(value, "visible", isBoolean) && optionalField(value, "overlay", isBoolean) && (size === void 0 || isFiniteNumber(size) && size >= .001 && size <= 1e3) && (height === void 0 || isFiniteNumber(height) && Math.abs(height) <= 1e5);
|
|
1719
1737
|
}
|
|
1720
1738
|
/**
|
|
1721
1739
|
* Checks the parameters of `setTilemapCells`.
|
|
@@ -2025,7 +2043,11 @@ const RenderViewMethod = {
|
|
|
2025
2043
|
* request; one with `HostCapability.gameView2d` renders a `Camera2D` document camera too.
|
|
2026
2044
|
*/
|
|
2027
2045
|
gameViewFrame: "gameViewFrame",
|
|
2028
|
-
/**
|
|
2046
|
+
/**
|
|
2047
|
+
* Renders one model or prefab asset on its own and answers the image: {@link ThumbnailResult}.
|
|
2048
|
+
* It runs beside the one-at-a-time queue of the other methods, so a thumbnail never holds them
|
|
2049
|
+
* up; thumbnails are answered in the order they were asked for.
|
|
2050
|
+
*/
|
|
2029
2051
|
renderThumbnail: "renderThumbnail"
|
|
2030
2052
|
};
|
|
2031
2053
|
/**
|
|
@@ -2368,6 +2390,7 @@ function connectPortOf(event, editorOrigin) {
|
|
|
2368
2390
|
*/
|
|
2369
2391
|
function openChannel(options) {
|
|
2370
2392
|
const { target, editorOrigin, ready, methods, heartbeatIntervalMs, onReady } = options;
|
|
2393
|
+
const unqueued = options.unqueued ?? /* @__PURE__ */ new Set();
|
|
2371
2394
|
let port = null;
|
|
2372
2395
|
let portListener = null;
|
|
2373
2396
|
let isReady = false;
|
|
@@ -2467,7 +2490,7 @@ function openChannel(options) {
|
|
|
2467
2490
|
if (!wasReady && method === HandshakeMethod.hello) onReady?.();
|
|
2468
2491
|
}
|
|
2469
2492
|
};
|
|
2470
|
-
if (method === HandshakeMethod.ping) {
|
|
2493
|
+
if (method === HandshakeMethod.ping || unqueued.has(method)) {
|
|
2471
2494
|
await reply();
|
|
2472
2495
|
return;
|
|
2473
2496
|
}
|
|
@@ -5708,20 +5731,24 @@ const GROUND_MIN_REACH_LINES = 100;
|
|
|
5708
5731
|
/** The 2D grid's lines are never closer than this, in screen pixels; denser ones step up tenfold. */
|
|
5709
5732
|
const MIN_LINE_GAP_PX = 8;
|
|
5710
5733
|
/**
|
|
5711
|
-
* The 3D view's ground grid: centred under the eye, coarser the higher the eye is
|
|
5712
|
-
* that it fades out before its edge is in view.
|
|
5734
|
+
* The 3D view's ground grid: centred under the eye, coarser the higher the eye is above the plane,
|
|
5735
|
+
* and large enough that it fades out before its edge is in view.
|
|
5713
5736
|
*
|
|
5714
5737
|
* @param eye - The editor camera's position, in metres.
|
|
5715
5738
|
* @param size - The spacing `setGrid` asked for, in metres.
|
|
5716
5739
|
* @param far - The camera's far plane, in metres; the grid stays inside it.
|
|
5740
|
+
* @param height - The plane's world y, in metres.
|
|
5741
|
+
* @param overlay - Whether the grid draws over the scene.
|
|
5717
5742
|
* @returns The placement.
|
|
5718
5743
|
*/
|
|
5719
|
-
function groundGridPlacement(eye, size, far) {
|
|
5720
|
-
const
|
|
5721
|
-
const step = size * 10 ** Math.max(0, Math.floor(Math.log10(
|
|
5722
|
-
const reach = Math.min(Math.max(
|
|
5744
|
+
function groundGridPlacement(eye, size, far, height = 0, overlay = false) {
|
|
5745
|
+
const above = Math.max(Math.abs(eye.y - height), size);
|
|
5746
|
+
const step = size * 10 ** Math.max(0, Math.floor(Math.log10(above / (size * GROUND_LINES_PER_HEIGHT))));
|
|
5747
|
+
const reach = Math.min(Math.max(above * GROUND_REACH_PER_HEIGHT, step * GROUND_MIN_REACH_LINES), far * .9);
|
|
5723
5748
|
return {
|
|
5724
5749
|
plane: "ground",
|
|
5750
|
+
height,
|
|
5751
|
+
overlay,
|
|
5725
5752
|
centerX: eye.x,
|
|
5726
5753
|
centerY: eye.z,
|
|
5727
5754
|
extent: reach * 2,
|
|
@@ -5743,6 +5770,8 @@ function screenGridPlacement(view, size) {
|
|
|
5743
5770
|
const extent = 2 * Math.max(view.widthPx, view.heightPx) / pixelsPerMetre;
|
|
5744
5771
|
const base = {
|
|
5745
5772
|
plane: "screen",
|
|
5773
|
+
height: 0,
|
|
5774
|
+
overlay: true,
|
|
5746
5775
|
centerX: view.centerX,
|
|
5747
5776
|
centerY: view.centerY,
|
|
5748
5777
|
extent
|
|
@@ -6909,6 +6938,9 @@ function settingsSet(app) {
|
|
|
6909
6938
|
* The stage is a separate app on a 1x1 `OffscreenCanvas`, built from the project's own options, so
|
|
6910
6939
|
* a thumbnail never shows the open document, never lights it, and is never lit by it. It is
|
|
6911
6940
|
* created on the first request and lives until the host is disposed.
|
|
6941
|
+
*
|
|
6942
|
+
* The channel runs `renderThumbnail` beside its one-at-a-time queue, so the frames a thumbnail
|
|
6943
|
+
* waits for hold up no other request; thumbnails queue among themselves here, one stage at a time.
|
|
6912
6944
|
*/
|
|
6913
6945
|
/** The JPEG quality when the request gives none, as for `screenshot`. */
|
|
6914
6946
|
const DEFAULT_JPEG_QUALITY = .9;
|
|
@@ -6920,6 +6952,12 @@ const SUPERSAMPLE = 2;
|
|
|
6920
6952
|
const MAX_SETTLE_FRAMES = 120;
|
|
6921
6953
|
/** How many frames in a row the bounds must hold still before the thumbnail is taken. */
|
|
6922
6954
|
const STILL_FRAMES = 2;
|
|
6955
|
+
/**
|
|
6956
|
+
* How many frames in a row nothing may draw, with no asset of the stage still loading, before the
|
|
6957
|
+
* subject is taken to be empty (a failed model, a prefab without meshes). A loaded model builds its
|
|
6958
|
+
* meshes in the first frame.
|
|
6959
|
+
*/
|
|
6960
|
+
const EMPTY_FRAMES = 4;
|
|
6923
6961
|
/** The direction from the subject to the camera: in front, above and to the right. */
|
|
6924
6962
|
const VIEW_DIRECTION = {
|
|
6925
6963
|
x: .55,
|
|
@@ -7006,6 +7044,10 @@ var ThumbnailRenderer = class {
|
|
|
7006
7044
|
#stage = null;
|
|
7007
7045
|
#texture = null;
|
|
7008
7046
|
#loads = 0;
|
|
7047
|
+
/** The previous thumbnail, which the next waits for: the stage shows one subject at a time. */
|
|
7048
|
+
#queue = Promise.resolve();
|
|
7049
|
+
/** Whether the stage's assets have a load in flight, from their last progress report. */
|
|
7050
|
+
#isLoading = false;
|
|
7009
7051
|
#isDisposed = false;
|
|
7010
7052
|
/**
|
|
7011
7053
|
* Keeps the factory; nothing is created until the first thumbnail.
|
|
@@ -7019,9 +7061,20 @@ var ThumbnailRenderer = class {
|
|
|
7019
7061
|
* `renderThumbnail`: loads the asset alone on the stage, frames it, renders it and encodes it.
|
|
7020
7062
|
*
|
|
7021
7063
|
* @param params - `{ asset, size?, format, quality? }`.
|
|
7022
|
-
* @returns The image.
|
|
7064
|
+
* @returns The image, once the thumbnails asked for before it are done.
|
|
7023
7065
|
*/
|
|
7024
7066
|
async render(params) {
|
|
7067
|
+
const run = this.#queue.then(async () => this.#render(params));
|
|
7068
|
+
this.#queue = run.catch(() => void 0);
|
|
7069
|
+
return run;
|
|
7070
|
+
}
|
|
7071
|
+
/**
|
|
7072
|
+
* Renders one thumbnail; {@link ThumbnailRenderer.render} runs them one at a time.
|
|
7073
|
+
*
|
|
7074
|
+
* @param params - The request's `params`.
|
|
7075
|
+
* @returns The image.
|
|
7076
|
+
*/
|
|
7077
|
+
async #render(params) {
|
|
7025
7078
|
if (!isRenderThumbnailParams(params)) throw new InvalidParamsError("renderThumbnail takes { asset: address | { $asset, type? }, size?: 1 to 1024, format: \"png\" | \"jpeg\", quality? }.");
|
|
7026
7079
|
const { address, kind } = thumbnailSubject(params);
|
|
7027
7080
|
const { app, camera } = await (this.#stage ??= this.#open());
|
|
@@ -7031,7 +7084,7 @@ var ThumbnailRenderer = class {
|
|
|
7031
7084
|
mode: "single"
|
|
7032
7085
|
});
|
|
7033
7086
|
try {
|
|
7034
|
-
frameCamera(camera, await settledBounds(app, instance));
|
|
7087
|
+
frameCamera(camera, await settledBounds(app, instance, () => this.#isLoading));
|
|
7035
7088
|
await nextFrame();
|
|
7036
7089
|
const size = params.size ?? 128;
|
|
7037
7090
|
const texture = this.#textureOf(app, size * SUPERSAMPLE);
|
|
@@ -7063,6 +7116,9 @@ var ThumbnailRenderer = class {
|
|
|
7063
7116
|
*/
|
|
7064
7117
|
async #open() {
|
|
7065
7118
|
const app = await this.#createApp();
|
|
7119
|
+
app.assets.onProgress.connect((progress) => {
|
|
7120
|
+
this.#isLoading = progress.loaded < progress.total;
|
|
7121
|
+
});
|
|
7066
7122
|
const scene = app.world.createScene("thumbnail-stage", { persistent: true });
|
|
7067
7123
|
const camera = app.world.createEntity("Thumbnail Camera", { scene }).addComponent(Camera, {
|
|
7068
7124
|
fov: STAGE_FOV,
|
|
@@ -7120,20 +7176,21 @@ function nextFrame() {
|
|
|
7120
7176
|
});
|
|
7121
7177
|
}
|
|
7122
7178
|
/**
|
|
7123
|
-
* Waits until a loaded subject's meshes exist and hold still, then measures them.
|
|
7179
|
+
* Waits until a loaded subject's meshes exist and hold still, then measures them. It stops early
|
|
7180
|
+
* when nothing has drawn for a few frames and nothing is loading, as nothing will.
|
|
7124
7181
|
*
|
|
7125
7182
|
* @param app - The stage app.
|
|
7126
7183
|
* @param instance - The loaded subject.
|
|
7184
|
+
* @param isLoading - Whether the stage still has an asset load in flight.
|
|
7127
7185
|
* @returns Its world bounds; a unit box at the origin when nothing draws.
|
|
7128
7186
|
*/
|
|
7129
|
-
async function settledBounds(app, instance) {
|
|
7187
|
+
async function settledBounds(app, instance, isLoading) {
|
|
7188
|
+
const settle = boundsSettler();
|
|
7130
7189
|
let last = null;
|
|
7131
|
-
let
|
|
7132
|
-
for (let frame = 0; frame < MAX_SETTLE_FRAMES && still < STILL_FRAMES; frame += 1) {
|
|
7190
|
+
for (let frame = 0; frame < MAX_SETTLE_FRAMES; frame += 1) {
|
|
7133
7191
|
await nextFrame();
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
last = bounds;
|
|
7192
|
+
last = unionBounds(app, instance.roots);
|
|
7193
|
+
if (settle(last, isLoading())) break;
|
|
7137
7194
|
}
|
|
7138
7195
|
return last ?? {
|
|
7139
7196
|
min: {
|
|
@@ -7149,6 +7206,26 @@ async function settledBounds(app, instance) {
|
|
|
7149
7206
|
};
|
|
7150
7207
|
}
|
|
7151
7208
|
/**
|
|
7209
|
+
* Decides, frame by frame, when a thumbnail's subject has settled: its bounds held still for
|
|
7210
|
+
* `STILL_FRAMES` frames, or nothing has drawn for `EMPTY_FRAMES` frames with nothing loading.
|
|
7211
|
+
*
|
|
7212
|
+
* @returns A function that takes each frame's bounds (`null` when nothing draws) and whether an
|
|
7213
|
+
* asset is loading, and answers true once the subject has settled.
|
|
7214
|
+
*
|
|
7215
|
+
* @internal
|
|
7216
|
+
*/
|
|
7217
|
+
function boundsSettler() {
|
|
7218
|
+
let last = null;
|
|
7219
|
+
let still = 0;
|
|
7220
|
+
let empty = 0;
|
|
7221
|
+
return (bounds, isLoading) => {
|
|
7222
|
+
still = bounds !== null && last !== null && sameBounds(bounds, last) ? still + 1 : 0;
|
|
7223
|
+
empty = bounds === null && !isLoading ? empty + 1 : 0;
|
|
7224
|
+
last = bounds;
|
|
7225
|
+
return still >= STILL_FRAMES || empty >= EMPTY_FRAMES;
|
|
7226
|
+
};
|
|
7227
|
+
}
|
|
7228
|
+
/**
|
|
7152
7229
|
* The union of entities' world bounds.
|
|
7153
7230
|
*
|
|
7154
7231
|
* @param app - The stage app.
|
|
@@ -7308,6 +7385,11 @@ const EDITOR_CAMERA_PRIORITY = 1e6;
|
|
|
7308
7385
|
var SceneHost = class {
|
|
7309
7386
|
/** The scene methods, by name, for the channel. */
|
|
7310
7387
|
methods;
|
|
7388
|
+
/**
|
|
7389
|
+
* The methods the channel runs beside its queue: `renderThumbnail`, which renders on a stage app
|
|
7390
|
+
* of its own, never reads the document, and can take a couple of seconds.
|
|
7391
|
+
*/
|
|
7392
|
+
unqueued = /* @__PURE__ */ new Set([RenderViewMethod.renderThumbnail]);
|
|
7311
7393
|
#notify;
|
|
7312
7394
|
#app = null;
|
|
7313
7395
|
#mirror = null;
|
|
@@ -7333,7 +7415,9 @@ var SceneHost = class {
|
|
|
7333
7415
|
#grid = null;
|
|
7334
7416
|
#gridSettings = {
|
|
7335
7417
|
visible: true,
|
|
7336
|
-
size: 1
|
|
7418
|
+
size: 1,
|
|
7419
|
+
overlay: false,
|
|
7420
|
+
height: 0
|
|
7337
7421
|
};
|
|
7338
7422
|
/** The editor's line sets, as `setEditorLines` last set them, by id; drawn once `#lines` exists. */
|
|
7339
7423
|
#lineSets = /* @__PURE__ */ new Map();
|
|
@@ -7402,7 +7486,7 @@ var SceneHost = class {
|
|
|
7402
7486
|
methods.set(SceneMethod.setEditorLines, (params) => this.#setEditorLines(params));
|
|
7403
7487
|
methods.set(SceneMethod.clearEditorLines, (params) => this.#clearEditorLines(params));
|
|
7404
7488
|
}
|
|
7405
|
-
this.methods = new Map([...methods].map(([name, handler]) => [name, async (params) => this.#serial(() => handler(params))]));
|
|
7489
|
+
this.methods = new Map([...methods].map(([name, handler]) => [name, this.unqueued.has(name) ? handler : async (params) => this.#serial(() => handler(params))]));
|
|
7406
7490
|
}
|
|
7407
7491
|
/**
|
|
7408
7492
|
* The persistent scene instance that holds the host's own objects, such as the editor camera.
|
|
@@ -7836,18 +7920,20 @@ var SceneHost = class {
|
|
|
7836
7920
|
return null;
|
|
7837
7921
|
}
|
|
7838
7922
|
/**
|
|
7839
|
-
* `setGrid`: shows or hides the view's grid and sets its spacing
|
|
7840
|
-
* default.
|
|
7923
|
+
* `setGrid`: shows or hides the view's grid and sets its spacing, and the 3D grid's height and
|
|
7924
|
+
* whether it draws over the scene. A field left out takes its default.
|
|
7841
7925
|
*
|
|
7842
|
-
* @param params - `{ visible?, size? }`.
|
|
7926
|
+
* @param params - `{ visible?, size?, overlay?, height? }`.
|
|
7843
7927
|
* @returns `null`.
|
|
7844
7928
|
*/
|
|
7845
7929
|
#setGrid(params) {
|
|
7846
7930
|
this.#requireMirror(SceneMethod.setGrid);
|
|
7847
|
-
if (!isSetGridParams(params)) throw new InvalidParamsError("setGrid takes { visible?: boolean, size?: number from 0.001 to 1000 }.");
|
|
7931
|
+
if (!isSetGridParams(params)) throw new InvalidParamsError("setGrid takes { visible?: boolean, size?: number from 0.001 to 1000, overlay?: boolean, height?: number from -100000 to 100000 }.");
|
|
7848
7932
|
this.#gridSettings = {
|
|
7849
7933
|
visible: params.visible ?? true,
|
|
7850
|
-
size: params.size ?? 1
|
|
7934
|
+
size: params.size ?? 1,
|
|
7935
|
+
overlay: params.overlay ?? false,
|
|
7936
|
+
height: params.height ?? 0
|
|
7851
7937
|
};
|
|
7852
7938
|
return null;
|
|
7853
7939
|
}
|
|
@@ -7910,12 +7996,12 @@ var SceneHost = class {
|
|
|
7910
7996
|
* @returns The placement, or `null` while the grid is hidden.
|
|
7911
7997
|
*/
|
|
7912
7998
|
#gridPlacement() {
|
|
7913
|
-
const { visible, size } = this.#gridSettings;
|
|
7999
|
+
const { visible, size, overlay, height } = this.#gridSettings;
|
|
7914
8000
|
if (!visible) return null;
|
|
7915
8001
|
const camera2D = this.#camera2D;
|
|
7916
8002
|
if (this.#viewMode === ViewMode.twoD && camera2D !== null) return screenGridPlacement(camera2D.view(), size);
|
|
7917
8003
|
const eye = this.#eye;
|
|
7918
|
-
return eye === null ? null : groundGridPlacement(eye.transform.position, size, eye.far);
|
|
8004
|
+
return eye === null ? null : groundGridPlacement(eye.transform.position, size, eye.far, height, overlay);
|
|
7919
8005
|
}
|
|
7920
8006
|
/**
|
|
7921
8007
|
* `getColliderOutlines`: the world-space outlines of the requested entities' colliders, from the
|
|
@@ -8388,6 +8474,7 @@ async function startEditorHost(options) {
|
|
|
8388
8474
|
HostCapability.gameView2d,
|
|
8389
8475
|
...canRenderThumbnails(options) ? [HostCapability.thumbnails] : [],
|
|
8390
8476
|
HostCapability.grid,
|
|
8477
|
+
HostCapability.gridOverlay,
|
|
8391
8478
|
HostCapability.tilemapCells,
|
|
8392
8479
|
HostCapability.editorLines,
|
|
8393
8480
|
HostCapability.spriteAnimation
|
|
@@ -8415,6 +8502,7 @@ async function startEditorHost(options) {
|
|
|
8415
8502
|
hostKind: options.hostKind ?? HostKind.scene
|
|
8416
8503
|
},
|
|
8417
8504
|
methods: scene.methods,
|
|
8505
|
+
unqueued: scene.unqueued,
|
|
8418
8506
|
heartbeatIntervalMs,
|
|
8419
8507
|
onReady: () => {
|
|
8420
8508
|
scene.sendSchemas();
|
|
@@ -9225,6 +9313,6 @@ function listenForEditorPlayControls(options) {
|
|
|
9225
9313
|
};
|
|
9226
9314
|
}
|
|
9227
9315
|
//#endregion
|
|
9228
|
-
export { ApplyOpFailureCode, COLLIDER_OUTLINES_MAX_ENTITIES, COLLIDER_OUTLINES_MAX_NUMBERS, DEFAULT_HEARTBEAT_INTERVAL_MS, EDITOR_CONNECT_MESSAGE_TYPE, EDITOR_LINES_MAX_ID_LENGTH, EDITOR_LINES_MAX_NUMBERS, EDITOR_LINES_MAX_SETS, EditorHostErrorCode, GAME_VIEW_DEFAULT_SIZE, GAME_VIEW_MAX_SIZE, GRID_MAX_SIZE, GRID_MIN_SIZE, GizmoMode, GizmoSpace, HOST_LIST_MAX_LENGTH, HOST_TEXT_MAX_LENGTH, HandshakeMethod, HostCapability, HostKind, HostNotification, JSON_RPC_VERSION, PROTOCOL_VERSION, PickUnit, PlayMethod, PlayNotification, PlayPhase, QUERY_RUNTIME_MAX_COMPONENTS, QUERY_RUNTIME_MAX_JSON_LENGTH, QUERY_RUNTIME_MAX_KEYS, QUERY_RUNTIME_MAX_STRING_LENGTH, RenderViewMethod, RpcErrorCode, SAMPLE_ANIMATION_MAX_NAME_LENGTH, SAMPLE_ANIMATION_MAX_PARAMETERS, SCREENSHOT_MAX_SIZE, SEND_INPUT_MAX_EVENTS, SceneMethod, SceneNotification, SceneOpKind, ScreenshotFormat, THUMBNAIL_DEFAULT_SIZE, THUMBNAIL_MAX_SIZE, TILEMAP_CELLS_MAX_NUMBERS, TRANSFORM_DRAGGING_INTERVAL_MS, ViewMode, isAppErrorData, isApplyOpsParams, isApplyOpsResult, isAssetReloadedParams, isClearEditorLinesParams, isColliderOutlineRecord, isColliderOutlineSet, isEditorConnectMessage, isEditorOrigin, isEntitySelection, isFrameParams, isGameViewFrameParams, isGameViewFrameResult, isGameViewState, isHostErrorParams, isHotReloadedParams, isIncompatibleProtocolData, isInvalidSceneFileData, isJsonObject, isJsonValue, isLogParams, isOpenSceneParams, isOpenSceneResult, isPickParams, isPickResult, isPlayState, isPlayStateReport, isPlayStats, isProtocolVersion, isQueryRuntimeParams, isQueryRuntimeResult, isReadBackParams, isReadBackResult, isReadyResult, isRenderThumbnailParams, isRpcMessage, isSampleAnimationParams, isSampleAnimationResult, isSampleSpriteAnimationParams, isSampleSpriteAnimationResult, isSceneFile, isSceneFileAssetRef, isSceneFileComponent, isSceneFileEntity, isSceneFileInstance, isSceneFileOverride, isSceneFileTransform, isSceneIssue, isSceneOp, isSceneOpenedParams, isSchemaSet, isScreenshotParams, isScreenshotResult, isSendInputEvent, isSendInputParams, isSendInputResult, isSetAnimateMaterialsParams, isSetEditorLinesParams, isSetGameViewParams, isSetGizmoParams, isSetGridParams, isSetTilemapCellsParams, isSetTilemapCellsResult, isSetViewModeParams, isSettingsSet, isThumbnailResult, isTransformDraggedParams, isTransformDraggingParams, listenForEditorPlayControls, protocolVersionIsCompatible, startEditorHost, startEditorPlayControls };
|
|
9316
|
+
export { ApplyOpFailureCode, COLLIDER_OUTLINES_MAX_ENTITIES, COLLIDER_OUTLINES_MAX_NUMBERS, DEFAULT_HEARTBEAT_INTERVAL_MS, EDITOR_CONNECT_MESSAGE_TYPE, EDITOR_LINES_MAX_ID_LENGTH, EDITOR_LINES_MAX_NUMBERS, EDITOR_LINES_MAX_SETS, EditorHostErrorCode, GAME_VIEW_DEFAULT_SIZE, GAME_VIEW_MAX_SIZE, GRID_MAX_HEIGHT, GRID_MAX_SIZE, GRID_MIN_SIZE, GizmoMode, GizmoSpace, HOST_LIST_MAX_LENGTH, HOST_TEXT_MAX_LENGTH, HandshakeMethod, HostCapability, HostKind, HostNotification, JSON_RPC_VERSION, PROTOCOL_VERSION, PickUnit, PlayMethod, PlayNotification, PlayPhase, QUERY_RUNTIME_MAX_COMPONENTS, QUERY_RUNTIME_MAX_JSON_LENGTH, QUERY_RUNTIME_MAX_KEYS, QUERY_RUNTIME_MAX_STRING_LENGTH, RenderViewMethod, RpcErrorCode, SAMPLE_ANIMATION_MAX_NAME_LENGTH, SAMPLE_ANIMATION_MAX_PARAMETERS, SCREENSHOT_MAX_SIZE, SEND_INPUT_MAX_EVENTS, SceneMethod, SceneNotification, SceneOpKind, ScreenshotFormat, THUMBNAIL_DEFAULT_SIZE, THUMBNAIL_MAX_SIZE, TILEMAP_CELLS_MAX_NUMBERS, TRANSFORM_DRAGGING_INTERVAL_MS, ViewMode, isAppErrorData, isApplyOpsParams, isApplyOpsResult, isAssetReloadedParams, isClearEditorLinesParams, isColliderOutlineRecord, isColliderOutlineSet, isEditorConnectMessage, isEditorOrigin, isEntitySelection, isFrameParams, isGameViewFrameParams, isGameViewFrameResult, isGameViewState, isHostErrorParams, isHotReloadedParams, isIncompatibleProtocolData, isInvalidSceneFileData, isJsonObject, isJsonValue, isLogParams, isOpenSceneParams, isOpenSceneResult, isPickParams, isPickResult, isPlayState, isPlayStateReport, isPlayStats, isProtocolVersion, isQueryRuntimeParams, isQueryRuntimeResult, isReadBackParams, isReadBackResult, isReadyResult, isRenderThumbnailParams, isRpcMessage, isSampleAnimationParams, isSampleAnimationResult, isSampleSpriteAnimationParams, isSampleSpriteAnimationResult, isSceneFile, isSceneFileAssetRef, isSceneFileComponent, isSceneFileEntity, isSceneFileInstance, isSceneFileOverride, isSceneFileTransform, isSceneIssue, isSceneOp, isSceneOpenedParams, isSchemaSet, isScreenshotParams, isScreenshotResult, isSendInputEvent, isSendInputParams, isSendInputResult, isSetAnimateMaterialsParams, isSetEditorLinesParams, isSetGameViewParams, isSetGizmoParams, isSetGridParams, isSetTilemapCellsParams, isSetTilemapCellsResult, isSetViewModeParams, isSettingsSet, isThumbnailResult, isTransformDraggedParams, isTransformDraggingParams, listenForEditorPlayControls, protocolVersionIsCompatible, startEditorHost, startEditorPlayControls };
|
|
9229
9317
|
|
|
9230
9318
|
//# sourceMappingURL=index.js.map
|