Skip to main content

hide

hide() 

Hides an element.

Hidden elements are not drawn to the canvas, are ignored when calculating bounding boxes and discarded by merge-path. All other behaviours remain the same as a non-hidden element.

set-style(radius: .5)
intersections("i", {
circle((0,0), name: "a")
circle((1,2), name: "b")
// Use a hidden line to find the border intersections
hide(line("a.center", "b.center"))
})
line("i.0", "i.1")

One or more elements to hide

bounds:

Default: falseโ€‹

If true, respect the bounding box of the hidden elements for resizing the canvas