gestures/band#

Interfaces#

BandPress#

Defined in: arranger/src/gestures/band.ts:16

What a press on a band holds.

Properties#

band#

readonly band: BandBox

Defined in: arranger/src/gestures/band.ts:22

drawing#

readonly drawing: Drawing

Defined in: arranger/src/gestures/band.ts:21

The drawing at the press, which every drop is read against, never a preview’s.

order#

readonly order: readonly string[]

Defined in: arranger/src/gestures/band.ts:24

The timeline’s band order at the press (core’s bandOrderOf).

timeline#

readonly timeline: string

Defined in: arranger/src/gestures/band.ts:19

view#

readonly view: View

Defined in: arranger/src/gestures/band.ts:18

The view as stored at the press, which the command is built on.

Functions#

bandGesture()#

bandGesture(host): GestureStrategy<BandPress, readonly string[]>

Defined in: arranger/src/gestures/band.ts:40

The band drag of a block node, attached to the drawing’s <svg>: a band draws nothing of its own to attach to. It takes a press only where the press hits an offered band of the edited timeline (hitOf, which hits a drawn element first), while the canvas moves bands (rulesOf(...).bands), and never with Shift, which starts a marquee over the edited block; every other press, a band’s on a locked canvas included, is the canvas’s (a click selects the band, a drag pans). The press that becomes a drag selects the band, which stays selected. The order follows the pointer’s drawing point through the drawing as it was at the press (bandDrop), the elements sliding apart in the preview; the release stores it in one set (bandMoveCommand), nothing for a release in place.

Parameters#

host#

NodeHost

Returns#

GestureStrategy<BandPress, readonly string[]>