Skip to main content

sdk.appstate

Home > @kittl/sdk > AppState

AppState type

Application state interface containing selection, viewport, active tool, and other UI state.

TODO: The comments on every property in this interface is a carry over from V1 AppStateStore. Some of these comments are related to some optimization techniques and will be verified and updated accordingly when we build Extensions

Signature:

export type AppState = {
selectedObjectsIds: string[];
selectedLayersIds: string[];
selectedArtboardIds: string[];
selectedArtboardsObjectIds: string[];
allSelectedObjectsIds: string[];
canvasMode: CanvasMode | string;
activeTool: ActiveTool | null;
viewport: Viewport;
hoveredObjectId: string | null;
};

References: CanvasMode, ActiveTool, Viewport