Skip to main content

sdk.designprojectsdk

Home > @kittl/sdk > DesignProjectSDK

DesignProjectSDK interface

Main SDK interface for design projects. Provides access to design, workspace, and app state APIs.

Signature:

export interface DesignProjectSDK extends ProjectSDK 

Extends: ProjectSDK

Properties

Property

Modifiers

Type

Description

appState

AppStateSDK

Access to application state APIs (selection, viewport, active tool, etc.)

design

DesignSDK

Access to design manipulation APIs (artboards, objects, text, shapes, etc.)

getDesignDoc

() => KittlDocument<CrdtDesignState> | undefined

Gets the CRDT document for the design state

getWorkspaceDoc

() => KittlDocument<WorkspaceState> | undefined

Gets the CRDT document for the workspace state

workspace

WorkspaceSDK

Access to workspace APIs