본문으로 건너뛰기

DigitalInk

디지털 잉크 stroke 데이터 포맷 표준 (검증 / 정규화)

상태

항목
Layerfoundation
TierL0
Statuswip
Version0.9.0
가격Free (free)
**카�
�고리**Input & UX

개요

개요

DigitalInk 는 multi-saas-kit 의 Layer 0 Foundation Plugin � 니다. 필기, 서� , 스케치, 주석 � 력의 표준 stroke 데이터 포맷을 정의하고 검증/정규화 기능을 제공합니다.

다른 Plugin (HandwritingInput, RecognitionBridge, BrushConfiguration) 의 의존 기반� 니다. 학습 평가나 특정 SaaS workflow 는 포함하지 않습니다.

표준 포맷

Google Input Tools 호환 ink 배열 shape 를 표준으로 사용합니다. 각 stroke 는 x 좌표 배열, y 좌표 배열, 선택적 timestamp 배열로 구성되며 x/y/t 길이는 동일해야 합니다.

주요 기능

  • StrokeData::fromArray(payload, config): 자동 검증 + 인스턴스 생성
  • strokeCount(), pointCount(), hasTimestamps()
  • StrokeNormalizer::normalize(): 캔버스 좌표를 0~1 정규 좌표로 변환
  • denormalize(targetW, targetH): 정규 좌표를 새 캔버스 좌표로 변환
  • boundingBox(): stroke 의 최소/최대 좌표 + 크기 계산

검증 규칙

  • canvas 크기: 80~4096 px
  • stroke 수: 최대 1000
  • stroke 당 point 수: 최대 10000 (DoS 방지)
  • x/y/t 배열 길이 일치
  • 좌표 numeric 검증

다른 Plugin 과의 관계

  • RecognitionBridge: provider API 호출 시 StrokeData 사용
  • HandwritingInput: DigitalInk + RecognitionBridge + BrushConfiguration 조립
  • BrushConfiguration: 같은 � 력 스택의 canvas/brush 설정 기반

라이선스

MIT

데모


🛒 Plugin Store에서 보기: store.codebase.how/plugins/digital-ink