Package Exports
- @lokasketch/types
Readme
@lokasketch/types
Shared TypeScript type definitions for the LokaSketch Editor SDK.
Installation
npm install @lokasketch/typesUsage
import type {
EditorElement,
TextElement,
ImageElement,
ShapeElement,
FreehandElement,
EditorJSON,
EditorConfig,
} from '@lokasketch/types'Type Definitions
Element Types
TextElement- Text element with font, size, color, alignment propertiesImageElement- Image element with crop, border, corner radius propertiesShapeElement- SVG shape element with fill, stroke propertiesFreehandElement- Freehand drawing element with points array
Editor Types
EditorJSON- Complete design serialization formatEditorConfig- API configuration for the editorEditorState- Internal editor stateEditorProps- CustomEditor component props
Documentation
See the main Custom Editor documentation for complete API reference.
License
MIT