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,594 +1,604 @@
1
- import { SuiScoreView, updateStaffModifierFunc } from './scoreView';
2
- import { engravingFontType } from '../../smo/data/score';
3
- import { SmoSystemStaffParams } from '../../smo/data/systemStaff';
4
- import { SmoPartInfo } from '../../smo/data/partInfo';
5
- import { SmoMeasure } from '../../smo/data/measure';
6
- import { KeyEvent, SvgBox, Pitch, PitchLetter } from '../../smo/data/common';
7
- import { SmoSystemGroup, SmoPageLayout, SmoGlobalLayout, SmoAudioPlayerSettings, SmoScorePreferences, SmoScoreInfo } from '../../smo/data/scoreModifiers';
8
- import { SmoTextGroup } from '../../smo/data/scoreText';
9
- import { SmoDynamicText, SmoArticulation, SmoOrnament, SmoLyric, SmoArpeggioType, SmoClefChange, SmoTabNote } from '../../smo/data/noteModifiers';
10
- import { SmoTempoText, SmoVolta, SmoMeasureFormat, TimeSignature } from '../../smo/data/measureModifiers';
11
- import { createStaffModifierType, MakeTupletOperation } from '../../smo/xform/operations';
12
- import { BatchSelectionOperation } from '../../smo/xform/operations';
13
- import { FontInfo } from '../../common/vex';
14
- import { SmoSelection, SmoSelector } from '../../smo/xform/selections';
15
- import { StaffModifierBase, SmoInstrument, SmoInstrumentParams, SmoStaffTextBracket, SmoTabStave } from '../../smo/data/staffModifiers';
16
- /**
17
- * MVVM-like operations on the displayed score.
18
- *
19
- * All operations that can be performed on a 'live' score go through this
20
- * module. It maps the score view to the actual score and makes sure the
21
- * model and view stay in sync.
22
- *
23
- * Because this object operates on the current selections,
24
- * all operations return promise so applications can wait for the
25
- * operation to complete and update the selection list.
26
- * @category SuiRender
27
- */
28
- export declare class SuiScoreViewOperations extends SuiScoreView {
29
- /**
30
- * Add a new text group to the score
31
- * @param textGroup a new text group
32
- * @returns
33
- */
34
- addTextGroup(textGroup: SmoTextGroup): Promise<void>;
35
- /**
36
- * Remove the text group from the score
37
- * @param textGroup
38
- * @returns
39
- */
40
- removeTextGroup(textGroup: SmoTextGroup): Promise<void>;
41
- /**
42
- * UPdate an existing text group. The original is passed in, because since TG not tied to a musical
43
- * element, we need to find the one we're updating.
44
- * @param oldVersion
45
- * @param newVersion
46
- * @returns
47
- */
48
- updateTextGroup(newVersion: SmoTextGroup): Promise<void>;
49
- /**
50
- * load an mxml score remotely, return a promise that
51
- * completes when the file is loaded
52
- * @param url where to find the xml file
53
- * @returns
54
- */
55
- loadRemoteXml(url: string): Promise<any>;
56
- /**
57
- * load a remote score in SMO format
58
- * @param url url to find the score
59
- * @returns
60
- */
61
- loadRemoteJson(url: string): Promise<any>;
62
- /**
63
- * Load a remote score, return promise when it's been loaded
64
- * from afar.
65
- * @param pref
66
- * @returns
67
- */
68
- loadRemoteScore(url: string): Promise<any>;
69
- updateAudioSettings(pref: SmoAudioPlayerSettings): Promise<void>;
70
- /**
71
- * Global settings that control how the score editor behaves
72
- * @param pref
73
- * @returns
74
- */
75
- updateScorePreferences(pref: SmoScorePreferences): Promise<void>;
76
- /**
77
- * Update information about the score, composer etc.
78
- * @param scoreInfo
79
- * @returns
80
- */
81
- updateScoreInfo(scoreInfo: SmoScoreInfo): Promise<void>;
82
- addRemoveArpeggio(code: SmoArpeggioType): Promise<void>;
83
- /**
84
- * A clef change mid-measure (clefNote)
85
- * @param clef
86
- */
87
- addRemoveClefChange(clef: SmoClefChange): Promise<void>;
88
- /**
89
- * Modify the dynamics assoicated with the specific selection
90
- * @param selection
91
- * @param dynamic
92
- * @returns
93
- */
94
- addDynamic(selection: SmoSelection, dynamic: SmoDynamicText): Promise<void>;
95
- /**
96
- * Remove dynamics from the current selection
97
- * @param dynamic
98
- * @returns
99
- */
100
- removeDynamic(dynamic: SmoDynamicText): Promise<void>;
101
- /**
102
- * we never really delete a note, but we will convert it into a rest and if it's
103
- * already a rest we will try to hide it.
104
- * Operates on current selections
105
- * */
106
- deleteNote(): Promise<void>;
107
- /**
108
- * The lyric editor moves around, so we can't depend on the tracker for the
109
- * correct selection. We get it directly from the editor.
110
- *
111
- * @param selector - the selector of the note with the lyric to remove
112
- * @param lyric - a copy of the lyric to remove. We use the verse, parser to identify it
113
- * @returns render promise
114
- */
115
- removeLyric(selector: SmoSelector, lyric: SmoLyric): Promise<void>;
116
- /**
117
- * @param selector where to add or update the lyric
118
- * @param lyric a copy of the lyric to remove
119
- * @returns
120
- */
121
- addOrUpdateLyric(selector: SmoSelector, lyric: SmoLyric): Promise<void>;
122
- /**
123
- * Delete all the notes for the currently selected voice
124
- * @returns
125
- */
126
- depopulateVoice(): Promise<void>;
127
- /**
128
- * Change the active voice in a multi-voice measure.
129
- * @param index
130
- * @returns
131
- */
132
- _changeActiveVoice(index: number): SmoSelection[];
133
- /**
134
- * Populate a new voice with default notes
135
- * @param index the voice to populate
136
- * @returns
137
- */
138
- populateVoice(index: number): Promise<void>;
139
- swapVoices(voice1: number, voice2: number): Promise<void>;
140
- /**
141
- * Assign an instrument to a set of measures
142
- * @param instrument the instrument to assign to the selections
143
- * @param selections
144
- * @returns
145
- */
146
- changeInstrument(instrument: SmoInstrument, selections: SmoSelection[]): Promise<void>;
147
- /**
148
- * Set the time signature for a selection
149
- * @param timeSignature actual time signature
150
- */
151
- setTimeSignature(timeSignature: TimeSignature): Promise<void>;
152
- /**
153
- * Move selected staff up or down in the score.
154
- * @param index direction to move
155
- * @returns
156
- */
157
- moveStaffUpDown(index: number): Promise<void>;
158
- /**
159
- * Update the staff group for a score, which determines how the staves
160
- * are justified and bracketed
161
- * @param staffGroup
162
- */
163
- addOrUpdateStaffGroup(staffGroup: SmoSystemGroup): Promise<void>;
164
- removeStaffGroup(staffGroup: SmoSystemGroup): Promise<void>;
165
- clearSystemGroups(): Promise<void>;
166
- updateTabStave(tabStave: SmoTabStave): Promise<void>;
167
- removeTabStave(): Promise<void>;
168
- /**
169
- * Update tempo for all or part of the score
170
- * @param measure the measure with the tempo. Tempo is measure-wide parameter
171
- * @param scoreMode if true, update whole score. Else selections
172
- * @returns
173
- */
174
- updateTempoScore(measure: SmoMeasure, tempo: SmoTempoText, scoreMode: boolean, selectionMode: boolean): Promise<void>;
175
- updateTabNote(tabNote: SmoTabNote): Promise<void>;
176
- removeTabNote(): Promise<void>;
177
- /**
178
- * 'remove' tempo, which means either setting the bars to the
179
- * default tempo, or the previously-set tempo.
180
- * @param scoreMode whether to reset entire score
181
- */
182
- removeTempo(measure: SmoMeasure, tempo: SmoTempoText, scoreMode: boolean, selectionMode: boolean): Promise<void>;
183
- /**
184
- * Add a grace note to the selected real notes.
185
- */
186
- addGraceNote(): Promise<void>;
187
- /**
188
- * remove selected grace note
189
- * @returns
190
- */
191
- removeGraceNote(): Promise<void>;
192
- /**
193
- * Toggle slash in stem of grace note
194
- */
195
- slashGraceNotes(): Promise<void>;
196
- transposeScore(offset: number): Promise<void>;
197
- /**
198
- * transpose selected notes
199
- * @param offset 1/2 steps
200
- * @returns
201
- */
202
- transposeSelections(offset: number): Promise<void>;
203
- /**
204
- * toggle the accidental spelling of the selected notes
205
- * @returns
206
- */
207
- toggleEnharmonic(): Promise<void>;
208
- /**
209
- * Toggle cautionary/courtesy accidentals
210
- */
211
- toggleCourtesyAccidentals(): Promise<void>;
212
- /**
213
- * change the duration of notes for selected, creating more
214
- * or fewer notes.
215
- * After the change, reset the selection so it's as close as possible
216
- * to the original length
217
- * @param operation
218
- * @returns
219
- */
220
- batchDurationOperation(operation: BatchSelectionOperation): Promise<void>;
221
- /**
222
- * Toggle selected modifier on selected notes
223
- * @param modifier
224
- * @param ctor parent class constructor (e.g. SmoOrnament)
225
- * @returns
226
- */
227
- toggleArticulation(modifier: string, ctor: string): Promise<void>;
228
- setArticulation(modifier: SmoArticulation, set: boolean): Promise<void>;
229
- setOrnament(modifier: SmoOrnament, set: boolean): Promise<void>;
230
- /**
231
- * convert non-tuplet not to a tuplet
232
- * @param params
233
- */
234
- makeTuplet(params: MakeTupletOperation): Promise<void>;
235
- /**
236
- * Convert selected tuplet to a single (if possible) non-tuplet
237
- */
238
- unmakeTuplet(): Promise<void>;
239
- /**
240
- * Create a chord by adding an interval to selected note
241
- * @param interval 1/2 steps
242
- * @returns
243
- */
244
- setInterval(interval: number): Promise<void>;
245
- /**
246
- * change the selected chord into a single note
247
- * @returns
248
- */
249
- collapseChord(): Promise<void>;
250
- /**
251
- * Toggle chicken-scratches, for jazz improv, comping etc.
252
- */
253
- toggleSlash(): Promise<void>;
254
- /**
255
- * make selected notes into a rest, or visa-versa
256
- * @returns
257
- */
258
- makeRest(): Promise<void>;
259
- clearAllBeams(): Promise<void>;
260
- clearSelectedBeams(): Promise<void>;
261
- /**
262
- * toggle the 'end beam' flag for selected notes
263
- * @returns
264
- */
265
- unbeamSelections(): Promise<void>;
266
- toggleCue(): Promise<void>;
267
- /**
268
- * up or down
269
- * @returns
270
- */
271
- toggleBeamDirection(): Promise<void>;
272
- /**
273
- * Add the selected notes to a beam group
274
- */
275
- beamSelections(): Promise<void>;
276
- /**
277
- * change key signature for selected measures
278
- * @param keySignature vex key signature
279
- */
280
- addKeySignature(keySignature: string): Promise<void>;
281
- /**
282
- * Sets a pitch from the piano widget.
283
- * @param pitch {Pitch}
284
- * @param chordPedal {boolean} - indicates we are adding to a chord
285
- */
286
- setPitchPiano(pitch: Pitch, chordPedal: boolean): Promise<void>;
287
- /**
288
- * show or hide the piano widget
289
- * @param value to show it
290
- */
291
- showPiano(value: boolean): Promise<void>;
292
- /**
293
- * Render a pitch for each letter name-pitch in the string,
294
- * @param pitches letter names for pitches
295
- * @returns promise, resolved when all pitches rendered
296
- * @see setPitch
297
- */
298
- setPitchesPromise(pitches: PitchLetter[]): Promise<any>;
299
- /**
300
- * Add a pitch to the score at the cursor. This tries to find the best pitch
301
- * to match the letter key (F vs F# for instance) based on key and surrounding notes
302
- * @param letter string
303
- */
304
- setPitch(letter: PitchLetter): Promise<void>;
305
- /**
306
- * Generic clipboard copy action
307
- */
308
- copy(): Promise<void>;
309
- /**
310
- * clipboard paste action
311
- * @returns
312
- */
313
- paste(): Promise<void>;
314
- /**
315
- * Paste only the chords.
316
- */
317
- pasteChords(): Promise<void>;
318
- /**
319
- * specify a note head other than the default for the duration
320
- * @param head
321
- */
322
- setNoteHead(head: string): Promise<void>;
323
- /**
324
- * Add a volta for selected measures
325
- */
326
- addEnding(): Promise<void>;
327
- /**
328
- * @param ending volta settings
329
- * @returns
330
- */
331
- updateEnding(ending: SmoVolta): Promise<void>;
332
- /**
333
- *
334
- * @param ending volta to remove
335
- * @returns
336
- */
337
- removeEnding(ending: SmoVolta): Promise<void>;
338
- /**
339
- *
340
- * @param position begin or end
341
- * @param barline barline type
342
- * @returns
343
- */
344
- setBarline(position: number, barline: number): Promise<void>;
345
- /**
346
- *
347
- * @param position start or end
348
- * @param symbol coda, etc.
349
- */
350
- setRepeatSymbol(position: number, symbol: number): Promise<void>;
351
- /**
352
- * toggle rehearsal mark on first selected measure
353
- * @returns
354
- */
355
- toggleRehearsalMark(): Promise<void>;
356
- _removeStaffModifier(modifier: StaffModifierBase): void;
357
- /**
358
- * Remove selected modifier
359
- * @param modifier slur, hairpin, etc.
360
- * @returns
361
- */
362
- removeStaffModifier(modifier: StaffModifierBase): Promise<void>;
363
- /**
364
- * Change a staff modifier
365
- * @param original original version
366
- * @param modifier modified version
367
- * @returns
368
- */
369
- addOrUpdateStaffModifier(original: StaffModifierBase, modifier: StaffModifierBase): Promise<void>;
370
- lineOperation(op: createStaffModifierType<StaffModifierBase>): void;
371
- /**
372
- * Add crescendo to selection
373
- */
374
- crescendo(): Promise<void>;
375
- /**
376
- * Add crescendo to selection
377
- */
378
- crescendoBracket(): Promise<void>;
379
- /**
380
- * Add crescendo to selection
381
- */
382
- dimenuendo(): Promise<void>;
383
- /**
384
- * Add crescendo to selection
385
- */
386
- accelerando(): Promise<void>;
387
- /**
388
- * Add crescendo to selection
389
- */
390
- ritard(): Promise<void>;
391
- /**
392
- * diminuendo hairpin
393
- * @returns
394
- */
395
- decrescendo(): Promise<void>;
396
- removeTextBracket(bracket: SmoStaffTextBracket): Promise<void>;
397
- addOrReplaceStaffModifier(callback: updateStaffModifierFunc, modifier: StaffModifierBase): Promise<void>;
398
- addOrReplaceTextBracket(modifier: SmoStaffTextBracket): Promise<void>;
399
- /**
400
- * Slur selected notes
401
- * @returns
402
- */
403
- addSlur(): Promise<void>;
404
- /**
405
- * tie selected notes
406
- * @returns
407
- */
408
- tie(): Promise<void>;
409
- updateZoom(zoomFactor: number): Promise<void>;
410
- /**
411
- * set global page for score, zoom etc.
412
- * @param layout global SVG settings
413
- * @returns
414
- */
415
- setGlobalLayout(layout: SmoGlobalLayout): Promise<void>;
416
- /**
417
- * Set the layout of a single page
418
- * @param layout page layout
419
- * @param pageIndex which page to change
420
- * @returns
421
- */
422
- setPageLayout(layout: SmoPageLayout, pageIndex: number): Promise<void>;
423
- setPageLayouts(layout: SmoPageLayout, startIndex: number, endIndex: number): Promise<void>;
424
- /**
425
- * Update the music font
426
- * @param family
427
- * @returns
428
- */
429
- setEngravingFontFamily(family: engravingFontType): Promise<void>;
430
- /**
431
- * Upate global font used for chord changes
432
- * @param fontInfo
433
- * @returns
434
- */
435
- setChordFont(fontInfo: FontInfo): Promise<void>;
436
- /**
437
- * Update font used for lyrics
438
- * @param fontInfo
439
- * @returns
440
- */
441
- setLyricFont(fontInfo: FontInfo): Promise<void>;
442
- /**
443
- * @param value if false, lyric widths don't affect measure width
444
- * @returns
445
- */
446
- setLyricAdjustWidth(value: boolean): Promise<void>;
447
- /**
448
- * delete selected measures
449
- * @returns
450
- */
451
- deleteMeasure(): Promise<void>;
452
- /**
453
- * add number of measures, with default notes selections
454
- * @param append
455
- * @param numberToAdd
456
- * @returns
457
- */
458
- addMeasures(append: boolean, numberToAdd: number): Promise<void>;
459
- /**
460
- * add a single measure before or after selection
461
- * @param append
462
- * @returns
463
- */
464
- addMeasure(append: boolean): Promise<void>;
465
- /**
466
- * remove an entire line of music
467
- * @returns
468
- */
469
- removeStaff(): Promise<void>;
470
- addStaff(instrument: SmoSystemStaffParams): Promise<void>;
471
- /**
472
- * Update part info assumes that the part is currently exposed - that
473
- * staff 0 is the first staff in the part prior to editing.
474
- * @param info
475
- */
476
- updatePartInfo(info: SmoPartInfo): Promise<void>;
477
- /**
478
- * A simpler API for applications to add a new staff to the score.
479
- * @param params - the instrument, which determines clef, etc.
480
- * @returns
481
- */
482
- addStaffSimple(params: Partial<SmoInstrumentParams>): Promise<void>;
483
- /**
484
- * Save the score to local storage.
485
- */
486
- quickSave(): void;
487
- updateRepeatCount(count: number): Promise<any>;
488
- /**
489
- * Update the measure formatting parameters for the current selection
490
- * @param format generic measure formatting parameters
491
- * @returns
492
- */
493
- setMeasureFormat(format: SmoMeasureFormat): Promise<any>;
494
- /**
495
- * Remove system breaks from the measure formatting for selected measures
496
- * @returns
497
- */
498
- removeSystemBreaks(): Promise<any>;
499
- renumberMeasures(measureIndex: number, displayIndex: number): Promise<void>;
500
- /**
501
- * Play the music from the starting selection
502
- * @returns
503
- */
504
- playFromSelection(): Promise<void>;
505
- stopPlayer(): void;
506
- pausePlayer(): void;
507
- /**
508
- * Proxy calls to move the tracker parameters according to the
509
- * rules of the 'Home' key (depending on shift/ctrl/alt)
510
- * @param ev
511
- * @returns
512
- */
513
- moveHome(ev: KeyEvent): Promise<any>;
514
- /**
515
- * Proxy calls to move the tracker parameters according to the
516
- * rules of the 'End' key (depending on shift/ctrl/alt)
517
- * @param ev
518
- * @returns
519
- */
520
- moveEnd(ev: KeyEvent): Promise<any>;
521
- /**
522
- * Grow the current selection by one to the left, if possible
523
- * @param ev
524
- * @returns
525
- */
526
- growSelectionLeft(): Promise<any>;
527
- /**
528
- * Grow the current selection by one to the right, if possible
529
- * @param ev
530
- * @returns
531
- */
532
- growSelectionRight(): Promise<any>;
533
- /**
534
- * Select the next tabbable modifier near one of the selected notes
535
- * @param keyEv
536
- * @returns
537
- */
538
- advanceModifierSelection(keyEv: KeyEvent): Promise<any>;
539
- /**
540
- * Select the next entire measure, if possible
541
- * @returns
542
- */
543
- growSelectionRightMeasure(): Promise<any>;
544
- /**
545
- * Advance cursor forwards, if possible
546
- * @param ev
547
- * @returns
548
- */
549
- moveSelectionRight(): Promise<any>;
550
- /**
551
- * Advance cursor backwards, if possible
552
- * @param ev
553
- * @returns
554
- */
555
- moveSelectionLeft(): Promise<any>;
556
- /**
557
- * Advance cursor back entire measure, if possible
558
- * @returns
559
- */
560
- moveSelectionLeftMeasure(): Promise<any>;
561
- /**
562
- * Advance cursor forward one measure, if possible
563
- * @returns
564
- */
565
- moveSelectionRightMeasure(): Promise<any>;
566
- /**
567
- * Move cursor to a higher pitch in the current chord, with wrap
568
- * @returns
569
- */
570
- moveSelectionPitchUp(): Promise<any>;
571
- /**
572
- * Move cursor to a lower pitch in the current chord, with wrap
573
- */
574
- moveSelectionPitchDown(): Promise<any>;
575
- /**
576
- * Move cursor up a staff in the system, if possible
577
- * @returns
578
- */
579
- moveSelectionUp(): Promise<any>;
580
- /**
581
- * Move cursor down a staff in the system, if possible
582
- * @returns
583
- */
584
- moveSelectionDown(): Promise<any>;
585
- /**
586
- * Set the current suggestions (hover element) as the selection
587
- * @returns
588
- */
589
- selectSuggestion(evData: KeyEvent): Promise<any>;
590
- /**
591
- * Find an element at the given box, and make it the current selection
592
- * */
593
- intersectingArtifact(evData: SvgBox): Promise<any>;
594
- }
1
+ import { SuiScoreView, updateStaffModifierFunc } from './scoreView';
2
+ import { SmoScore, engravingFontType } from '../../smo/data/score';
3
+ import { SmoSystemStaffParams } from '../../smo/data/systemStaff';
4
+ import { SmoPartInfo } from '../../smo/data/partInfo';
5
+ import { SmoMeasure } from '../../smo/data/measure';
6
+ import { KeyEvent, SvgBox, Pitch, PitchLetter } from '../../smo/data/common';
7
+ import { SmoRenderConfiguration } from './configuration';
8
+ import { SmoSystemGroup, SmoPageLayout, SmoGlobalLayout, SmoAudioPlayerSettings, SmoScorePreferences, SmoScoreInfo } from '../../smo/data/scoreModifiers';
9
+ import { SmoTextGroup } from '../../smo/data/scoreText';
10
+ import { SmoDynamicText, SmoArticulation, SmoOrnament, SmoLyric, SmoArpeggioType, SmoClefChange, SmoTabNote } from '../../smo/data/noteModifiers';
11
+ import { SmoTempo, SmoVolta, SmoMeasureFormat, SmoTimeSignature } from '../../smo/data/measureModifiers';
12
+ import { UndoBuffer } from '../../smo/xform/undo';
13
+ import { createStaffModifierType, MakeTupletOperation } from '../../smo/xform/operations';
14
+ import { BatchSelectionOperation } from '../../smo/xform/operations';
15
+ import { FontInfo } from '../../common/vex';
16
+ import { SmoSelection, SmoSelector } from '../../smo/xform/selections';
17
+ import { StaffModifierBase, SmoInstrument, SmoInstrumentParams, SmoStaffTextBracket, SmoTabStave } from '../../smo/data/staffModifiers';
18
+ /**
19
+ * MVVM-like operations on the displayed score.
20
+ *
21
+ * All operations that can be performed on a 'live' score go through this
22
+ * module. It maps the score view to the actual score and makes sure the
23
+ * model and view stay in sync.
24
+ *
25
+ * Because this object operates on the current selections,
26
+ * all operations return promise so applications can wait for the
27
+ * operation to complete and update the selection list.
28
+ * @category SuiRender
29
+ */
30
+ export declare class SuiScoreViewOperations extends SuiScoreView {
31
+ constructor(config: SmoRenderConfiguration, score: SmoScore, undoBuffer: UndoBuffer);
32
+ /**
33
+ * Add a new text group to the score
34
+ * @param textGroup a new text group
35
+ * @returns
36
+ */
37
+ addTextGroup(textGroup: SmoTextGroup): Promise<void>;
38
+ /**
39
+ * Remove the text group from the score
40
+ * @param textGroup
41
+ * @returns
42
+ */
43
+ removeTextGroup(textGroup: SmoTextGroup): Promise<void>;
44
+ /**
45
+ * UPdate an existing text group. The original is passed in, because since TG not tied to a musical
46
+ * element, we need to find the one we're updating.
47
+ * @param oldVersion
48
+ * @param newVersion
49
+ * @returns
50
+ */
51
+ updateTextGroup(newVersion: SmoTextGroup): Promise<void>;
52
+ /**
53
+ * load an mxml score remotely, return a promise that
54
+ * completes when the file is loaded
55
+ * @param url where to find the xml file
56
+ * @returns
57
+ */
58
+ loadRemoteXml(url: string): Promise<any>;
59
+ /**
60
+ * load a remote score in SMO format
61
+ * @param url url to find the score
62
+ * @returns
63
+ */
64
+ loadRemoteJson(url: string): Promise<any>;
65
+ /**
66
+ * Load a remote score, return promise when it's been loaded
67
+ * from afar.
68
+ * @param pref
69
+ * @returns
70
+ */
71
+ loadRemoteScore(url: string): Promise<any>;
72
+ updateAudioSettings(pref: SmoAudioPlayerSettings): Promise<void>;
73
+ /**
74
+ * Global settings that control how the score editor behaves
75
+ * @param pref
76
+ * @returns
77
+ */
78
+ updateScorePreferences(pref: SmoScorePreferences): Promise<void>;
79
+ /**
80
+ * Update information about the score, composer etc.
81
+ * @param scoreInfo
82
+ * @returns
83
+ */
84
+ updateScoreInfo(scoreInfo: SmoScoreInfo): Promise<void>;
85
+ addRemoveArpeggio(code: SmoArpeggioType): Promise<void>;
86
+ /**
87
+ * A clef change mid-measure (clefNote)
88
+ * @param clef
89
+ */
90
+ addRemoveClefChange(clef: SmoClefChange): Promise<void>;
91
+ /**
92
+ * Modify the dynamics assoicated with the specific selection
93
+ * @param selection
94
+ * @param dynamic
95
+ * @returns
96
+ */
97
+ addDynamic(selection: SmoSelection, dynamic: SmoDynamicText): Promise<void>;
98
+ /**
99
+ * Remove dynamics from the current selection
100
+ * @param dynamic
101
+ * @returns
102
+ */
103
+ removeDynamic(dynamic: SmoDynamicText): Promise<void>;
104
+ /**
105
+ * we never really delete a note, but we will convert it into a rest and if it's
106
+ * already a rest we will try to hide it.
107
+ * Operates on current selections
108
+ * */
109
+ deleteNote(): Promise<void>;
110
+ /**
111
+ * The lyric editor moves around, so we can't depend on the tracker for the
112
+ * correct selection. We get it directly from the editor.
113
+ *
114
+ * @param selector - the selector of the note with the lyric to remove
115
+ * @param lyric - a copy of the lyric to remove. We use the verse, parser to identify it
116
+ * @returns render promise
117
+ */
118
+ removeLyric(selector: SmoSelector, lyric: SmoLyric): Promise<void>;
119
+ /**
120
+ * @param selector where to add or update the lyric
121
+ * @param lyric a copy of the lyric to remove
122
+ * @returns
123
+ */
124
+ addOrUpdateLyric(selector: SmoSelector, lyric: SmoLyric): Promise<void>;
125
+ /**
126
+ * Delete all the notes for the currently selected voice
127
+ * @returns
128
+ */
129
+ depopulateVoice(): Promise<void>;
130
+ /**
131
+ * Change the active voice in a multi-voice measure.
132
+ * @param index
133
+ * @returns
134
+ */
135
+ _changeActiveVoice(index: number): SmoSelection[];
136
+ /**
137
+ * Populate a new voice with default notes
138
+ * @param index the voice to populate
139
+ * @returns
140
+ */
141
+ populateVoice(index: number): Promise<void>;
142
+ swapVoices(voice1: number, voice2: number): Promise<void>;
143
+ /**
144
+ * Assign an instrument to a set of measures
145
+ * @param instrument the instrument to assign to the selections
146
+ * @param selections
147
+ * @returns
148
+ */
149
+ changeInstrument(instrument: SmoInstrument, selections: SmoSelection[]): Promise<void>;
150
+ /**
151
+ * Set the time signature for a selection
152
+ * @param timeSignature actual time signature
153
+ */
154
+ setTimeSignature(timeSignature: SmoTimeSignature): Promise<void>;
155
+ /**
156
+ * Move selected staff up or down in the score.
157
+ * @param index direction to move
158
+ * @returns
159
+ */
160
+ moveStaffUpDown(index: number): Promise<void>;
161
+ /**
162
+ * Update the staff group for a score, which determines how the staves
163
+ * are justified and bracketed
164
+ * @param staffGroup
165
+ */
166
+ addOrUpdateStaffGroup(staffGroup: SmoSystemGroup): Promise<void>;
167
+ removeStaffGroup(staffGroup: SmoSystemGroup): Promise<void>;
168
+ clearSystemGroups(): Promise<void>;
169
+ updateTabStave(tabStave: SmoTabStave): Promise<void>;
170
+ removeTabStave(): Promise<void>;
171
+ /**
172
+ * Update tempo for all or part of the score
173
+ * @param measure the measure with the tempo. Tempo is measure-wide parameter
174
+ * @param scoreMode if true, update whole score. Else selections
175
+ * @returns
176
+ */
177
+ updateTempoScore(measure: SmoMeasure, tempo: SmoTempo, scoreMode: boolean, selectionMode: boolean): Promise<void>;
178
+ updateTabNote(tabNote: SmoTabNote): Promise<void>;
179
+ removeTabNote(): Promise<void>;
180
+ /**
181
+ * 'remove' tempo, which means either setting the bars to the
182
+ * default tempo, or the previously-set tempo.
183
+ * @param scoreMode whether to reset entire score
184
+ */
185
+ removeTempo(measure: SmoMeasure, tempo: SmoTempo, scoreMode: boolean, selectionMode: boolean): Promise<void>;
186
+ /**
187
+ * Add a grace note to the selected real notes.
188
+ */
189
+ addGraceNote(): Promise<void>;
190
+ /**
191
+ * remove selected grace note
192
+ * @returns
193
+ */
194
+ removeGraceNote(): Promise<void>;
195
+ /**
196
+ * Toggle slash in stem of grace note
197
+ */
198
+ slashGraceNotes(): Promise<void>;
199
+ transposeScore(offset: number): Promise<void>;
200
+ /**
201
+ * transpose selected notes
202
+ * @param offset 1/2 steps
203
+ * @returns
204
+ */
205
+ transposeSelections(offset: number): Promise<void>;
206
+ /**
207
+ * toggle the accidental spelling of the selected notes
208
+ * @returns
209
+ */
210
+ toggleEnharmonic(): Promise<void>;
211
+ /**
212
+ * Toggle cautionary/courtesy accidentals
213
+ */
214
+ toggleCourtesyAccidentals(): Promise<void>;
215
+ /**
216
+ * change the duration of notes for selected, creating more
217
+ * or fewer notes.
218
+ * After the change, reset the selection so it's as close as possible
219
+ * to the original length
220
+ * @param operation
221
+ * @returns
222
+ */
223
+ batchDurationOperation(operation: BatchSelectionOperation): Promise<void>;
224
+ /**
225
+ * Toggle selected modifier on selected notes
226
+ * @param modifier
227
+ * @param ctor parent class constructor (e.g. SmoOrnament)
228
+ * @returns
229
+ */
230
+ toggleArticulation(modifier: string, ctor: string): Promise<void>;
231
+ setArticulation(modifier: SmoArticulation, set: boolean): Promise<void>;
232
+ setOrnament(modifier: SmoOrnament, set: boolean): Promise<void>;
233
+ /**
234
+ * convert non-tuplet not to a tuplet
235
+ * @param params
236
+ */
237
+ makeTuplet(params: MakeTupletOperation): Promise<void>;
238
+ /**
239
+ * Convert selected tuplet to a single (if possible) non-tuplet
240
+ */
241
+ unmakeTuplet(): Promise<void>;
242
+ /**
243
+ * Create a chord by adding an interval to selected note
244
+ * @param interval 1/2 steps
245
+ * @returns
246
+ */
247
+ setInterval(interval: number): Promise<void>;
248
+ /**
249
+ * change the selected chord into a single note
250
+ * @returns
251
+ */
252
+ collapseChord(): Promise<void>;
253
+ /**
254
+ * Toggle chicken-scratches, for jazz improv, comping etc.
255
+ */
256
+ toggleSlash(): Promise<void>;
257
+ /**
258
+ * make selected notes into a rest, or visa-versa
259
+ * @returns
260
+ */
261
+ makeRest(): Promise<void>;
262
+ clearAllBeams(): Promise<void>;
263
+ clearSelectedBeams(): Promise<void>;
264
+ /**
265
+ * toggle the 'end beam' flag for selected notes
266
+ * @returns
267
+ */
268
+ unbeamSelections(): Promise<void>;
269
+ toggleCue(): Promise<void>;
270
+ /**
271
+ * up or down
272
+ * @returns
273
+ */
274
+ toggleBeamDirection(): Promise<void>;
275
+ /**
276
+ * Add the selected notes to a beam group
277
+ */
278
+ beamSelections(): Promise<void>;
279
+ /**
280
+ * change key signature for selected measures
281
+ * @param keySignature vex key signature
282
+ */
283
+ addKeySignature(keySignature: string): Promise<void>;
284
+ /**
285
+ * Sets a pitch from the piano widget.
286
+ * @param pitch {Pitch}
287
+ * @param chordPedal {boolean} - indicates we are adding to a chord
288
+ */
289
+ setPitchPiano(pitch: Pitch, chordPedal: boolean): Promise<void>;
290
+ /**
291
+ * show or hide the piano widget
292
+ * @param value to show it
293
+ */
294
+ showPiano(value: boolean): Promise<void>;
295
+ /**
296
+ * Render a pitch for each letter name-pitch in the string,
297
+ * @param pitches letter names for pitches
298
+ * @returns promise, resolved when all pitches rendered
299
+ * @see setPitch
300
+ */
301
+ setPitchesPromise(pitches: PitchLetter[]): Promise<any>;
302
+ setPitches(pitches: Pitch[]): Promise<void>;
303
+ /**
304
+ * Add a pitch to the score at the cursor. This tries to find the best pitch
305
+ * to match the letter key (F vs F# for instance) based on key and surrounding notes
306
+ * @param letter string
307
+ */
308
+ setPitch(letter: PitchLetter): Promise<void>;
309
+ /**
310
+ * Generic clipboard copy action
311
+ */
312
+ copy(): Promise<void>;
313
+ /**
314
+ * clipboard paste action
315
+ * @returns
316
+ */
317
+ paste(): Promise<void>;
318
+ /**
319
+ * Paste only the chords.
320
+ */
321
+ pasteChords(): Promise<void>;
322
+ /**
323
+ * specify a note head other than the default for the duration
324
+ * @param head
325
+ */
326
+ setNoteHead(head: string): Promise<void>;
327
+ /**
328
+ * Add a volta for selected measures
329
+ */
330
+ addEnding(): Promise<void>;
331
+ /**
332
+ * @param ending volta settings
333
+ * @returns
334
+ */
335
+ updateEnding(ending: SmoVolta): Promise<void>;
336
+ /**
337
+ *
338
+ * @param ending volta to remove
339
+ * @returns
340
+ */
341
+ removeEnding(ending: SmoVolta): Promise<void>;
342
+ /**
343
+ *
344
+ * @param position begin or end
345
+ * @param barline barline type
346
+ * @returns
347
+ */
348
+ setBarline(position: number, barline: number): Promise<void>;
349
+ /**
350
+ *
351
+ * @param position start or end
352
+ * @param symbol coda, etc.
353
+ */
354
+ setRepeatSymbol(position: number, symbol: number): Promise<void>;
355
+ /**
356
+ * toggle rehearsal mark on first selected measure
357
+ * @returns
358
+ */
359
+ toggleRehearsalMark(): Promise<void>;
360
+ _removeStaffModifier(modifier: StaffModifierBase): void;
361
+ /**
362
+ * Remove selected modifier
363
+ * @param modifier slur, hairpin, etc.
364
+ * @returns
365
+ */
366
+ removeStaffModifier(modifier: StaffModifierBase): Promise<void>;
367
+ /**
368
+ * Change a staff modifier
369
+ * @param original original version
370
+ * @param modifier modified version
371
+ * @returns
372
+ */
373
+ addOrUpdateStaffModifier(original: StaffModifierBase, modifier: StaffModifierBase): Promise<void>;
374
+ lineOperation(op: createStaffModifierType<StaffModifierBase>): void;
375
+ /**
376
+ * Add crescendo to selection
377
+ */
378
+ crescendo(): Promise<void>;
379
+ /**
380
+ * Add crescendo to selection
381
+ */
382
+ crescendoBracket(): Promise<void>;
383
+ /**
384
+ * Add crescendo to selection
385
+ */
386
+ dimenuendo(): Promise<void>;
387
+ /**
388
+ * Add crescendo to selection
389
+ */
390
+ accelerando(): Promise<void>;
391
+ /**
392
+ * Add crescendo to selection
393
+ */
394
+ ritard(): Promise<void>;
395
+ /**
396
+ * diminuendo hairpin
397
+ * @returns
398
+ */
399
+ decrescendo(): Promise<void>;
400
+ removeTextBracket(bracket: SmoStaffTextBracket): Promise<void>;
401
+ addOrReplaceStaffModifier(callback: updateStaffModifierFunc, modifier: StaffModifierBase): Promise<void>;
402
+ addOrReplaceTextBracket(modifier: SmoStaffTextBracket): Promise<void>;
403
+ /**
404
+ * Slur selected notes
405
+ * @returns
406
+ */
407
+ addSlur(): Promise<void>;
408
+ /**
409
+ * tie selected notes
410
+ * @returns
411
+ */
412
+ tie(): Promise<void>;
413
+ updateZoom(zoomFactor: number): Promise<void>;
414
+ /**
415
+ * set global page for score, zoom etc.
416
+ * @param layout global SVG settings
417
+ * @returns
418
+ */
419
+ setGlobalLayout(layout: SmoGlobalLayout): Promise<void>;
420
+ /**
421
+ * Set the layout of a single page
422
+ * @param layout page layout
423
+ * @param pageIndex which page to change
424
+ * @returns
425
+ */
426
+ setPageLayout(layout: SmoPageLayout, pageIndex: number): Promise<void>;
427
+ setPageLayouts(layout: SmoPageLayout, startIndex: number, endIndex: number): Promise<void>;
428
+ /**
429
+ * Update the music font
430
+ * @param family
431
+ * @returns
432
+ */
433
+ setEngravingFontFamily(family: engravingFontType): Promise<void>;
434
+ /**
435
+ * Upate global font used for chord changes
436
+ * @param fontInfo
437
+ * @returns
438
+ */
439
+ setChordFont(fontInfo: FontInfo): Promise<void>;
440
+ /**
441
+ * Update font used for lyrics
442
+ * @param fontInfo
443
+ * @returns
444
+ */
445
+ setLyricFont(fontInfo: FontInfo): Promise<void>;
446
+ /**
447
+ * @param value if false, lyric widths don't affect measure width
448
+ * @returns
449
+ */
450
+ setLyricAdjustWidth(value: boolean): Promise<void>;
451
+ /**
452
+ * delete selected measures
453
+ * @returns
454
+ */
455
+ deleteMeasure(): Promise<void>;
456
+ /**
457
+ * add number of measures, with default notes selections
458
+ * @param append
459
+ * @param numberToAdd
460
+ * @returns
461
+ */
462
+ addMeasures(append: boolean, numberToAdd: number): Promise<void>;
463
+ /**
464
+ * add a single measure before or after selection
465
+ * @param append
466
+ * @returns
467
+ */
468
+ addMeasure(append: boolean): Promise<void>;
469
+ /**
470
+ * remove an entire line of music
471
+ * @returns
472
+ */
473
+ removeStaff(): Promise<void>;
474
+ /**
475
+ * Add a new staff to an existing score, with default instrument for the staff part.
476
+ * We base the staff parameters on a stave that currently exists in the score.
477
+ * @param instrument
478
+ * @returns
479
+ */
480
+ addStaff(instrument: SmoSystemStaffParams): Promise<void>;
481
+ /**
482
+ * Update part info assumes that the part is currently exposed - that
483
+ * staff 0 is the first staff in the part prior to editing.
484
+ * @param info
485
+ */
486
+ updatePartInfo(info: SmoPartInfo): Promise<void>;
487
+ /**
488
+ * A simpler API for applications to add a new staff to the score.
489
+ * @param params - the instrument, which determines clef, etc.
490
+ * @returns
491
+ */
492
+ addStaffSimple(params: Partial<SmoInstrumentParams>): Promise<void>;
493
+ /**
494
+ * Save the score to local storage.
495
+ */
496
+ quickSave(): void;
497
+ updateRepeatCount(count: number): Promise<any>;
498
+ /**
499
+ * Update the measure formatting parameters for the current selection
500
+ * @param format generic measure formatting parameters
501
+ * @returns
502
+ */
503
+ setMeasureFormat(format: SmoMeasureFormat): Promise<any>;
504
+ /**
505
+ * Remove system breaks from the measure formatting for selected measures
506
+ * @returns
507
+ */
508
+ removeSystemBreaks(): Promise<any>;
509
+ renumberMeasures(measureIndex: number, displayIndex: number): Promise<void>;
510
+ /**
511
+ * Play the music from the starting selection
512
+ * @returns
513
+ */
514
+ playFromSelection(): Promise<void>;
515
+ stopPlayer(): void;
516
+ pausePlayer(): void;
517
+ /**
518
+ * Proxy calls to move the tracker parameters according to the
519
+ * rules of the 'Home' key (depending on shift/ctrl/alt)
520
+ * @param ev
521
+ * @returns
522
+ */
523
+ moveHome(ev: KeyEvent): Promise<any>;
524
+ /**
525
+ * Proxy calls to move the tracker parameters according to the
526
+ * rules of the 'End' key (depending on shift/ctrl/alt)
527
+ * @param ev
528
+ * @returns
529
+ */
530
+ moveEnd(ev: KeyEvent): Promise<any>;
531
+ /**
532
+ * Grow the current selection by one to the left, if possible
533
+ * @param ev
534
+ * @returns
535
+ */
536
+ growSelectionLeft(): Promise<any>;
537
+ /**
538
+ * Grow the current selection by one to the right, if possible
539
+ * @param ev
540
+ * @returns
541
+ */
542
+ growSelectionRight(): Promise<any>;
543
+ /**
544
+ * Select the next tabbable modifier near one of the selected notes
545
+ * @param keyEv
546
+ * @returns
547
+ */
548
+ advanceModifierSelection(keyEv: KeyEvent): Promise<any>;
549
+ /**
550
+ * Select the next entire measure, if possible
551
+ * @returns
552
+ */
553
+ growSelectionRightMeasure(): Promise<any>;
554
+ /**
555
+ * Advance cursor forwards, if possible
556
+ * @param ev
557
+ * @returns
558
+ */
559
+ moveSelectionRight(): Promise<any>;
560
+ /**
561
+ * Advance cursor backwards, if possible
562
+ * @param ev
563
+ * @returns
564
+ */
565
+ moveSelectionLeft(): Promise<any>;
566
+ /**
567
+ * Advance cursor back entire measure, if possible
568
+ * @returns
569
+ */
570
+ moveSelectionLeftMeasure(): Promise<any>;
571
+ /**
572
+ * Advance cursor forward one measure, if possible
573
+ * @returns
574
+ */
575
+ moveSelectionRightMeasure(): Promise<any>;
576
+ /**
577
+ * Move cursor to a higher pitch in the current chord, with wrap
578
+ * @returns
579
+ */
580
+ moveSelectionPitchUp(): Promise<any>;
581
+ /**
582
+ * Move cursor to a lower pitch in the current chord, with wrap
583
+ */
584
+ moveSelectionPitchDown(): Promise<any>;
585
+ /**
586
+ * Move cursor up a staff in the system, if possible
587
+ * @returns
588
+ */
589
+ moveSelectionUp(): Promise<any>;
590
+ /**
591
+ * Move cursor down a staff in the system, if possible
592
+ * @returns
593
+ */
594
+ moveSelectionDown(): Promise<any>;
595
+ /**
596
+ * Set the current suggestions (hover element) as the selection
597
+ * @returns
598
+ */
599
+ selectSuggestion(evData: KeyEvent): Promise<any>;
600
+ /**
601
+ * Find an element at the given box, and make it the current selection
602
+ * */
603
+ intersectingArtifact(evData: SvgBox): Promise<any>;
604
+ }