Skip to content

Reference

All exports

Every export of every pack in one list. Type in the box to filter by name or description.

NameKindPackWhat it does
AnchortypeCoreA point that may follow something else: a fixed position, or a function evaluated each frame.
anglesOffunctionCoreThe angles and distance of a perspective camera, the inverse of orbitPosition.
AnimtypeCoreA piece of animation.
antennafunctionDevicesAn antenna: a whip on a base, a parabolic dish on a mount, or a lattice tower.
AntennaclassDevicesAn antenna.
AntennaOptstypeDevicesOptions of antenna.
arcSegsfunctionCoreA circular arc as cubic segments, none longer than a quarter turn.
areasfunctionChartsAn area chart: overlapping filled areas, or stacked with stack: true.
arrowfunctionCoreA line with an arrowhead at the end.
axesfunctionCoreThe coordinate frame: three arrows along x, y and z with labels.
BadgeclassUI on screensThe little count on an icon.
badgefunctionUI on screensA small round badge with a count, such as an unread marker.
BadgeOptstypeUI on screensOptions of badge.
barsfunctionChartsA bar chart.
BoxclassCoreA box standing on the point at: the centre of its base.
boxfunctionCoreA box standing on the point at, the centre of its base.
BoxOptstypeCoreOptions of box.
browserfunctionDevicesA browser window.
BrowserOptstypeDevicesOptions of browser.
CameraclassCoreWorld axes: x to the right, y into the scene, z up.
cameraGlyphfunctionCoreA pinhole camera: its apex, image plane and the rays through the corners, aimed at a target.
ChartclassChartsA chart drawn on a plane in the scene: flat on the page, standing up, or on a screen (device.put).
chartfunctionChartsA chart.
ChartDatatypeChartsWhat data can be.
ChartOptstypeChartsOptions of chart and of the named chart factories (bars, lines, pie, and so on).
ChartTypetypeChartsThe kinds of chart chart can draw.
ChatclassUI on screensA conversation: messages from me on the right in the accent colour, from them on the left.
chatfunctionUI on screensA chat: bubbles from you and from them, with typing dots.
ChatOptstypeUI on screensOptions of chat.
circlefunctionCoreA circle or arc in a coordinate plane, centred on at.
circleDfunctionCoreA full circle as a path, starting at the top and going clockwise, so it draws on like a compass.
clampZoomfunctionCoreMultiplies a zoom by a factor and keeps it inside the limits.
cloudfunctionDevicesA cloud made of overlapping balls.
CloudOptstypeDevicesOptions of cloud.
codefunctionCoreCode on any plane, coloured, optionally numbered.
colourOffunctionCorea colour role (ink, faint, accent, grid, s1 to s8) or any CSS colour, as a CSS colour
ConstructclassCoreA drawing built from parts that each draw on, fill, turn, move and fade by themselves.
ConstructOptstypeCoreOptions of a construction.
CurveclassCoreA line through the samples of a function, drawn as one SVG path.
curvefunctionCoreA curve through the points of a function t => [x, y, z], sampled samples times between t0 and t1.
cylinderfunctionDevicesA cylinder standing on the point at.
CylinderOptstypeDevicesOptions of cylinder.
databasefunctionDevicesThe classic database icon: stacked discs.
DatabaseOptstypeDevicesOptions of database.
DeviceclassDevicesA thing with a screen.
DiagramclassGraphs and flowBoxes and arrows that place themselves.
diagramfunctionGraphs and flowBoxes and arrows that place themselves.
DiagramEdgeclassGraphs and flowA line between two nodes, routed by the layout.
DiagramNodeclassGraphs and flowOne box of a diagram: a shape and the words in it.
DiagramOptstypeGraphs and flowOptions of diagram.
DialogclassUI on screensA dialog box with a title, text and buttons.
dialogfunctionUI on screensA dialog box with a title, a body and buttons.
DialogOptstypeUI on screensOptions of dialog.
dimensionfunctionCoreA measured distance: a line with end ticks and a label, offset to one side so it does not cover the thing measured.
documentfunctionDevicesA sheet of paper with a folded corner and lines of text.
DocumentOptstypeDevicesOptions of document.
donutfunctionChartsA pie with a hole.
DotclassCoreA dot of fixed size on the screen at a point of the scene.
dotfunctionCoreA dot at a point.
dragToAnglesfunctionCoreNew angles after a drag of (dx, dy) pixels, in degrees.
drawfunctionCoreDraws a line, curve or outline on from its start to its end.
easevalueCoreThe named easing curves: linear, in, out, inOut, smooth and back.
EasetypeCoreAn easing function: maps progress 0 to 1 onto progress 0 to 1.
EaseNametypeCoreThe name of a built-in easing curve.
EdgeSpectypeGraphs and flowOptions of Diagram.edge.
FaceclassCoreOne flat polygon.
FaceOptstypeCoreOptions of filled surfaces.
fadeInfunctionCoreFades a node in from invisible to its own opacity.
fadeOutfunctionCoreFades a node out to invisible.
flowchartfunctionGraphs and flowA flowchart from a list of steps.
FlowSteptypeGraphs and flowOne step of a flowchart.
FrustumclassOpticsThe classic picture of a pinhole camera: the centre, the image plane at focal length f, the rays through its corners and the optical axis.
frustumfunctionOpticsA pinhole camera with its image plane and rays.
FrustumOptstypeOpticsOptions of frustum.
GraphclassMathsA function plotted on axes.
graphfunctionMathsA function plotted on axes, with an optional tangent, shaded area and Riemann rectangles.
GraphOptstypeMathsOptions of graph.
GroundclassCoreThe ground lattice.
groundfunctionCoreA square lattice lying on the floor (z = 0).
GroupclassCoreA node that holds other nodes and moves, turns and scales them together.
groupfunctionCoreGroups nodes so they move, turn and scale together.
heatmapfunctionChartsA matrix coloured through the theme’s sequential ramp, or a diverging ramp for values around zero.
heightFieldfunctionCoreA height field z = f(x, y) over a rectangle.
histogramfunctionChartsA histogram of raw values, binned into bins bars.
KeyclassDevicesA single keycap.
KeyboardclassDevicesA keyboard with accurate key sizes and positions and no legends.
keyboardfunctionDevicesA keyboard.
keyboardLayoutfunctionDevicesEvery key of a layout, with its place.
KeyboardLayouttypeDevicesA keyboard layout: full (104 keys), tkl (87), 75 or 60.
KeyboardOptstypeDevicesOptions of keyboard.
KeyDeftypeDevicesOne key: its place on the board in key units (1 is a standard key), measured from the top left.
LabelclassCoreText that stays upright and readable, attached to a point in the scene.
labelfunctionCoreText that stays upright and readable, attached to a point in the scene.
laptopfunctionDevicesA laptop, open.
LaptopOptstypeDevicesOptions of laptop.
layoutRowsfunctionCoreSplits text into rows that fit cols characters.
linefunctionCoreA straight line through two or more points.
lineDfunctionCoreA straight line as a path.
linesfunctionChartsA line chart.
lineSegsfunctionCoreA straight segment between two points.
LinkclassCoreA curved arrow between two things.
linkfunctionCoreA curved arrow between two objects or points.
LinkOptstypeCoreOptions of link.
MarkKeytypeCoreWhat a mark can match: a word, a pattern, or a [start, end) range of the source text.
MarkstypeCoreWords to colour in a text block: a map from the word to a role or CSS colour, or a list of [match, colour] pairs where the match is a string, a regular expression or a [start, end] range.
MattypeMathsA matrix as rows of numbers.
MatrixclassMathsA matrix with brackets.
matrixfunctionMathsA matrix with brackets.
MatrixOptstypeMathsOptions of matrix.
measureDfunctionCoreA measuring bracket between two points: a line with a short tick across each end, for showing a length.
MessagetypeUI on screensOne chat message: who sent it and what it says.
micHandfunctionDevicesA handheld microphone, lying upright with its head on top.
MicOptstypeDevicesOptions of micStand and micHand.
micStandfunctionDevicesA microphone on a stand: a round base, a pole, a boom arm and the capsule.
monitorfunctionDevicesA desktop monitor on a stand.
MonitorOptstypeDevicesOptions of monitor.
mountfunctionCorePuts a scene in the page and plays it.
MountOptstypeCoreOptions of mount.
mousefunctionDevicesA computer mouse, pointing away from the viewer (front is -y).
MouseOptstypeDevicesOptions of mouse.
moveByfunctionCoreMoves a node by an offset from where it is when the animation starts.
moveTofunctionCoreMoves a node to a point.
nestSvgfunctionCorePlaces an SVG document inside a rectangle of another SVG, scaled to fill it (like object-fit: cover).
niceTicksfunctionChartsround tick values that cover [lo, hi]
NodeclassCoreThe base of everything in a scene.
NodeOptstypeCoreOptions every node takes.
NodeSpectypeGraphs and flowOptions of Diagram.node.
NotificationclassUI on screensA notification card.
notificationfunctionUI on screensA notification card with a title, a body and an optional icon.
NotificationOptstypeUI on screensOptions of notification.
NumberLineclassMathsA number line.
numberLinefunctionMathsA number line with marks, a sliding marker and jumps between values.
NumberLineOptstypeMathsOptions of numberLine.
orbitfunctionCoreTurns the camera of a scene with the pointer, wheel, touch and keyboard.
OrbittypeCoreHandle to a running orbit control.
OrbitLimitstypeCoreHow far the camera may turn and zoom.
OrbitOptstypeCoreOptions of orbit.
orbitPositionfunctionCoreWhere a perspective camera sits when it looks at target from distance along the given angles (same angles as the parallel camera).
PalettetypeChartsWhere series colours come from.
parfunctionCorePlays the animations at the same time.
parseSvgfunctionCoreReads an SVG document into a size and inner markup that plane can place.
PartclassCoreOne drawn shape of a construction.
PartOptstypeCoreOptions of a part of a construction.
PathclassCoreA line through points, drawn as one SVG path.
pathfunctionCoreA line through any number of points, optionally closed.
PathOptstypeCoreOptions of lines and paths.
PenclassCoreA line being drawn by a pen.
penfunctionCoreA line being drawn by a pen: pen(points), then tween draw from 0 to 1.
PenOptstypeCoreOptions of pen.
phonefunctionDevicesA phone, upright.
PhoneOptstypeDevicesOptions of phone.
photoCamerafunctionDevicesA photo camera with a lens, pointing at the viewer.
PhotoCameraOptstypeDevicesOptions of photoCamera.
piefunctionChartsA pie chart of the shares in data.
PlaneclassCoreAny SVG laid on a plane in 3D.
planefunctionCoreLays an SVG (a logo, a chart, a screenshot) on any plane of the scene.
PlaneOptstypeCoreOptions of plane.
PlayertypeCoreControls a mounted scene: play, pause, seek by time or by chapter, and redraw after a change made by hand.
PointtypeCoreA place in the scene: a plain [x, y, z], an anchor of a node, or a node itself (its position).
Point2typeChartsA point of a scatter plot.
polarfunctionCoreThe point at a distance and an angle (degrees, 0 to the right, 90 up) from a centre.
polygonfunctionCoreA flat filled polygon through three or more points.
PrimtypeCoreWhat the renderer draws.
ProductclassMathsA times B, one entry at a time.
productfunctionMathsTwo matrices and their product, with the entry being computed highlighted.
ProductOptstypeMathsOptions of product.
ProgressclassUI on screensA progress indicator.
progressfunctionUI on screensA progress indicator as a bar, a ring or separate segments.
ProgressOptstypeUI on screensOptions of progress.
PttypeCoreA point in svg units.
PulseclassCoreA dot that rides along a link, a polyline or a function.
pulsefunctionCoreA dot that rides along a link or a line.
PulseOptstypeCoreOptions of pulse.
radarfunctionChartsA radar chart: one spoke per label, one polygon per series.
radiofunctionWavesThe arcs above an antenna or a router.
rectfunctionCoreA flat rectangle standing in a coordinate plane, as a filled face.
renderStillfunctionCoreThe static markup of a scene at one moment: render on the server, then mount in the browser to bring it to life.
reversefunctionCorePlays an animation backwards: every tween runs from its end value to its start value, last one first.
ripplefunctionWavesCircles spreading from a point, like a drop in water.
rngfunctionCoreA small deterministic random generator, so generated scenes are identical on server and client.
rotateSegsfunctionCoreTurns segments about a point.
rotateTofunctionCoreRotates a node to Euler angles in degrees about x, y and z.
routerfunctionDevicesA router with antennas, status lights and ports.
RouterDeviceclassDevicesA wifi router with antennas, indicator lights and ports.
RouterOptstypeDevicesOptions of router.
RowtypeCoreOne drawn row of text: a slice [start, end) of the source, and the source line it came from.
scaleTofunctionCoreScales a node to a factor.
scatterfunctionChartsA scatter plot.
SceneclassCoreA scene is a tree of nodes, a camera, and the settings to draw them.
SceneOptstypeCoreOptions of new Scene.
SegtypeCoreOne cubic Bezier segment: start, two control points, end.
segsDfunctionCoreWrites segments as an SVG path string.
seqfunctionCorePlays the animations one after another.
SequenceclassGraphs and flowParticipants as boxes along the top, each with a dashed lifeline below it, and messages as arrows between the lifelines in the order they happen, time flowing down.
sequencefunctionGraphs and flowA sequence diagram: who talks to whom, in order.
SequenceMessagetypeGraphs and flowOne message of a sequence diagram: an arrow from one participant to another.
SequenceNotetypeGraphs and flowA note on a sequence diagram, in the list of messages where it happens.
SequenceOptstypeGraphs and flowOptions of sequence.
SequenceSpectypeGraphs and flowWhat a sequence diagram shows.
SeriestypeChartsA named list of values, with an optional colour.
serverfunctionDevicesA rack of servers with indicator lights.
ServerOptstypeDevicesOptions of server.
ShapetypeGraphs and flowThe look of a node.
sonarfunctionWavesA sonar beam: arcs travelling in one direction, fading with distance.
sparklinefunctionChartsA small line chart with no axes, the size of a word.
speakerfunctionDevicesA loudspeaker cabinet with a woofer and a tweeter, facing the viewer.
SpeakerOptstypeDevicesOptions of speaker.
SpheretypeCoreA sphere in world space: a centre c and a radius r.
spherefunctionDevicesA shaded sphere resting on the point at.
sphereOffunctionCoreThe bounding sphere of the drawable nodes, used by fit: 'sphere'.
SphereOptstypeDevicesOptions of sphere.
SpheresclassCoreSeveral spheres drawn as one body: overlapping balls, like a cloud, are ordered together by depth.
staggerfunctionCoreStarts each animation a little after the previous one.
StereoOptstypeOpticsOptions of stereoRig.
StereoRigclassOpticsTwo parallel cameras a baseline apart looking at one point: both image planes, both rays, the horizontal epipolar lines, and the depth Z = f * b / d.
stereoRigfunctionOpticsTwo cameras looking at one point: the picture behind stereo vision and depth from disparity.
StyleOptstypeCoreColour and line width, shared by lines, faces and text.
SurfaceclassCoreA parametric surface (u, v) to a point, drawn as a mesh of shaded quads.
surfacefunctionCoreA parametric surface (u, v) => [x, y, z] drawn as a mesh of shaded quads.
SurfaceOptstypeCoreOptions of surface.
SvgPlaneclassCoreAnything drawn as SVG on a plane in the scene: charts, screen elements, maths figures.
SvgPlaneOptstypeCoreOptions shared by everything that is an SVG drawing placed on a plane: charts, screens and maths figures.
TabletypeChartsChart data after normalising: the labels along the axis and one series per colour.
tabletfunctionDevicesA tablet, landscape by default, standing on its edge.
TabletOptstypeDevicesOptions of tablet.
terminalfunctionDevicesA terminal window with an empty body.
TerminalOptstypeDevicesOptions of terminal.
TextBlockclassCoreText laid on a plane in the scene: a wall, the floor, a screen.
TextBlockOptstypeCoreOptions of write and code.
TextOptstypeCoreOptions of label.
TimelineclassCoreA timeline is a list of tweens.
ToastclassUI on screensA small pill with one line of text.
toastfunctionUI on screensA short message in a pill, such as a confirmation.
ToastOptstypeUI on screensOptions of toast.
TokentypeCoreA piece of a line of code with its kind, for colouring.
tokenizefunctionCoreSplits a line of code into coloured pieces.
TokenKindtypeCoreWhat a token is: plain text, a keyword, a string, a number or a comment.
toTablefunctionChartsThe table behind any form of data: the labels along the axis and one series per colour.
Transform2dclassMathsThe plane, deformed by a 2 by 2 matrix.
transform2dfunctionMathsThe plane deformed by a 2 by 2 matrix, with the basis vectors, the unit square and the eigenvector lines.
Transform2dOptstypeMathsOptions of transform2d.
TreeDatatypeGraphs and flowThe shape of a tree: a label and the branches below it.
treeDiagramfunctionGraphs and flowA tree from nested data: a label and its children.
tvfunctionDevicesA flat-screen television on two feet.
TvOptstypeDevicesOptions of tv.
tweenfunctionCoreAnimate any properties of a node or camera: tween(cube, \{ opacity: 0.2, pos: [1, 0, 0] \}).
TweentypeCoreOne change of one object’s properties over a span of time.
TweenOptstypeCoreOptions of tween.
typeOnfunctionCoreTypes text or code onto a plane letter by letter.
UiOptstypeUI on screensOptions shared by everything that lives on a screen.
UnitCircleclassMathsThe unit circle with the angle in the property angle (degrees): its sine, cosine and, if asked, the wave they trace.
unitCirclefunctionMathsThe unit circle, with the sine and cosine of an angle and, if asked, the wave they trace.
UnitCircleOptstypeMathsOptions of unitCircle.
V3typeCoreA point or direction [x, y, z].
VectorFieldclassMathsA grid of arrows: the direction and strength of a field at each point.
vectorFieldfunctionMathsA grid of arrows showing the direction and strength of a field (x, y) => [dx, dy].
VectorFieldOptstypeMathsOptions of vectorField.
ViewtypeCoreA camera preset (iso, front, side, top) or explicit \{ yaw, pitch \} angles in degrees.
waitfunctionCoreDoes nothing for a while.
WaveclassWavesWaves of many kinds.
wavefunctionWavesA wave of any kind: sine, longitudinal, standing, rings, directional (sonar), spherical, plane, interference, echo or radio.
WaveKindtypeWavesThe kinds of wave wave can draw.
WaveOptstypeWavesOptions of wave.
writefunctionCoreText on any plane: write('hello', \{ at, size, u, v \}).