Removed some log calls and changed image lib open option name
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1737 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
5fad4fdfe0
commit
a0914b8a01
|
@ -293,7 +293,7 @@ svgEditor.addExtension("imagelib", function() {
|
||||||
'margin-right': 5
|
'margin-right': 5
|
||||||
});
|
});
|
||||||
|
|
||||||
var type = $('<select><option value=s>Import single</option><option value=m>Import multiple</option><option value=o>Open for editing</option></select>').appendTo(leftBlock).change(function() {
|
var type = $('<select><option value=s>Import single</option><option value=m>Import multiple</option><option value=o>Open as new document</option></select>').appendTo(leftBlock).change(function() {
|
||||||
mode = $(this).val();
|
mode = $(this).val();
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case 's':
|
case 's':
|
||||||
|
|
|
@ -90,7 +90,6 @@ svgEditor.addExtension("shapes", function() {
|
||||||
|
|
||||||
if(!lib) {
|
if(!lib) {
|
||||||
$('#shape_buttons').html('Loading...');
|
$('#shape_buttons').html('Loading...');
|
||||||
console.log('extensions/shapelib/' + cat_id + '.json');
|
|
||||||
$.getJSON('extensions/shapelib/' + cat_id + '.json', function(result, textStatus) {
|
$.getJSON('extensions/shapelib/' + cat_id + '.json', function(result, textStatus) {
|
||||||
cur_lib = library[cat_id] = {
|
cur_lib = library[cat_id] = {
|
||||||
data: result.data,
|
data: result.data,
|
||||||
|
@ -114,7 +113,6 @@ svgEditor.addExtension("shapes", function() {
|
||||||
var off = size * .05;
|
var off = size * .05;
|
||||||
var vb = [-off, -off, size + off*2, size + off*2].join(' ');
|
var vb = [-off, -off, size + off*2, size + off*2].join(' ');
|
||||||
var stroke = fill ? 0: (size/30);
|
var stroke = fill ? 0: (size/30);
|
||||||
console.log(vb);
|
|
||||||
|
|
||||||
var shape_icon = new DOMParser().parseFromString(
|
var shape_icon = new DOMParser().parseFromString(
|
||||||
'<svg xmlns="http://www.w3.org/2000/svg"><svg viewBox="' + vb + '"><path fill="'+(fill?'#333':'none')+'" stroke="#000000" stroke-width="' + stroke + '" /><\/svg><\/svg>',
|
'<svg xmlns="http://www.w3.org/2000/svg"><svg viewBox="' + vb + '"><path fill="'+(fill?'#333':'none')+'" stroke="#000000" stroke-width="' + stroke + '" /><\/svg><\/svg>',
|
||||||
|
|
Loading…
Reference in New Issue