index.uts 895 B

12345678910111213141516171819202122232425262728293031323334353637
  1. export type LSignatureToFileSuccess = {
  2. tempFilePath: string
  3. isEmpty: boolean
  4. }
  5. export type LSignatureToFileSuccessCallback = (res : LSignatureToFileSuccess) => void
  6. export type LSignatureToFileFailCallback = (res : TakeSnapshotFail) => void
  7. export type LSignatureToFileCompleteCallback = (res : any) => void
  8. export type LSignatureToTempFilePathOptions = {
  9. success?: LSignatureToFileSuccessCallback
  10. fail?: LSignatureToFileFailCallback
  11. complete?: LSignatureToFileCompleteCallback
  12. format?: string
  13. }
  14. export type LSignatureOptions = {
  15. penColor : string
  16. // backgroundColor : string
  17. openSmooth : boolean
  18. disableScroll : boolean
  19. disabled : boolean
  20. penSize : number
  21. minLineWidth : number
  22. maxLineWidth : number
  23. minSpeed : number
  24. maxWidthDiffRate : number
  25. maxHistoryLength : number
  26. }
  27. export type Point = {
  28. x: number
  29. y: number
  30. c?: string
  31. w?: number
  32. }
  33. export type Line = Point[]