Markup
Add clarity to review cycles using text, callouts, highlighter, and freehand drawing brushes.
Markup tools allow users to add annotations, highlight logical areas of interest, or sketch freehand feedback directly on the Canvas.
Use the tools API surface to activate annotation drawing modes and configure styling properties (line widths, border colors, opacity) programmatically.
- Text & Callouts: Rectangle text borders with direct leader pointer arrows.
- Highlighters: Semi-transparent overlays for technical document overlays and area highlights.
- Freehand Sketching: Multi-point custom sketches for capturing handwriting or rough field notes.
Activate tools and apply styles using the viewer.tools.set method:
Activate text tool
Activate with custom stroke styles
Clear active tool
The SDK accepts these standard annotation action strings:
- `TEXT`: Rectangle border containing editable text.
- `CALLOUT`: Text callout box connected to an adjustable pointer line.
- `PAINT_HIGHLIGHTER`: Rectangular highlighting brush.
- `PAINT_FREEHAND`: Custom multi-point handwriting curves.
- `ERASE`: Selective annotation erase selector.
Copy these project setup files to configure mounting, tool selection clicks, and tool clearing:
Trigger text, callout, and sketch annotation workflows inside a React component:
Trigger text, callout, and sketch annotation workflows inside a Vue composition component:
Trigger text, callout, and sketch annotation workflows inside an Angular component structure:
Test the markup 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 markup tools with core canvas setup steps.
- Canvas Setup: Canvas Iframe Initialization
- File Integration: File Upload
- Technical Reference: API References
