NPM Package/docs/components/placement/symbols
Symbols
Control the canvas symbols panel from the host application using the SDK.
Use viewer.tools.symbols to open, close, or toggle the Canvas symbols panel.
Symbol tools are available after the viewer is mounted, Canvas is ready, and a document is open.
typescript
Overview
Toggle the visibility state of the symbols panel programmatically. These methods return a Promise resolving to the panel status:
viewer.tools.symbols.open()sendssymbolsControlwithcommand: "open"and waits forsymbolsControlResult.- You can specify an optional custom timeout:
Toggle symbols panel with timeout
typescript
Open, Close or Toggle Panel
Symbol panel methods return the standard panel result shape:
- The SDK rejects the Promise when the viewer is not ready, the Canvas message broker is unavailable, Canvas does not return a response before the timeout, or a Canvas-side failure occurs.
typescript
Result Shape
Complete integration code setup for Vanilla HTML/JS environments:
Vanilla Example
Complete React Component implementation details:
tsx
React Integration
Broker message mapping for symbol tools:
viewer.tools.symbols.open(...)maps tosymbolsControl/symbolsControlResult.viewer.tools.symbols.close(...)maps tosymbolsControl/symbolsControlResult.viewer.tools.symbols.toggle(...)maps tosymbolsControl/symbolsControlResult.
