drawShapeProps

See source code

Validation 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
drawShapeMigrations
Next
ElbowArrowSnap