Schemas / Geometry / paint
rig.geometry.line
v0.31.0 · draft 4 fields 4 required
Fields
| Field | Type | Meaning | |
|---|---|---|---|
x1 |
float | required | Start X, local space |
y1 |
float | required | Start Y, local space |
x2 |
float | required | End X, local space |
y2 |
float | required | End Y, local space |
Single straight segment. Format when present.
A line has no interior. hasFill on rig.paint.fill_stroke is ignored; stroke settings apply.
Multi-segment runs use rig.geometry.polygon when open or closed straight chains, or rig.geometry.path when curves are involved.
JSON Schema
Resolves at https://rig.works/schemas/rig.geometry.line.schema.json —
raw file.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://rig.works/schemas/rig.geometry.line.schema.json",
"title": "rig.geometry.line",
"type": "object",
"additionalProperties": false,
"properties": {
"x1": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"y1": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"x2": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"y2": {
"$ref": "./_defs.schema.json#/$defs/float"
}
},
"required": [
"x1",
"y1",
"x2",
"y2"
]
}