Class BlockPaletteManager
Methods
addOrReplacePalette
- addOrReplacePalette(paletteId: string, palette: BlockPalette): void
Returns void
getPaletteIdList
- getPaletteIdList(): string[]
Returns string[]
getPaletteItem
- getPaletteItem(paletteId: string, index: number): IBlockPaletteItem
Parameters
- paletteId: string
- index: number
removePalette
- removePalette(paletteId: string): void
Returns void
setPaletteItem
- setPaletteItem(paletteId: string, index: number, item: IBlockPaletteItem): void
Returns void
setPrimaryPalette
- setPrimaryPalette(paletteId: string): void
Returns void
Remarks
This function can't be called in read-only mode.