gestures/band#
Interfaces#
BandPress#
Defined in: arranger/src/gestures/band.ts:16
What a press on a band holds.
Properties#
band#
readonlyband:BandBox
Defined in: arranger/src/gestures/band.ts:22
drawing#
readonlydrawing: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#
readonlyorder: readonlystring[]
Defined in: arranger/src/gestures/band.ts:24
The timeline’s band order at the press (core’s bandOrderOf).
timeline#
readonlytimeline:string
Defined in: arranger/src/gestures/band.ts:19
view#
readonlyview: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, readonlystring[]>
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#
Returns#
GestureStrategy<BandPress, readonly string[]>