Update SVG-Edit

This commit is contained in:
Jacques Distler 2011-06-01 15:28:11 -05:00
parent 0df40cb4cb
commit ade1c1d113
11 changed files with 1584 additions and 1326 deletions

View file

@ -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