added zoomChanged to the embedded api, partial patch from RobertLeePlummerJr #973
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2197 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
6065268f32
commit
650fa70404
|
@ -84,7 +84,7 @@ function embedded_svg_edit(frame){
|
|||
"getStrokeOpacity", "setStrokeOpacity", "getTransformList", "getBBox", "getRotationAngle", "setRotationAngle", "each",
|
||||
"bind", "setIdPrefix", "getBold", "setBold", "getItalic", "setItalic", "getFontFamily", "setFontFamily", "getFontSize",
|
||||
"setFontSize", "getText", "setTextContent", "setImageURL", "setRectRadius", "setSegType", "quickClone",
|
||||
"changeSelectedAttributeNoUndo", "changeSelectedAttribute", "deleteSelectedElements", "groupSelectedElements",
|
||||
"changeSelectedAttributeNoUndo", "changeSelectedAttribute", "deleteSelectedElements", "groupSelectedElements", "zoomChanged",
|
||||
"ungroupSelectedElement", "moveToTopSelectedElement", "moveToBottomSelectedElement", "moveSelectedElements",
|
||||
"getStrokedBBox", "getVisibleElements", "cycleElement", "getUndoStackSize", "getRedoStackSize", "getNextUndoCommandText",
|
||||
"getNextRedoCommandText", "undo", "redo", "cloneSelectedElements", "alignSelectedElements", "getZoom", "getVersion",
|
||||
|
@ -113,7 +113,7 @@ function embedded_svg_edit(frame){
|
|||
var data = e.data.substr(4);
|
||||
var cbid = data.substr(0, data.indexOf(";"));
|
||||
if(t.callbacks[cbid]){
|
||||
if(data.substr(0,6) != "error:"){
|
||||
if(data.substr(cbid.length + 1,6) != "error:"){
|
||||
t.callbacks[cbid](eval("("+data.substr(cbid.length+1)+")"))
|
||||
}else{
|
||||
t.callbacks[cbid](data, "error");
|
||||
|
|
|
@ -782,7 +782,7 @@
|
|||
});
|
||||
};
|
||||
|
||||
var zoomChanged = function(window, bbox, autoCenter) {
|
||||
var zoomChanged = svgCanvas.zoomChanged = function(window, bbox, autoCenter) {
|
||||
var scrbar = 15,
|
||||
res = svgCanvas.getResolution(),
|
||||
w_area = workarea,
|
||||
|
@ -3447,7 +3447,7 @@
|
|||
|
||||
// set up gradients to be used for the buttons
|
||||
var svgdocbox = new DOMParser().parseFromString(
|
||||
'<svg xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="100%"\
|
||||
'<svg xmlns="http://www.w3.org/2000/svg"><rect width="16.5" height="16.5"\
|
||||
fill="#' + cur.color + '" opacity="' + cur.opacity + '"/>\
|
||||
<defs><linearGradient id="gradbox_"/></defs></svg>', 'text/xml');
|
||||
var docElem = svgdocbox.documentElement;
|
||||
|
|
Loading…
Reference in New Issue