JSPM

@lokasketch/types

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q5593F
  • License SEE LICENSE IN LICENSE

Shared TypeScript type definitions for Custom Editor SDK - React-based image design editor

Package Exports

  • @lokasketch/types

Readme

@lokasketch/types

Shared TypeScript type definitions for the LokaSketch Editor SDK.

Installation

npm install @lokasketch/types

Usage

import type {
  EditorElement,
  TextElement,
  ImageElement,
  ShapeElement,
  FreehandElement,
  EditorJSON,
  EditorConfig,
} from '@lokasketch/types'

Type Definitions

Element Types

  • TextElement - Text element with font, size, color, alignment properties
  • ImageElement - Image element with crop, border, corner radius properties
  • ShapeElement - SVG shape element with fill, stroke properties
  • FreehandElement - Freehand drawing element with points array

Editor Types

  • EditorJSON - Complete design serialization format
  • EditorConfig - API configuration for the editor
  • EditorState - Internal editor state
  • EditorProps - CustomEditor component props

Documentation

See the main Custom Editor documentation for complete API reference.

License

MIT