Modifiers are divided into modifierDivs
vertical
rectangles for event lookup.
Add a new selection to the page
add a modifier to the page, indexed by its rectangle
Remove all elements and modifiers in this page, for a redraw.
Clear mapped objects associated with a measure, including any modifiers that span that measure.
Given SVG y, return the div for modifiers
Try to find a selection on this page, based on the mouse event
Try to find a modifier on this page, based on the mouse event
This is the VextFlow renderer context (SVGContext)
Measure the bounding box of an element. Return the box as if the top of the first page were 0,0. Bounding boxes are stored in absolute coordinates from the top of the first page. When rendering elements, we adjust the coordinates for hte local page.
Adjust the bounding box to local coordinates for this page.
Adjust the point to local coordinates for this page.
Generated using TypeDoc
Each page is a different SVG element, with its own offset within the DOM. This makes partial updates faster. SvgPage keeps track of all musical elements in SelectionMaps. staff and score modifiers are kept in seperate lists since they may span multiple musical elements (e.g. slurs, text elements).