Skip to content

Commit

Permalink
Merge pull request #621 from SteveRuble/patch-1
Browse files Browse the repository at this point in the history
Support deriving from DefaultLabelModel
  • Loading branch information
dylanvorster authored Apr 25, 2020
2 parents 86b4c97 + ff2a668 commit 1aa1058
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ export interface DefaultLabelModelGenerics extends LabelModelGenerics {
export class DefaultLabelModel extends LabelModel<DefaultLabelModelGenerics> {
constructor(options: DefaultLabelModelOptions = {}) {
super({
...options,
offsetY: options.offsetY == null ? -23 : options.offsetY,
type: 'default'
type: 'default',
...options
});
}

Expand Down

0 comments on commit 1aa1058

Please sign in to comment.