mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 00:11:49 +02:00
feat(coords): allow both (left/x1) and (top/y1) attr keys
This commit is contained in:
@@ -59,6 +59,9 @@
|
|||||||
|
|
||||||
var d = this.data;
|
var d = this.data;
|
||||||
|
|
||||||
|
typeof d.left === 'undefined' && (d.left = d.x1);
|
||||||
|
typeof d.top === 'undefined' && (d.top = d.y1);
|
||||||
|
|
||||||
this.coords.x1 = d.left;
|
this.coords.x1 = d.left;
|
||||||
this.coords.y1 = d.top;
|
this.coords.y1 = d.top;
|
||||||
this.coords.x2 = d.left + d.width;
|
this.coords.x2 = d.left + d.width;
|
||||||
|
|||||||
Reference in New Issue
Block a user