Skip to content

Commit

Permalink
Erased a little too much
Browse files Browse the repository at this point in the history
  • Loading branch information
Katya-Malyavina-IBM committed Jan 29, 2020
1 parent 8863dda commit 50162ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/network/modules/components/shared/Label.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ class Label {
}
}

if(options.labelPosition !== undefined && options.labelPosition !== null) {
if(typeof options.labelPosition === 'string'){
this.position = options.labelPosition;
}
}

if(options.labelDistance !== undefined && options.labelDistance !== null) {
if(typeof options.labelDistance === 'number'){
this.distance = options.labelDistance;
Expand Down

0 comments on commit 50162ad

Please sign in to comment.