World text
Declare plain text and Scape’s text editor.
Public exports
Import from @scape-wtf/sdk.
GizmoTextEditor, gizmoWorldText, validGizmoTextEditor, validGizmoWorldText.
Type declarations
Import the public exports listed above from the package entry point.
ts
import { type ObjectDefinition } from './api.js';
/** A single text field rendered by Scape's existing anchored configuration popover. */
export interface GizmoTextEditor {
field: string;
action: string;
label: string;
maxLength: number;
}
export declare function validGizmoTextEditor(value: unknown): value is GizmoTextEditor;
/** Validate bounded plain text; Scape displays it without interpreting HTML. */
export declare function validGizmoWorldText(value: unknown): value is string;
export declare function gizmoWorldText(definition: ObjectDefinition, state: unknown): string;1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
Usage and limits
See Gizmo guides, working examples, and limits for lifecycle, validation and Scape behavior.
