Scenic.Primitive.Style.Hidden (Scenic v0.11.0-beta.0) View Source

Flags whether or not to draw a primitive.

Example:

graph
  |> rect( {100, 200}, hidden: true )

Data Format

  • true - "Hide" the primitive. Drawing is skipped.
  • false - "Show" the primitive. Drawing is run.

Note: setting hidden: true on a group will hide all the primitives in the group. This is very efficient as it simply skips drawing the group and everything in it.

The Hidden style is a handy way to create a set of primitives that you can quickly show and hide on demand.