ToolbarViewItem
The scene's view controls, reserved: an environment says it can be explored, and the host draws one Zoom in / Reset view / Zoom out group for every environment in the scene that says so.
@internote/canvas-sdkimport { ToolbarViewItem } from '@internote/canvas-sdk';A slot rather than buttons, because two explorable environments in a split would otherwise draw two identical groups side by side. Each press acts on every environment it applies to; see resolveViewGroup.
#Fields
channelThe environment's view channel, which the host's buttons drive.
ViewChannel<unknown>typeMarks the item as the view slot.
'view'#Example
toolbar: (ctx) => (ctx.animation.attrValue('interactive') === true ? [{ type: 'view', channel: plotView }] : []),Declared in packages/canvas-sdk/src/toolbar/types.ts:139.