This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
<script src="http://snapsvg.io/assets/js/snap.svg-min.js"></script> | |
<script src="http://snapsvg.io/assets/js/prism.js"></script> | |
</head> | |
<body> | |
<div id="svg" width="400" height="400"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
<script src="http://snapsvg.io/assets/js/snap.svg-min.js"></script> | |
<script src="http://snapsvg.io/assets/js/prism.js"></script> | |
</head> | |
<body> | |
<div id="svg" width="400" height="400"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Element.prototype.moveToCenter = function(centerTarget) { | |
var t = this.transform().localMatrix; | |
t.translate((centerTarget.getBBox().cx-(this.getBBox().width/2)),(centerTarget.getBBox().cy-(this.getBBox().height/2))); | |
this.transform(t); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
console.log('cfm says <cfoutput>#tolog#</cfoutput>'); | |
</script> |