Skip to main content
Version: 0.0.7

Board API Reference

kittl.design.board — create and manage artboards.

Scope: design:state:write

createStandardBoard(params)​

Creates a new artboard on the canvas. See CreateBoardParams.

PropertyTypeRequiredDescription
positionAbsolutePosition | RelativePositionYesPlacement on the canvas
size{ width: number; height: number }YesBoard dimensions
titlestringNoBoard title

Returns: SdkResultAsync<NormalizedBoard>

cloneArtboard(params)​

Duplicates an existing artboard including all child objects.

PropertyTypeRequiredDescription
boardIdstringYesID of the artboard to clone
positionAbsolutePosition | RelativePositionYesPosition for the cloned board

Returns: SdkResultAsync<NormalizedBoard>

updateArtboard(params)​

Modifies properties of an existing artboard. Only specified properties are changed.

PropertyTypeRequiredDescription
idstringYesID of the artboard to update
artboardPartial<ArtboardOptions>NoPartial updates to artboard options (position, size, fill, etc.)
titlestringNoNew artboard title
textureTextureOptionsNoTexture options
backgroundImageBackgroundImageOptionsNoBackground image options

updateArtboardBackground(params)​

Updates the background image source of a board.

PropertyTypeRequiredDescription
idstringYesBoard ID
objectNamestringYesStored image source

See UpdateArtboardBackgroundParams for the published input and the board signatures for the result type.