CanvasPath
Path to draw on the canvas.
Properties
drawMode
readonlydrawMode:boolean
Whether the path is a draw mode or erase mode.
Source
packages/react-sketch-canvas/src/types/canvas.ts:56
endTimestamp?
optionalreadonlyendTimestamp:number
The timestamp when the path was last updated. This is used to determine the order of the paths.
Remarks
This will only be set when the withTimestamp option is set to true.
Source
packages/react-sketch-canvas/src/types/canvas.ts:70
paths
readonlypaths:Point[]
The paths to draw. Each path is an array of points.
Source
packages/react-sketch-canvas/src/types/canvas.ts:44
startTimestamp?
optionalreadonlystartTimestamp:number
The timestamp when the path was created. This is used to determine the order of the paths.
Remarks
This will only be set when the withTimestamp option is set to true.
Source
packages/react-sketch-canvas/src/types/canvas.ts:63
strokeColor
readonlystrokeColor:string
Color of the stroke.
Source
packages/react-sketch-canvas/src/types/canvas.ts:52
strokeWidth
readonlystrokeWidth:number
The stroke width of the path.