[Layout] Line endpoint coordinate editing

Added appropriate line endpoint coordinate editing input fields
This commit is contained in:
Doubek-Kraft 2017-06-23 13:48:33 -07:00 committed by Aaron Doubek-Kraft
parent 2e6fcec1c3
commit 54e07ccfdd
2 changed files with 10 additions and 4 deletions

View File

@ -162,28 +162,28 @@ define([
"control": "textfield"
},
{
"method": "editX1",
"property": "editX1",
"text": "X1",
"name": "X1",
"cssClass": "l-input-sm",
"control" : "textfield"
},
{
"property": "y1",
"property": "editY1",
"text": "Y1",
"name": "Y1",
"cssClass": "l-input-sm",
"control" : "textfield"
},
{
"property": "x2",
"property": "editX2",
"text": "X2",
"name": "X2",
"cssClass": "l-input-sm",
"control" : "textfield"
},
{
"property": "y2",
"property": "editY2",
"text": "Y2",
"name": "Y2",
"cssClass": "l-input-sm",

View File

@ -148,6 +148,12 @@ define(
return handles;
};
// Expose endpoint coordinates for editing
proxy.editX1 = new AccessorMutator(element,'x', proxy.checkNumeric);
proxy.editY1 = new AccessorMutator(element,'y', proxy.checkNumeric);
proxy.editX2 = new AccessorMutator(element,'x2', proxy.checkNumeric);
proxy.editY2 = new AccessorMutator(element,'y2', proxy.checkNumeric);
return proxy;
}