Skip to content

pantoken-root / formats/scope/src / ConnectScopeOptions

Interface: ConnectScopeOptions ​

Beta

Options for toGpl.

Properties ​

instanceId? ​

optional instanceId?: string

Beta

The instance to accept messages for (default DEFAULT_INSTANCE).


element? ​

optional element?: HTMLElement

Beta

The element to apply received state to (default document.documentElement).


host? ​

optional host?: Window | null

Beta

The font family name (default "PanTokens").


hostOrigin? ​

optional hostOrigin?: string

Beta

The origin the host must have. Pass "*" only for an opaque-origin srcdoc document.


onChange? ​

optional onChange?: (config) => void

Beta

Called after each applied update.

Parameters ​

config ​

ScopeConfig

Returns ​

void