From 50162ad2c15f9567dfea210bb1fab0e5761b7d57 Mon Sep 17 00:00:00 2001 From: Katya Malyavina Date: Wed, 29 Jan 2020 13:47:35 -0500 Subject: [PATCH] Erased a little too much --- lib/network/modules/components/shared/Label.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/network/modules/components/shared/Label.js b/lib/network/modules/components/shared/Label.js index 9de1d1c34b..557553dc8a 100644 --- a/lib/network/modules/components/shared/Label.js +++ b/lib/network/modules/components/shared/Label.js @@ -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;