kopia lustrzana https://github.com/backface/turtlestitch
FIX when creating svg element for painted elements do not try to preserve aspect ratio (Firefox respects an alignment different from 'none' in svg.preserveAspectRatio)
rodzic
2e85d2d326
commit
6c16bdb15b
|
@ -1535,7 +1535,7 @@ VectorPaintEditorMorph.prototype.getSVG = function () {
|
|||
svg.attributes.xmlns = 'http://www.w3.org/2000/svg';
|
||||
svg.attributes.snap = 'http://snap.berkeley.edu/run';
|
||||
svg.attributes.version = '1.1';
|
||||
svg.attributes.preserveAspectRatio = 'xMinYMin meet';
|
||||
svg.attributes.preserveAspectRatio = 'none meet';
|
||||
svg.attributes.viewBox =
|
||||
bounds.left() + ' ' + bounds.top() + ' ' +
|
||||
(bounds.right() - bounds.left()) + ' ' +
|
||||
|
|
Ładowanie…
Reference in New Issue