Write an object. Only the fields named below are allowed. Unknown fields are rejected so a typo cannot hide inside the document.
You must include type.
You may omit bounds, width, height, depth, radius, path, points, closed, assetRef, segments, text, and extensions. Leave a field out when you have nothing to say. Do not invent a placeholder.
Exact constraints
- type
object- additional properties
forbidden
typerequired"rectangle" | "rounded-rectangle" | "ellipse" | "circle" | "line" | "polygon" | "polyline" | "path" | "text" | "plane" | "box" | "sphere" | "cylinder" | "cone" | "torus" | "mesh" | "custom"Pick one of the 17 listed values. Any other value is invalid. The list is closed on purpose so tools agree on the same words.
Exact constraints
"rectangle""rounded-rectangle""ellipse""circle""line""polygon""polyline""path""text""plane""box""sphere""cylinder""cone""torus""mesh""custom"
boundsboundsThis is not a new shape. It reuses bounds from the common module. Open that definition for the fields you can write.
widthsizeThis is not a new shape. It reuses size from the common module. Open that definition for the fields you can write.
heightsizeThis is not a new shape. It reuses size from the common module. Open that definition for the fields you can write.
depthsizeThis is not a new shape. It reuses size from the common module. Open that definition for the fields you can write.
radiussizeThis is not a new shape. It reuses size from the common module. Open that definition for the fields you can write.
pathstringSVG-compatible path data.
Write a text value.
An empty string is not allowed.
Exact constraints
- type
string- min length
1
pointsarray<vector2 | vector3>Write a list. Each item follows the shape described under items.
The list needs at least 2 items.
Exact constraints
- type
array- min items
2
itemsvector2 | vector3More than one shape is accepted. Use exactly one of the 2 alternatives below. They are different ways to say the same kind of value.
anyOf 1vector2This is not a new shape. It reuses vector2 from the common module. Open that definition for the fields you can write.
anyOf 2vector3This is not a new shape. It reuses vector3 from the common module. Open that definition for the fields you can write.
closedbooleanWrite true or false.
Exact constraints
- type
boolean
assetRefidThis is not a new shape. It reuses id from the common module. Open that definition for the fields you can write.
segmentsintegerWrite a whole number.
The number must be at least 3.
Exact constraints
- type
integer- minimum
3
textstringWrite a text value.
An empty string is not allowed.
Exact constraints
- type
string- min length
1
extensionsextensionsThis is not a new shape. It reuses extensions from the common module. Open that definition for the fields you can write.