Skip to content

Commit

Permalink
factory&renderer migrated
Browse files Browse the repository at this point in the history
  • Loading branch information
rvilarl committed Jul 2, 2021
1 parent 22866a8 commit beabb9c
Show file tree
Hide file tree
Showing 11 changed files with 370 additions and 298 deletions.
2 changes: 1 addition & 1 deletion src/clefnote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class ClefNote extends Note {
return 'clefnote';
}

constructor(type: string, size: string, annotation: string) {
constructor(type: string, size?: string, annotation?: string) {
super({ duration: 'b' });
this.setAttribute('type', 'ClefNote');

Expand Down
2 changes: 1 addition & 1 deletion src/curve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class Curve extends Element {
// cps: List of control points
// x_shift: pixels to shift
// y_shift: pixels to shift
constructor(from: Note, to: Note, options?: CurveOptions) {
constructor(from: Note, to: Note, options: Partial<CurveOptions>) {
super();
this.setAttribute('type', 'Curve');

Expand Down
Loading

0 comments on commit beabb9c

Please sign in to comment.