Refactor a few more functions into the math and path modules. Update MIME type on all JS files

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1984 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2011-02-09 06:14:47 +00:00
parent 0705f0b5c8
commit 99a73cc06f
5 changed files with 96 additions and 92 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