Update SVG-Edit
This commit is contained in:
parent
22a27c8391
commit
e749ee1e4b
2 changed files with 11 additions and 3 deletions
|
@ -4001,7 +4001,7 @@
|
|||
{sel:'#tool_source_cancel,#svg_source_overlay,#tool_docprops_cancel,#tool_prefs_cancel', fn: cancelOverlays, evt: 'click', key: ['esc', false, false], hidekey: true},
|
||||
{sel:'#tool_source_save', fn: saveSourceEditor, evt: 'click'},
|
||||
{sel:'#tool_docprops_save', fn: saveDocProperties, evt: 'click'},
|
||||
{sel:'#tool_docprops', fn: showDocProperties, evt: 'mouseup', key: ['D', true]},
|
||||
{sel:'#tool_docprops', fn: showDocProperties, evt: 'mouseup'},
|
||||
{sel:'#tool_prefs_save', fn: savePreferences, evt: 'click'},
|
||||
{sel:'#tool_prefs_option', fn: function() {showPreferences();return false}, evt: 'mouseup'},
|
||||
{sel:'#tool_delete,#tool_delete_multi', fn: deleteSelected, evt: 'click', key: ['del/backspace', true]},
|
||||
|
@ -4647,7 +4647,7 @@
|
|||
updateCanvas(true);
|
||||
// });
|
||||
|
||||
// var revnums = "svg-editor.js ($Rev: 2037 $) ";
|
||||
// var revnums = "svg-editor.js ($Rev: 2041 $) ";
|
||||
// revnums += svgCanvas.getVersion();
|
||||
// $('#copyright')[0].setAttribute("title", revnums);
|
||||
|
||||
|
|
|
@ -6424,7 +6424,7 @@ this.getZoom = function(){return current_zoom;};
|
|||
// Function: getVersion
|
||||
// Returns a string which describes the revision number of SvgCanvas.
|
||||
this.getVersion = function() {
|
||||
return "svgcanvas.js ($Rev: 2028 $)";
|
||||
return "svgcanvas.js ($Rev: 2040 $)";
|
||||
};
|
||||
|
||||
// Function: setUiStrings
|
||||
|
@ -8602,6 +8602,14 @@ this.updateCanvas = function(w, h) {
|
|||
x: x,
|
||||
y: y
|
||||
});
|
||||
|
||||
var bg_img = getElem('background_image');
|
||||
if (bg_img) {
|
||||
assignAttributes(bg_img, {
|
||||
'width': '100%',
|
||||
'height': '100%'
|
||||
});
|
||||
}
|
||||
|
||||
selectorManager.selectorParentGroup.setAttribute("transform","translate(" + x + "," + y + ")");
|
||||
|
||||
|
|
Loading…
Reference in a new issue