Procházet zdrojové kódy

adapted to other changes

Matthias před 9 roky
rodič
revize
6b60878b9d

+ 3 - 1
src/MusicalScore/Graphical/GraphicalMarkedArea.ts

@@ -1,4 +1,6 @@
-export class GraphicalMarkedArea {
+import {GraphicalLabel} from "./GraphicalLabel";
+import {GraphicalRectangle} from "./GraphicalRectangle";
+export class GraphicalMarkedArea {
     constructor(systemRectangle: GraphicalRectangle, labelRectangle: GraphicalRectangle = null, label: GraphicalLabel = null, settingsLabel: GraphicalLabel = null) {
         this.systemRectangle = systemRectangle;
         this.labelRectangle = labelRectangle;

+ 1 - 1
src/MusicalScore/Graphical/GraphicalNote.ts

@@ -9,7 +9,7 @@ import {GraphicalObject} from "./GraphicalObject";
 import {MusicSheetCalculator} from "./MusicSheetCalculator";
 import {BoundingBox} from "./BoundingBox";
 
-export abstract class GraphicalNote extends GraphicalObject {
+export class GraphicalNote extends GraphicalObject {
     constructor(note: Note, parent: GraphicalStaffEntry) {
         super();
         this.sourceNote = note;

+ 15 - 0
src/MusicalScore/Graphical/GraphicalRectangle.ts

@@ -0,0 +1,15 @@
+import {OutlineAndFillStyleEnum} from "./DrawingEnums";
+import {BoundingBox} from "./BoundingBox";
+import {PointF2D} from "../../Common/DataObjects/PointF2D";
+import {GraphicalObject} from "./GraphicalObject";
+export class GraphicalRectangle extends GraphicalObject {
+    constructor(upperLeftPoint: PointF2D, lowerRightPoint: PointF2D, parent: BoundingBox, style: OutlineAndFillStyleEnum) {
+        super();
+        this.boundingBox = new BoundingBox(parent);
+        this.boundingBox.RelativePosition = upperLeftPoint;
+        this.boundingBox.BorderRight = lowerRightPoint.x - upperLeftPoint.x;
+        this.boundingBox.BorderBottom = lowerRightPoint.y - upperLeftPoint.y;
+        this.style = style;
+    }
+    public style: OutlineAndFillStyleEnum;
+}