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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user