Type Aliases
CommandObject
CommandType
CommandType: "M" | "m" | "L" | "l" | "C" | "c" | "Z" | "H" | "h" | "V" | "v" | "A" | "a" | "Q" | "q"
DownloadOption
DownloadOption: { extension: "svg" | "png" | "jpg"; filename?: string }
Type declaration
extension: "svg" | "png" | "jpg"
Optional filename?: string
DrawEventName
DrawEventName: Extract<keyof GlobalEventHandlersEventMap, "pointerdown" | "pointermove" | "pointerleave" | "pointercancel" | "pointerup" | "touchstart" | "touchmove" | "touchend" | "touchcancel" | "mousedown" | "mousemove" | "mouseleave" | "mouseout" | "mouseup">
DrawHandlerCallback
DrawHandlerCallback: { end: any; move: any; start: any }
Type declaration
end:function
Returns void
move:function
Parameters
Returns void
start:function
Returns void
DrawListenerType
DrawListenerType: "pointer" | "touch" | "mouse"
DrawingOption
Drawing
Option
: RendererOption & { close
?: boolean; curve
?: boolean; delay
?: number; fill
?: string; penColor
?: string; penWidth
?: number }ListenerMaps
PathObject
PathObject: {}
Type declaration
[camelCase: string]: string | undefined
PointObject
PointObject: { pressure?: number; x: number; y: number }
Type declaration
Optional pressure?: number
x: number
y: number
RendererOption
Renderer
Option
: Pick<SvgOption, "background">ResizeHandlerCallback
ResizeHandlerCallback: { resize: any }
Type declaration
resize:function
- resize(rect: DOMRect | { height: number; left: number; top: number; width: number }): void
Parameters
rect: DOMRect | { height: number; left: number; top: number; width: number }
Returns void
SvgObject
Svg
Object
: { background
?: string; height
: number; paths
: PathObject[]; width
: number }Type declaration
Optional background?: string
height: number
width: number
SvgOption
SvgOption: { background?: string; height: number; width: number }
Type declaration
Optional background?: string
height: number
width: number
Command Object