@ignifx/editor-host 0.14.0 → 0.15.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 ADDED
@@ -0,0 +1,170 @@
1
+ import { EDITOR_ONLY_METADATA_KEY } from "@ignifx/core";
2
+ import { addToScene, createGridMaterial, createGround, createPlane, createTexture2DFromPixels, disposeMeshGpu, releaseTexture, removeFromScene, setShaderUniform } from "@babylonjs/lite";
3
+ //#region src/lite/grid.ts
4
+ /**
5
+ * The scene view's grid (engine ask E31), drawn with Babylon Lite's `createGridMaterial`. Every Lite
6
+ * claim here was read from the pinned `@babylonjs/lite` 1.34 `index.d.ts` and
7
+ * `lib/material/grid/grid-material.js`.
8
+ *
9
+ * The host loads this module with `import()` once a scene view has a canvas, so the grid's shader
10
+ * code stays out of the host's first chunk (`CONSTITUTION.md` §2.5).
11
+ */
12
+ /** The name of the 3D grid's mesh in the render scene. */
13
+ const GRID_MESH_NAME = "ignifx-editor-grid";
14
+ /** The name of the 2D grid's mesh in the render overlay. */
15
+ const SCREEN_GRID_MESH_NAME = "ignifx-editor-grid-2d";
16
+ /** How visible the minor lines are next to the major ones, `0..1`. */
17
+ const MINOR_VISIBILITY = .4;
18
+ /** The 3D grid's line opacity; below 1, Lite's grid material leaves the space between lines clear. */
19
+ const GROUND_OPACITY = .8;
20
+ /** The 2D grid's line opacity: it draws over the sprites, so it stays faint. */
21
+ const SCREEN_OPACITY = .35;
22
+ /** The fade texture's side, in texels. */
23
+ const FADE_SIZE = 64;
24
+ /** The fade starts this far from the centre, as a fraction of the side. */
25
+ const FADE_START = .12;
26
+ /**
27
+ * Builds the grid of one scene view: a ground plane in the render scene, depth-tested against the
28
+ * document's meshes, and a screen plane in the render overlay, over the 2D view's sprites.
29
+ *
30
+ * @remarks
31
+ * Lite's grid material works in object space, so each plane is a unit square scaled to the
32
+ * placement's extent, with `gridRatio = step / extent` and `gridOffset = centre / extent`: the lines
33
+ * stay on world multiples of the step wherever the square moves. Neither mesh is pickable, casts
34
+ * shadows or belongs to an entity, so no pick, selection or `readBack` reaches it, and both carry
35
+ * core's `EDITOR_ONLY_METADATA_KEY`, so no render texture (the game view) draws them.
36
+ *
37
+ * @param handles - The app's Lite engine and render scene (`app.lite`).
38
+ * @param overlay - The view's open render overlay; the grid does not own it.
39
+ * @returns The grid, hidden until the first {@link EditorGridView.place}.
40
+ */
41
+ function createEditorGrid(handles, overlay) {
42
+ const { engine } = handles;
43
+ const fade = createTexture2DFromPixels(engine, radialFade(), FADE_SIZE, FADE_SIZE, {
44
+ minFilter: "linear",
45
+ magFilter: "linear"
46
+ });
47
+ const ground = makePlane(createGround(engine, {
48
+ width: 1,
49
+ height: 1,
50
+ subdivisions: 1
51
+ }), GRID_MESH_NAME, createGridMaterial({
52
+ name: GRID_MESH_NAME,
53
+ lineColor: [
54
+ .6,
55
+ .6,
56
+ .6
57
+ ],
58
+ minorUnitVisibility: MINOR_VISIBILITY,
59
+ opacity: GROUND_OPACITY,
60
+ opacityTexture: fade,
61
+ backFaceCulling: false
62
+ }), handles.scene, GROUND_OPACITY);
63
+ const screen = makePlane(createPlane(engine, { size: 1 }), SCREEN_GRID_MESH_NAME, createGridMaterial({
64
+ name: SCREEN_GRID_MESH_NAME,
65
+ lineColor: [
66
+ .75,
67
+ .75,
68
+ .75
69
+ ],
70
+ minorUnitVisibility: MINOR_VISIBILITY,
71
+ opacity: SCREEN_OPACITY,
72
+ backFaceCulling: false
73
+ }), overlay.lite.scene, SCREEN_OPACITY);
74
+ let isDisposed = false;
75
+ return {
76
+ place(placement) {
77
+ if (isDisposed) return;
78
+ ground.mesh.visible = placement?.plane === "ground";
79
+ screen.mesh.visible = placement?.plane === "screen";
80
+ if (placement === null) return;
81
+ const { centerX, centerY, extent } = placement;
82
+ const target = placement.plane === "ground" ? ground : screen;
83
+ if (placement.plane === "ground") {
84
+ target.mesh.position.set(centerX, 0, centerY);
85
+ target.mesh.scaling.set(extent, 1, extent);
86
+ setShaderUniform(target.material, "gridOffset", [
87
+ centerX / extent,
88
+ 0,
89
+ centerY / extent
90
+ ]);
91
+ } else {
92
+ target.mesh.position.set(centerX, centerY, 0);
93
+ target.mesh.scaling.set(extent, extent, 1);
94
+ setShaderUniform(target.material, "gridOffset", [
95
+ centerX / extent,
96
+ centerY / extent,
97
+ 0
98
+ ]);
99
+ }
100
+ setShaderUniform(target.material, "gridControl", [
101
+ placement.step / extent,
102
+ placement.majorEvery,
103
+ MINOR_VISIBILITY,
104
+ target.opacity
105
+ ]);
106
+ },
107
+ dispose() {
108
+ if (isDisposed) return;
109
+ isDisposed = true;
110
+ for (const plane of [ground, screen]) {
111
+ removeFromScene(plane.scene, plane.mesh);
112
+ disposeMeshGpu(plane.mesh);
113
+ }
114
+ releaseTexture(fade);
115
+ }
116
+ };
117
+ }
118
+ /**
119
+ * Names a grid mesh, gives it its material, keeps it out of picks and shadows, and adds it hidden.
120
+ *
121
+ * @param mesh - The unit square.
122
+ * @param name - The mesh's name.
123
+ * @param material - Its grid material.
124
+ * @param scene - The scene that draws it.
125
+ * @param opacity - The material's line opacity, written back with every placement.
126
+ * @returns The plane.
127
+ */
128
+ function makePlane(mesh, name, material, scene, opacity) {
129
+ mesh.name = name;
130
+ mesh.material = material;
131
+ mesh.pickable = false;
132
+ mesh.receiveShadows = false;
133
+ mesh.visible = false;
134
+ mesh.metadata = {
135
+ ...mesh.metadata,
136
+ [EDITOR_ONLY_METADATA_KEY]: true
137
+ };
138
+ addToScene(scene, mesh);
139
+ return {
140
+ mesh,
141
+ material,
142
+ scene,
143
+ opacity
144
+ };
145
+ }
146
+ /**
147
+ * A square of white texels whose alpha is 1 near the centre and falls smoothly to 0 before the
148
+ * edge, for the grid material's `opacityTexture`.
149
+ *
150
+ * @returns `FADE_SIZE²` RGBA texels.
151
+ */
152
+ function radialFade() {
153
+ const data = /* @__PURE__ */ new Uint8Array(16384);
154
+ for (let row = 0; row < FADE_SIZE; row += 1) for (let col = 0; col < FADE_SIZE; col += 1) {
155
+ const u = (col + .5) / FADE_SIZE - .5;
156
+ const v = (row + .5) / FADE_SIZE - .5;
157
+ const t = Math.min(1, Math.max(0, (Math.hypot(u, v) - FADE_START) / .36));
158
+ const alpha = 1 - t * t * (3 - 2 * t);
159
+ const index = (row * FADE_SIZE + col) * 4;
160
+ data[index] = 255;
161
+ data[index + 1] = 255;
162
+ data[index + 2] = 255;
163
+ data[index + 3] = Math.round(alpha * 255);
164
+ }
165
+ return data;
166
+ }
167
+ //#endregion
168
+ export { createEditorGrid };
169
+
170
+ //# sourceMappingURL=grid.js.map
@@ -0,0 +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,WAAW;EACjF,WAAW;EACX,WAAW;CACb,CAAC;CACD,MAAM,SAAS,UACb,aAAa,QAAQ;EAAE,OAAO;EAAG,QAAQ;EAAG,cAAc;CAAE,CAAC,GAC7D,gBACA,mBAAmB;EACjB,MAAM;EACN,WAAW;GAAC;GAAK;G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F;;;;;;;;;;;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"}
package/dist/index.d.ts CHANGED
@@ -301,8 +301,8 @@ export type HostKind = (typeof HostKind)[keyof typeof HostKind];
301
301
  * The play controls send `"heartbeat"`, `"playControls"`, `"logRelay"` and `"queryRuntime"`, plus
302
302
  * `"screenshot"` when the game has a canvas and `"sendInput"` when it has `app.input`. The scene
303
303
  * host sends `"heartbeat"` and whichever of `"gizmos"`, `"screenshot"`, `"viewMode2d"`,
304
- * `"pick2d"`, `"gameView"` and `"thumbnails"` it supports; every `SceneMethod` not tied to one of
305
- * them is required of a 0.3 scene host.
304
+ * `"pick2d"`, `"gameView"`, `"thumbnails"` and `"grid"` it supports; every `SceneMethod` not tied
305
+ * to one of them is required of a 0.3 scene host.
306
306
  *
307
307
  * @public
308
308
  */
@@ -369,6 +369,13 @@ export declare const HostCapability: {
369
369
  * `RpcErrorCode.methodNotFound`.
370
370
  */
371
371
  readonly thumbnails: "thumbnails";
372
+ /**
373
+ * The scene host draws a grid in the view and answers `setGrid`: a ground grid at `y = 0` in 3D
374
+ * view mode and a unit grid (a pixel grid when zoomed in) over the 2D view. From engine ask E31
375
+ * (additive in 0.3); without it, the scene host answers `setGrid` with
376
+ * `RpcErrorCode.methodNotFound`.
377
+ */
378
+ readonly grid: "grid";
372
379
  };
373
380
  /**
374
381
  * The union of the names in `HostCapability`.
@@ -1110,6 +1117,11 @@ export declare const SceneMethod: {
1110
1117
  * `RpcErrorCode.methodNotFound`. Additive in 0.3.
1111
1118
  */
1112
1119
  readonly sampleAnimation: "sampleAnimation";
1120
+ /**
1121
+ * Shows or hides the view's grid and sets its spacing (engine ask E31). Needs
1122
+ * `HostCapability.grid`. Answers `null`. Additive in 0.3.
1123
+ */
1124
+ readonly setGrid: "setGrid";
1113
1125
  };
1114
1126
  /**
1115
1127
  * The union of the names in `SceneMethod`.
@@ -1760,6 +1772,33 @@ interface SetAnimateMaterialsParams {
1760
1772
  /** Whether the shader clock (`time` in shader materials and custom post effects) runs. */
1761
1773
  readonly enabled: boolean;
1762
1774
  }
1775
+ /**
1776
+ * The smallest grid spacing `setGrid` accepts, in metres.
1777
+ *
1778
+ * @public
1779
+ */
1780
+ export declare const GRID_MIN_SIZE = .001;
1781
+ /**
1782
+ * The largest grid spacing `setGrid` accepts, in metres.
1783
+ *
1784
+ * @public
1785
+ */
1786
+ export declare const GRID_MAX_SIZE = 1e3;
1787
+ /**
1788
+ * The parameters of `setGrid`. Each call sets the whole grid: a field left out takes its default.
1789
+ *
1790
+ * @public
1791
+ */
1792
+ interface SetGridParams {
1793
+ /** Whether the grid draws. Defaults to `true`, which is also how the host starts. */
1794
+ readonly visible?: boolean;
1795
+ /**
1796
+ * The spacing of the minor lines, in metres, from {@link GRID_MIN_SIZE} to {@link GRID_MAX_SIZE}.
1797
+ * Defaults to `1`. Every tenth line is a major line; when the lines get too dense to see, the
1798
+ * host draws every tenth one instead.
1799
+ */
1800
+ readonly size?: number;
1801
+ }
1763
1802
  /**
1764
1803
  * One collider's outline in the answer to `getColliderOutlines`.
1765
1804
  *
@@ -2054,10 +2093,10 @@ interface RpcNotificationWithParams<M extends string, P> extends RpcNotification
2054
2093
  *
2055
2094
  * @public
2056
2095
  */
2057
- type SceneRequest = RpcRequestWithParams<typeof SceneMethod.openScene, OpenSceneParams> | RpcRequest<typeof SceneMethod.closeScene, never> | RpcRequestWithParams<typeof SceneMethod.applyOps, ApplyOpsParams> | RpcRequestWithParams<typeof SceneMethod.readBack, ReadBackParams> | RpcRequestWithParams<typeof SceneMethod.select, EntitySelection> | RpcRequestWithParams<typeof SceneMethod.setGizmo, SetGizmoParams> | RpcRequestWithParams<typeof SceneMethod.frame, FrameParams> | RpcRequestWithParams<typeof SceneMethod.pick, PickParams> | RpcRequestWithParams<typeof SceneMethod.screenshot, ScreenshotParams> | RpcRequest<typeof SceneMethod.getSchemas, never> | RpcRequest<typeof SceneMethod.describeSettings, never> | RpcRequestWithParams<typeof SceneMethod.setViewMode, SetViewModeParams> | RpcRequestWithParams<typeof SceneMethod.setAnimateMaterials, SetAnimateMaterialsParams> | RpcRequestWithParams<typeof SceneMethod.getColliderOutlines, EntitySelection> | RpcRequestWithParams<typeof SceneMethod.sampleAnimation, SampleAnimationParams>;
2096
+ type SceneRequest = RpcRequestWithParams<typeof SceneMethod.openScene, OpenSceneParams> | RpcRequest<typeof SceneMethod.closeScene, never> | RpcRequestWithParams<typeof SceneMethod.applyOps, ApplyOpsParams> | RpcRequestWithParams<typeof SceneMethod.readBack, ReadBackParams> | RpcRequestWithParams<typeof SceneMethod.select, EntitySelection> | RpcRequestWithParams<typeof SceneMethod.setGizmo, SetGizmoParams> | RpcRequestWithParams<typeof SceneMethod.frame, FrameParams> | RpcRequestWithParams<typeof SceneMethod.pick, PickParams> | RpcRequestWithParams<typeof SceneMethod.screenshot, ScreenshotParams> | RpcRequest<typeof SceneMethod.getSchemas, never> | RpcRequest<typeof SceneMethod.describeSettings, never> | RpcRequestWithParams<typeof SceneMethod.setViewMode, SetViewModeParams> | RpcRequestWithParams<typeof SceneMethod.setAnimateMaterials, SetAnimateMaterialsParams> | RpcRequestWithParams<typeof SceneMethod.getColliderOutlines, EntitySelection> | RpcRequestWithParams<typeof SceneMethod.sampleAnimation, SampleAnimationParams> | RpcRequestWithParams<typeof SceneMethod.setGrid, SetGridParams>;
2058
2097
  /**
2059
2098
  * The success answer of the `SceneMethod`s that return nothing: `closeScene`, `setGizmo`, `frame`,
2060
- * `setViewMode` and `setAnimateMaterials`.
2099
+ * `setViewMode`, `setAnimateMaterials` and `setGrid`.
2061
2100
  *
2062
2101
  * @public
2063
2102
  */
@@ -2304,6 +2343,16 @@ export declare function isSetViewModeParams(value: unknown): value is SetViewMod
2304
2343
  * @public
2305
2344
  */
2306
2345
  export declare function isSetAnimateMaterialsParams(value: unknown): value is SetAnimateMaterialsParams;
2346
+ /**
2347
+ * Checks the parameters of `setGrid`.
2348
+ *
2349
+ * @param value - The received `params`.
2350
+ * @returns True for an object whose `visible`, if present, is a boolean and whose `size`, if
2351
+ * present, is a number from {@link GRID_MIN_SIZE} to {@link GRID_MAX_SIZE}.
2352
+ *
2353
+ * @public
2354
+ */
2355
+ export declare function isSetGridParams(value: unknown): value is SetGridParams;
2307
2356
  /**
2308
2357
  * Checks one record of `getColliderOutlines`.
2309
2358
  *
@@ -3379,5 +3428,5 @@ export declare function startEditorPlayControls(app: App, options: EditorPlayCon
3379
3428
  */
3380
3429
  export declare function listenForEditorPlayControls(options: EditorPlayControlsOptions): EditorPlayConnector;
3381
3430
  //#endregion
3382
- export { type AddComponentOp, type AppErrorData, type ApplyOpFailure, type ApplyOpsParams, type ApplyOpsResponse, type ApplyOpsResult, type AssetReloadedParams, type ColliderOutlineRecord, type ColliderOutlineSet, type ColliderOutlinesResponse, type CreateEntityOp, type DescribeSettingsResponse, type DestroyEntityOp, type EditorAssetChange, type EditorConnectMessage, type EditorHost, EditorHostErrorCode, type EditorHostOptions, type EditorMessageTarget, type EditorPlayConnector, type EditorPlayControls, type EditorPlayControlsOptions, type EntityField, type EntityFieldValues, type EntitySelection, type FrameParams, type GameViewFrameParams, type GameViewFrameResponse, type GameViewFrameResult, type GameViewState, type GetSchemasResponse, type GizmoDragMode, type GizmoSnap, type HeartbeatNotification, type HelloParams, type HelloRequest, type HostErrorParams, type HotReloadError, type HotReloadReport, type HotReloadedParams, type IncompatibleProtocolData, type InstantiateOp, type InvalidSceneFileData, type JsonArray, type JsonObject, type JsonPath, type JsonValue, type LogLevel, type LogParams, type LoggedError, type NullResponse, type OpenSceneParams, type OpenSceneResponse, type OpenSceneResult, type PickParams, type PickRay, type PickResponse, type PickResult, type PingRequest, type PlayRequest, type PlayResponse, type PlayState, type PlayStateChangedNotification, type PlayStateReport, type PlayStateResponse, type PlayStats, type PlayStatsResponse, type PongResponse, type ProtocolVersion, type QueryRuntimeParams, type QueryRuntimeResponse, type QueryRuntimeResult, type ReadBackParams, type ReadBackResponse, type ReadBackResult, type ReadyResponse, type ReadyResult, type RemoveComponentOp, type RemoveOverrideOp, type RenderThumbnailParams, type RenderViewRequest, type ReorderOp, type ReparentOp, type RpcError, type RpcErrorResponse, type RpcId, type RpcMessage, type RpcNotification, type RpcNotificationWithParams, type RpcRequest, type RpcRequestWithParams, type RpcResponse, type RpcSuccessResponse, type SampleAnimationParams, type SampleAnimationResponse, type SampleAnimationResult, type SceneFile, type SceneFileAssetRef, type SceneFileComponent, type SceneFileEntity, type SceneFileInstance, type SceneFileIssue, type SceneFileOverride, type SceneFileTransform, type SceneHostNotification, type SceneIssue, type SceneOp, type SceneOpenedParams, type SceneRequest, type SchemaDescription, type SchemaFieldDescription, type SchemaSet, type ScreenshotParams, type ScreenshotResponse, type ScreenshotResult, type SelectResponse, type SendInputEvent, type SendInputKeyEvent, type SendInputParams, type SendInputPointerEvent, type SendInputResponse, type SendInputResult, type SetAnimateMaterialsParams, type SetEntityFieldOp, type SetGameViewParams, type SetGameViewResponse, type SetGizmoParams, type SetOverrideOp, type SetPropOp, type SetSceneSettingOp, type SetTransformOp, type SetViewModeParams, type SettingsSet, type StepParams, type ThumbnailResponse, type ThumbnailResult, type TransformDraggedParams, type TransformDraggingParams, type Vec3, isEditorOrigin };
3431
+ export { type AddComponentOp, type AppErrorData, type ApplyOpFailure, type ApplyOpsParams, type ApplyOpsResponse, type ApplyOpsResult, type AssetReloadedParams, type ColliderOutlineRecord, type ColliderOutlineSet, type ColliderOutlinesResponse, type CreateEntityOp, type DescribeSettingsResponse, type DestroyEntityOp, type EditorAssetChange, type EditorConnectMessage, type EditorHost, EditorHostErrorCode, type EditorHostOptions, type EditorMessageTarget, type EditorPlayConnector, type EditorPlayControls, type EditorPlayControlsOptions, type EntityField, type EntityFieldValues, type EntitySelection, type FrameParams, type GameViewFrameParams, type GameViewFrameResponse, type GameViewFrameResult, type GameViewState, type GetSchemasResponse, type GizmoDragMode, type GizmoSnap, type HeartbeatNotification, type HelloParams, type HelloRequest, type HostErrorParams, type HotReloadError, type HotReloadReport, type HotReloadedParams, type IncompatibleProtocolData, type InstantiateOp, type InvalidSceneFileData, type JsonArray, type JsonObject, type JsonPath, type JsonValue, type LogLevel, type LogParams, type LoggedError, type NullResponse, type OpenSceneParams, type OpenSceneResponse, type OpenSceneResult, type PickParams, type PickRay, type PickResponse, type PickResult, type PingRequest, type PlayRequest, type PlayResponse, type PlayState, type PlayStateChangedNotification, type PlayStateReport, type PlayStateResponse, type PlayStats, type PlayStatsResponse, type PongResponse, type ProtocolVersion, type QueryRuntimeParams, type QueryRuntimeResponse, type QueryRuntimeResult, type ReadBackParams, type ReadBackResponse, type ReadBackResult, type ReadyResponse, type ReadyResult, type RemoveComponentOp, type RemoveOverrideOp, type RenderThumbnailParams, type RenderViewRequest, type ReorderOp, type ReparentOp, type RpcError, type RpcErrorResponse, type RpcId, type RpcMessage, type RpcNotification, type RpcNotificationWithParams, type RpcRequest, type RpcRequestWithParams, type RpcResponse, type RpcSuccessResponse, type SampleAnimationParams, type SampleAnimationResponse, type SampleAnimationResult, type SceneFile, type SceneFileAssetRef, type SceneFileComponent, type SceneFileEntity, type SceneFileInstance, type SceneFileIssue, type SceneFileOverride, type SceneFileTransform, type SceneHostNotification, type SceneIssue, type SceneOp, type SceneOpenedParams, type SceneRequest, type SchemaDescription, type SchemaFieldDescription, type SchemaSet, type ScreenshotParams, type ScreenshotResponse, type ScreenshotResult, type SelectResponse, type SendInputEvent, type SendInputKeyEvent, type SendInputParams, type SendInputPointerEvent, type SendInputResponse, type SendInputResult, type SetAnimateMaterialsParams, type SetEntityFieldOp, type SetGameViewParams, type SetGameViewResponse, type SetGizmoParams, type SetGridParams, type SetOverrideOp, type SetPropOp, type SetSceneSettingOp, type SetTransformOp, type SetViewModeParams, type SettingsSet, type StepParams, type ThumbnailResponse, type ThumbnailResult, type TransformDraggedParams, type TransformDraggingParams, type Vec3, isEditorOrigin };
3383
3432
  //# sourceMappingURL=index.d.ts.map
@@ -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;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,kBAAkB,iBAAiB,SAAS;;;;;;;;;;UCrS3C;;;;;;;EAOf,iBAAiB,iBAAiB,WAAW,OAAO;;;;;;;EAOpD,oBAAoB,iBAAiB,WAAW,OAAO;;;;;;;;;;UC5BxC;;WAEN;;WAEA;;;;;;;;;;UCSM;;;;;WAKN;;WAEA,kBAAkB,SAAS;;WAE3B,SAAS;;WAET;;;;;;;WAOA;;WAEA,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;;;;;;;;;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