Count Point Mode
Enable or disable count-point insertion mode for a count annotation using the SDK.
Use viewer.annotations.setCountPointMode(...) to enable or disable count-point insertion mode for a count annotation.
Count point mode is available after the viewer is mounted, Canvas is ready, a document is open, and your app knows the target count annotation GUID.
Enable or disable insertion mode programmatically by passing the annotation GUID:
setCountPointMode(...)is fire-and-forget. Canvas does not return a command result event.
Use selection events to store the currently active count GUID:
Typical implementation for toolbar toggle button handlers:
Always disable count point mode when targeting transitions or state clear:
- The selected annotation changes.
- The active document or file tab changes.
- The component unmounts.
- The user deactivates the toggle.
Complete integration code setup for Vanilla HTML/JS environments:
Complete React Component implementation details:
Broker message mapping for setCountPointMode API:
viewer.annotations.setCountPointMode(...)maps toinsertCountPointMode.
