import type { LayoutNode } from "../layout"; import type { Commands, Events, Operations } from "../messaging"; import type { LayoutNodeInfo } from "./LayoutNodeInfo"; /** * Utilities passed into callbacks that deal with layout settings. */ export interface LayoutItemUtils { /** * Translate a language key into the value for the current GXW locale. * * @param args The values to substitute into the format string if it * contains substitution placeholders (see RegionService). */ translate: (text: string, ...args: unknown[]) => string; /** * Translate a language key into the value for the browser locale. * * @param args The values to substitute into the format string if it * contains substitution placeholders (see RegionService). */ translateToBrowserLocale: (text: string, ...args: unknown[]) => string; /** * Get some information about the layout node. */ getNodeInfo: (node: LayoutNode) => LayoutNodeInfo; /** * Well-known VertiGIS Studio Web commands. */ commands: Commands; /** * Well-known VertiGIS Studio Web events. */ events: Events; /** * Well-known VertiGIS Studio Web operations. */ operations: Operations; }