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.),
Request an angle in degrees from the user.
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.
Request a distance (number) from the user.
Request a double/float from the user.
Request an integer from the user.
Prompt the user to type an arbitrary string. Resolved when Enter is pressed.
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).