More internal re-arranging and support for new config options

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1464 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Alexis Deveria
2010-03-16 19:28:57 +00:00
parent e52ef2aa74
commit 2ba315bc96
4 changed files with 294 additions and 249 deletions

View File

@@ -450,6 +450,7 @@ function BatchCommand(text) {
"stroke-width": "1"
}
}) );
this.rotateGrip = this.selectorGroup.appendChild( addSvgElementFromJson({
"element": "circle",
"attr": {
@@ -458,7 +459,7 @@ function BatchCommand(text) {
"r": 4,
"stroke": "#22C",
"stroke-width": 2,
"style": "cursor:url(images/rotate.png) 12 12, auto;"
"style": "cursor:url(" + curConfig.imgPath + "rotate.png) 12 12, auto;"
}
}) );
@@ -1192,7 +1193,7 @@ function BatchCommand(text) {
// the first layer is the one at the bottom of the rendering
var all_layers = [],
encodableImages = {},
last_good_img_url = 'images/logo.png',
last_good_img_url = curConfig.imgPath + 'logo.png',
// pointer to the current layer <g>
current_layer = null,
save_options = {round_digits: 5},