smoosic 1.0.40 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/build/smoosic.js +3 -3
  2. package/package.json +1 -1
  3. package/release/smoosic.js +3 -3
  4. package/src/smo/data/scoreModifiers.ts +2 -2
  5. package/src/ui/components/dialogs/timeSignature.vue +25 -4
  6. package/types/src/application/application.d.ts +103 -102
  7. package/types/src/application/common.d.ts +6 -0
  8. package/types/src/application/configuration.d.ts +75 -75
  9. package/types/src/application/dynamicInit.d.ts +6 -6
  10. package/types/src/application/eventHandler.d.ts +87 -81
  11. package/types/src/application/exports.d.ts +482 -485
  12. package/types/src/render/audio/oscillator.d.ts +99 -99
  13. package/types/src/render/audio/player.d.ts +143 -143
  14. package/types/src/render/audio/samples.d.ts +56 -56
  15. package/types/src/render/sui/NoteEntryCaret.d.ts +107 -0
  16. package/types/src/render/sui/NoteEntryMediator.d.ts +24 -0
  17. package/types/src/render/sui/configuration.d.ts +53 -49
  18. package/types/src/render/sui/formatter.d.ts +163 -161
  19. package/types/src/render/sui/layoutDebug.d.ts +46 -46
  20. package/types/src/render/sui/mapper.d.ts +138 -135
  21. package/types/src/render/sui/renderState.d.ts +92 -90
  22. package/types/src/render/sui/scoreRender.d.ts +97 -96
  23. package/types/src/render/sui/scoreView.d.ts +280 -279
  24. package/types/src/render/sui/scoreViewOperations.d.ts +604 -594
  25. package/types/src/render/sui/scroller.d.ts +41 -41
  26. package/types/src/render/sui/svgPageMap.d.ts +344 -344
  27. package/types/src/render/sui/textEdit.d.ts +316 -316
  28. package/types/src/render/sui/tracker.d.ts +10 -4
  29. package/types/src/render/vex/vxMeasure.d.ts +97 -97
  30. package/types/src/smo/data/common.d.ts +220 -220
  31. package/types/src/smo/data/measure.d.ts +511 -511
  32. package/types/src/smo/data/measureModifiers.d.ts +509 -508
  33. package/types/src/smo/data/music.d.ts +2 -1
  34. package/types/src/smo/data/note.d.ts +2 -0
  35. package/types/src/smo/data/noteModifiers.d.ts +2 -0
  36. package/types/src/smo/data/score.d.ts +7 -5
  37. package/types/src/smo/data/scoreModifiers.d.ts +441 -440
  38. package/types/src/smo/data/systemStaff.d.ts +2 -2
  39. package/types/src/smo/data/tuplet.d.ts +7 -0
  40. package/types/src/smo/midi/midiToSmo.d.ts +12 -12
  41. package/types/src/smo/midi/smoToMidi.d.ts +3 -3
  42. package/types/src/smo/mxml/smoToXml.d.ts +4 -4
  43. package/types/src/smo/mxml/xmlState.d.ts +3 -3
  44. package/types/src/smo/mxml/xmlToSmo.d.ts +2 -2
  45. package/types/src/smo/xform/operations.d.ts +3 -3
  46. package/types/src/smo/xform/selections.d.ts +154 -154
  47. package/types/src/ui/buttons/display.d.ts +1 -0
  48. package/types/src/ui/common.d.ts +69 -67
  49. package/types/src/ui/composable/draggable.d.ts +1 -1
  50. package/types/src/ui/configuration.d.ts +30 -30
  51. package/types/src/ui/dialogs/chordChange.d.ts +35 -35
  52. package/types/src/ui/dialogs/components/baseComponent.d.ts +158 -158
  53. package/types/src/ui/dialogs/components/button.d.ts +54 -54
  54. package/types/src/ui/dialogs/components/dropdown.d.ts +78 -78
  55. package/types/src/ui/dialogs/components/pitch.d.ts +95 -95
  56. package/types/src/ui/dialogs/components/rocker.d.ts +66 -66
  57. package/types/src/ui/dialogs/components/textInPlace.d.ts +90 -90
  58. package/types/src/ui/dialogs/components/textInput.d.ts +58 -58
  59. package/types/src/ui/dialogs/components/toggle.d.ts +53 -53
  60. package/types/src/ui/dialogs/dialog.d.ts +203 -203
  61. package/types/src/ui/dialogs/endings.d.ts +2 -2
  62. package/types/src/ui/dialogs/lyric.d.ts +39 -39
  63. package/types/src/ui/dialogs/measureFormat.d.ts +2 -2
  64. package/types/src/ui/dialogs/tempo.d.ts +3 -3
  65. package/types/src/ui/dialogs/textBlock.d.ts +55 -61
  66. package/types/src/ui/dialogs/timeSignature.d.ts +2 -34
  67. package/types/src/ui/exceptions.d.ts +15 -15
  68. package/types/src/ui/help.d.ts +6 -1
  69. package/types/src/ui/menus/manager.d.ts +59 -59
  70. package/types/src/ui/navigation.d.ts +44 -37
  71. package/types/typedoc.d.ts +157 -157
@@ -1,279 +1,280 @@
1
- import { SmoScore } from '../../smo/data/score';
2
- import { SmoGlobalLayout } from '../../smo/data/scoreModifiers';
3
- import { SmoGraceNote } from '../../smo/data/noteModifiers';
4
- import { SmoSystemStaff } from '../../smo/data/systemStaff';
5
- import { SmoPartInfo } from '../../smo/data/partInfo';
6
- import { StaffModifierBase } from '../../smo/data/staffModifiers';
7
- import { SmoSelection, SmoSelector } from '../../smo/xform/selections';
8
- import { UndoBuffer } from '../../smo/xform/undo';
9
- import { PasteBuffer } from '../../smo/xform/copypaste';
10
- import { SuiScroller } from './scroller';
11
- import { layoutProvider } from './mapper';
12
- import { SuiTracker } from './tracker';
13
- import { SmoRenderConfiguration } from './configuration';
14
- import { SuiRenderState } from './renderState';
15
- import { SuiAudioAnimationParams } from '../audio/musicCursor';
16
- import { Ref } from 'vue';
17
- import { SvgBox, SvgPoint } from '../../smo/data/common';
18
- import { layoutDebug } from './layoutDebug';
19
- /**
20
- * Indicates a stave is/is not displayed in the score
21
- * @category SuiRender
22
- */
23
- export interface ViewMapEntry {
24
- show: boolean;
25
- }
26
- export type updateSelectionFunc = (score: SmoScore, selections: SmoSelection[]) => void;
27
- export type updateSingleSelectionFunc = (score: SmoScore, selection: SmoSelection) => void;
28
- export type updateStaffModifierFunc = (score: SmoScore, fromSelection: SmoSelection, toSelection: SmoSelection) => void;
29
- /**
30
- * Base class for all operations on the rendered score. The base class handles the following:
31
- * 1. Undo and recording actions for the operation
32
- * 2. Maintain/change which staves in the score are displayed (staff map)
33
- * 3. Mapping between the displayed score and the data representation
34
- * @category SuiRender
35
- */
36
- export declare abstract class SuiScoreView implements layoutProvider {
37
- static Instance: SuiScoreView | null;
38
- score: SmoScore;
39
- storeScore: SmoScore;
40
- staffMap: number[];
41
- storeUndo: UndoBuffer;
42
- tracker: SuiTracker;
43
- renderer: SuiRenderState;
44
- scroller: SuiScroller;
45
- storePaste: PasteBuffer;
46
- selectedPart: Ref<string>;
47
- config: SmoRenderConfiguration;
48
- audioAnimation: SuiAudioAnimationParams;
49
- debug: layoutDebug;
50
- constructor(config: SmoRenderConfiguration, score: SmoScore, undoBuffer: UndoBuffer);
51
- getLayout(): SmoGlobalLayout | undefined;
52
- isLayoutHorizontal(): boolean;
53
- getFlowDimensionExtent(box: SvgBox): number;
54
- getFlowDimensionPosition(box: SvgBox | SvgPoint): number;
55
- get PartName(): Ref<string>;
56
- /**
57
- * Await on the full update of the score
58
- * @returns
59
- */
60
- renderPromise(): Promise<any>;
61
- /**
62
- * Await on the partial update of the score in the view
63
- * @returns
64
- */
65
- updatePromise(): Promise<any>;
66
- awaitRender(): Promise<any>;
67
- /**
68
- * await on the full update of the score, also resetting the viewport (to reflect layout changes)
69
- * @returns
70
- */
71
- refreshViewport(): Promise<any>;
72
- handleScrollEvent(scrollLeft: number, scrollTop: number): void;
73
- getPartMap(): {
74
- keys: number[];
75
- partMap: Record<number, SmoPartInfo>;
76
- };
77
- /**
78
- * Any method that modifies a set of selections can call this to update
79
- * the score view and the backing score.
80
- * @param actor
81
- * @param selections
82
- */
83
- modifyCurrentSelections(label: string, actor: updateSelectionFunc): Promise<void>;
84
- /**
85
- * Any method that modifies a set of selections can call this to update
86
- * the score view and the backing score.
87
- * @param actor
88
- * @param selections
89
- */
90
- modifySelection(label: string, selection: SmoSelection, actor: updateSelectionFunc): Promise<void>;
91
- /**
92
- * Any method that modifies a set of selections can call this to update
93
- * the score view and the backing score.
94
- * @param actor
95
- * @param selections
96
- */
97
- modifySelectionNoWait(label: string, selection: SmoSelection, actor: updateSingleSelectionFunc): Promise<void>;
98
- /**
99
- * Modifiy a set of columns, e.g. tempo, time, key. This has different undo behavior, don't
100
- * pend on the result because there may be a combination of operations.
101
- * @param label
102
- * @param selections
103
- * @param actor
104
- */
105
- modifyColumnsSelectionsNoWait(label: string, selections: SmoSelection[], actor: updateSingleSelectionFunc): void;
106
- /**
107
- * This is used in some Smoosic demos and pens.
108
- * @param action any action, but most usefully a SuiScoreView method
109
- * @param repetition number of times to repeat, waiting on render promise between
110
- * if not specified, defaults to 1
111
- * @returns promise, resolved action has been completed and score is updated.
112
- */
113
- waitableAction(action: () => void, repetition?: number): Promise<unknown>;
114
- /**
115
- * The plural form of _getEquivalentSelection
116
- * @param selections
117
- * @returns
118
- */
119
- _getEquivalentSelections(selections: SmoSelection[]): SmoSelection[];
120
- getPasteMeasureList(): SmoSelection[];
121
- /**
122
- * A staff modifier has changed, create undo operations for the measures affected
123
- * @param label
124
- * @param staffModifier
125
- * @param subtype
126
- */
127
- undoStaffModifier(label: string, staffModifier: StaffModifierBase, subtype: number): void;
128
- /**
129
- * Return the index of the page that is in the center of the client screen.
130
- */
131
- getFocusedPage(): number;
132
- /**
133
- * Create a rectangle undo, like a multiple columns but not necessarily the whole
134
- * score.
135
- */
136
- _undoColumn(label: string, measureIndex: number): void;
137
- /**
138
- * Score preferences don't affect the display, but they do have an undo
139
- * @param label
140
- */
141
- _undoScorePreferences(label: string): void;
142
- undoColumnRange(label: string, measureSelections: SmoSelection[]): void;
143
- undoMeasureRange(label: string, measureSelections: SmoSelection[]): SmoSelection[];
144
- /**
145
- * Add to the undo buffer the current set of measures selected.
146
- * @param label
147
- * @returns
148
- */
149
- undoTrackerMeasureSelections(label: string): SmoSelection[];
150
- /**
151
- * operation that only affects the first selection. Setup undo for the measure
152
- */
153
- _undoFirstMeasureSelection(label: string): SmoSelection;
154
- /**
155
- * Add the selection to the undo buffer
156
- * @param label
157
- * @param selection
158
- */
159
- _undoSelection(label: string, selection: SmoSelection): void;
160
- /**
161
- * Add multiple selections to the undo buffer as a group
162
- * @param label
163
- * @param selections
164
- */
165
- _undoSelections(label: string, selections: SmoSelection[]): void;
166
- /**
167
- * Update renderer for measures that have changed
168
- */
169
- _renderChangedMeasures(measureSelections: SmoSelection[]): void;
170
- /**
171
- * Update renderer for some columns
172
- * @param fromSelector
173
- * @param toSelector
174
- */
175
- _renderRectangle(fromSelector: SmoSelector, toSelector: SmoSelector): void;
176
- /**
177
- * Setup undo for operation that affects the whole score
178
- * @param label
179
- */
180
- _undoScore(label: string): void;
181
- /**
182
- * Get the selector from this.storeScore that maps to the displayed selector from this.score
183
- * @param selector
184
- * @returns
185
- */
186
- _getEquivalentSelector(selector: SmoSelector): any;
187
- /**
188
- * Get the equivalent staff id from this.storeScore that maps to the displayed selector from this.score
189
- * @param staffId
190
- * @returns
191
- */
192
- _getEquivalentStaff(staffId: number): number;
193
- /**
194
- * Get the equivalent selection from this.storeScore that maps to the displayed selection from this.score
195
- * @param selection
196
- * @returns
197
- */
198
- _getEquivalentSelection(selection: SmoSelection): SmoSelection | null;
199
- /**
200
- * Get the equivalent selection from this.storeScore that maps to the displayed selection from this.score
201
- * @param selection
202
- * @returns
203
- */
204
- _getEquivalentGraceNote(selection: SmoSelection, gn: SmoGraceNote): SmoGraceNote;
205
- /**
206
- * Get the rectangle of selections indicated by the parameters from the score
207
- * @param startSelector
208
- * @param endSelector
209
- * @param score
210
- * @returns
211
- */
212
- _getRectangleSelections(startSelector: SmoSelector, endSelector: SmoSelector): SmoSelection[];
213
- /**
214
- * set the grouping flag for undo operations
215
- * @param val
216
- */
217
- groupUndo(val: boolean): void;
218
- /**
219
- * Show all staves, 1:1 mapping of view score staff to stored score staff
220
- */
221
- get defaultStaffMap(): number[];
222
- /**
223
- * Bootstrapping function, creates the renderer and associated timers
224
- */
225
- startRenderingEngine(): void;
226
- /**
227
- * Gets the current mapping of displayed staves to score staves (this.storeScore)
228
- * @returns
229
- */
230
- getView(): ViewMapEntry[];
231
- /**
232
- * Update the staff ID when the view changes
233
- */
234
- setMappedStaffIds(): void;
235
- resetPartView(): void;
236
- /**
237
- * Exposes a part: hides non-part staves, shows part staves.
238
- * Note this will reset the view. After this operation, staff 0 will
239
- * be the selected part.
240
- * @param staff
241
- */
242
- exposePart(staff: SmoSystemStaff): void;
243
- /**
244
- * Indicates if the score is displaying in part-mode vs. score mode.
245
- * @returns
246
- */
247
- isPartExposed(): boolean;
248
- /**
249
- * Parts have different formatting options from the parent score, indluding layout. Reset
250
- * them when exposing a part.
251
- */
252
- _mapPartFormatting(): void;
253
- /**
254
- * Update the list of staves in the score that are displayed.
255
- */
256
- setView(rows: ViewMapEntry[]): void;
257
- /**
258
- * view all the staffs in score mode.
259
- */
260
- viewAll(): void;
261
- /**
262
- * If the score is non-transposed, transpose the part so it is in the
263
- * correct key.
264
- */
265
- _setTransposing(): void;
266
- /**
267
- * Update the view after loading or restoring a completely new score
268
- * @param score
269
- * @returns
270
- */
271
- changeScore(score: SmoScore): Promise<any>;
272
- replaceMeasureView(measureRange: number[]): void;
273
- /**
274
- * for the view score, the renderer decides what to render
275
- * depending on what is undone.
276
- * @returns
277
- */
278
- undo(): Promise<void>;
279
- }
1
+ import { SmoScore } from '../../smo/data/score';
2
+ import { SmoGlobalLayout } from '../../smo/data/scoreModifiers';
3
+ import { SmoGraceNote } from '../../smo/data/noteModifiers';
4
+ import { SmoSystemStaff } from '../../smo/data/systemStaff';
5
+ import { SmoPartInfo } from '../../smo/data/partInfo';
6
+ import { StaffModifierBase } from '../../smo/data/staffModifiers';
7
+ import { SmoSelection, SmoSelector } from '../../smo/xform/selections';
8
+ import { UndoBuffer } from '../../smo/xform/undo';
9
+ import { PasteBuffer } from '../../smo/xform/copypaste';
10
+ import { SuiScroller } from './scroller';
11
+ import { layoutProvider } from './mapper';
12
+ import { SuiTracker } from './tracker';
13
+ import { SmoRenderConfiguration, SuiNavigation } from './configuration';
14
+ import { SuiRenderState } from './renderState';
15
+ import { SuiAudioAnimationParams } from '../audio/musicCursor';
16
+ import { Ref } from 'vue';
17
+ import { SvgBox, SvgPoint } from '../../smo/data/common';
18
+ import { layoutDebug } from './layoutDebug';
19
+ /**
20
+ * Indicates a stave is/is not displayed in the score
21
+ * @category SuiRender
22
+ */
23
+ export interface ViewMapEntry {
24
+ show: boolean;
25
+ }
26
+ export type updateSelectionFunc = (score: SmoScore, selections: SmoSelection[]) => void;
27
+ export type updateSingleSelectionFunc = (score: SmoScore, selection: SmoSelection) => void;
28
+ export type updateStaffModifierFunc = (score: SmoScore, fromSelection: SmoSelection, toSelection: SmoSelection) => void;
29
+ /**
30
+ * Base class for all operations on the rendered score. The base class handles the following:
31
+ * 1. Undo and recording actions for the operation
32
+ * 2. Maintain/change which staves in the score are displayed (staff map)
33
+ * 3. Mapping between the displayed score and the data representation
34
+ * @category SuiRender
35
+ */
36
+ export declare abstract class SuiScoreView implements layoutProvider {
37
+ static Instance: SuiScoreView | null;
38
+ score: SmoScore;
39
+ storeScore: SmoScore;
40
+ staffMap: number[];
41
+ storeUndo: UndoBuffer;
42
+ tracker: SuiTracker;
43
+ renderer: SuiRenderState;
44
+ scroller: SuiScroller;
45
+ storePaste: PasteBuffer;
46
+ selectedPart: Ref<string>;
47
+ config: SmoRenderConfiguration;
48
+ audioAnimation: SuiAudioAnimationParams;
49
+ debug: layoutDebug;
50
+ navigation: SuiNavigation;
51
+ constructor(config: SmoRenderConfiguration, score: SmoScore, undoBuffer: UndoBuffer);
52
+ getLayout(): SmoGlobalLayout | undefined;
53
+ isLayoutHorizontal(): boolean;
54
+ getFlowDimensionExtent(box: SvgBox): number;
55
+ getFlowDimensionPosition(box: SvgBox | SvgPoint): number;
56
+ get PartName(): Ref<string>;
57
+ /**
58
+ * Await on the full update of the score
59
+ * @returns
60
+ */
61
+ renderPromise(): Promise<any>;
62
+ /**
63
+ * Await on the partial update of the score in the view
64
+ * @returns
65
+ */
66
+ updatePromise(): Promise<any>;
67
+ awaitRender(): Promise<any>;
68
+ /**
69
+ * await on the full update of the score, also resetting the viewport (to reflect layout changes)
70
+ * @returns
71
+ */
72
+ refreshViewport(): Promise<any>;
73
+ handleScrollEvent(scrollLeft: number, scrollTop: number): void;
74
+ getPartMap(): {
75
+ keys: number[];
76
+ partMap: Record<number, SmoPartInfo>;
77
+ };
78
+ /**
79
+ * Any method that modifies a set of selections can call this to update
80
+ * the score view and the backing score.
81
+ * @param actor
82
+ * @param selections
83
+ */
84
+ modifyCurrentSelections(label: string, actor: updateSelectionFunc): Promise<void>;
85
+ /**
86
+ * Any method that modifies a set of selections can call this to update
87
+ * the score view and the backing score.
88
+ * @param actor
89
+ * @param selections
90
+ */
91
+ modifySelection(label: string, selection: SmoSelection, actor: updateSelectionFunc): Promise<void>;
92
+ /**
93
+ * Any method that modifies a set of selections can call this to update
94
+ * the score view and the backing score.
95
+ * @param actor
96
+ * @param selections
97
+ */
98
+ modifySelectionNoWait(label: string, selection: SmoSelection, actor: updateSingleSelectionFunc): Promise<void>;
99
+ /**
100
+ * Modifiy a set of columns, e.g. tempo, time, key. This has different undo behavior, don't
101
+ * pend on the result because there may be a combination of operations.
102
+ * @param label
103
+ * @param selections
104
+ * @param actor
105
+ */
106
+ modifyColumnsSelectionsNoWait(label: string, selections: SmoSelection[], actor: updateSingleSelectionFunc): void;
107
+ /**
108
+ * This is used in some Smoosic demos and pens.
109
+ * @param action any action, but most usefully a SuiScoreView method
110
+ * @param repetition number of times to repeat, waiting on render promise between
111
+ * if not specified, defaults to 1
112
+ * @returns promise, resolved action has been completed and score is updated.
113
+ */
114
+ waitableAction(action: () => void, repetition?: number): Promise<unknown>;
115
+ /**
116
+ * The plural form of _getEquivalentSelection
117
+ * @param selections
118
+ * @returns
119
+ */
120
+ _getEquivalentSelections(selections: SmoSelection[]): SmoSelection[];
121
+ getPasteMeasureList(): SmoSelection[];
122
+ /**
123
+ * A staff modifier has changed, create undo operations for the measures affected
124
+ * @param label
125
+ * @param staffModifier
126
+ * @param subtype
127
+ */
128
+ undoStaffModifier(label: string, staffModifier: StaffModifierBase, subtype: number): void;
129
+ /**
130
+ * Return the index of the page that is in the center of the client screen.
131
+ */
132
+ getFocusedPage(): number;
133
+ /**
134
+ * Create a rectangle undo, like a multiple columns but not necessarily the whole
135
+ * score.
136
+ */
137
+ _undoColumn(label: string, measureIndex: number): void;
138
+ /**
139
+ * Score preferences don't affect the display, but they do have an undo
140
+ * @param label
141
+ */
142
+ _undoScorePreferences(label: string): void;
143
+ undoColumnRange(label: string, measureSelections: SmoSelection[]): void;
144
+ undoMeasureRange(label: string, measureSelections: SmoSelection[]): SmoSelection[];
145
+ /**
146
+ * Add to the undo buffer the current set of measures selected.
147
+ * @param label
148
+ * @returns
149
+ */
150
+ undoTrackerMeasureSelections(label: string): SmoSelection[];
151
+ /**
152
+ * operation that only affects the first selection. Setup undo for the measure
153
+ */
154
+ _undoFirstMeasureSelection(label: string): SmoSelection;
155
+ /**
156
+ * Add the selection to the undo buffer
157
+ * @param label
158
+ * @param selection
159
+ */
160
+ _undoSelection(label: string, selection: SmoSelection): void;
161
+ /**
162
+ * Add multiple selections to the undo buffer as a group
163
+ * @param label
164
+ * @param selections
165
+ */
166
+ _undoSelections(label: string, selections: SmoSelection[]): void;
167
+ /**
168
+ * Update renderer for measures that have changed
169
+ */
170
+ _renderChangedMeasures(measureSelections: SmoSelection[]): void;
171
+ /**
172
+ * Update renderer for some columns
173
+ * @param fromSelector
174
+ * @param toSelector
175
+ */
176
+ _renderRectangle(fromSelector: SmoSelector, toSelector: SmoSelector): void;
177
+ /**
178
+ * Setup undo for operation that affects the whole score
179
+ * @param label
180
+ */
181
+ _undoScore(label: string): void;
182
+ /**
183
+ * Get the selector from this.storeScore that maps to the displayed selector from this.score
184
+ * @param selector
185
+ * @returns
186
+ */
187
+ _getEquivalentSelector(selector: SmoSelector): any;
188
+ /**
189
+ * Get the equivalent staff id from this.storeScore that maps to the displayed selector from this.score
190
+ * @param staffId
191
+ * @returns
192
+ */
193
+ _getEquivalentStaff(staffId: number): number;
194
+ /**
195
+ * Get the equivalent selection from this.storeScore that maps to the displayed selection from this.score
196
+ * @param selection
197
+ * @returns
198
+ */
199
+ _getEquivalentSelection(selection: SmoSelection): SmoSelection | null;
200
+ /**
201
+ * Get the equivalent selection from this.storeScore that maps to the displayed selection from this.score
202
+ * @param selection
203
+ * @returns
204
+ */
205
+ _getEquivalentGraceNote(selection: SmoSelection, gn: SmoGraceNote): SmoGraceNote;
206
+ /**
207
+ * Get the rectangle of selections indicated by the parameters from the score
208
+ * @param startSelector
209
+ * @param endSelector
210
+ * @param score
211
+ * @returns
212
+ */
213
+ _getRectangleSelections(startSelector: SmoSelector, endSelector: SmoSelector): SmoSelection[];
214
+ /**
215
+ * set the grouping flag for undo operations
216
+ * @param val
217
+ */
218
+ groupUndo(val: boolean): void;
219
+ /**
220
+ * Show all staves, 1:1 mapping of view score staff to stored score staff
221
+ */
222
+ get defaultStaffMap(): number[];
223
+ /**
224
+ * Bootstrapping function, creates the renderer and associated timers
225
+ */
226
+ startRenderingEngine(): void;
227
+ /**
228
+ * Gets the current mapping of displayed staves to score staves (this.storeScore)
229
+ * @returns
230
+ */
231
+ getView(): ViewMapEntry[];
232
+ /**
233
+ * Update the staff ID when the view changes
234
+ */
235
+ setMappedStaffIds(): void;
236
+ resetPartView(): void;
237
+ /**
238
+ * Exposes a part: hides non-part staves, shows part staves.
239
+ * Note this will reset the view. After this operation, staff 0 will
240
+ * be the selected part.
241
+ * @param staff
242
+ */
243
+ exposePart(staff: SmoSystemStaff): void;
244
+ /**
245
+ * Indicates if the score is displaying in part-mode vs. score mode.
246
+ * @returns
247
+ */
248
+ isPartExposed(): boolean;
249
+ /**
250
+ * Parts have different formatting options from the parent score, indluding layout. Reset
251
+ * them when exposing a part.
252
+ */
253
+ _mapPartFormatting(): void;
254
+ /**
255
+ * Update the list of staves in the score that are displayed.
256
+ */
257
+ setView(rows: ViewMapEntry[]): void;
258
+ /**
259
+ * view all the staffs in score mode.
260
+ */
261
+ viewAll(): void;
262
+ /**
263
+ * If the score is non-transposed, transpose the part so it is in the
264
+ * correct key.
265
+ */
266
+ _setTransposing(): void;
267
+ /**
268
+ * Update the view after loading or restoring a completely new score
269
+ * @param score
270
+ * @returns
271
+ */
272
+ changeScore(score: SmoScore): Promise<any>;
273
+ replaceMeasureView(measureRange: number[]): void;
274
+ /**
275
+ * for the view score, the renderer decides what to render
276
+ * depending on what is undone.
277
+ * @returns
278
+ */
279
+ undo(): Promise<void>;
280
+ }