From b319abaade51c19d601bf36d2dac4c70b33206ef Mon Sep 17 00:00:00 2001 From: Joseph Grigoletti Date: Tue, 1 Sep 2020 11:01:53 -0500 Subject: [PATCH] updating documentation from W3 to MDN for Aspect Ratio --- src/editor/canvg/canvg.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/editor/canvg/canvg.js b/src/editor/canvg/canvg.js index b1117328..b25954a6 100644 --- a/src/editor/canvg/canvg.js +++ b/src/editor/canvg/canvg.js @@ -670,7 +670,8 @@ function build (opts) { // aspect ratio svg.AspectRatio = function (ctx, aspectRatio, width, desiredWidth, height, desiredHeight, minX, minY, refX, refY) { - // aspect ratio - https://www.w3.org/TR/SVG/coords.html#PreserveAspectRatioAttribute + //aspect ratio -https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/preserveAspectRatio + aspectRatio = svg.compressSpaces(aspectRatio); aspectRatio = aspectRatio.replace(/^defer\s/, ''); // ignore defer const align = aspectRatio.split(' ')[0] || 'xMidYMid';