@coderline/alphatab 1.8.0-alpha.1653 → 1.8.0-alpha.1656
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/dist/alphaTab.core.min.mjs +2 -2
- package/dist/alphaTab.core.mjs +4623 -4605
- package/dist/alphaTab.d.ts +40 -1
- package/dist/alphaTab.js +4623 -4605
- package/dist/alphaTab.min.js +2 -2
- package/dist/alphaTab.min.mjs +1 -1
- package/dist/alphaTab.mjs +1 -1
- package/dist/alphaTab.worker.min.mjs +1 -1
- package/dist/alphaTab.worker.mjs +1 -1
- package/dist/alphaTab.worklet.min.mjs +1 -1
- package/dist/alphaTab.worklet.mjs +1 -1
- package/package.json +1 -1
package/dist/alphaTab.d.ts
CHANGED
|
@@ -6630,6 +6630,7 @@ export declare class DisplaySettings {
|
|
|
6630
6630
|
*
|
|
6631
6631
|
* * Comparing files against each other (top/bottom comparison)
|
|
6632
6632
|
* * Aligning the playback of multiple files on one screen assuming the same tempo (e.g. one file per track).
|
|
6633
|
+
* @deprecated Use the {@link LayoutMode.Parchment} to display a music sheet respecting the systems layout.
|
|
6633
6634
|
*/
|
|
6634
6635
|
systemsLayoutMode: SystemsLayoutMode;
|
|
6635
6636
|
}
|
|
@@ -6981,6 +6982,7 @@ declare interface DisplaySettingsJson {
|
|
|
6981
6982
|
*
|
|
6982
6983
|
* * Comparing files against each other (top/bottom comparison)
|
|
6983
6984
|
* * Aligning the playback of multiple files on one screen assuming the same tempo (e.g. one file per track).
|
|
6985
|
+
* @deprecated Use the {@link LayoutMode.Parchment} to display a music sheet respecting the systems layout.
|
|
6984
6986
|
*/
|
|
6985
6987
|
systemsLayoutMode?: SystemsLayoutMode | keyof typeof SystemsLayoutMode | Lowercase<keyof typeof SystemsLayoutMode>;
|
|
6986
6988
|
}
|
|
@@ -10355,8 +10357,45 @@ export declare enum LayoutMode {
|
|
|
10355
10357
|
Page = 0,
|
|
10356
10358
|
/**
|
|
10357
10359
|
* Bars are aligned horizontally in [one horizontally endless system (row)](https://alphatab.net/docs/showcase/layouts#horizontal-layout)
|
|
10360
|
+
*
|
|
10361
|
+
* alphaTab holds following information in the data model and developers can change those values (e.g. by tapping into the `scoreLoaded`) event.
|
|
10362
|
+
* These widths are respected when using this layout.
|
|
10363
|
+
*
|
|
10364
|
+
* **Used when single tracks are rendered:**
|
|
10365
|
+
*
|
|
10366
|
+
* * `score.tracks[index].staves[index].bars[index].displayWidth` - The absolute size of this bar when displayed.
|
|
10367
|
+
*
|
|
10368
|
+
* **Used when multiple tracks are rendered:**
|
|
10369
|
+
*
|
|
10370
|
+
* * `score.masterBars[index].displayWidth` - Like the `displayWidth` on bar level.
|
|
10371
|
+
*/
|
|
10372
|
+
Horizontal = 1,
|
|
10373
|
+
/**
|
|
10374
|
+
* The bars are aligned in an [vertically endless page-style fashion](https://alphatab.net/docs/showcase/layouts#parchment)
|
|
10375
|
+
* respecting the configured systems layout.
|
|
10376
|
+
*
|
|
10377
|
+
* The parchment layout uses the `systemsLayout` and `defaultSystemsLayout` to decide how many bars go into a single system (row).
|
|
10378
|
+
* Additionally when sizing the bars within the system the `displayScale` is used. This scale is rather a ratio than an absolute percentage value but percentages work also:
|
|
10379
|
+
*
|
|
10380
|
+
* 
|
|
10381
|
+
*
|
|
10382
|
+
* File formats like Guitar Pro embed information about the layout in the file and alphaTab can read and use this information.
|
|
10383
|
+
*
|
|
10384
|
+
* alphaTab holds following information in the data model and developers can change those values (e.g. by tapping into the `scoreLoaded`) event.
|
|
10385
|
+
*
|
|
10386
|
+
* **Used when single tracks are rendered:**
|
|
10387
|
+
*
|
|
10388
|
+
* * `score.tracks[index].systemsLayout` - An array of numbers describing how many bars should be placed within each system (row).
|
|
10389
|
+
* * `score.tracks[index].defaultSystemsLayout` - The number of bars to place in a system (row) when no value is defined in the `systemsLayout`.
|
|
10390
|
+
* * `score.tracks[index].staves[index].bars[index].displayScale` - The relative size of this bar in the system it is placed. Note that this is not directly a percentage value. e.g. if there are 3 bars and all define scale 1, they are sized evenly.
|
|
10391
|
+
*
|
|
10392
|
+
* **Used when multiple tracks are rendered:**
|
|
10393
|
+
*
|
|
10394
|
+
* * `score.systemsLayout` - Like the `systemsLayout` on track level.
|
|
10395
|
+
* * `score.defaultSystemsLayout` - Like the `defaultSystemsLayout` on track level.
|
|
10396
|
+
* * `score.masterBars[index].displayScale` - Like the `displayScale` on bar level.
|
|
10358
10397
|
*/
|
|
10359
|
-
|
|
10398
|
+
Parchment = 2
|
|
10360
10399
|
}
|
|
10361
10400
|
|
|
10362
10401
|
/**
|