animation/elide#

Interfaces#

BlockMotion#

Defined in: arranger/src/animation/elide.ts:92

What moves when a block’s drawing changes: the containers that stay or appear, and the cards that leave.

Properties#

cards#

readonly cards: readonly CardMotion[]

Defined in: arranger/src/animation/elide.ts:93

leaving#

readonly leaving: readonly LeavingCard[]

Defined in: arranger/src/animation/elide.ts:94


CardMotion#

Defined in: arranger/src/animation/elide.ts:71

How the elements of one container of the drawing after a change move: a card’s, or a frame’s own (its rectangle, title and gaps), each element it holds by motionOf.

Properties#

key#

readonly key: string

Defined in: arranger/src/animation/elide.ts:73

The container’s place key text (placeKeyText).

Methods#

holds()#

holds(element): boolean

Defined in: arranger/src/animation/elide.ts:75

Whether the element at element is one this motion moves.

Parameters#
element#

number

Returns#

boolean

motionOf()#

motionOf(element): Motion

Defined in: arranger/src/animation/elide.ts:76

Parameters#
element#

number

Returns#

Motion


Drawn#

Defined in: arranger/src/animation/elide.ts:60

A drawing with what it was drawn from and what draws it.

Properties#

descriptors#

readonly descriptors: readonly Descriptor[]

Defined in: arranger/src/animation/elide.ts:63

drawing#

readonly drawing: Drawing

Defined in: arranger/src/animation/elide.ts:62

manifest#

readonly manifest: Manifest

Defined in: arranger/src/animation/elide.ts:61


LeavingCard#

Defined in: arranger/src/animation/elide.ts:85

A card the drawing after a change no longer draws, folding back into its member card: its descriptors in the drawing before, each placed at a progress by placedAt (at rest at 0, folded at 1), on the canvas of the drawing after.

Properties#

descriptors#

readonly descriptors: readonly Descriptor[]

Defined in: arranger/src/animation/elide.ts:87

key#

readonly key: string

Defined in: arranger/src/animation/elide.ts:86

Methods#

placedAt()#

placedAt(descriptor, t): Placed

Defined in: arranger/src/animation/elide.ts:88

Parameters#
descriptor#

Descriptor

t#

number

Returns#

Placed

Functions#

blockMotion()#

blockMotion(before, after, measure): BlockMotion

Defined in: arranger/src/animation/elide.ts:581

What moves when a block is drawn after instead of before: first every item whose place changed travels whole (itemMotions), its contents taking no motion of their own; then each card both draw whose elisions changed (its own, or its frame’s for a member card) moves sideways (sidewaysMotion), each frame whose group elisions changed with it (frameMotion); each ancestor card only after draws, whose member card before drew, unfolds out of it (unfoldingMotion); each ancestor card only before draws, whose member card after draws, folds back into it, read in before and moved by the change of the place origin. Where the items start or stop standing side by side, an ancestor card drawn only after fades in and one drawn only before fades out instead. Nothing else moves.

Parameters#

before#

Drawn

after#

Drawn

measure#

TextMeasure

Returns#

BlockMotion


cardKnots()#

cardKnots(manifest, drawing, card): Knot[]

Defined in: arranger/src/animation/elide.ts:177

The knots of the card card of drawing: both ends of every line layout records in it (lineAxes, one per run of an elided line), an end at a seam whose position lies on the other run marked across (holdsAt), and both edges of every gap of its own (not a carried one, whose coordinates lie on another tree), an edge at a position a run holds at another abscissa marked across too (a gap ending at a seam, the row crossing it whole), each at the position it draws on the card’s root, sorted by abscissa.

Parameters#

manifest#

Manifest

drawing#

Drawing

card#

DrawnBox

Returns#

Knot[]


elisionsText()#

elisionsText(exposure): string

Defined in: arranger/src/animation/elide.ts:234

What a container’s elisions are, to tell whether a change moved them: its drawn mode and the words its derived gaps show, then each gap’s address, elided coordinates and widths, in order; empty for a container recording none.

Parameters#

exposure#

ElisionExposure | undefined

Returns#

string


frameKnots()#

frameKnots(exposure): Knot[]

Defined in: arranger/src/animation/elide.ts:219

The knots of a frame’s own axis: both ends of every run, at their proportions.

Parameters#

exposure#

ElisionExposure

Returns#

Knot[]


frameMotion()#

frameMotion(before, was, after, now, measure): CardMotion

Defined in: arranger/src/animation/elide.ts:385

How the frame frame of the drawing after moves from the frame under the same key before draws (was): its own elements (its rectangle and title, every element its range holds outside its member cards) and its gaps with their ellipses and labels (written after every item), by the proportions of the frame’s axis before and after (frameKnots), its right border with them.

Parameters#

before#

Drawn

was#

ElisionExposure

after#

Drawn

now#

ElisionExposure

measure#

TextMeasure

Returns#

CardMotion


itemMotions()#

itemMotions(before, after): CardMotion[]

Defined in: arranger/src/animation/elide.ts:543

How every item of after (a group’s frame, an ungrouped root’s card) whose place on the canvas before drew elsewhere moves: each element of its range translated, from where before drew the item (its place less the place origin’s, so a moved origin is no move) to where after draws it; an item drawn at the same place moves nothing.

Parameters#

before#

Drawing

after#

Drawing

Returns#

CardMotion[]


placedAttributes()#

placedAttributes(placed, own): Record<string, string>

Defined in: arranger/src/animation/elide.ts:635

The attributes an element drawn at placed adds to its own: the map as a transform (matrix, or translate without stretching) and its opacity own times the placed one; nothing at rest.

Parameters#

placed#

Placed

own#

number

Returns#

Record<string, string>


sidewaysMotion()#

sidewaysMotion(before, was, after, card, measure): CardMotion

Defined in: arranger/src/animation/elide.ts:346

How the card card of the drawing after moves from the card under the same place key before draws (was): rows kept but where elision labels shown or hidden move them (rowShifts, the card top’s move for an element of no row), each element starting where before draws the positions its extent draws (startOf over both cards’ knots, the move of the place origin added) and shifted down by the move of the card’s top (sideways).

Parameters#

before#

Drawn

was#

DrawnBox

after#

Drawn

card#

DrawnBox

measure#

TextMeasure

Returns#

CardMotion


unfoldingMotion()#

unfoldingMotion(drawn, card, measure): CardMotion

Defined in: arranger/src/animation/elide.ts:448

How the ancestor card card of drawn unfolds out of the member card it is aligned to when it is shown: each element travels down as a raise moves it (raiseUnfold: its row’s shift, entering where its row does or it has none, and where it lies in a gap: a gap’s ellipses and labels) and sideways from the member’s line in the member card, which draws the member’s span at the card’s own abscissas: what lies left or right of that span starts at the member line’s start or end and opens out of it.

Parameters#

drawn#

Drawn

card#

DrawnBox

measure#

TextMeasure

Returns#

CardMotion