Construct the manager and attach mousemove listener used for floating input positioning and live preview updates.
The view associated with the input manager
The flag to indicate whether it is currently in an “input acquisition” mode (e.g., point selection, distance/angle prompt, string prompt, etc.),
Whether current input session allows entity selection in the view.
Current modifier key state (Ctrl/Shift/Alt/Meta) during input sessions.
Toggle-style input states (press once to flip, persists after keyup).
Clears any pending scripted inputs.
Consumes and returns the next scripted token.
Next queued scripted token, or undefined when empty.
Queue scripted inputs for subsequent getXXX calls. One array item equals one Enter-confirmed value.
Prompts the user to specify an angle in degrees.
If a base point is available, the cursor position is converted into a live angular preview relative to that point and the optional prompt base angle. Without a geometric reference, the method accepts typed numeric input only.
Angle prompt options controlling base point, base angle, and messaging
A prompt result containing the resolved angle, cancel status, or keyword
Prompt the user to specify a rectangular box by selecting two corners. Each corner may be specified by clicking on the canvas or typing "x,y". A live HTML overlay rectangle previews the box as the user moves the mouse.
The box prompt is implemented as two chained point prompts. Keywords from the original box prompt are copied into each corner prompt so the caller sees a consistent interaction model across both stages.
Box prompt options controlling corner messages, preview behavior, and keywords
A prompt result containing the final 2D box, cancel status, or keyword
Prompts the user to specify a distance value.
When a base point is available, the floating input previews the live distance from that reference point to the current cursor. Otherwise, the method falls back to typed numeric entry only. Scripted inputs and keywords are supported as well.
Distance prompt options controlling base-point behavior and messaging
A prompt result containing the resolved distance, cancel status, or keyword
Prompts the user for a floating-point number.
This is the generic free-form numeric entry path used when no geometric interpretation such as distance or angle is required.
Double prompt options controlling validation and messaging
A prompt result containing the parsed number, cancel status, or keyword
Prompts the user to select a single entity.
Selection is performed by clicking in the view and validating the first
hit-tested entity under the cursor. The picked entity may be rejected when
it belongs to a locked layer or does not satisfy the prompt's allowed-class
filter, in which case the rejection message is shown and the prompt remains
active. Keywords and AllowNone behavior are also supported.
Entity prompt options controlling filtering, messaging, and keywords
A prompt result containing the selected entity id, picked point, cancel status, or keyword
Prompts the user for an integer value.
The supplied integer handler enforces integer-only parsing for both typed input and scripted command input.
Integer prompt options controlling validation and messaging
A prompt result containing the parsed integer, cancel status, or keyword
Prompts the user to enter one of the configured keywords.
Unlike the mixed-mode keyword sessions used by other prompt types, this method runs a dedicated keyword prompt and returns the chosen keyword as the result value.
Keyword prompt options describing the allowed keywords
A prompt result containing the chosen keyword or cancel status
Prompts the user to specify a point.
The point may be supplied by clicking in the view, typing coordinates into the floating input, or consuming a queued scripted input token. Keywords are also supported when configured on the prompt options.
Point prompt options controlling messaging, base-point behavior, jig integration, and keywords
A prompt result containing the picked point, cancel status, or keyword
Prompts the user to select one or more entities by mouse interaction.
This method supports two selection modes:
The selection operation behaves similarly to AutoCAD's
Editor.GetSelection() API:
true, the selection
completes immediately after the first entity is selected.This method does not use floating input boxes. Instead, it relies entirely on mouse gestures and keyboard input. A floating prompt message and command line prompt are displayed during the operation.
Selection prompt options that control user messaging and whether only a single entity may be selected.
A promise that resolves to an array of selected entity IDs. The array is empty if no entities are selected and the user presses Enter. The promise is rejected if the operation is cancelled.
Prompts the user to type an arbitrary string.
The value is collected through the shared floating-input pipeline so it can participate in the same cancellation, keyword, and scripted-input behavior as the other prompt types.
String prompt options controlling the prompt message and keywords
A prompt result containing the entered string, cancel status, or keyword
Returns the next scripted token without consuming it.
Next queued scripted token, or undefined when empty.
Reset toggle-style inputs to their default state.
Displays a typed message in the command-line message panel.
Message text to render
Message severity controlling the rendered style
OptionalmsgKey: stringOptional localization key associated with the message
A fully type-safe TypeScript class providing CAD-style interactive user input using floating HTML input boxes and mouse events. Supports collecting points, distances, angles, numbers, strings, and selecting a 2-point rectangular box using an HTML overlay rectangle (suitable when the main canvas is a THREE.js WebGL canvas).