Update SVG-Edit
This commit is contained in:
parent
0df40cb4cb
commit
ade1c1d113
11 changed files with 1584 additions and 1326 deletions
|
@ -183,6 +183,20 @@ svgedit.math.transformListToTransform = function(tlist, min, max) {
|
|||
};
|
||||
|
||||
|
||||
// Function: svgedit.math.getMatrix
|
||||
// Get the matrix object for a given element
|
||||
//
|
||||
// Parameters:
|
||||
// elem - The DOM element to check
|
||||
//
|
||||
// Returns:
|
||||
// The matrix object associated with the element's transformlist
|
||||
svgedit.math.getMatrix = function(elem) {
|
||||
var tlist = svgedit.transformlist.getTransformList(elem);
|
||||
return svgedit.math.transformListToTransform(tlist).matrix;
|
||||
};
|
||||
|
||||
|
||||
// Function: svgedit.math.snapToAngle
|
||||
// Returns a 45 degree angle coordinate associated with the two given
|
||||
// coordinates
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue