Constructor
new NoteGroupSelection(note, startTime, endTime, options, selected)
Create a selected note for inclusion in a NoteGroup.
Parameters:
| Name | Type | Description |
|---|---|---|
note |
number | The time. |
startTime |
string | The start time of the note. |
endTime |
string | The end time of the note. |
options |
Object | Configuration options. |
selected |
boolean | Whether this note is currently selected. |
- Source:
Methods
draw(parentElement, timeScale, noteScale, noteHeight, active)
Draw this note selection with the specified parameters from the containing note group.
Parameters:
| Name | Type | Description |
|---|---|---|
parentElement |
d3.selection | The parent element. |
timeScale |
d3.scaleLinear | The time scale. |
noteScale |
d3.scaleLinear | The scale of note values. |
noteHeight |
number | The height of notes in pixels. |
active |
boolean | True if this note selection should be active; false otherwise. |
- Source:
select(select)
Select or deselect this note.
Parameters:
| Name | Type | Description |
|---|---|---|
select |
boolean | If true, select; otherwise deselect. |
- Source: