Fields it adds

This trait adds no fields.

What it shows in each context

form
VizOpacityControls
detail
VizOpacitySummary

Parameters

renderIntent string
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-opacity.trait.yaml
{
  "trait": {
    "name": "EncodingOpacity",
    "version": "0.1.0",
    "description": "Constant Cartesian mark opacity",
    "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": "VizOpacityControls",
        "position": "top",
        "props": {
          "intentParameter": "renderIntent"
        }
      }
    ],
    "detail": [
      {
        "component": "VizOpacitySummary",
        "position": "top",
        "props": {
          "intentParameter": "renderIntent"
        }
      }
    ]
  },
  "tokens": {},
  "metadata": {
    "regionsUsed": [
      "form",
      "detail"
    ]
  }
}