cue.zoom

!cue.zoomMicronode

A cue micronode for a graph’s x-domain / y-domain that announces itself: a box is drawn around the smaller of the two windows, held, and only then does the view move — into the box when zooming in, out of it when zooming out. The box never moves in data coordinates. Everything else works exactly like !cue.to, and the two can share a chain.

#Attributes

atRequired
When the zoom begins (the box starts drawing): a step index, an absolute scene time, or a compound offset.
How long the view takes to move once the box has been drawn and held.
Default1200ms
easing
linearsmooth
The move’s timing curve.
Defaultsmooth
How long the box takes to draw itself around the region.
Default700ms
Also written: pauseThe pause between the box closing and the view starting to move.
Default250ms
colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Also written: colorThe box is drawn in this palette colour.
Defaultgrey

#Allowed content

Body { }The target domain, e.g. [2, 4]

#Examples

x-domain: [0, 10] !cue.zoom{[2, 4]}(at: 2; draw: 400ms; hold: 300ms; colour: blue)