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).

Constructors

Properties

The view associated with this input operation

Accessors

Methods

  • 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.

    Returns Promise<AcGeBox2d>