Skip to main content

ShapePalette

A palette for drag/drop that renders the contents of a shape library.

Extended by

Type Parameters

T

T extends ObjectData

Constructors

Constructor

new ShapePalette<T>(ui, options): ShapePalette<T>

Constructor for the palette.

Parameters

ui

BrowserUI

options

ShapePaletteOptions<T>

Options for the palette

Returns

ShapePalette<T>

Methods

setCurrentSet()

setCurrentSet(id): void

Selects some set to be the currently visible set, activating its parents if it is a nested set. If you pass in a null value for the set id, all sets will be shown.

Parameters

id

string

Returns

void