import { AcApContext } from '../../app'; import { AcEdCommand } from '../../editor'; /** * AutoCAD-like `LAYISO` command. * * The command isolates the layers of selected objects. Non-isolated layers are * either turned off or locked, depending on the persisted `Settings` choice. * * Current viewer limitations: * - Per-viewport layer freezing is not represented, so `Vpfreeze` falls back to * global layer-off behavior. * - Locked-layer fading is not rendered, so `Lock and fade` falls back to * locking non-isolated layers without changing their visibility. */ export declare class AcApLayerIsoCmd extends AcEdCommand { private static _settings; private _vpfreezeHintShown; private _lockFadeHintShown; /** * Creates a write-enabled `LAYISO` command instance. */ constructor(); /** * Runs the isolate-layer workflow. * * Preselected entities are consumed immediately. Otherwise the command keeps * prompting until the user either changes settings, selects objects, or * cancels the command. * * @param context - Active application context used to update layer states. * @returns Resolves when layer isolation is applied or the command exits. */ execute(context: AcApContext): Promise; /** * Sends a localized status message through the command-line output. * * @param message - Text to display to the user. * @param type - Visual severity mapped to command-line message styles. */ private notify; /** * Registers a localized keyword on a prompt. * * @param prompt - Prompt instance that should expose the keyword. * @param key - I18n keyword identifier under `jig.layiso.keywords`. */ private addKeyword; /** * Prompts for selected entities or the `Settings` keyword. * * @returns Selection or keyword action, or `undefined` when canceled. */ private promptSelection; /** * Opens the `Settings` branch for choosing how non-isolated layers behave. * * @returns Resolves when the setting prompt is dismissed or updated. */ private runSettings; /** * Prompts for viewport behavior used by the `Off` isolation mode. * * `Vpfreeze` falls back to ordinary layer-off behavior because the viewer has * no per-viewport layer state. * * @returns Resolves when the prompt is dismissed or the setting is updated. */ private promptOffMode; /** * Sets or clears the frozen bit while preserving other layer flags. * * @param layer - Target layer table record. * @param frozen - Whether the layer should be marked frozen. */ private setLayerFrozen; /** * Sets or clears the locked bit while preserving other layer flags. * * @param layer - Target layer table record. * @param locked - Whether the layer should be marked locked. */ private setLayerLocked; /** * Resolves selected entities to layer names and applies isolation. * * @param context - Active application context containing database and view. * @param objectIds - Entity ids selected by the user. */ private isolateSelectedObjectLayers; /** * Collects distinct layer names from selected entity ids. * * @param context - Active application context containing the drawing database. * @param objectIds - Selected entity identifiers. * @returns Layer names resolved from valid selected entities. */ private collectSelectedLayerNames; } //# sourceMappingURL=AcApLayerIsoCmd.d.ts.map