smoosic 1.0.24 → 1.0.26
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.
- package/build/smoosic.js +1 -1
- package/package.json +1 -1
- package/release/smoosic.js +1 -1
- package/release/styles/ribbon.css +5 -10
- package/src/application/exports.ts +1 -0
- package/src/styles/ribbon.css +5 -10
- package/types/src/application/application.d.ts +102 -102
- package/types/src/application/common.d.ts +74 -74
- package/types/src/application/configuration.d.ts +74 -74
- package/types/src/application/dom.d.ts +8 -8
- package/types/src/application/dynamicInit.d.ts +1 -1
- package/types/src/application/eventHandler.d.ts +78 -78
- package/types/src/application/exports.d.ts +494 -493
- package/types/src/application/generateVexTests.d.ts +10 -10
- package/types/src/application/keyCommands.d.ts +90 -90
- package/types/src/common/bootstrap.bundle.d.ts +1138 -1138
- package/types/src/common/htmlHelpers.d.ts +105 -105
- package/types/src/common/jszip.d.ts +2 -2
- package/types/src/common/midi-parser.d.ts +38 -38
- package/types/src/common/promiseHelpers.d.ts +30 -30
- package/types/src/common/serializationHelpers.d.ts +29 -29
- package/types/src/common/textformatter.d.ts +140 -140
- package/types/src/common/vex.d.ts +222 -222
- package/types/src/render/audio/musicCursor.d.ts +25 -25
- package/types/src/render/audio/oscillator.d.ts +98 -98
- package/types/src/render/audio/player.d.ts +141 -141
- package/types/src/render/audio/samples.d.ts +56 -56
- package/types/src/render/sui/configuration.d.ts +12 -12
- package/types/src/render/sui/formatter.d.ts +151 -151
- package/types/src/render/sui/layoutDebug.d.ts +43 -43
- package/types/src/render/sui/mapper.d.ts +116 -116
- package/types/src/render/sui/piano.d.ts +46 -46
- package/types/src/render/sui/renderState.d.ts +88 -88
- package/types/src/render/sui/scoreRender.d.ts +93 -93
- package/types/src/render/sui/scoreView.d.ts +267 -267
- package/types/src/render/sui/scoreViewOperations.d.ts +594 -594
- package/types/src/render/sui/scroller.d.ts +34 -34
- package/types/src/render/sui/svgHelpers.d.ts +85 -85
- package/types/src/render/sui/svgPageMap.d.ts +318 -318
- package/types/src/render/sui/textEdit.d.ts +310 -310
- package/types/src/render/sui/textRender.d.ts +189 -189
- package/types/src/render/sui/tracker.d.ts +90 -90
- package/types/src/render/vex/glyphDimensions.d.ts +23 -23
- package/types/src/render/vex/smoAdapter.d.ts +46 -46
- package/types/src/render/vex/toVex.d.ts +13 -13
- package/types/src/render/vex/vxMeasure.d.ts +95 -95
- package/types/src/render/vex/vxNote.d.ts +55 -55
- package/types/src/render/vex/vxSystem.d.ts +64 -64
- package/types/src/smo/data/common.d.ts +220 -220
- package/types/src/smo/data/measure.d.ts +510 -510
- package/types/src/smo/data/measureModifiers.d.ts +506 -506
- package/types/src/smo/data/music.d.ts +438 -438
- package/types/src/smo/data/note.d.ts +485 -485
- package/types/src/smo/data/noteModifiers.d.ts +590 -590
- package/types/src/smo/data/partInfo.d.ts +162 -162
- package/types/src/smo/data/score.d.ts +395 -395
- package/types/src/smo/data/scoreModifiers.d.ts +433 -433
- package/types/src/smo/data/scoreText.d.ts +277 -277
- package/types/src/smo/data/staffModifiers.d.ts +767 -767
- package/types/src/smo/data/systemStaff.d.ts +238 -238
- package/types/src/smo/data/tuplet.d.ts +146 -146
- package/types/src/smo/midi/midiToSmo.d.ts +198 -198
- package/types/src/smo/midi/smoToMidi.d.ts +23 -23
- package/types/src/smo/mxml/smoToXml.d.ts +165 -165
- package/types/src/smo/mxml/xmlHelpers.d.ts +140 -140
- package/types/src/smo/mxml/xmlState.d.ts +257 -257
- package/types/src/smo/mxml/xmlToSmo.d.ts +92 -92
- package/types/src/smo/xform/beamers.d.ts +46 -46
- package/types/src/smo/xform/copypaste.d.ts +99 -99
- package/types/src/smo/xform/operations.d.ts +127 -127
- package/types/src/smo/xform/roadmap.d.ts +70 -70
- package/types/src/smo/xform/selections.d.ts +153 -153
- package/types/src/smo/xform/tickDuration.d.ts +155 -155
- package/types/src/smo/xform/tickMap.d.ts +34 -34
- package/types/src/smo/xform/undo.d.ts +142 -142
- package/types/src/smo/xform/updateAudio.d.ts +9 -9
- package/types/src/styles/font_metrics/Commissioner-Medium-Metrics.d.ts +871 -871
- package/types/src/styles/font_metrics/ConcertOne-Regular.d.ts +871 -871
- package/types/src/styles/font_metrics/Merriweather-Regular.d.ts +871 -871
- package/types/src/styles/font_metrics/arial_metrics.d.ts +870 -870
- package/types/src/styles/font_metrics/ssp-sans-metrics.d.ts +871 -871
- package/types/src/styles/font_metrics/ssp-serif-metrics.d.ts +871 -871
- package/types/src/styles/font_metrics/times_metrics.d.ts +870 -870
- package/types/src/ui/buttons/button.d.ts +95 -95
- package/types/src/ui/buttons/collapsable.d.ts +42 -42
- package/types/src/ui/buttons/display.d.ts +23 -23
- package/types/src/ui/buttons/ribbon.d.ts +76 -76
- package/types/src/ui/common.d.ts +45 -45
- package/types/src/ui/composable/draggable.d.ts +12 -12
- package/types/src/ui/configuration.d.ts +31 -31
- package/types/src/ui/dialogs/adapter.d.ts +107 -107
- package/types/src/ui/dialogs/addMeasure.d.ts +20 -20
- package/types/src/ui/dialogs/arpeggio.d.ts +2 -2
- package/types/src/ui/dialogs/articulation.d.ts +2 -2
- package/types/src/ui/dialogs/audioSettings.d.ts +32 -32
- package/types/src/ui/dialogs/chordChange.d.ts +35 -35
- package/types/src/ui/dialogs/clefChange.d.ts +2 -2
- package/types/src/ui/dialogs/components/baseComponent.d.ts +158 -158
- package/types/src/ui/dialogs/components/button.d.ts +54 -54
- package/types/src/ui/dialogs/components/buttonArray.d.ts +101 -101
- package/types/src/ui/dialogs/components/checkdrop.d.ts +27 -27
- package/types/src/ui/dialogs/components/dragText.d.ts +27 -27
- package/types/src/ui/dialogs/components/dropdown.d.ts +78 -78
- package/types/src/ui/dialogs/components/fileDownload.d.ts +28 -28
- package/types/src/ui/dialogs/components/fontComponent.d.ts +32 -32
- package/types/src/ui/dialogs/components/noteText.d.ts +98 -98
- package/types/src/ui/dialogs/components/pitch.d.ts +95 -95
- package/types/src/ui/dialogs/components/rocker.d.ts +66 -66
- package/types/src/ui/dialogs/components/staffComponents.d.ts +77 -77
- package/types/src/ui/dialogs/components/textCheck.d.ts +38 -38
- package/types/src/ui/dialogs/components/textInPlace.d.ts +90 -90
- package/types/src/ui/dialogs/components/textInput.d.ts +58 -58
- package/types/src/ui/dialogs/components/tie.d.ts +41 -41
- package/types/src/ui/dialogs/components/toggle.d.ts +53 -53
- package/types/src/ui/dialogs/components/tree.d.ts +46 -46
- package/types/src/ui/dialogs/customTuplets.d.ts +25 -25
- package/types/src/ui/dialogs/dialog.d.ts +201 -201
- package/types/src/ui/dialogs/durations.d.ts +2 -2
- package/types/src/ui/dialogs/dynamics.d.ts +37 -37
- package/types/src/ui/dialogs/endings.d.ts +61 -61
- package/types/src/ui/dialogs/factory.d.ts +15 -15
- package/types/src/ui/dialogs/fileDialogs.d.ts +4 -4
- package/types/src/ui/dialogs/fonts.d.ts +2 -2
- package/types/src/ui/dialogs/globalLayout.d.ts +2 -2
- package/types/src/ui/dialogs/gracenote.d.ts +2 -2
- package/types/src/ui/dialogs/hairpin.d.ts +35 -35
- package/types/src/ui/dialogs/instrument.d.ts +3 -3
- package/types/src/ui/dialogs/keySignature.d.ts +33 -33
- package/types/src/ui/dialogs/library.d.ts +70 -70
- package/types/src/ui/dialogs/lyric.d.ts +39 -39
- package/types/src/ui/dialogs/measureFormat.d.ts +52 -52
- package/types/src/ui/dialogs/microtones.d.ts +2 -2
- package/types/src/ui/dialogs/noteHead.d.ts +2 -2
- package/types/src/ui/dialogs/ornament.d.ts +2 -2
- package/types/src/ui/dialogs/pageLayout.d.ts +2 -2
- package/types/src/ui/dialogs/partInfo.d.ts +2 -2
- package/types/src/ui/dialogs/pedalMarking.d.ts +35 -35
- package/types/src/ui/dialogs/pitch.d.ts +2 -2
- package/types/src/ui/dialogs/preferences.d.ts +2 -2
- package/types/src/ui/dialogs/scoreId.d.ts +2 -2
- package/types/src/ui/dialogs/scoreView.d.ts +2 -2
- package/types/src/ui/dialogs/slur.d.ts +57 -57
- package/types/src/ui/dialogs/staffGroup.d.ts +2 -2
- package/types/src/ui/dialogs/tabNote.d.ts +32 -32
- package/types/src/ui/dialogs/tabStave.d.ts +43 -43
- package/types/src/ui/dialogs/tempo.d.ts +50 -50
- package/types/src/ui/dialogs/textBlock.d.ts +61 -61
- package/types/src/ui/dialogs/textBracket.d.ts +35 -35
- package/types/src/ui/dialogs/tie.d.ts +41 -41
- package/types/src/ui/dialogs/timeSignature.d.ts +34 -34
- package/types/src/ui/dialogs/transposeScore.d.ts +2 -2
- package/types/src/ui/dialogs/volta.d.ts +40 -40
- package/types/src/ui/eventSource.d.ts +63 -63
- package/types/src/ui/exceptions.d.ts +12 -12
- package/types/src/ui/fileio/fileInput.d.ts +12 -12
- package/types/src/ui/fileio/library.d.ts +40 -40
- package/types/src/ui/fileio/xhrLoader.d.ts +18 -18
- package/types/src/ui/help.d.ts +22 -22
- package/types/src/ui/i18n/language.d.ts +37 -37
- package/types/src/ui/i18n/language_ar.d.ts +5 -5
- package/types/src/ui/i18n/language_de.d.ts +1 -1
- package/types/src/ui/i18n/language_en.d.ts +18 -18
- package/types/src/ui/i18n/translationEditor.d.ts +14 -14
- package/types/src/ui/keyBindings/default/editorKeys.d.ts +7 -7
- package/types/src/ui/keyBindings/default/trackerKeys.d.ts +7 -7
- package/types/src/ui/menus/beams.d.ts +13 -13
- package/types/src/ui/menus/edit.d.ts +8 -8
- package/types/src/ui/menus/file.d.ts +26 -26
- package/types/src/ui/menus/help.d.ts +8 -8
- package/types/src/ui/menus/keySignature.d.ts +13 -13
- package/types/src/ui/menus/language.d.ts +12 -12
- package/types/src/ui/menus/manager.d.ts +57 -57
- package/types/src/ui/menus/measure.d.ts +8 -8
- package/types/src/ui/menus/menu.d.ts +136 -136
- package/types/src/ui/menus/note.d.ts +8 -8
- package/types/src/ui/menus/partSelection.d.ts +19 -19
- package/types/src/ui/menus/parts.d.ts +50 -50
- package/types/src/ui/menus/score.d.ts +20 -20
- package/types/src/ui/menus/staffModifier.d.ts +21 -21
- package/types/src/ui/menus/text.d.ts +8 -8
- package/types/src/ui/menus/timeSignature.d.ts +12 -12
- package/types/src/ui/menus/tuplets.d.ts +13 -13
- package/types/src/ui/menus/voices.d.ts +8 -8
- package/types/src/ui/modalDialogs.d.ts +1 -1
- package/types/src/ui/navigation.d.ts +15 -15
- package/types/src/ui/qwerty.d.ts +41 -41
- package/types/src/ui/ribbonLayout/default/defaultRibbon.d.ts +15 -15
- package/types/src/ui/ribbonLayout/default/tabletRibbon.d.ts +22 -22
- package/types/typedoc.d.ts +158 -158
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Support for converting Smo object model to MIDI
|
|
3
|
-
* @module /ui/dialog/adapter
|
|
4
|
-
*/
|
|
5
|
-
import { SuiScoreViewOperations } from '../../render/sui/scoreViewOperations';
|
|
6
|
-
import { SuiTracker } from '../../render/sui/tracker';
|
|
7
|
-
import { CompleteNotifier } from '../common';
|
|
8
|
-
import { BrowserEventSource } from '../eventSource';
|
|
9
|
-
import { UndoBuffer } from '../../smo/xform/undo';
|
|
10
|
-
import { DialogDefinition, SuiDialogBase } from './dialog';
|
|
11
|
-
/**
|
|
12
|
-
* An adapter is the glue logic between UI components and the score view.
|
|
13
|
-
* An adapter consists mostly of accessors (get/set) for the component data. The
|
|
14
|
-
* components have their initial values set from the adapter get, and changes to components
|
|
15
|
-
* result in sets to the adapter. The adapter can then update the score.
|
|
16
|
-
* For dialogs that use this pattern,
|
|
17
|
-
* the dialog automatically creates the components and binds their values with the
|
|
18
|
-
* adapter.
|
|
19
|
-
* @method commit - called when OK button of dialog is clicked
|
|
20
|
-
* @method cancel - called when cancel button of dialog is clicked
|
|
21
|
-
* @method remove - optional. Called when 'remove' button is clicked, for artifacts like dynamics that can be removed.
|
|
22
|
-
* @category SuiDialog
|
|
23
|
-
*/
|
|
24
|
-
export declare abstract class SuiComponentAdapter {
|
|
25
|
-
view: SuiScoreViewOperations;
|
|
26
|
-
constructor(view: SuiScoreViewOperations);
|
|
27
|
-
abstract commit(): Promise<any>;
|
|
28
|
-
abstract cancel(): Promise<any>;
|
|
29
|
-
remove(): Promise<any>;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* A dialog that uses the adapter pattern takes the adapter as argument.
|
|
33
|
-
* Other than that it's the same as normal dialog parameters
|
|
34
|
-
* The adapter type is a generic, so that the specific dialog can reference the
|
|
35
|
-
* specific adapter class
|
|
36
|
-
* @param ctor constructor for reflection
|
|
37
|
-
* @param id ID for dom placement
|
|
38
|
-
* @param tracker
|
|
39
|
-
* @param completeNotifier UI component to notify when dialog is complete
|
|
40
|
-
* @param startProise UI component that notifies us when to display
|
|
41
|
-
* @param view
|
|
42
|
-
* @param eventSource where to register for KB and mouse events
|
|
43
|
-
* @param undoBuffer where to undo things we change
|
|
44
|
-
* @param adapter an adapter which has getters and setters for all of the dialog components. The adapter should
|
|
45
|
-
* read the values from the actual score, and update the score with the component values.
|
|
46
|
-
* @category SuiDialog
|
|
47
|
-
*/
|
|
48
|
-
export interface SuiDialogAdapterParams<T extends SuiComponentAdapter> {
|
|
49
|
-
ctor: string;
|
|
50
|
-
id: string;
|
|
51
|
-
tracker: SuiTracker;
|
|
52
|
-
completeNotifier: CompleteNotifier;
|
|
53
|
-
startPromise: Promise<void> | null;
|
|
54
|
-
view: SuiScoreViewOperations;
|
|
55
|
-
eventSource: BrowserEventSource;
|
|
56
|
-
undoBuffer?: UndoBuffer;
|
|
57
|
-
adapter: T;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* SuiDialogAdapterBase is the base class for dialogs that use the adapter pattern
|
|
61
|
-
* (almost all of them).
|
|
62
|
-
* @typeParam T a class that implements the Adapter interface and fulfills the
|
|
63
|
-
* adapter data contract, with getters and setters from the components
|
|
64
|
-
* @category SuiDialog
|
|
65
|
-
*/
|
|
66
|
-
export declare class SuiDialogAdapterBase<T extends SuiComponentAdapter> extends SuiDialogBase {
|
|
67
|
-
adapter: T;
|
|
68
|
-
constructor(def: DialogDefinition, params: SuiDialogAdapterParams<T>);
|
|
69
|
-
/**
|
|
70
|
-
* Call the components bind() methods to activate them. Also, verify that each
|
|
71
|
-
* adapter meets the contract with the components
|
|
72
|
-
*/
|
|
73
|
-
bindComponents(): void;
|
|
74
|
-
/**
|
|
75
|
-
* Called before dialog is displayed.
|
|
76
|
-
* components that interface (bind) with the adapter are called 'bound' components.
|
|
77
|
-
* On initialize, update the component with the score value, as told by the adapter.
|
|
78
|
-
*/
|
|
79
|
-
initialValue(): void;
|
|
80
|
-
/**
|
|
81
|
-
* When a component changes, it notifies the parent dialog. Usually, we just
|
|
82
|
-
* proxy the call to the adapter. The specific dialog can override this method if
|
|
83
|
-
* something in the UI needs to change as a result of the component state (e.g.
|
|
84
|
-
* show or hide another component)
|
|
85
|
-
*/
|
|
86
|
-
changed(): Promise<void>;
|
|
87
|
-
/**
|
|
88
|
-
* If there is any 'saving' to be done when the dialog clicks OK,
|
|
89
|
-
* that is handled by the adapter. Else it can be a noop.
|
|
90
|
-
*/
|
|
91
|
-
commit(): Promise<any>;
|
|
92
|
-
/**
|
|
93
|
-
* If there is any undo or restore to be done when the dialog clicks OK,
|
|
94
|
-
* that is handled by the adapter. Else it can be a noop.
|
|
95
|
-
*/
|
|
96
|
-
cancel(): Promise<any>;
|
|
97
|
-
/**
|
|
98
|
-
* For score artifacts that can be removed,
|
|
99
|
-
*/
|
|
100
|
-
remove(): Promise<void>;
|
|
101
|
-
/**
|
|
102
|
-
* Binds the main dialog buttons. For OK/Cancel/remove, the logic calls the appropriate
|
|
103
|
-
* derived function, which calls the appropriate adapter method, then calls complete()
|
|
104
|
-
* to restore the event handling loop to the application
|
|
105
|
-
*/
|
|
106
|
-
bindElements(): void;
|
|
107
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Support for converting Smo object model to MIDI
|
|
3
|
+
* @module /ui/dialog/adapter
|
|
4
|
+
*/
|
|
5
|
+
import { SuiScoreViewOperations } from '../../render/sui/scoreViewOperations';
|
|
6
|
+
import { SuiTracker } from '../../render/sui/tracker';
|
|
7
|
+
import { CompleteNotifier } from '../common';
|
|
8
|
+
import { BrowserEventSource } from '../eventSource';
|
|
9
|
+
import { UndoBuffer } from '../../smo/xform/undo';
|
|
10
|
+
import { DialogDefinition, SuiDialogBase } from './dialog';
|
|
11
|
+
/**
|
|
12
|
+
* An adapter is the glue logic between UI components and the score view.
|
|
13
|
+
* An adapter consists mostly of accessors (get/set) for the component data. The
|
|
14
|
+
* components have their initial values set from the adapter get, and changes to components
|
|
15
|
+
* result in sets to the adapter. The adapter can then update the score.
|
|
16
|
+
* For dialogs that use this pattern,
|
|
17
|
+
* the dialog automatically creates the components and binds their values with the
|
|
18
|
+
* adapter.
|
|
19
|
+
* @method commit - called when OK button of dialog is clicked
|
|
20
|
+
* @method cancel - called when cancel button of dialog is clicked
|
|
21
|
+
* @method remove - optional. Called when 'remove' button is clicked, for artifacts like dynamics that can be removed.
|
|
22
|
+
* @category SuiDialog
|
|
23
|
+
*/
|
|
24
|
+
export declare abstract class SuiComponentAdapter {
|
|
25
|
+
view: SuiScoreViewOperations;
|
|
26
|
+
constructor(view: SuiScoreViewOperations);
|
|
27
|
+
abstract commit(): Promise<any>;
|
|
28
|
+
abstract cancel(): Promise<any>;
|
|
29
|
+
remove(): Promise<any>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A dialog that uses the adapter pattern takes the adapter as argument.
|
|
33
|
+
* Other than that it's the same as normal dialog parameters
|
|
34
|
+
* The adapter type is a generic, so that the specific dialog can reference the
|
|
35
|
+
* specific adapter class
|
|
36
|
+
* @param ctor constructor for reflection
|
|
37
|
+
* @param id ID for dom placement
|
|
38
|
+
* @param tracker
|
|
39
|
+
* @param completeNotifier UI component to notify when dialog is complete
|
|
40
|
+
* @param startProise UI component that notifies us when to display
|
|
41
|
+
* @param view
|
|
42
|
+
* @param eventSource where to register for KB and mouse events
|
|
43
|
+
* @param undoBuffer where to undo things we change
|
|
44
|
+
* @param adapter an adapter which has getters and setters for all of the dialog components. The adapter should
|
|
45
|
+
* read the values from the actual score, and update the score with the component values.
|
|
46
|
+
* @category SuiDialog
|
|
47
|
+
*/
|
|
48
|
+
export interface SuiDialogAdapterParams<T extends SuiComponentAdapter> {
|
|
49
|
+
ctor: string;
|
|
50
|
+
id: string;
|
|
51
|
+
tracker: SuiTracker;
|
|
52
|
+
completeNotifier: CompleteNotifier;
|
|
53
|
+
startPromise: Promise<void> | null;
|
|
54
|
+
view: SuiScoreViewOperations;
|
|
55
|
+
eventSource: BrowserEventSource;
|
|
56
|
+
undoBuffer?: UndoBuffer;
|
|
57
|
+
adapter: T;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* SuiDialogAdapterBase is the base class for dialogs that use the adapter pattern
|
|
61
|
+
* (almost all of them).
|
|
62
|
+
* @typeParam T a class that implements the Adapter interface and fulfills the
|
|
63
|
+
* adapter data contract, with getters and setters from the components
|
|
64
|
+
* @category SuiDialog
|
|
65
|
+
*/
|
|
66
|
+
export declare class SuiDialogAdapterBase<T extends SuiComponentAdapter> extends SuiDialogBase {
|
|
67
|
+
adapter: T;
|
|
68
|
+
constructor(def: DialogDefinition, params: SuiDialogAdapterParams<T>);
|
|
69
|
+
/**
|
|
70
|
+
* Call the components bind() methods to activate them. Also, verify that each
|
|
71
|
+
* adapter meets the contract with the components
|
|
72
|
+
*/
|
|
73
|
+
bindComponents(): void;
|
|
74
|
+
/**
|
|
75
|
+
* Called before dialog is displayed.
|
|
76
|
+
* components that interface (bind) with the adapter are called 'bound' components.
|
|
77
|
+
* On initialize, update the component with the score value, as told by the adapter.
|
|
78
|
+
*/
|
|
79
|
+
initialValue(): void;
|
|
80
|
+
/**
|
|
81
|
+
* When a component changes, it notifies the parent dialog. Usually, we just
|
|
82
|
+
* proxy the call to the adapter. The specific dialog can override this method if
|
|
83
|
+
* something in the UI needs to change as a result of the component state (e.g.
|
|
84
|
+
* show or hide another component)
|
|
85
|
+
*/
|
|
86
|
+
changed(): Promise<void>;
|
|
87
|
+
/**
|
|
88
|
+
* If there is any 'saving' to be done when the dialog clicks OK,
|
|
89
|
+
* that is handled by the adapter. Else it can be a noop.
|
|
90
|
+
*/
|
|
91
|
+
commit(): Promise<any>;
|
|
92
|
+
/**
|
|
93
|
+
* If there is any undo or restore to be done when the dialog clicks OK,
|
|
94
|
+
* that is handled by the adapter. Else it can be a noop.
|
|
95
|
+
*/
|
|
96
|
+
cancel(): Promise<any>;
|
|
97
|
+
/**
|
|
98
|
+
* For score artifacts that can be removed,
|
|
99
|
+
*/
|
|
100
|
+
remove(): Promise<void>;
|
|
101
|
+
/**
|
|
102
|
+
* Binds the main dialog buttons. For OK/Cancel/remove, the logic calls the appropriate
|
|
103
|
+
* derived function, which calls the appropriate adapter method, then calls complete()
|
|
104
|
+
* to restore the event handling loop to the application
|
|
105
|
+
*/
|
|
106
|
+
bindElements(): void;
|
|
107
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { SmoMeasure } from '../../smo/data/measure';
|
|
2
|
-
import { SmoSelection } from '../../smo/xform/selections';
|
|
3
|
-
import { SuiToggleComponent } from './components/toggle';
|
|
4
|
-
import { SuiRockerComponent } from './components/rocker';
|
|
5
|
-
import { DialogDefinition, SuiDialogBase, SuiDialogParams } from './dialog';
|
|
6
|
-
export declare const SuiInsertMeasuresVue: (parameters: SuiDialogParams) => Promise<void>;
|
|
7
|
-
/**
|
|
8
|
-
* Insert some number of measures
|
|
9
|
-
* @category SuiDialog
|
|
10
|
-
*/
|
|
11
|
-
export declare class SuiInsertMeasures extends SuiDialogBase {
|
|
12
|
-
static dialogElements: DialogDefinition;
|
|
13
|
-
measure: SmoMeasure;
|
|
14
|
-
selection: SmoSelection;
|
|
15
|
-
constructor(parameters: SuiDialogParams);
|
|
16
|
-
commit(): Promise<void>;
|
|
17
|
-
get measureCountCtrl(): SuiRockerComponent;
|
|
18
|
-
get appendCtrl(): SuiToggleComponent;
|
|
19
|
-
populateInitial(): void;
|
|
20
|
-
}
|
|
1
|
+
import { SmoMeasure } from '../../smo/data/measure';
|
|
2
|
+
import { SmoSelection } from '../../smo/xform/selections';
|
|
3
|
+
import { SuiToggleComponent } from './components/toggle';
|
|
4
|
+
import { SuiRockerComponent } from './components/rocker';
|
|
5
|
+
import { DialogDefinition, SuiDialogBase, SuiDialogParams } from './dialog';
|
|
6
|
+
export declare const SuiInsertMeasuresVue: (parameters: SuiDialogParams) => Promise<void>;
|
|
7
|
+
/**
|
|
8
|
+
* Insert some number of measures
|
|
9
|
+
* @category SuiDialog
|
|
10
|
+
*/
|
|
11
|
+
export declare class SuiInsertMeasures extends SuiDialogBase {
|
|
12
|
+
static dialogElements: DialogDefinition;
|
|
13
|
+
measure: SmoMeasure;
|
|
14
|
+
selection: SmoSelection;
|
|
15
|
+
constructor(parameters: SuiDialogParams);
|
|
16
|
+
commit(): Promise<void>;
|
|
17
|
+
get measureCountCtrl(): SuiRockerComponent;
|
|
18
|
+
get appendCtrl(): SuiToggleComponent;
|
|
19
|
+
populateInitial(): void;
|
|
20
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SuiDialogParams } from './dialog';
|
|
2
|
-
export declare const SuiArpeggioDialog: (parameters: SuiDialogParams) => void;
|
|
1
|
+
import { SuiDialogParams } from './dialog';
|
|
2
|
+
export declare const SuiArpeggioDialog: (parameters: SuiDialogParams) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SuiDialogParams } from './dialog';
|
|
2
|
-
export declare const SuiArticulationDialogVue: (parameters: SuiDialogParams) => void;
|
|
1
|
+
import { SuiDialogParams } from './dialog';
|
|
2
|
+
export declare const SuiArticulationDialogVue: (parameters: SuiDialogParams) => void;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { SmoAudioPlayerSettings } from '../../smo/data/scoreModifiers';
|
|
2
|
-
import { SuiScoreViewOperations } from '../../render/sui/scoreViewOperations';
|
|
3
|
-
import { SuiComponentAdapter, SuiDialogAdapterBase } from './adapter';
|
|
4
|
-
import { DialogDefinition, SuiDialogParams } from './dialog';
|
|
5
|
-
/**
|
|
6
|
-
* Smo adapter for audio dialog
|
|
7
|
-
* @category SuiDialog
|
|
8
|
-
*/
|
|
9
|
-
export declare class SuiAudioSettingsAdapter extends SuiComponentAdapter {
|
|
10
|
-
settings: SmoAudioPlayerSettings;
|
|
11
|
-
backup: SmoAudioPlayerSettings;
|
|
12
|
-
constructor(view: SuiScoreViewOperations);
|
|
13
|
-
get enableReverb(): boolean;
|
|
14
|
-
set enableReverb(value: boolean);
|
|
15
|
-
get playerType(): string;
|
|
16
|
-
set playerType(value: string);
|
|
17
|
-
get waveform(): string;
|
|
18
|
-
set waveform(value: string);
|
|
19
|
-
get reverbDelay(): number;
|
|
20
|
-
set reverbDelay(value: number);
|
|
21
|
-
get reverbDecay(): number;
|
|
22
|
-
set reverbDecay(value: number);
|
|
23
|
-
cancel(): Promise<void>;
|
|
24
|
-
commit(): Promise<any>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @category SuiDialog
|
|
28
|
-
*/
|
|
29
|
-
export declare class SuiAudioSettingsDialog extends SuiDialogAdapterBase<SuiAudioSettingsAdapter> {
|
|
30
|
-
static dialogElements: DialogDefinition;
|
|
31
|
-
constructor(params: SuiDialogParams);
|
|
32
|
-
}
|
|
1
|
+
import { SmoAudioPlayerSettings } from '../../smo/data/scoreModifiers';
|
|
2
|
+
import { SuiScoreViewOperations } from '../../render/sui/scoreViewOperations';
|
|
3
|
+
import { SuiComponentAdapter, SuiDialogAdapterBase } from './adapter';
|
|
4
|
+
import { DialogDefinition, SuiDialogParams } from './dialog';
|
|
5
|
+
/**
|
|
6
|
+
* Smo adapter for audio dialog
|
|
7
|
+
* @category SuiDialog
|
|
8
|
+
*/
|
|
9
|
+
export declare class SuiAudioSettingsAdapter extends SuiComponentAdapter {
|
|
10
|
+
settings: SmoAudioPlayerSettings;
|
|
11
|
+
backup: SmoAudioPlayerSettings;
|
|
12
|
+
constructor(view: SuiScoreViewOperations);
|
|
13
|
+
get enableReverb(): boolean;
|
|
14
|
+
set enableReverb(value: boolean);
|
|
15
|
+
get playerType(): string;
|
|
16
|
+
set playerType(value: string);
|
|
17
|
+
get waveform(): string;
|
|
18
|
+
set waveform(value: string);
|
|
19
|
+
get reverbDelay(): number;
|
|
20
|
+
set reverbDelay(value: number);
|
|
21
|
+
get reverbDecay(): number;
|
|
22
|
+
set reverbDecay(value: number);
|
|
23
|
+
cancel(): Promise<void>;
|
|
24
|
+
commit(): Promise<any>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @category SuiDialog
|
|
28
|
+
*/
|
|
29
|
+
export declare class SuiAudioSettingsDialog extends SuiDialogAdapterBase<SuiAudioSettingsAdapter> {
|
|
30
|
+
static dialogElements: DialogDefinition;
|
|
31
|
+
constructor(params: SuiDialogParams);
|
|
32
|
+
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { DialogDefinition, SuiDialogBase, SuiDialogParams } from './dialog';
|
|
2
|
-
import { SuiChordComponent } from './components/noteText';
|
|
3
|
-
import { SuiDropdownComponent } from './components/dropdown';
|
|
4
|
-
import { SuiToggleComponent } from './components/toggle';
|
|
5
|
-
import { SuiRockerComponent } from './components/rocker';
|
|
6
|
-
import { SmoLyric } from '../../smo/data/noteModifiers';
|
|
7
|
-
import { SmoSelector } from '../../smo/xform/selections';
|
|
8
|
-
import { SuiFontComponent } from './components/fontComponent';
|
|
9
|
-
import { EventHandler } from '../eventSource';
|
|
10
|
-
/**
|
|
11
|
-
* Complex dialog for running a chord change editing session.
|
|
12
|
-
* @category SuiDialog
|
|
13
|
-
*/
|
|
14
|
-
export declare class SuiChordChangeDialog extends SuiDialogBase {
|
|
15
|
-
static dialogElements: DialogDefinition;
|
|
16
|
-
lyric: SmoLyric | null;
|
|
17
|
-
selector: SmoSelector | null;
|
|
18
|
-
mouseMoveHandler: EventHandler | null;
|
|
19
|
-
mouseClickHandler: EventHandler | null;
|
|
20
|
-
constructor(parameters: SuiDialogParams);
|
|
21
|
-
get chordEditorCtrl(): SuiChordComponent;
|
|
22
|
-
get chordSymbolCtrl(): SuiDropdownComponent;
|
|
23
|
-
get translateYCtrl(): SuiRockerComponent;
|
|
24
|
-
get textPositionCtrl(): SuiRockerComponent;
|
|
25
|
-
get adjustWidthCtrl(): SuiToggleComponent;
|
|
26
|
-
get fontCtrl(): SuiFontComponent;
|
|
27
|
-
changed(): void;
|
|
28
|
-
setLyric(selector: SmoSelector, lyric: SmoLyric): void;
|
|
29
|
-
display(): void;
|
|
30
|
-
bindElements(): void;
|
|
31
|
-
evKey(evdata: any): Promise<void>;
|
|
32
|
-
_complete(): void;
|
|
33
|
-
mouseMove(ev: any): void;
|
|
34
|
-
mouseClick(ev: any): void;
|
|
35
|
-
}
|
|
1
|
+
import { DialogDefinition, SuiDialogBase, SuiDialogParams } from './dialog';
|
|
2
|
+
import { SuiChordComponent } from './components/noteText';
|
|
3
|
+
import { SuiDropdownComponent } from './components/dropdown';
|
|
4
|
+
import { SuiToggleComponent } from './components/toggle';
|
|
5
|
+
import { SuiRockerComponent } from './components/rocker';
|
|
6
|
+
import { SmoLyric } from '../../smo/data/noteModifiers';
|
|
7
|
+
import { SmoSelector } from '../../smo/xform/selections';
|
|
8
|
+
import { SuiFontComponent } from './components/fontComponent';
|
|
9
|
+
import { EventHandler } from '../eventSource';
|
|
10
|
+
/**
|
|
11
|
+
* Complex dialog for running a chord change editing session.
|
|
12
|
+
* @category SuiDialog
|
|
13
|
+
*/
|
|
14
|
+
export declare class SuiChordChangeDialog extends SuiDialogBase {
|
|
15
|
+
static dialogElements: DialogDefinition;
|
|
16
|
+
lyric: SmoLyric | null;
|
|
17
|
+
selector: SmoSelector | null;
|
|
18
|
+
mouseMoveHandler: EventHandler | null;
|
|
19
|
+
mouseClickHandler: EventHandler | null;
|
|
20
|
+
constructor(parameters: SuiDialogParams);
|
|
21
|
+
get chordEditorCtrl(): SuiChordComponent;
|
|
22
|
+
get chordSymbolCtrl(): SuiDropdownComponent;
|
|
23
|
+
get translateYCtrl(): SuiRockerComponent;
|
|
24
|
+
get textPositionCtrl(): SuiRockerComponent;
|
|
25
|
+
get adjustWidthCtrl(): SuiToggleComponent;
|
|
26
|
+
get fontCtrl(): SuiFontComponent;
|
|
27
|
+
changed(): void;
|
|
28
|
+
setLyric(selector: SmoSelector, lyric: SmoLyric): void;
|
|
29
|
+
display(): void;
|
|
30
|
+
bindElements(): void;
|
|
31
|
+
evKey(evdata: any): Promise<void>;
|
|
32
|
+
_complete(): void;
|
|
33
|
+
mouseMove(ev: any): void;
|
|
34
|
+
mouseClick(ev: any): void;
|
|
35
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SuiDialogParams } from './dialog';
|
|
2
|
-
export declare const SuiClefChangeDialog: (parameters: SuiDialogParams) => void;
|
|
1
|
+
import { SuiDialogParams } from './dialog';
|
|
2
|
+
export declare const SuiClefChangeDialog: (parameters: SuiDialogParams) => void;
|