Skip to main content

DigitalInk

Digital ink stroke data format standard (validation / normalization) β€” Layer 0 Foundation

Status​

KeyValue
Layerfoundation
TierL0
Statuswip
Version0.9.0
PriceFree (free)
CategoryInput & UX

Overview​

Overview​

DigitalInk is the Layer 0 Foundation Plugin of multi-saas-kit. It defines and validates standard stroke data for handwriting, signatures, sketches, and annotation input.

It is a dependency base for HandwritingInput, RecognitionBridge, and BrushConfiguration. It does not include learning evaluation or SaaS-specific workflows.

Standard Format​

Uses a Google Input Tools compatible ink array shape. Each stroke consists of x coordinates, y coordinates, and optional timestamps. x/y/t arrays must have matching lengths.

Features​

  • StrokeData::fromArray(payload, config): validation and instantiation
  • strokeCount(), pointCount(), hasTimestamps()
  • StrokeNormalizer::normalize(): canvas coordinates to unit coordinates
  • denormalize(targetW, targetH): unit coordinates to a new canvas
  • boundingBox(): min/max coordinates and size

Validation Rules​

  • canvas size: 80~4096 px
  • max strokes: 1000
  • max points per stroke: 10000
  • x/y/t array length must match
  • coordinates must be numeric

Relationships​

  • RecognitionBridge: uses StrokeData for provider API calls
  • HandwritingInput: composite of DigitalInk + RecognitionBridge + BrushConfiguration
  • BrushConfiguration: canvas/brush configuration foundation in the same input stack

License​

MIT

Demos​


πŸ›’ View on Plugin Store: store.codebase.how/plugins/digital-ink