Manual
Overview
Language
IntroductionScenes & structureText & inlineGraphsCode panesAnimationDataReuse & logicExpressions & parameters
Elements
Text
ParagraphHeading 1Heading 2Heading 3Heading 4Unordered ListDivider
Media
ImageTableEquation
Callouts
NoteDefinitionExampleTask
Graph
GraphLinePolygonCurveIntegralScatterHistogramPointSegmentVectorCircleSquareRectangleTriangleStarDiamondHexagonTextAxis labelAxis BraceFitResidualsContourHeatmapParameter
Code
Code canvasLines
Animation
CueDraw cueTrace cueHighlight cueSpotlight cueType cue
Structure
SceneStep
Reference
Internote Reference
Inline
Formatting
BoldItalicsInline CodeHighlightLink
Text colour
Red textOrange textYellow textGreen textTeal textBlue textPurple textPink textGrey text
Maths
Maths
Reference
Internote ReferenceValueConstant
Other
FootnoteIcon
Directives
DatasetIncludeConstantsTemplatePresetConditionalForIgnore
Keyframes
KeyframeZoom keyframe
Attribute types
?
  1. Keyframes
  2. Zoom keyframe

Zoom keyframe

!cue.zoomKeyframe

A keyframe 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
cue-anchor
When the zoom begins (the box starts drawing): a step index, an absolute scene time, or a compound offset.
over
duration
How long the view takes to move once the box has been drawn and held.
Default1500
easing
easing-function
The move’s timing curve.
Defaultsmooth
draw
duration
How long the box takes to draw itself around the region.
hold
duration
Also written: pauseThe pause between the box closing and the view starting to move.
colour
colour
Also written: colorThe box is drawn in this palette colour.

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)
On this page
AttributesExamples
Zoom keyframe · Internote