Shapes
Mark equipment zones, room areas, and site boundaries using rectangles, ellipses, clouds, and polygons.
Shape drawing tools allow users to highlight specific areas, mark revision zones, or annotate CAD models and PDF drawings.
Use the tools API surface to activate shape modes and apply custom colors, fill, opacity, and line weights.
- Cloud (`SHAPE_CLOUD`): Highlight changes, revisions, and site survey correction areas.
- Rectangle (`SHAPE_RECTANGLE`): Mark room partitions, hardware components, and equipment placements.
- Ellipse (`SHAPE_ELLIPSE`): Outline circular sections, conduits, or inspection points.
Activate shape drawing modes programmatically using the tools surface:
Activate rectangle drawing mode
Deactivate shapes tool
Pass any of these action keys to viewer.tools.set:
- `SHAPE_RECTANGLE`: Standard 4-point rectangle outline.
- `SHAPE_RECTANGLE_ROUNDED`: Rectangle with rounded corners.
- `SHAPE_ELLIPSE`: Ellipse or perfect circle markup.
- `SHAPE_CLOUD`: Dynamic revision cloud outline.
- `SHAPE_POLYGON`: Custom multi-point shape contours.
Copy these project setup files to configure mounting, shape tools selection buttons, and tool clearing:
Trigger custom shape drawing states inside a React component:
Trigger custom shape drawing states inside a Vue composition component template:
Trigger custom shape drawing states inside an Angular component model:
Test the shape tools in real-time.
Interactive Workbench
Live Canvas Preview
Launch the interactive preview to explore the Canvas capabilities. Use the dashboard within the modal to test different tools and configurations.
Connect shape controls with core canvas setup steps.
- Canvas Setup: Canvas Iframe Initialization
- File Integration: File Upload
- Technical Reference: API References
