Traits / EncodingShape
EncodingShape
Categorical shape encoding
Generated from @oods/foundry 0.10.1
- Group
- viz.encoding
- Maturity
- not declared
- Contexts
- form
Fields it adds
This trait adds no fields.
What it shows in each context
- form
VizShapeControls,VizShapeLegend
Parameters
renderIntentstring- JSON-encoded Cartesian viz.render input fragment; data rows are supplied by the consumer.
Objects that use it
No shipped object uses this trait.
The trait file
traits/viz/encoding-shape.trait.yaml
{
"trait": {
"name": "EncodingShape",
"version": "0.1.0",
"description": "Categorical shape encoding",
"category": "viz.encoding",
"tags": [
"viz",
"authoring"
]
},
"parameters": [
{
"name": "renderIntent",
"type": "string",
"required": false,
"default": "{}",
"description": "JSON-encoded Cartesian viz.render input fragment; data rows are supplied by the consumer."
}
],
"schema": {},
"semantics": {},
"view_extensions": {
"form": [
{
"component": "VizShapeControls",
"position": "top",
"props": {
"intentParameter": "renderIntent"
}
},
{
"component": "VizShapeLegend",
"position": "top",
"props": {
"intentParameter": "renderIntent"
}
}
]
},
"tokens": {},
"metadata": {
"regionsUsed": [
"form"
]
}
}