getPerfectDashProps

See source code
function getPerfectDashProps(
  totalLength: number,
  strokeWidth: number,
  opts?: Partial<{
    closed: boolean
    end: 'none' | 'outset' | 'skip'
    forceSolid: boolean
    lengthRatio: number
    snap: number
    start: 'none' | 'outset' | 'skip'
    style: TLDefaultDashStyle
  }>
): {
  strokeDasharray: string
  strokeDashoffset: string
}

Parameters

NameDescription

totalLength

number

strokeWidth

number

opts

Partial<{
  closed: boolean
  end: 'none' | 'outset' | 'skip'
  forceSolid: boolean
  lengthRatio: number
  snap: number
  start: 'none' | 'outset' | 'skip'
  style: TLDefaultDashStyle
}>

Returns

{
  strokeDasharray: string
  strokeDashoffset: string
}
Prev
getIncrementedName
Next
getPointerInfo