smoosic 1.0.25 → 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/src/application/exports.ts +1 -0
- 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,95 +1,95 @@
|
|
|
1
|
-
import { SuiScoreViewOperations } from '../../render/sui/scoreViewOperations';
|
|
2
|
-
import { BrowserEventSource } from '../eventSource';
|
|
3
|
-
import { SuiMenuManager } from '../menus/manager';
|
|
4
|
-
import { CompleteNotifier } from '../common';
|
|
5
|
-
/**
|
|
6
|
-
* Button actions are one of the following.
|
|
7
|
-
* - collapse... buttons are used to expand/collapse button groups in a ribbon.
|
|
8
|
-
* all buttons with these classes have 'ctor' constructor, and perform actions based on
|
|
9
|
-
* their bind method
|
|
10
|
-
* - menu brings up a modal menu with class 'ctor'
|
|
11
|
-
* - modal brings up a modal dialog with class 'ctor'
|
|
12
|
-
* - collapseChildMenu brings up a modal menu, and is also collapsable.
|
|
13
|
-
*
|
|
14
|
-
* Buttons here refer to buttons on the top ribbon, buttons in dialogs are a dialog component
|
|
15
|
-
*/
|
|
16
|
-
export type ButtonAction = 'menu' | 'modal' | 'collapseChild' | 'collapseChildMenu' | 'collapseParent' | 'collapseGrandchild' | 'collapseMore';
|
|
17
|
-
/**
|
|
18
|
-
* structure of a button object.
|
|
19
|
-
* @param leftText - can be used in place of an icon for display
|
|
20
|
-
* @param rightText - usually used to represent a keyboard shortcut
|
|
21
|
-
* @param classes - to control button display
|
|
22
|
-
* @param icon - icon for the button face
|
|
23
|
-
* @param action - indicates to the button the action to perform
|
|
24
|
-
* @param ctor - the constructor of the button object
|
|
25
|
-
* @param group - the logical group, used to group the ribbon buttons
|
|
26
|
-
* @param id - unique ID for DOM selector
|
|
27
|
-
* @param dataElements - can be used to give buttons in a group basic parameters
|
|
28
|
-
* @category SuiButton
|
|
29
|
-
*/
|
|
30
|
-
export interface ButtonDefinition {
|
|
31
|
-
leftText: string;
|
|
32
|
-
rightText: string;
|
|
33
|
-
classes: string;
|
|
34
|
-
icon: string;
|
|
35
|
-
action: ButtonAction;
|
|
36
|
-
ctor: string;
|
|
37
|
-
group: string;
|
|
38
|
-
id: string;
|
|
39
|
-
callback?: ButtonCallback;
|
|
40
|
-
hotKey?: string;
|
|
41
|
-
dataElements?: {
|
|
42
|
-
interval: string;
|
|
43
|
-
direction: string;
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
export type ButtonCallback = (button: ButtonDefinition) => Promise<void>;
|
|
47
|
-
export type DialogButtonState = 'selected' | 'unselected' | 'partiallySelected';
|
|
48
|
-
export interface DialogButtonDefinition {
|
|
49
|
-
label: string;
|
|
50
|
-
classes: string;
|
|
51
|
-
icon: string;
|
|
52
|
-
callback: DialogButtonCallback;
|
|
53
|
-
id: string;
|
|
54
|
-
group: string;
|
|
55
|
-
hotkey?: string;
|
|
56
|
-
state: DialogButtonState;
|
|
57
|
-
}
|
|
58
|
-
export type DialogButtonCallback = (button: DialogButtonDefinition) => Promise<void>;
|
|
59
|
-
/**
|
|
60
|
-
* @category SuiButton
|
|
61
|
-
*/
|
|
62
|
-
export interface ButtonLabel {
|
|
63
|
-
buttonId: string;
|
|
64
|
-
buttonText: string;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Buttons perform any variety of functions, so they need access to all the rendering logic
|
|
68
|
-
* as well as all the event sources.
|
|
69
|
-
* Sometimes they invoke menus which invoke modals, etc.
|
|
70
|
-
* @category SuiButton
|
|
71
|
-
*/
|
|
72
|
-
export interface SuiButtonParams {
|
|
73
|
-
ctor: string;
|
|
74
|
-
buttonId: string;
|
|
75
|
-
buttonElement: string;
|
|
76
|
-
buttonData: ButtonDefinition;
|
|
77
|
-
view: SuiScoreViewOperations;
|
|
78
|
-
eventSource: BrowserEventSource;
|
|
79
|
-
menus: SuiMenuManager;
|
|
80
|
-
completeNotifier: CompleteNotifier;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* @category SuiButton
|
|
84
|
-
*/
|
|
85
|
-
export declare abstract class SuiButton {
|
|
86
|
-
buttonId: string;
|
|
87
|
-
buttonElement: string;
|
|
88
|
-
view: SuiScoreViewOperations;
|
|
89
|
-
buttonData: ButtonDefinition;
|
|
90
|
-
eventSource: BrowserEventSource;
|
|
91
|
-
menus: SuiMenuManager;
|
|
92
|
-
completeNotifier: CompleteNotifier | null;
|
|
93
|
-
constructor(params: SuiButtonParams);
|
|
94
|
-
abstract bind(): void;
|
|
95
|
-
}
|
|
1
|
+
import { SuiScoreViewOperations } from '../../render/sui/scoreViewOperations';
|
|
2
|
+
import { BrowserEventSource } from '../eventSource';
|
|
3
|
+
import { SuiMenuManager } from '../menus/manager';
|
|
4
|
+
import { CompleteNotifier } from '../common';
|
|
5
|
+
/**
|
|
6
|
+
* Button actions are one of the following.
|
|
7
|
+
* - collapse... buttons are used to expand/collapse button groups in a ribbon.
|
|
8
|
+
* all buttons with these classes have 'ctor' constructor, and perform actions based on
|
|
9
|
+
* their bind method
|
|
10
|
+
* - menu brings up a modal menu with class 'ctor'
|
|
11
|
+
* - modal brings up a modal dialog with class 'ctor'
|
|
12
|
+
* - collapseChildMenu brings up a modal menu, and is also collapsable.
|
|
13
|
+
*
|
|
14
|
+
* Buttons here refer to buttons on the top ribbon, buttons in dialogs are a dialog component
|
|
15
|
+
*/
|
|
16
|
+
export type ButtonAction = 'menu' | 'modal' | 'collapseChild' | 'collapseChildMenu' | 'collapseParent' | 'collapseGrandchild' | 'collapseMore';
|
|
17
|
+
/**
|
|
18
|
+
* structure of a button object.
|
|
19
|
+
* @param leftText - can be used in place of an icon for display
|
|
20
|
+
* @param rightText - usually used to represent a keyboard shortcut
|
|
21
|
+
* @param classes - to control button display
|
|
22
|
+
* @param icon - icon for the button face
|
|
23
|
+
* @param action - indicates to the button the action to perform
|
|
24
|
+
* @param ctor - the constructor of the button object
|
|
25
|
+
* @param group - the logical group, used to group the ribbon buttons
|
|
26
|
+
* @param id - unique ID for DOM selector
|
|
27
|
+
* @param dataElements - can be used to give buttons in a group basic parameters
|
|
28
|
+
* @category SuiButton
|
|
29
|
+
*/
|
|
30
|
+
export interface ButtonDefinition {
|
|
31
|
+
leftText: string;
|
|
32
|
+
rightText: string;
|
|
33
|
+
classes: string;
|
|
34
|
+
icon: string;
|
|
35
|
+
action: ButtonAction;
|
|
36
|
+
ctor: string;
|
|
37
|
+
group: string;
|
|
38
|
+
id: string;
|
|
39
|
+
callback?: ButtonCallback;
|
|
40
|
+
hotKey?: string;
|
|
41
|
+
dataElements?: {
|
|
42
|
+
interval: string;
|
|
43
|
+
direction: string;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export type ButtonCallback = (button: ButtonDefinition) => Promise<void>;
|
|
47
|
+
export type DialogButtonState = 'selected' | 'unselected' | 'partiallySelected';
|
|
48
|
+
export interface DialogButtonDefinition {
|
|
49
|
+
label: string;
|
|
50
|
+
classes: string;
|
|
51
|
+
icon: string;
|
|
52
|
+
callback: DialogButtonCallback;
|
|
53
|
+
id: string;
|
|
54
|
+
group: string;
|
|
55
|
+
hotkey?: string;
|
|
56
|
+
state: DialogButtonState;
|
|
57
|
+
}
|
|
58
|
+
export type DialogButtonCallback = (button: DialogButtonDefinition) => Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* @category SuiButton
|
|
61
|
+
*/
|
|
62
|
+
export interface ButtonLabel {
|
|
63
|
+
buttonId: string;
|
|
64
|
+
buttonText: string;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Buttons perform any variety of functions, so they need access to all the rendering logic
|
|
68
|
+
* as well as all the event sources.
|
|
69
|
+
* Sometimes they invoke menus which invoke modals, etc.
|
|
70
|
+
* @category SuiButton
|
|
71
|
+
*/
|
|
72
|
+
export interface SuiButtonParams {
|
|
73
|
+
ctor: string;
|
|
74
|
+
buttonId: string;
|
|
75
|
+
buttonElement: string;
|
|
76
|
+
buttonData: ButtonDefinition;
|
|
77
|
+
view: SuiScoreViewOperations;
|
|
78
|
+
eventSource: BrowserEventSource;
|
|
79
|
+
menus: SuiMenuManager;
|
|
80
|
+
completeNotifier: CompleteNotifier;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* @category SuiButton
|
|
84
|
+
*/
|
|
85
|
+
export declare abstract class SuiButton {
|
|
86
|
+
buttonId: string;
|
|
87
|
+
buttonElement: string;
|
|
88
|
+
view: SuiScoreViewOperations;
|
|
89
|
+
buttonData: ButtonDefinition;
|
|
90
|
+
eventSource: BrowserEventSource;
|
|
91
|
+
menus: SuiMenuManager;
|
|
92
|
+
completeNotifier: CompleteNotifier | null;
|
|
93
|
+
constructor(params: SuiButtonParams);
|
|
94
|
+
abstract bind(): void;
|
|
95
|
+
}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { ButtonDefinition, SuiButton, SuiButtonParams } from './button';
|
|
2
|
-
import { SuiScoreViewOperations } from '../../render/sui/scoreViewOperations';
|
|
3
|
-
import { BrowserEventSource } from '../eventSource';
|
|
4
|
-
import { SuiMenuManager } from '../menus/manager';
|
|
5
|
-
import { CompleteNotifier } from '../common';
|
|
6
|
-
/**
|
|
7
|
-
* @category SuiButton
|
|
8
|
-
*/
|
|
9
|
-
export interface SuiCollapsableButtonParams {
|
|
10
|
-
ctor: string;
|
|
11
|
-
buttonId: string;
|
|
12
|
-
buttonElement: string;
|
|
13
|
-
buttonData: ButtonDefinition;
|
|
14
|
-
view: SuiScoreViewOperations;
|
|
15
|
-
eventSource: BrowserEventSource;
|
|
16
|
-
menus: SuiMenuManager;
|
|
17
|
-
completeNotifier: CompleteNotifier;
|
|
18
|
-
buttons: ButtonDefinition[];
|
|
19
|
-
}
|
|
20
|
-
export declare function buttonIsCollapsible(action: string): boolean;
|
|
21
|
-
export declare function buttonIsBindable(action: string): boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Buttons that can expand and show other buttons. These are not used atm but may
|
|
24
|
-
* reappear as the UI grows.
|
|
25
|
-
* @category SuiButton
|
|
26
|
-
*/
|
|
27
|
-
export declare class CollapseRibbonControl extends SuiButton {
|
|
28
|
-
static get paramArray(): string[];
|
|
29
|
-
childButtons: ButtonDefinition[];
|
|
30
|
-
constructor(parameters: SuiCollapsableButtonParams);
|
|
31
|
-
toggleExpand(): Promise<void>;
|
|
32
|
-
bind(): void;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Muse-style '...' buttons for less-common operations
|
|
36
|
-
* @category SuiButton
|
|
37
|
-
*/
|
|
38
|
-
export declare class ExtendedCollapseParent extends SuiButton {
|
|
39
|
-
constructor(parameters: SuiButtonParams);
|
|
40
|
-
bind(): void;
|
|
41
|
-
}
|
|
42
|
-
export declare const collapsableButtonInit: () => void;
|
|
1
|
+
import { ButtonDefinition, SuiButton, SuiButtonParams } from './button';
|
|
2
|
+
import { SuiScoreViewOperations } from '../../render/sui/scoreViewOperations';
|
|
3
|
+
import { BrowserEventSource } from '../eventSource';
|
|
4
|
+
import { SuiMenuManager } from '../menus/manager';
|
|
5
|
+
import { CompleteNotifier } from '../common';
|
|
6
|
+
/**
|
|
7
|
+
* @category SuiButton
|
|
8
|
+
*/
|
|
9
|
+
export interface SuiCollapsableButtonParams {
|
|
10
|
+
ctor: string;
|
|
11
|
+
buttonId: string;
|
|
12
|
+
buttonElement: string;
|
|
13
|
+
buttonData: ButtonDefinition;
|
|
14
|
+
view: SuiScoreViewOperations;
|
|
15
|
+
eventSource: BrowserEventSource;
|
|
16
|
+
menus: SuiMenuManager;
|
|
17
|
+
completeNotifier: CompleteNotifier;
|
|
18
|
+
buttons: ButtonDefinition[];
|
|
19
|
+
}
|
|
20
|
+
export declare function buttonIsCollapsible(action: string): boolean;
|
|
21
|
+
export declare function buttonIsBindable(action: string): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Buttons that can expand and show other buttons. These are not used atm but may
|
|
24
|
+
* reappear as the UI grows.
|
|
25
|
+
* @category SuiButton
|
|
26
|
+
*/
|
|
27
|
+
export declare class CollapseRibbonControl extends SuiButton {
|
|
28
|
+
static get paramArray(): string[];
|
|
29
|
+
childButtons: ButtonDefinition[];
|
|
30
|
+
constructor(parameters: SuiCollapsableButtonParams);
|
|
31
|
+
toggleExpand(): Promise<void>;
|
|
32
|
+
bind(): void;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Muse-style '...' buttons for less-common operations
|
|
36
|
+
* @category SuiButton
|
|
37
|
+
*/
|
|
38
|
+
export declare class ExtendedCollapseParent extends SuiButton {
|
|
39
|
+
constructor(parameters: SuiButtonParams);
|
|
40
|
+
bind(): void;
|
|
41
|
+
}
|
|
42
|
+
export declare const collapsableButtonInit: () => void;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { SuiButton, SuiButtonParams } from './button';
|
|
2
|
-
import { KeyEvent } from '../../smo/data/common';
|
|
3
|
-
/**
|
|
4
|
-
* These are the quick-buttons that show up on the left of the button ribbon.
|
|
5
|
-
* @category SuiButton
|
|
6
|
-
*/
|
|
7
|
-
export declare class DisplaySettings extends SuiButton {
|
|
8
|
-
hotKey: string | undefined;
|
|
9
|
-
constructor(parameters: SuiButtonParams);
|
|
10
|
-
handleKeyDown(ev: KeyEvent): void;
|
|
11
|
-
enablePartSelection(): void;
|
|
12
|
-
handleScoreChange(ev: any): void;
|
|
13
|
-
refresh(): void;
|
|
14
|
-
zoomout(): void;
|
|
15
|
-
zoomin(): void;
|
|
16
|
-
playButton2(): void;
|
|
17
|
-
stopButton2(): void;
|
|
18
|
-
keySignature(): void;
|
|
19
|
-
ribbonTime(): void;
|
|
20
|
-
ribbonTempo(): void;
|
|
21
|
-
selectPart(): Promise<void>;
|
|
22
|
-
bind(): void;
|
|
23
|
-
}
|
|
1
|
+
import { SuiButton, SuiButtonParams } from './button';
|
|
2
|
+
import { KeyEvent } from '../../smo/data/common';
|
|
3
|
+
/**
|
|
4
|
+
* These are the quick-buttons that show up on the left of the button ribbon.
|
|
5
|
+
* @category SuiButton
|
|
6
|
+
*/
|
|
7
|
+
export declare class DisplaySettings extends SuiButton {
|
|
8
|
+
hotKey: string | undefined;
|
|
9
|
+
constructor(parameters: SuiButtonParams);
|
|
10
|
+
handleKeyDown(ev: KeyEvent): void;
|
|
11
|
+
enablePartSelection(): void;
|
|
12
|
+
handleScoreChange(ev: any): void;
|
|
13
|
+
refresh(): void;
|
|
14
|
+
zoomout(): void;
|
|
15
|
+
zoomin(): void;
|
|
16
|
+
playButton2(): void;
|
|
17
|
+
stopButton2(): void;
|
|
18
|
+
keySignature(): void;
|
|
19
|
+
ribbonTime(): void;
|
|
20
|
+
ribbonTempo(): void;
|
|
21
|
+
selectPart(): Promise<void>;
|
|
22
|
+
bind(): void;
|
|
23
|
+
}
|
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
import { KeyEvent } from '../../smo/data/common';
|
|
2
|
-
import { ButtonDefinition, ButtonAction } from './button';
|
|
3
|
-
import { BrowserEventSource } from '../eventSource';
|
|
4
|
-
import { SuiScoreViewOperations } from '../../render/sui/scoreViewOperations';
|
|
5
|
-
import { CompleteNotifier, RibbonLayout } from '../common';
|
|
6
|
-
import { SuiTracker } from '../../render/sui/tracker';
|
|
7
|
-
import { SuiMenuManager } from '../menus/manager';
|
|
8
|
-
import { ButtonLabel } from './button';
|
|
9
|
-
import { CollapseRibbonControl } from './collapsable';
|
|
10
|
-
import { SmoUiConfiguration } from '../configuration';
|
|
11
|
-
export type SuiModalButtonTypes = 'SuiLibraryDialog' | 'SuiTempoDialog';
|
|
12
|
-
export declare var SuiModalButtonStrings: string[];
|
|
13
|
-
export declare function isModalButtonType(but: string | SuiModalButtonTypes): but is SuiModalButtonTypes;
|
|
14
|
-
/**
|
|
15
|
-
* Parameters for creating the global button ribbon object. The button ribbon supports a
|
|
16
|
-
* button panel in 'top' and 'left' areas, with support for R-to-L languages.
|
|
17
|
-
* Button groups in left and display menus are not collapsible. They are just a ButtonDefinition
|
|
18
|
-
* capsule but are not actually buttons - event handling is done by this 'ribbon' object.
|
|
19
|
-
* Button groups (mostly obsolete) are collapsible and are first-class button objects and
|
|
20
|
-
* are collapsible. The content of ribbonButtons determines which buttons show up.
|
|
21
|
-
* ribbon layout determines which show up top vs. left
|
|
22
|
-
* @param {BrowserEventSource} eventSource - buttons will use this to bind click events
|
|
23
|
-
* @param {CompleteNotifier} completeNotifier - buttons that bring up menus and dialogs will pass this to the dialogs
|
|
24
|
-
* @param {SuiTracker} tracker - some buttons act on the current selection
|
|
25
|
-
* @param {SuiMenuManager} menus - some buttons invoke a menu
|
|
26
|
-
* @param {ButtonDefinition[]} - the buttons
|
|
27
|
-
* @param {RibbonLayout} ribbons - where the buttons appear
|
|
28
|
-
* @category SuiButton
|
|
29
|
-
* @see {ButtonDefinition} for how to create/modify buttons
|
|
30
|
-
* @see {defaultRibbonLayout} for buttons supported from the demo application
|
|
31
|
-
*/
|
|
32
|
-
export interface SuiRibbonParams {
|
|
33
|
-
config: SmoUiConfiguration;
|
|
34
|
-
eventSource: BrowserEventSource;
|
|
35
|
-
view: SuiScoreViewOperations;
|
|
36
|
-
completeNotifier: CompleteNotifier;
|
|
37
|
-
tracker: SuiTracker;
|
|
38
|
-
menus: SuiMenuManager;
|
|
39
|
-
ribbonButtons: ButtonDefinition[];
|
|
40
|
-
ribbons: RibbonLayout;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Render the ribbon buttons based on group, function, and underlying UI handler.
|
|
44
|
-
* Also handles UI events.
|
|
45
|
-
* @category SuiButton
|
|
46
|
-
*/
|
|
47
|
-
export declare class RibbonButtons {
|
|
48
|
-
static get paramArray(): string[];
|
|
49
|
-
static ribbonButtonHtml(containerClass: string, buttonId: string, buttonClass: string, buttonText: string, buttonIcon: string, buttonKey: string): any;
|
|
50
|
-
static menuButtonHtml(buttonId: string, buttonClass: string, buttonText: string, buttonIcon: string, buttonKey: string): any;
|
|
51
|
-
static translateButtons: ButtonLabel[];
|
|
52
|
-
controller: CompleteNotifier;
|
|
53
|
-
config: SmoUiConfiguration;
|
|
54
|
-
eventSource: BrowserEventSource;
|
|
55
|
-
view: SuiScoreViewOperations;
|
|
56
|
-
menus: SuiMenuManager;
|
|
57
|
-
ribbons: RibbonLayout;
|
|
58
|
-
ribbonButtons: ButtonDefinition[];
|
|
59
|
-
collapsables: CollapseRibbonControl[];
|
|
60
|
-
collapseChildren: any[];
|
|
61
|
-
constructor(params: SuiRibbonParams);
|
|
62
|
-
executeQuickButton(button: ButtonDefinition): Promise<void>;
|
|
63
|
-
executeButtonModal(buttonElement: string, buttonData: ButtonDefinition): Promise<void>;
|
|
64
|
-
executeButtonMenu(buttonElement: string, buttonData: ButtonDefinition): void;
|
|
65
|
-
executeButton(buttonElement: string, buttonData: ButtonDefinition): Promise<void>;
|
|
66
|
-
bindButton(buttonElement: string, buttonData: ButtonDefinition): void;
|
|
67
|
-
createCollapsibleButtonGroups(selector: string | HTMLElement): void;
|
|
68
|
-
_createSidebarButtonGroups(selector: string | HTMLElement): void;
|
|
69
|
-
static isCollapsible(action: ButtonAction): boolean;
|
|
70
|
-
createRibbonHtml(buttonAr: string[], selector: string | HTMLElement): void;
|
|
71
|
-
createSidebarMenuHtml(buttonAr: string[], selector: string | HTMLElement): void;
|
|
72
|
-
createRibbon(buttonDataArray: string[], parentElement: string | HTMLElement): void;
|
|
73
|
-
createSidebarRibbon(buttonDataArray: string[], parentElement: string | HTMLElement, containerClasses: string): void;
|
|
74
|
-
handleKeyDown(ev: KeyEvent): Promise<void>;
|
|
75
|
-
display(): void;
|
|
76
|
-
}
|
|
1
|
+
import { KeyEvent } from '../../smo/data/common';
|
|
2
|
+
import { ButtonDefinition, ButtonAction } from './button';
|
|
3
|
+
import { BrowserEventSource } from '../eventSource';
|
|
4
|
+
import { SuiScoreViewOperations } from '../../render/sui/scoreViewOperations';
|
|
5
|
+
import { CompleteNotifier, RibbonLayout } from '../common';
|
|
6
|
+
import { SuiTracker } from '../../render/sui/tracker';
|
|
7
|
+
import { SuiMenuManager } from '../menus/manager';
|
|
8
|
+
import { ButtonLabel } from './button';
|
|
9
|
+
import { CollapseRibbonControl } from './collapsable';
|
|
10
|
+
import { SmoUiConfiguration } from '../configuration';
|
|
11
|
+
export type SuiModalButtonTypes = 'SuiLibraryDialog' | 'SuiTempoDialog';
|
|
12
|
+
export declare var SuiModalButtonStrings: string[];
|
|
13
|
+
export declare function isModalButtonType(but: string | SuiModalButtonTypes): but is SuiModalButtonTypes;
|
|
14
|
+
/**
|
|
15
|
+
* Parameters for creating the global button ribbon object. The button ribbon supports a
|
|
16
|
+
* button panel in 'top' and 'left' areas, with support for R-to-L languages.
|
|
17
|
+
* Button groups in left and display menus are not collapsible. They are just a ButtonDefinition
|
|
18
|
+
* capsule but are not actually buttons - event handling is done by this 'ribbon' object.
|
|
19
|
+
* Button groups (mostly obsolete) are collapsible and are first-class button objects and
|
|
20
|
+
* are collapsible. The content of ribbonButtons determines which buttons show up.
|
|
21
|
+
* ribbon layout determines which show up top vs. left
|
|
22
|
+
* @param {BrowserEventSource} eventSource - buttons will use this to bind click events
|
|
23
|
+
* @param {CompleteNotifier} completeNotifier - buttons that bring up menus and dialogs will pass this to the dialogs
|
|
24
|
+
* @param {SuiTracker} tracker - some buttons act on the current selection
|
|
25
|
+
* @param {SuiMenuManager} menus - some buttons invoke a menu
|
|
26
|
+
* @param {ButtonDefinition[]} - the buttons
|
|
27
|
+
* @param {RibbonLayout} ribbons - where the buttons appear
|
|
28
|
+
* @category SuiButton
|
|
29
|
+
* @see {ButtonDefinition} for how to create/modify buttons
|
|
30
|
+
* @see {defaultRibbonLayout} for buttons supported from the demo application
|
|
31
|
+
*/
|
|
32
|
+
export interface SuiRibbonParams {
|
|
33
|
+
config: SmoUiConfiguration;
|
|
34
|
+
eventSource: BrowserEventSource;
|
|
35
|
+
view: SuiScoreViewOperations;
|
|
36
|
+
completeNotifier: CompleteNotifier;
|
|
37
|
+
tracker: SuiTracker;
|
|
38
|
+
menus: SuiMenuManager;
|
|
39
|
+
ribbonButtons: ButtonDefinition[];
|
|
40
|
+
ribbons: RibbonLayout;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Render the ribbon buttons based on group, function, and underlying UI handler.
|
|
44
|
+
* Also handles UI events.
|
|
45
|
+
* @category SuiButton
|
|
46
|
+
*/
|
|
47
|
+
export declare class RibbonButtons {
|
|
48
|
+
static get paramArray(): string[];
|
|
49
|
+
static ribbonButtonHtml(containerClass: string, buttonId: string, buttonClass: string, buttonText: string, buttonIcon: string, buttonKey: string): any;
|
|
50
|
+
static menuButtonHtml(buttonId: string, buttonClass: string, buttonText: string, buttonIcon: string, buttonKey: string): any;
|
|
51
|
+
static translateButtons: ButtonLabel[];
|
|
52
|
+
controller: CompleteNotifier;
|
|
53
|
+
config: SmoUiConfiguration;
|
|
54
|
+
eventSource: BrowserEventSource;
|
|
55
|
+
view: SuiScoreViewOperations;
|
|
56
|
+
menus: SuiMenuManager;
|
|
57
|
+
ribbons: RibbonLayout;
|
|
58
|
+
ribbonButtons: ButtonDefinition[];
|
|
59
|
+
collapsables: CollapseRibbonControl[];
|
|
60
|
+
collapseChildren: any[];
|
|
61
|
+
constructor(params: SuiRibbonParams);
|
|
62
|
+
executeQuickButton(button: ButtonDefinition): Promise<void>;
|
|
63
|
+
executeButtonModal(buttonElement: string, buttonData: ButtonDefinition): Promise<void>;
|
|
64
|
+
executeButtonMenu(buttonElement: string, buttonData: ButtonDefinition): void;
|
|
65
|
+
executeButton(buttonElement: string, buttonData: ButtonDefinition): Promise<void>;
|
|
66
|
+
bindButton(buttonElement: string, buttonData: ButtonDefinition): void;
|
|
67
|
+
createCollapsibleButtonGroups(selector: string | HTMLElement): void;
|
|
68
|
+
_createSidebarButtonGroups(selector: string | HTMLElement): void;
|
|
69
|
+
static isCollapsible(action: ButtonAction): boolean;
|
|
70
|
+
createRibbonHtml(buttonAr: string[], selector: string | HTMLElement): void;
|
|
71
|
+
createSidebarMenuHtml(buttonAr: string[], selector: string | HTMLElement): void;
|
|
72
|
+
createRibbon(buttonDataArray: string[], parentElement: string | HTMLElement): void;
|
|
73
|
+
createSidebarRibbon(buttonDataArray: string[], parentElement: string | HTMLElement, containerClasses: string): void;
|
|
74
|
+
handleKeyDown(ev: KeyEvent): Promise<void>;
|
|
75
|
+
display(): void;
|
|
76
|
+
}
|
package/types/src/ui/common.d.ts
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { ButtonDefinition } from '../ui/buttons/button';
|
|
2
|
-
import { KeyEvent } from '../smo/data/common';
|
|
3
|
-
/**
|
|
4
|
-
* Define the base class for a modal component that resolves a promise when it is dismissed
|
|
5
|
-
* @category SuiButton
|
|
6
|
-
*/
|
|
7
|
-
export declare abstract class ModalComponent {
|
|
8
|
-
abstract closeModalPromise: Promise<void>;
|
|
9
|
-
}
|
|
10
|
-
export type keyEventCallback = (ke: KeyEvent) => void;
|
|
11
|
-
/**
|
|
12
|
-
* Define an interface that gives up event handling when a modal is active
|
|
13
|
-
* @category SuiButton
|
|
14
|
-
*/
|
|
15
|
-
export declare abstract class CompleteNotifier {
|
|
16
|
-
abstract unbindKeyboardForModal(component: ModalComponent): void;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @category SuiButton
|
|
20
|
-
*/
|
|
21
|
-
export interface RibbonLayout {
|
|
22
|
-
left: string[];
|
|
23
|
-
top: string[];
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* @category SuiButton
|
|
27
|
-
*/
|
|
28
|
-
export interface RibbonDefinition {
|
|
29
|
-
ribbon: RibbonLayout;
|
|
30
|
-
ribbonButtons: ButtonDefinition[];
|
|
31
|
-
}
|
|
32
|
-
export interface SelectOption {
|
|
33
|
-
label: string;
|
|
34
|
-
value: string;
|
|
35
|
-
classes?: string;
|
|
36
|
-
icon?: string;
|
|
37
|
-
active?: boolean;
|
|
38
|
-
}
|
|
39
|
-
export declare const modalContainerId = "#vue-modal-container";
|
|
40
|
-
/**
|
|
41
|
-
* Remove and replace an element, so we can reattach Vue to it
|
|
42
|
-
* @param element the ID or element we are replacing
|
|
43
|
-
* @returns the new element id
|
|
44
|
-
*/
|
|
45
|
-
export declare const replaceVueRoot: (element: string | HTMLElement) => string;
|
|
1
|
+
import { ButtonDefinition } from '../ui/buttons/button';
|
|
2
|
+
import { KeyEvent } from '../smo/data/common';
|
|
3
|
+
/**
|
|
4
|
+
* Define the base class for a modal component that resolves a promise when it is dismissed
|
|
5
|
+
* @category SuiButton
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class ModalComponent {
|
|
8
|
+
abstract closeModalPromise: Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
export type keyEventCallback = (ke: KeyEvent) => void;
|
|
11
|
+
/**
|
|
12
|
+
* Define an interface that gives up event handling when a modal is active
|
|
13
|
+
* @category SuiButton
|
|
14
|
+
*/
|
|
15
|
+
export declare abstract class CompleteNotifier {
|
|
16
|
+
abstract unbindKeyboardForModal(component: ModalComponent): void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @category SuiButton
|
|
20
|
+
*/
|
|
21
|
+
export interface RibbonLayout {
|
|
22
|
+
left: string[];
|
|
23
|
+
top: string[];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @category SuiButton
|
|
27
|
+
*/
|
|
28
|
+
export interface RibbonDefinition {
|
|
29
|
+
ribbon: RibbonLayout;
|
|
30
|
+
ribbonButtons: ButtonDefinition[];
|
|
31
|
+
}
|
|
32
|
+
export interface SelectOption {
|
|
33
|
+
label: string;
|
|
34
|
+
value: string;
|
|
35
|
+
classes?: string;
|
|
36
|
+
icon?: string;
|
|
37
|
+
active?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export declare const modalContainerId = "#vue-modal-container";
|
|
40
|
+
/**
|
|
41
|
+
* Remove and replace an element, so we can reattach Vue to it
|
|
42
|
+
* @param element the ID or element we are replacing
|
|
43
|
+
* @returns the new element id
|
|
44
|
+
*/
|
|
45
|
+
export declare const replaceVueRoot: (element: string | HTMLElement) => string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Ref } from "vue";
|
|
2
|
-
export interface DraggableSession {
|
|
3
|
-
domId: string;
|
|
4
|
-
top: Ref<number>;
|
|
5
|
-
left: Ref<number>;
|
|
6
|
-
getCoordsCb: () => {
|
|
7
|
-
topRef: Ref<number>;
|
|
8
|
-
leftRef: Ref<number>;
|
|
9
|
-
};
|
|
10
|
-
getLocString: () => string;
|
|
11
|
-
}
|
|
12
|
-
export declare const draggableSession: (domId: string) => DraggableSession;
|
|
1
|
+
import { Ref } from "vue";
|
|
2
|
+
export interface DraggableSession {
|
|
3
|
+
domId: string;
|
|
4
|
+
top: Ref<number>;
|
|
5
|
+
left: Ref<number>;
|
|
6
|
+
getCoordsCb: () => {
|
|
7
|
+
topRef: Ref<number>;
|
|
8
|
+
leftRef: Ref<number>;
|
|
9
|
+
};
|
|
10
|
+
getLocString: () => string;
|
|
11
|
+
}
|
|
12
|
+
export declare const draggableSession: (domId: string) => DraggableSession;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { ButtonDefinition } from './buttons/button';
|
|
2
|
-
import { RibbonLayout } from './common';
|
|
3
|
-
import { KeyBinding } from '../application/common';
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export interface KeyBindingConfiguration {
|
|
8
|
-
editorKeys: KeyBinding[];
|
|
9
|
-
trackerKeys: KeyBinding[];
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
export interface RibbonConfiguration {
|
|
15
|
-
layout: RibbonLayout;
|
|
16
|
-
buttons: ButtonDefinition[];
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Configurable elements for the UI
|
|
20
|
-
* @category SuiUiBase
|
|
21
|
-
*/
|
|
22
|
-
export interface SmoUiConfiguration {
|
|
23
|
-
keys?: KeyBindingConfiguration;
|
|
24
|
-
libraryUrl?: string;
|
|
25
|
-
language: string;
|
|
26
|
-
demonPollTime: number;
|
|
27
|
-
idleRedrawTime: number;
|
|
28
|
-
leftControls?: HTMLElement | string;
|
|
29
|
-
topControls?: HTMLElement | string;
|
|
30
|
-
scoreDomContainer: string | HTMLElement;
|
|
31
|
-
}
|
|
1
|
+
import { ButtonDefinition } from './buttons/button';
|
|
2
|
+
import { RibbonLayout } from './common';
|
|
3
|
+
import { KeyBinding } from '../application/common';
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface KeyBindingConfiguration {
|
|
8
|
+
editorKeys: KeyBinding[];
|
|
9
|
+
trackerKeys: KeyBinding[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export interface RibbonConfiguration {
|
|
15
|
+
layout: RibbonLayout;
|
|
16
|
+
buttons: ButtonDefinition[];
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Configurable elements for the UI
|
|
20
|
+
* @category SuiUiBase
|
|
21
|
+
*/
|
|
22
|
+
export interface SmoUiConfiguration {
|
|
23
|
+
keys?: KeyBindingConfiguration;
|
|
24
|
+
libraryUrl?: string;
|
|
25
|
+
language: string;
|
|
26
|
+
demonPollTime: number;
|
|
27
|
+
idleRedrawTime: number;
|
|
28
|
+
leftControls?: HTMLElement | string;
|
|
29
|
+
topControls?: HTMLElement | string;
|
|
30
|
+
scoreDomContainer: string | HTMLElement;
|
|
31
|
+
}
|