|
@@ -15,7 +15,7 @@ import log from "loglevel";
|
|
|
import { DrawingParameters } from "../MusicalScore/Graphical/DrawingParameters";
|
|
|
import { DrawingParametersEnum } from "../Common/Enums/DrawingParametersEnum";
|
|
|
import { ColoringModes } from "../Common/Enums/ColoringModes";
|
|
|
-import { IOSMDOptions, OSMDOptions, AutoBeamOptions, BackendType, CursorOptions } from "./OSMDOptions";
|
|
|
+import { IOSMDOptions, OSMDOptions, AutoBeamOptions, BackendType, CursorOptions, CursorType } from "./OSMDOptions";
|
|
|
import { EngravingRules, PageFormat } from "../MusicalScore/Graphical/EngravingRules";
|
|
|
import { AbstractExpression } from "../MusicalScore/VoiceData/Expressions/AbstractExpression";
|
|
|
import { Dictionary } from "typescript-collections";
|
|
@@ -37,7 +37,7 @@ import { DynamicsCalculator } from "../MusicalScore/ScoreIO/MusicSymbolModules/D
|
|
|
* After the constructor, use load() and render() to load and render a MusicXML file.
|
|
|
*/
|
|
|
export class OpenSheetMusicDisplay {
|
|
|
- private version: string = "1.8.6-audio-extended"; // getter: this.Version
|
|
|
+ private version: string = "1.8.7-audio-extended"; // getter: this.Version
|
|
|
// at release, bump version and change to -release, afterwards to -dev again
|
|
|
|
|
|
/**
|
|
@@ -79,6 +79,9 @@ export class OpenSheetMusicDisplay {
|
|
|
public get cursor(): Cursor { // lowercase for backwards compatibility since cursor -> cursors change
|
|
|
return this.cursors[0];
|
|
|
}
|
|
|
+ public get Cursor(): Cursor {
|
|
|
+ return this.cursor;
|
|
|
+ }
|
|
|
public zoom: number = 1.0;
|
|
|
protected zoomUpdated: boolean = false;
|
|
|
/** Timeout in milliseconds used in osmd.load(string) when string is a URL. */
|
|
@@ -726,7 +729,12 @@ export class OpenSheetMusicDisplay {
|
|
|
if (options.cursorsOptions !== undefined) {
|
|
|
this.cursorsOptions = options.cursorsOptions;
|
|
|
} else {
|
|
|
- this.cursorsOptions = [{type: 0, color: this.EngravingRules.DefaultColorCursor, alpha: 0.5, follow: true}];
|
|
|
+ this.cursorsOptions = [{
|
|
|
+ type: CursorType.Standard,
|
|
|
+ color: this.EngravingRules.DefaultColorCursor,
|
|
|
+ alpha: 0.5,
|
|
|
+ follow: true
|
|
|
+ }];
|
|
|
}
|
|
|
if (options.preferredSkyBottomLineBatchCalculatorBackend !== undefined) {
|
|
|
this.rules.PreferredSkyBottomLineBatchCalculatorBackend = options.preferredSkyBottomLineBatchCalculatorBackend;
|