From 6fded2b7e53d9d4df4e450a97fd51f649f5cccde Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Fri, 21 Aug 2020 23:00:51 +0800 Subject: [PATCH 1/4] - npm: fix `build-docs-create` script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1c6560a1..92fbb8a4 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "open-docs-no-start": "open-cli http://localhost:8000/docs/jsdoc/", "open-docs": "run-p start open-docs-no-start", "build-docs-remove": "rimraf \"docs/jsdoc/*\"", - "build-docs-create": "jsdoc --pedantic -c docs/jsdoc-config.js editor", + "build-docs-create": "jsdoc --pedantic -c docs/jsdoc-config.js src/editor", "build-docs": "run-s -c build-docs-remove build-docs-create", "build-and-open-docs-no-start": "run-s build-docs open-docs-no-start", "build-and-open-docs": "run-s build-docs open-docs", From 238176250805651a5c9f9f3db67543b219def128 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Sat, 22 Aug 2020 20:43:02 +0800 Subject: [PATCH 2/4] - Docs: get docs to build on all of `src`, not just editor --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 92fbb8a4..02fbbb93 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "open-docs-no-start": "open-cli http://localhost:8000/docs/jsdoc/", "open-docs": "run-p start open-docs-no-start", "build-docs-remove": "rimraf \"docs/jsdoc/*\"", - "build-docs-create": "jsdoc --pedantic -c docs/jsdoc-config.js src/editor", + "build-docs-create": "jsdoc --pedantic -c docs/jsdoc-config.js src", "build-docs": "run-s -c build-docs-remove build-docs-create", "build-and-open-docs-no-start": "run-s build-docs open-docs-no-start", "build-and-open-docs": "run-s build-docs open-docs", From b319abaade51c19d601bf36d2dac4c70b33206ef Mon Sep 17 00:00:00 2001 From: Joseph Grigoletti Date: Tue, 1 Sep 2020 11:01:53 -0500 Subject: [PATCH 3/4] 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'; From f86e9d2b74f25fee72a8f6287d12235147af1e0f Mon Sep 17 00:00:00 2001 From: JFH <20402845+jfhenon@users.noreply.github.com> Date: Sun, 6 Sep 2020 17:27:55 +0200 Subject: [PATCH 4/4] Update xdomain-svg-editor-es.html this is a test that need as this file should be built using build/build-html.js --- src/editor/xdomain-svg-editor-es.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/xdomain-svg-editor-es.html b/src/editor/xdomain-svg-editor-es.html index 6cd0e3d9..3f601e44 100644 --- a/src/editor/xdomain-svg-editor-es.html +++ b/src/editor/xdomain-svg-editor-es.html @@ -39,7 +39,7 @@ - +