index.uts 909 B

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