smoosic 1.0.34 → 1.0.35
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/html/smoosic.html +1 -0
- package/build/smoosic.js +36 -14
- package/package.json +1 -1
- package/release/html/smoosic.html +4 -3
- package/release/smoosic.js +36 -14
- package/release/styles/general.css +15 -0
- package/src/application/common.ts +20 -0
- package/src/application/eventHandler.ts +44 -8
- package/src/render/sui/NoteEntryCaret.ts +739 -0
- package/src/render/sui/NoteEntryMediator.ts +58 -0
- package/src/render/sui/mapper.ts +22 -4
- package/src/render/sui/scoreRender.ts +7 -7
- package/src/render/sui/scoreViewOperations.ts +46 -0
- package/src/render/sui/tracker.ts +93 -47
- package/src/render/vex/vxMeasure.ts +2 -1
- package/src/render/vex/vxNote.ts +1 -0
- package/src/smo/data/music.ts +17 -0
- package/src/smo/data/note.ts +3 -1
- package/src/smo/data/noteModifiers.ts +2 -0
- package/src/smo/data/scoreModifiers.ts +0 -3
- package/src/styles/general.css +22 -0
- package/src/ui/components/dialogs/scorePreferences.vue +1 -11
- package/types/src/application/application.d.ts +102 -102
- package/types/src/application/configuration.d.ts +74 -74
- 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 -494
- 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/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/svgPageMap.d.ts +318 -318
- package/types/src/render/sui/textEdit.d.ts +310 -310
- package/types/src/render/vex/vxMeasure.d.ts +95 -95
- 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/scoreModifiers.d.ts +433 -433
- package/types/src/smo/xform/selections.d.ts +153 -153
- package/types/src/ui/common.d.ts +45 -45
- package/types/src/ui/configuration.d.ts +31 -31
- package/types/src/ui/dialogs/chordChange.d.ts +35 -35
- 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/dropdown.d.ts +78 -78
- 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/textInPlace.d.ts +90 -90
- package/types/src/ui/dialogs/components/textInput.d.ts +58 -58
- package/types/src/ui/dialogs/components/toggle.d.ts +53 -53
- package/types/src/ui/dialogs/dialog.d.ts +201 -201
- package/types/src/ui/dialogs/endings.d.ts +61 -61
- 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/textBlock.d.ts +61 -61
- package/types/src/ui/exceptions.d.ts +12 -12
- package/types/src/ui/menus/manager.d.ts +57 -57
- package/types/src/ui/navigation.d.ts +15 -15
- package/types/typedoc.d.ts +158 -158
- package/release/styles/styles.css +0 -0
- package/src/styles/fonts/Roboto-Italic-VariableFont_wdth,wght.ttf +0 -0
- package/src/styles/fonts/Roboto-VariableFont_wdth,wght.ttf +0 -0
- package/src/styles/styles.css +0 -0
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { DialogDefinition, SuiDialogBase, SuiDialogParams } from './dialog';
|
|
2
|
-
import { SuiLyricComponent } from './components/noteText';
|
|
3
|
-
import { SuiDropdownComponent } from './components/dropdown';
|
|
4
|
-
import { SuiRockerComponent } from './components/rocker';
|
|
5
|
-
import { SmoSelector } from '../../smo/xform/selections';
|
|
6
|
-
import { SmoLyric } from '../../smo/data/noteModifiers';
|
|
7
|
-
import { SuiFontComponent } from './components/fontComponent';
|
|
8
|
-
import { SmoRenderConfiguration } from '../../render/sui/configuration';
|
|
9
|
-
import { EventHandler } from '../eventSource';
|
|
10
|
-
/**
|
|
11
|
-
* Complex dialog for traversing and working with lyrics.
|
|
12
|
-
* @category SuiDialog
|
|
13
|
-
*/
|
|
14
|
-
export declare class SuiLyricDialog extends SuiDialogBase {
|
|
15
|
-
static get ctor(): string;
|
|
16
|
-
static get idleLyricTime(): number;
|
|
17
|
-
static dialogElements: DialogDefinition;
|
|
18
|
-
originalRefreshTimer: number;
|
|
19
|
-
modifier: SmoLyric | null;
|
|
20
|
-
selector: SmoSelector | null;
|
|
21
|
-
config: SmoRenderConfiguration;
|
|
22
|
-
verse: number;
|
|
23
|
-
mouseMoveHandler: EventHandler | null;
|
|
24
|
-
mouseClickHandler: EventHandler | null;
|
|
25
|
-
constructor(parameters: SuiDialogParams);
|
|
26
|
-
get lyricEditorCtrl(): SuiLyricComponent;
|
|
27
|
-
get fontCtrl(): SuiFontComponent;
|
|
28
|
-
get translateYCtrl(): SuiRockerComponent;
|
|
29
|
-
get verseCtrl(): SuiDropdownComponent;
|
|
30
|
-
display(): void;
|
|
31
|
-
setLyric(selector: SmoSelector, lyric: SmoLyric): void;
|
|
32
|
-
_focusSelection(): void;
|
|
33
|
-
changed(): void;
|
|
34
|
-
bindElements(): void;
|
|
35
|
-
evKey(evdata: any): Promise<void>;
|
|
36
|
-
_complete(): void;
|
|
37
|
-
mouseMove(ev: any): void;
|
|
38
|
-
mouseClick(ev: any): void;
|
|
39
|
-
}
|
|
1
|
+
import { DialogDefinition, SuiDialogBase, SuiDialogParams } from './dialog';
|
|
2
|
+
import { SuiLyricComponent } from './components/noteText';
|
|
3
|
+
import { SuiDropdownComponent } from './components/dropdown';
|
|
4
|
+
import { SuiRockerComponent } from './components/rocker';
|
|
5
|
+
import { SmoSelector } from '../../smo/xform/selections';
|
|
6
|
+
import { SmoLyric } from '../../smo/data/noteModifiers';
|
|
7
|
+
import { SuiFontComponent } from './components/fontComponent';
|
|
8
|
+
import { SmoRenderConfiguration } from '../../render/sui/configuration';
|
|
9
|
+
import { EventHandler } from '../eventSource';
|
|
10
|
+
/**
|
|
11
|
+
* Complex dialog for traversing and working with lyrics.
|
|
12
|
+
* @category SuiDialog
|
|
13
|
+
*/
|
|
14
|
+
export declare class SuiLyricDialog extends SuiDialogBase {
|
|
15
|
+
static get ctor(): string;
|
|
16
|
+
static get idleLyricTime(): number;
|
|
17
|
+
static dialogElements: DialogDefinition;
|
|
18
|
+
originalRefreshTimer: number;
|
|
19
|
+
modifier: SmoLyric | null;
|
|
20
|
+
selector: SmoSelector | null;
|
|
21
|
+
config: SmoRenderConfiguration;
|
|
22
|
+
verse: number;
|
|
23
|
+
mouseMoveHandler: EventHandler | null;
|
|
24
|
+
mouseClickHandler: EventHandler | null;
|
|
25
|
+
constructor(parameters: SuiDialogParams);
|
|
26
|
+
get lyricEditorCtrl(): SuiLyricComponent;
|
|
27
|
+
get fontCtrl(): SuiFontComponent;
|
|
28
|
+
get translateYCtrl(): SuiRockerComponent;
|
|
29
|
+
get verseCtrl(): SuiDropdownComponent;
|
|
30
|
+
display(): void;
|
|
31
|
+
setLyric(selector: SmoSelector, lyric: SmoLyric): void;
|
|
32
|
+
_focusSelection(): void;
|
|
33
|
+
changed(): void;
|
|
34
|
+
bindElements(): void;
|
|
35
|
+
evKey(evdata: any): Promise<void>;
|
|
36
|
+
_complete(): void;
|
|
37
|
+
mouseMove(ev: any): void;
|
|
38
|
+
mouseClick(ev: any): void;
|
|
39
|
+
}
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { SmoMeasure } from '../../smo/data/measure';
|
|
2
|
-
import { SmoMeasureFormat, SmoMeasureFormatNumberAttributes, SmoMeasueFormatBooleanAttributes } from '../../smo/data/measureModifiers';
|
|
3
|
-
import { SuiScoreViewOperations } from '../../render/sui/scoreViewOperations';
|
|
4
|
-
import { DialogDefinition, SuiDialogParams } from './dialog';
|
|
5
|
-
import { SuiComponentAdapter, SuiDialogAdapterBase } from './adapter';
|
|
6
|
-
/**
|
|
7
|
-
* @category SuiDialog
|
|
8
|
-
*/
|
|
9
|
-
export declare class SuiMeasureFormatAdapter extends SuiComponentAdapter {
|
|
10
|
-
format: SmoMeasureFormat;
|
|
11
|
-
backup: SmoMeasureFormat;
|
|
12
|
-
measure: SmoMeasure;
|
|
13
|
-
renumberIndex: number;
|
|
14
|
-
originalIndex: number;
|
|
15
|
-
edited: boolean;
|
|
16
|
-
constructor(view: SuiScoreViewOperations, measure: SmoMeasure);
|
|
17
|
-
writeNumber(param: SmoMeasureFormatNumberAttributes, value: number): void;
|
|
18
|
-
writeBoolean(param: SmoMeasueFormatBooleanAttributes, value: boolean): void;
|
|
19
|
-
commit(): Promise<any>;
|
|
20
|
-
cancel(): Promise<void>;
|
|
21
|
-
get padLeft(): number;
|
|
22
|
-
set padLeft(value: number);
|
|
23
|
-
get skipMeasureCount(): boolean;
|
|
24
|
-
set skipMeasureCount(value: boolean);
|
|
25
|
-
get localIndex(): number;
|
|
26
|
-
set localIndex(value: number);
|
|
27
|
-
get forceRest(): boolean;
|
|
28
|
-
set forceRest(value: boolean);
|
|
29
|
-
get repeatSymbol(): boolean;
|
|
30
|
-
set repeatSymbol(value: boolean);
|
|
31
|
-
get restBreak(): boolean;
|
|
32
|
-
set restBreak(value: boolean);
|
|
33
|
-
get customStretch(): number;
|
|
34
|
-
set customStretch(value: number);
|
|
35
|
-
get customProportion(): number;
|
|
36
|
-
set customProportion(value: number);
|
|
37
|
-
get autoJustify(): boolean;
|
|
38
|
-
set autoJustify(value: boolean);
|
|
39
|
-
get padAllInSystem(): boolean;
|
|
40
|
-
set padAllInSystem(value: boolean);
|
|
41
|
-
get systemBreak(): boolean;
|
|
42
|
-
set systemBreak(value: boolean);
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* This file contains dialogs that affect all measures at a certain position (column),
|
|
46
|
-
* such as tempo or time signature.
|
|
47
|
-
* @category SuiDialog
|
|
48
|
-
*/
|
|
49
|
-
export declare class SuiMeasureDialog extends SuiDialogAdapterBase<SuiMeasureFormatAdapter> {
|
|
50
|
-
static dialogElements: DialogDefinition;
|
|
51
|
-
constructor(parameters: SuiDialogParams);
|
|
52
|
-
}
|
|
1
|
+
import { SmoMeasure } from '../../smo/data/measure';
|
|
2
|
+
import { SmoMeasureFormat, SmoMeasureFormatNumberAttributes, SmoMeasueFormatBooleanAttributes } from '../../smo/data/measureModifiers';
|
|
3
|
+
import { SuiScoreViewOperations } from '../../render/sui/scoreViewOperations';
|
|
4
|
+
import { DialogDefinition, SuiDialogParams } from './dialog';
|
|
5
|
+
import { SuiComponentAdapter, SuiDialogAdapterBase } from './adapter';
|
|
6
|
+
/**
|
|
7
|
+
* @category SuiDialog
|
|
8
|
+
*/
|
|
9
|
+
export declare class SuiMeasureFormatAdapter extends SuiComponentAdapter {
|
|
10
|
+
format: SmoMeasureFormat;
|
|
11
|
+
backup: SmoMeasureFormat;
|
|
12
|
+
measure: SmoMeasure;
|
|
13
|
+
renumberIndex: number;
|
|
14
|
+
originalIndex: number;
|
|
15
|
+
edited: boolean;
|
|
16
|
+
constructor(view: SuiScoreViewOperations, measure: SmoMeasure);
|
|
17
|
+
writeNumber(param: SmoMeasureFormatNumberAttributes, value: number): void;
|
|
18
|
+
writeBoolean(param: SmoMeasueFormatBooleanAttributes, value: boolean): void;
|
|
19
|
+
commit(): Promise<any>;
|
|
20
|
+
cancel(): Promise<void>;
|
|
21
|
+
get padLeft(): number;
|
|
22
|
+
set padLeft(value: number);
|
|
23
|
+
get skipMeasureCount(): boolean;
|
|
24
|
+
set skipMeasureCount(value: boolean);
|
|
25
|
+
get localIndex(): number;
|
|
26
|
+
set localIndex(value: number);
|
|
27
|
+
get forceRest(): boolean;
|
|
28
|
+
set forceRest(value: boolean);
|
|
29
|
+
get repeatSymbol(): boolean;
|
|
30
|
+
set repeatSymbol(value: boolean);
|
|
31
|
+
get restBreak(): boolean;
|
|
32
|
+
set restBreak(value: boolean);
|
|
33
|
+
get customStretch(): number;
|
|
34
|
+
set customStretch(value: number);
|
|
35
|
+
get customProportion(): number;
|
|
36
|
+
set customProportion(value: number);
|
|
37
|
+
get autoJustify(): boolean;
|
|
38
|
+
set autoJustify(value: boolean);
|
|
39
|
+
get padAllInSystem(): boolean;
|
|
40
|
+
set padAllInSystem(value: boolean);
|
|
41
|
+
get systemBreak(): boolean;
|
|
42
|
+
set systemBreak(value: boolean);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* This file contains dialogs that affect all measures at a certain position (column),
|
|
46
|
+
* such as tempo or time signature.
|
|
47
|
+
* @category SuiDialog
|
|
48
|
+
*/
|
|
49
|
+
export declare class SuiMeasureDialog extends SuiDialogAdapterBase<SuiMeasureFormatAdapter> {
|
|
50
|
+
static dialogElements: DialogDefinition;
|
|
51
|
+
constructor(parameters: SuiDialogParams);
|
|
52
|
+
}
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { SmoScoreText, SmoTextGroup } from '../../smo/data/scoreText';
|
|
2
|
-
import { OutlineInfo } from '../../render/sui/svgHelpers';
|
|
3
|
-
import { DialogDefinition, SuiDialogBase, SuiDialogParams } from './dialog';
|
|
4
|
-
import { SuiDragText } from './components/dragText';
|
|
5
|
-
import { SuiTextInPlace } from './components/textInPlace';
|
|
6
|
-
import { SuiDropdownComponent } from './components/dropdown';
|
|
7
|
-
import { SuiToggleComponent } from './components/toggle';
|
|
8
|
-
import { SuiRockerComponent } from './components/rocker';
|
|
9
|
-
import { SuiFontComponent } from './components/fontComponent';
|
|
10
|
-
import { SuiTextBlockComponent } from './components/textInPlace';
|
|
11
|
-
import { EventHandler } from '../eventSource';
|
|
12
|
-
/**
|
|
13
|
-
* Complex dialog for managing score text (not associated with music)
|
|
14
|
-
* @category SuiDialog
|
|
15
|
-
*/
|
|
16
|
-
export declare class SuiTextBlockDialog extends SuiDialogBase {
|
|
17
|
-
get textEditorCtrl(): SuiTextInPlace;
|
|
18
|
-
get insertCodeCtrl(): SuiDropdownComponent;
|
|
19
|
-
get textDraggerCtrl(): SuiDragText;
|
|
20
|
-
get yCtrl(): SuiRockerComponent;
|
|
21
|
-
get xCtrl(): SuiRockerComponent;
|
|
22
|
-
get fontCtrl(): SuiFontComponent;
|
|
23
|
-
get textBlockCtrl(): SuiTextBlockComponent;
|
|
24
|
-
get paginationCtrl(): SuiDropdownComponent;
|
|
25
|
-
get attachToSelectorCtrl(): SuiToggleComponent;
|
|
26
|
-
static dialogElements: DialogDefinition;
|
|
27
|
-
edited: boolean;
|
|
28
|
-
isNew: boolean;
|
|
29
|
-
modifier: SmoTextGroup;
|
|
30
|
-
originalTextGroup: SmoTextGroup | null;
|
|
31
|
-
activeScoreText: SmoScoreText;
|
|
32
|
-
textElement: any;
|
|
33
|
-
mouseMoveHandler: EventHandler | null;
|
|
34
|
-
mouseUpHandler: EventHandler | null;
|
|
35
|
-
mouseDownHandler: EventHandler | null;
|
|
36
|
-
mouseClickHandler: EventHandler | null;
|
|
37
|
-
outlineRect: OutlineInfo | null;
|
|
38
|
-
constructor(parameters: SuiDialogParams);
|
|
39
|
-
populateInitial(): void;
|
|
40
|
-
static unrenderTextGroup(tg: SmoTextGroup): void;
|
|
41
|
-
unrenderOriginal(): void;
|
|
42
|
-
display(): void;
|
|
43
|
-
_resetAttachToSelector(): void;
|
|
44
|
-
_activateAttachToSelector(): void;
|
|
45
|
-
changed(): void;
|
|
46
|
-
highlightActiveRegion(): void;
|
|
47
|
-
evKey(evdata: any): void;
|
|
48
|
-
mouseUp(): void;
|
|
49
|
-
mouseMove(ev: any): void;
|
|
50
|
-
mouseClick(ev: any): void;
|
|
51
|
-
mouseDown(ev: any): void;
|
|
52
|
-
_complete(): void;
|
|
53
|
-
_removeText(): void;
|
|
54
|
-
bindElements(): void;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* @category SuiDialog
|
|
58
|
-
*/
|
|
59
|
-
export declare class helpModal {
|
|
60
|
-
static createAndDisplay(): Promise<void>;
|
|
61
|
-
}
|
|
1
|
+
import { SmoScoreText, SmoTextGroup } from '../../smo/data/scoreText';
|
|
2
|
+
import { OutlineInfo } from '../../render/sui/svgHelpers';
|
|
3
|
+
import { DialogDefinition, SuiDialogBase, SuiDialogParams } from './dialog';
|
|
4
|
+
import { SuiDragText } from './components/dragText';
|
|
5
|
+
import { SuiTextInPlace } from './components/textInPlace';
|
|
6
|
+
import { SuiDropdownComponent } from './components/dropdown';
|
|
7
|
+
import { SuiToggleComponent } from './components/toggle';
|
|
8
|
+
import { SuiRockerComponent } from './components/rocker';
|
|
9
|
+
import { SuiFontComponent } from './components/fontComponent';
|
|
10
|
+
import { SuiTextBlockComponent } from './components/textInPlace';
|
|
11
|
+
import { EventHandler } from '../eventSource';
|
|
12
|
+
/**
|
|
13
|
+
* Complex dialog for managing score text (not associated with music)
|
|
14
|
+
* @category SuiDialog
|
|
15
|
+
*/
|
|
16
|
+
export declare class SuiTextBlockDialog extends SuiDialogBase {
|
|
17
|
+
get textEditorCtrl(): SuiTextInPlace;
|
|
18
|
+
get insertCodeCtrl(): SuiDropdownComponent;
|
|
19
|
+
get textDraggerCtrl(): SuiDragText;
|
|
20
|
+
get yCtrl(): SuiRockerComponent;
|
|
21
|
+
get xCtrl(): SuiRockerComponent;
|
|
22
|
+
get fontCtrl(): SuiFontComponent;
|
|
23
|
+
get textBlockCtrl(): SuiTextBlockComponent;
|
|
24
|
+
get paginationCtrl(): SuiDropdownComponent;
|
|
25
|
+
get attachToSelectorCtrl(): SuiToggleComponent;
|
|
26
|
+
static dialogElements: DialogDefinition;
|
|
27
|
+
edited: boolean;
|
|
28
|
+
isNew: boolean;
|
|
29
|
+
modifier: SmoTextGroup;
|
|
30
|
+
originalTextGroup: SmoTextGroup | null;
|
|
31
|
+
activeScoreText: SmoScoreText;
|
|
32
|
+
textElement: any;
|
|
33
|
+
mouseMoveHandler: EventHandler | null;
|
|
34
|
+
mouseUpHandler: EventHandler | null;
|
|
35
|
+
mouseDownHandler: EventHandler | null;
|
|
36
|
+
mouseClickHandler: EventHandler | null;
|
|
37
|
+
outlineRect: OutlineInfo | null;
|
|
38
|
+
constructor(parameters: SuiDialogParams);
|
|
39
|
+
populateInitial(): void;
|
|
40
|
+
static unrenderTextGroup(tg: SmoTextGroup): void;
|
|
41
|
+
unrenderOriginal(): void;
|
|
42
|
+
display(): void;
|
|
43
|
+
_resetAttachToSelector(): void;
|
|
44
|
+
_activateAttachToSelector(): void;
|
|
45
|
+
changed(): void;
|
|
46
|
+
highlightActiveRegion(): void;
|
|
47
|
+
evKey(evdata: any): void;
|
|
48
|
+
mouseUp(): void;
|
|
49
|
+
mouseMove(ev: any): void;
|
|
50
|
+
mouseClick(ev: any): void;
|
|
51
|
+
mouseDown(ev: any): void;
|
|
52
|
+
_complete(): void;
|
|
53
|
+
_removeText(): void;
|
|
54
|
+
bindElements(): void;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @category SuiDialog
|
|
58
|
+
*/
|
|
59
|
+
export declare class helpModal {
|
|
60
|
+
static createAndDisplay(): Promise<void>;
|
|
61
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { SuiScoreView } from '../render/sui/scoreView';
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
*/
|
|
5
|
-
export declare class SuiExceptionHandler {
|
|
6
|
-
view: SuiScoreView;
|
|
7
|
-
thrown: boolean;
|
|
8
|
-
static _instance: SuiExceptionHandler;
|
|
9
|
-
constructor(params: any);
|
|
10
|
-
static get instance(): SuiExceptionHandler;
|
|
11
|
-
exceptionHandler(e: any): void;
|
|
12
|
-
}
|
|
1
|
+
import { SuiScoreView } from '../render/sui/scoreView';
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare class SuiExceptionHandler {
|
|
6
|
+
view: SuiScoreView;
|
|
7
|
+
thrown: boolean;
|
|
8
|
+
static _instance: SuiExceptionHandler;
|
|
9
|
+
constructor(params: any);
|
|
10
|
+
static get instance(): SuiExceptionHandler;
|
|
11
|
+
exceptionHandler(e: any): void;
|
|
12
|
+
}
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { SvgBox } from '../../smo/data/common';
|
|
2
|
-
import { UndoBuffer } from '../../smo/xform/undo';
|
|
3
|
-
import { SuiScoreViewOperations } from '../../render/sui/scoreViewOperations';
|
|
4
|
-
import { SuiTracker } from '../../render/sui/tracker';
|
|
5
|
-
import { CompleteNotifier } from '../common';
|
|
6
|
-
import { BrowserEventSource, EventHandler } from '../eventSource';
|
|
7
|
-
import { KeyBinding } from '../../application/common';
|
|
8
|
-
import { SuiMenuBase } from './menu';
|
|
9
|
-
/**
|
|
10
|
-
* @category SuiMenu
|
|
11
|
-
*/
|
|
12
|
-
export interface SuiMenuManagerParams {
|
|
13
|
-
view: SuiScoreViewOperations;
|
|
14
|
-
eventSource: BrowserEventSource;
|
|
15
|
-
completeNotifier: CompleteNotifier;
|
|
16
|
-
undoBuffer: UndoBuffer;
|
|
17
|
-
menuContainer?: HTMLElement;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Handle key-binding that map to menus
|
|
21
|
-
* @category SuiMenu
|
|
22
|
-
*/
|
|
23
|
-
export declare class SuiMenuManager {
|
|
24
|
-
view: SuiScoreViewOperations;
|
|
25
|
-
eventSource: BrowserEventSource;
|
|
26
|
-
completeNotifier: CompleteNotifier;
|
|
27
|
-
undoBuffer: UndoBuffer;
|
|
28
|
-
menuContainer: HTMLElement;
|
|
29
|
-
bound: boolean;
|
|
30
|
-
hotkeyBindings: Record<string, string>;
|
|
31
|
-
closeMenuPromise: Promise<void> | null;
|
|
32
|
-
menu: SuiMenuBase | null;
|
|
33
|
-
keydownHandler: EventHandler | null;
|
|
34
|
-
menuPosition: SvgBox;
|
|
35
|
-
tracker: SuiTracker;
|
|
36
|
-
menuBind: KeyBinding[];
|
|
37
|
-
constructor(params: SuiMenuManagerParams);
|
|
38
|
-
static get defaults(): {
|
|
39
|
-
menuBind: KeyBinding[];
|
|
40
|
-
menuContainer: string;
|
|
41
|
-
};
|
|
42
|
-
get closeModalPromise(): Promise<void> | null;
|
|
43
|
-
setController(c: CompleteNotifier): void;
|
|
44
|
-
get score(): import("../../application/exports").SmoScore;
|
|
45
|
-
static get menuKeyBindingDefaults(): KeyBinding[];
|
|
46
|
-
get optionElements(): any;
|
|
47
|
-
_advanceSelection(inc: number): void;
|
|
48
|
-
unattach(): void;
|
|
49
|
-
attach(): void;
|
|
50
|
-
captureMenuEvents(completeNotifier: CompleteNotifier): void;
|
|
51
|
-
dismiss(): void;
|
|
52
|
-
displayMenu(menu: SuiMenuBase | null): void;
|
|
53
|
-
createMenu(action: string, notifier: CompleteNotifier): void;
|
|
54
|
-
evKey(event: any): void;
|
|
55
|
-
bindEvents(): void;
|
|
56
|
-
}
|
|
57
|
-
export declare const menuTranslationsInit: () => void;
|
|
1
|
+
import { SvgBox } from '../../smo/data/common';
|
|
2
|
+
import { UndoBuffer } from '../../smo/xform/undo';
|
|
3
|
+
import { SuiScoreViewOperations } from '../../render/sui/scoreViewOperations';
|
|
4
|
+
import { SuiTracker } from '../../render/sui/tracker';
|
|
5
|
+
import { CompleteNotifier } from '../common';
|
|
6
|
+
import { BrowserEventSource, EventHandler } from '../eventSource';
|
|
7
|
+
import { KeyBinding } from '../../application/common';
|
|
8
|
+
import { SuiMenuBase } from './menu';
|
|
9
|
+
/**
|
|
10
|
+
* @category SuiMenu
|
|
11
|
+
*/
|
|
12
|
+
export interface SuiMenuManagerParams {
|
|
13
|
+
view: SuiScoreViewOperations;
|
|
14
|
+
eventSource: BrowserEventSource;
|
|
15
|
+
completeNotifier: CompleteNotifier;
|
|
16
|
+
undoBuffer: UndoBuffer;
|
|
17
|
+
menuContainer?: HTMLElement;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Handle key-binding that map to menus
|
|
21
|
+
* @category SuiMenu
|
|
22
|
+
*/
|
|
23
|
+
export declare class SuiMenuManager {
|
|
24
|
+
view: SuiScoreViewOperations;
|
|
25
|
+
eventSource: BrowserEventSource;
|
|
26
|
+
completeNotifier: CompleteNotifier;
|
|
27
|
+
undoBuffer: UndoBuffer;
|
|
28
|
+
menuContainer: HTMLElement;
|
|
29
|
+
bound: boolean;
|
|
30
|
+
hotkeyBindings: Record<string, string>;
|
|
31
|
+
closeMenuPromise: Promise<void> | null;
|
|
32
|
+
menu: SuiMenuBase | null;
|
|
33
|
+
keydownHandler: EventHandler | null;
|
|
34
|
+
menuPosition: SvgBox;
|
|
35
|
+
tracker: SuiTracker;
|
|
36
|
+
menuBind: KeyBinding[];
|
|
37
|
+
constructor(params: SuiMenuManagerParams);
|
|
38
|
+
static get defaults(): {
|
|
39
|
+
menuBind: KeyBinding[];
|
|
40
|
+
menuContainer: string;
|
|
41
|
+
};
|
|
42
|
+
get closeModalPromise(): Promise<void> | null;
|
|
43
|
+
setController(c: CompleteNotifier): void;
|
|
44
|
+
get score(): import("../../application/exports").SmoScore;
|
|
45
|
+
static get menuKeyBindingDefaults(): KeyBinding[];
|
|
46
|
+
get optionElements(): any;
|
|
47
|
+
_advanceSelection(inc: number): void;
|
|
48
|
+
unattach(): void;
|
|
49
|
+
attach(): void;
|
|
50
|
+
captureMenuEvents(completeNotifier: CompleteNotifier): void;
|
|
51
|
+
dismiss(): void;
|
|
52
|
+
displayMenu(menu: SuiMenuBase | null): void;
|
|
53
|
+
createMenu(action: string, notifier: CompleteNotifier): void;
|
|
54
|
+
evKey(event: any): void;
|
|
55
|
+
bindEvents(): void;
|
|
56
|
+
}
|
|
57
|
+
export declare const menuTranslationsInit: () => void;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
export type scrollHandler = (ev: any) => void;
|
|
3
|
-
export declare class SuiNavigation {
|
|
4
|
-
static instance: SuiNavigation;
|
|
5
|
-
bugModalView: Ref<boolean>;
|
|
6
|
-
scrollHandlers: scrollHandler[];
|
|
7
|
-
constructor(uiDomContainer: HTMLElement);
|
|
8
|
-
static get scrollable(): string;
|
|
9
|
-
pushScrollHandler(handler: scrollHandler): void;
|
|
10
|
-
popScrollHandler(): scrollHandler | undefined;
|
|
11
|
-
showBugModal(): void;
|
|
12
|
-
hideBugModal(): void;
|
|
13
|
-
showDialogModal(): void;
|
|
14
|
-
hideDialogModal(): void;
|
|
15
|
-
}
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export type scrollHandler = (ev: any) => void;
|
|
3
|
+
export declare class SuiNavigation {
|
|
4
|
+
static instance: SuiNavigation;
|
|
5
|
+
bugModalView: Ref<boolean>;
|
|
6
|
+
scrollHandlers: scrollHandler[];
|
|
7
|
+
constructor(uiDomContainer: HTMLElement);
|
|
8
|
+
static get scrollable(): string;
|
|
9
|
+
pushScrollHandler(handler: scrollHandler): void;
|
|
10
|
+
popScrollHandler(): scrollHandler | undefined;
|
|
11
|
+
showBugModal(): void;
|
|
12
|
+
hideBugModal(): void;
|
|
13
|
+
showDialogModal(): void;
|
|
14
|
+
hideDialogModal(): void;
|
|
15
|
+
}
|