Merge pull request #148 from iuyiuy/optimized_loading
Optimized loading by removing unnecessary codemaster
commit
f7a1d2eb81
|
@ -4517,16 +4517,6 @@ this.setSvgString = function(xmlString) {
|
|||
|
||||
convertGradients(content[0]);
|
||||
|
||||
// recalculate dimensions on the top-level children so that unnecessary transforms
|
||||
// are removed
|
||||
svgedit.utilities.walkTreePost(svgcontent, function(n) {
|
||||
try {
|
||||
svgedit.recalculate.recalculateDimensions(n);
|
||||
} catch(e) {
|
||||
console.log(e);
|
||||
}
|
||||
});
|
||||
|
||||
var attrs = {
|
||||
id: 'svgcontent',
|
||||
overflow: curConfig.show_outside_canvas ? 'visible' : 'hidden'
|
||||
|
|
Loading…
Reference in New Issue