smoosic 1.0.40 → 1.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/smoosic.js +3 -3
- package/package.json +1 -1
- package/release/smoosic.js +3 -3
- package/src/smo/data/scoreModifiers.ts +2 -2
- package/src/ui/components/dialogs/timeSignature.vue +25 -4
- package/types/src/application/application.d.ts +103 -102
- package/types/src/application/common.d.ts +6 -0
- package/types/src/application/configuration.d.ts +75 -75
- package/types/src/application/dynamicInit.d.ts +6 -6
- package/types/src/application/eventHandler.d.ts +87 -81
- package/types/src/application/exports.d.ts +482 -485
- package/types/src/render/audio/oscillator.d.ts +99 -99
- package/types/src/render/audio/player.d.ts +143 -143
- package/types/src/render/audio/samples.d.ts +56 -56
- package/types/src/render/sui/NoteEntryCaret.d.ts +107 -0
- package/types/src/render/sui/NoteEntryMediator.d.ts +24 -0
- package/types/src/render/sui/configuration.d.ts +53 -49
- package/types/src/render/sui/formatter.d.ts +163 -161
- package/types/src/render/sui/layoutDebug.d.ts +46 -46
- package/types/src/render/sui/mapper.d.ts +138 -135
- package/types/src/render/sui/renderState.d.ts +92 -90
- package/types/src/render/sui/scoreRender.d.ts +97 -96
- package/types/src/render/sui/scoreView.d.ts +280 -279
- package/types/src/render/sui/scoreViewOperations.d.ts +604 -594
- package/types/src/render/sui/scroller.d.ts +41 -41
- package/types/src/render/sui/svgPageMap.d.ts +344 -344
- package/types/src/render/sui/textEdit.d.ts +316 -316
- package/types/src/render/sui/tracker.d.ts +10 -4
- package/types/src/render/vex/vxMeasure.d.ts +97 -97
- package/types/src/smo/data/common.d.ts +220 -220
- package/types/src/smo/data/measure.d.ts +511 -511
- package/types/src/smo/data/measureModifiers.d.ts +509 -508
- package/types/src/smo/data/music.d.ts +2 -1
- package/types/src/smo/data/note.d.ts +2 -0
- package/types/src/smo/data/noteModifiers.d.ts +2 -0
- package/types/src/smo/data/score.d.ts +7 -5
- package/types/src/smo/data/scoreModifiers.d.ts +441 -440
- package/types/src/smo/data/systemStaff.d.ts +2 -2
- package/types/src/smo/data/tuplet.d.ts +7 -0
- package/types/src/smo/midi/midiToSmo.d.ts +12 -12
- package/types/src/smo/midi/smoToMidi.d.ts +3 -3
- package/types/src/smo/mxml/smoToXml.d.ts +4 -4
- package/types/src/smo/mxml/xmlState.d.ts +3 -3
- package/types/src/smo/mxml/xmlToSmo.d.ts +2 -2
- package/types/src/smo/xform/operations.d.ts +3 -3
- package/types/src/smo/xform/selections.d.ts +154 -154
- package/types/src/ui/buttons/display.d.ts +1 -0
- package/types/src/ui/common.d.ts +69 -67
- package/types/src/ui/composable/draggable.d.ts +1 -1
- package/types/src/ui/configuration.d.ts +30 -30
- 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 +203 -203
- package/types/src/ui/dialogs/endings.d.ts +2 -2
- package/types/src/ui/dialogs/lyric.d.ts +39 -39
- package/types/src/ui/dialogs/measureFormat.d.ts +2 -2
- package/types/src/ui/dialogs/tempo.d.ts +3 -3
- package/types/src/ui/dialogs/textBlock.d.ts +55 -61
- package/types/src/ui/dialogs/timeSignature.d.ts +2 -34
- package/types/src/ui/exceptions.d.ts +15 -15
- package/types/src/ui/help.d.ts +6 -1
- package/types/src/ui/menus/manager.d.ts +59 -59
- package/types/src/ui/navigation.d.ts +44 -37
- package/types/typedoc.d.ts +157 -157
|
@@ -1,96 +1,97 @@
|
|
|
1
|
-
import { SvgBox, SvgPoint } from '../../smo/data/common';
|
|
2
|
-
import { SmoMeasure } from '../../smo/data/measure';
|
|
3
|
-
import { SmoScore } from '../../smo/data/score';
|
|
4
|
-
import { SmoTextGroup } from '../../smo/data/scoreText';
|
|
5
|
-
import { SmoSelection } from '../../smo/xform/selections';
|
|
6
|
-
import { SmoSystemStaff } from '../../smo/data/systemStaff';
|
|
7
|
-
import { StaffModifierBase } from '../../smo/data/staffModifiers';
|
|
8
|
-
import { SuiMapper } from './mapper';
|
|
9
|
-
import { VxSystem } from '../vex/vxSystem';
|
|
10
|
-
import { SuiLayoutFormatter, RenderedPage } from './formatter';
|
|
11
|
-
import { layoutDebug } from './layoutDebug';
|
|
12
|
-
import { SmoRenderConfiguration } from './configuration';
|
|
13
|
-
import { UndoBuffer } from '../../smo/xform/undo';
|
|
14
|
-
import { SvgPageMap, SvgPage } from './svgPageMap';
|
|
15
|
-
/**
|
|
16
|
-
* a renderer creates the SVG render context for vexflow from the given element. Then it
|
|
17
|
-
* renders the initial score.
|
|
18
|
-
* @category SuiRender
|
|
19
|
-
*/
|
|
20
|
-
export interface ScoreRenderParams {
|
|
21
|
-
elementId: any;
|
|
22
|
-
score: SmoScore;
|
|
23
|
-
config: SmoRenderConfiguration;
|
|
24
|
-
undoBuffer: UndoBuffer;
|
|
25
|
-
debug: layoutDebug;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* @category SuiRender
|
|
29
|
-
*/
|
|
30
|
-
export interface MapParameters {
|
|
31
|
-
vxSystem: VxSystem;
|
|
32
|
-
measuresToBox: SmoMeasure[];
|
|
33
|
-
modifiersToBox: StaffModifierBase[];
|
|
34
|
-
printing: boolean;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* This module renders the entire score. It calculates the layout first based on the
|
|
38
|
-
* computed dimensions.
|
|
39
|
-
* @category SuiRender
|
|
40
|
-
**/
|
|
41
|
-
export declare class SuiScoreRender {
|
|
42
|
-
constructor(params: ScoreRenderParams);
|
|
43
|
-
debug: layoutDebug;
|
|
44
|
-
elementId: any;
|
|
45
|
-
startRenderTime: number;
|
|
46
|
-
formatter: SuiLayoutFormatter | null;
|
|
47
|
-
vexContainers: SvgPageMap;
|
|
48
|
-
score: SmoScore | null;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* @param
|
|
75
|
-
* @param
|
|
76
|
-
* @param
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
*
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
1
|
+
import { SvgBox, SvgPoint } from '../../smo/data/common';
|
|
2
|
+
import { SmoMeasure } from '../../smo/data/measure';
|
|
3
|
+
import { SmoScore } from '../../smo/data/score';
|
|
4
|
+
import { SmoTextGroup } from '../../smo/data/scoreText';
|
|
5
|
+
import { SmoSelection } from '../../smo/xform/selections';
|
|
6
|
+
import { SmoSystemStaff } from '../../smo/data/systemStaff';
|
|
7
|
+
import { StaffModifierBase } from '../../smo/data/staffModifiers';
|
|
8
|
+
import { SuiMapper } from './mapper';
|
|
9
|
+
import { VxSystem } from '../vex/vxSystem';
|
|
10
|
+
import { SuiLayoutFormatter, RenderedPage } from './formatter';
|
|
11
|
+
import { layoutDebug } from './layoutDebug';
|
|
12
|
+
import { SmoRenderConfiguration, SuiNavigation } from './configuration';
|
|
13
|
+
import { UndoBuffer } from '../../smo/xform/undo';
|
|
14
|
+
import { SvgPageMap, SvgPage } from './svgPageMap';
|
|
15
|
+
/**
|
|
16
|
+
* a renderer creates the SVG render context for vexflow from the given element. Then it
|
|
17
|
+
* renders the initial score.
|
|
18
|
+
* @category SuiRender
|
|
19
|
+
*/
|
|
20
|
+
export interface ScoreRenderParams {
|
|
21
|
+
elementId: any;
|
|
22
|
+
score: SmoScore;
|
|
23
|
+
config: SmoRenderConfiguration;
|
|
24
|
+
undoBuffer: UndoBuffer;
|
|
25
|
+
debug: layoutDebug;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @category SuiRender
|
|
29
|
+
*/
|
|
30
|
+
export interface MapParameters {
|
|
31
|
+
vxSystem: VxSystem;
|
|
32
|
+
measuresToBox: SmoMeasure[];
|
|
33
|
+
modifiersToBox: StaffModifierBase[];
|
|
34
|
+
printing: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* This module renders the entire score. It calculates the layout first based on the
|
|
38
|
+
* computed dimensions.
|
|
39
|
+
* @category SuiRender
|
|
40
|
+
**/
|
|
41
|
+
export declare class SuiScoreRender {
|
|
42
|
+
constructor(params: ScoreRenderParams);
|
|
43
|
+
debug: layoutDebug;
|
|
44
|
+
elementId: any;
|
|
45
|
+
startRenderTime: number;
|
|
46
|
+
formatter: SuiLayoutFormatter | null;
|
|
47
|
+
vexContainers: SvgPageMap;
|
|
48
|
+
score: SmoScore | null;
|
|
49
|
+
navigation: SuiNavigation;
|
|
50
|
+
measureMapper: SuiMapper | null;
|
|
51
|
+
measuresToMap: MapParameters[];
|
|
52
|
+
viewportChanged: boolean;
|
|
53
|
+
renderTime: number;
|
|
54
|
+
backgroundRender: boolean;
|
|
55
|
+
static debugMask: number;
|
|
56
|
+
renderedPages: Record<number, RenderedPage | null>;
|
|
57
|
+
_autoAdjustRenderTime: boolean;
|
|
58
|
+
lyricsToOffset: Map<number, VxSystem>;
|
|
59
|
+
renderingPage: number;
|
|
60
|
+
get autoAdjustRenderTime(): boolean;
|
|
61
|
+
set autoAdjustRenderTime(value: boolean);
|
|
62
|
+
getRenderer(box: SvgBox | SvgPoint): SvgPage | null;
|
|
63
|
+
renderTextGroup(gg: SmoTextGroup): void;
|
|
64
|
+
unrenderAll(): void;
|
|
65
|
+
unrenderStaff(staff: SmoSystemStaff): void;
|
|
66
|
+
clearRenderedPage(pg: number): void;
|
|
67
|
+
setViewport(): void;
|
|
68
|
+
unrenderTextGroups(): Promise<void>;
|
|
69
|
+
renderTextGroups(): Promise<void>;
|
|
70
|
+
rerenderTextGroups(): Promise<void>;
|
|
71
|
+
/**
|
|
72
|
+
* for music we've just rendered, get the bounding boxes. We defer this step so we don't force
|
|
73
|
+
* a reflow, which can slow rendering.
|
|
74
|
+
* @param vxSystem
|
|
75
|
+
* @param measures
|
|
76
|
+
* @param modifiers
|
|
77
|
+
* @param printing
|
|
78
|
+
*/
|
|
79
|
+
measureRenderedElements(vxSystem: VxSystem, measures: SmoMeasure[], modifiers: StaffModifierBase[], printing: boolean): void;
|
|
80
|
+
_renderSystem(lineIx: number, printing: boolean): void;
|
|
81
|
+
_renderNextSystemPromise(systemIx: number, keys: number[], printing: boolean): Promise<unknown>;
|
|
82
|
+
_renderNextSystem(lineIx: number, keys: number[], printing: boolean): Promise<void>;
|
|
83
|
+
unrenderMeasure(measure: SmoMeasure): void;
|
|
84
|
+
renderModifiers(staff: SmoSystemStaff, system: VxSystem): StaffModifierBase[];
|
|
85
|
+
drawPageLines(): void;
|
|
86
|
+
replaceSelection(staffMap: Record<number | string, {
|
|
87
|
+
system: VxSystem;
|
|
88
|
+
staff: SmoSystemStaff;
|
|
89
|
+
}>, change: SmoSelection): void;
|
|
90
|
+
renderAllMeasures(lines: number[]): Promise<void>;
|
|
91
|
+
numberMeasures(): void;
|
|
92
|
+
/**
|
|
93
|
+
* This calculates the position of all the elements in the score, then renders the score
|
|
94
|
+
* @returns
|
|
95
|
+
*/
|
|
96
|
+
layout(): Promise<void>;
|
|
97
|
+
}
|