drawShapeProps
See source codeValidation schema for draw shape properties.
drawShapeProps: RecordProps<TLDrawShape>
Example
// Validate draw shape properties
const props = {
color: 'red',
fill: 'solid',
segments: [{ type: 'free', points: [] }],
isComplete: true,
}
const isValid = drawShapeProps.color.isValid(props.color)
Prev
drawShapeMigrationsNext
ElbowArrowSnap