affected#
Functions#
affectedBy()#
affectedBy(
manifest,selected,edited):ReadonlySet<string>
Defined in: arranger/src/affected.ts:36
The keys (addressKey) of the addresses that removing the selected
elements of manifest would also take away (core’s removedBy): every
timeline below a selected one, every map, region and flow-control element
those timelines and the selected elements own, every conversion map
naming a removed timeline, and the parts of all of them. A selected part
or card stands for the element whose ID it carries, so everything a
selected card holds is affected. selected maps the selected element
addresses by their keys; they, and the parts of a selected element, are
left out: they show as selected. A band is never removed, so a selected
band takes nothing away, and draws nothing, so no band is affected. A
flow-control element is never removed either (it is rejected), so a
selected one, or a part of one, takes nothing away; nor is a virtual
timeline by its selected card, which Delete hides.
Neither is the element an open editor edits, edited (its ID in
manifest, null for none): Delete never removes it, so selecting it, or
a part of it, takes nothing away.
Parameters#
manifest#
selected#
ReadonlyMap<string, ElementAddress>
edited#
string | null
Returns#
ReadonlySet<string>