Skip to content

Commit

Permalink
#30 enhancing api for meta elements
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelpiano committed Aug 11, 2022
1 parent 49b7db4 commit 5b3e07c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/models/MetaLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,16 @@ export class MetaLink implements ILink {
getTargetPortId(): string {
return this.targetPortId;
}

getId(): string {
return this.options.getId();
}

getName(): string {
return this.options.getName();
}

getShape(): string {
return this.options.getShape();
}
}
12 changes: 12 additions & 0 deletions src/models/MetaNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,16 @@ export class MetaNode {
options.set('position', position);
this.options = new MetaOptions(id, name, shape, variant, options);
}

getId(): string {
return this.options.getId();
}

getName(): string {
return this.options.getName();
}

getShape(): string {
return this.options.getShape();
}
}
4 changes: 4 additions & 0 deletions src/models/MetaOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ export class MetaOptions implements IShape, IId {
return this.options.get('id');
}

getName(): string {
return this.options.get('name');
}

getShape(): string {
return this.options.get('shape');
}
Expand Down

0 comments on commit 5b3e07c

Please sign in to comment.