From 22e44a0f569640fd0422f8ecd81a39a9959dd70f Mon Sep 17 00:00:00 2001 From: jfh Date: Sun, 13 Sep 2020 19:10:29 +0200 Subject: [PATCH] no need to have several import of svgpathseg as this one loads to the window --- src/common/utilities.js | 1 - src/editor/extensions/ext-closepath/ext-closepath.js | 1 - src/svgcanvas/coords.js | 1 - src/svgcanvas/path.js | 1 - 4 files changed, 4 deletions(-) diff --git a/src/common/utilities.js b/src/common/utilities.js index e30cf483..8ca81297 100644 --- a/src/common/utilities.js +++ b/src/common/utilities.js @@ -7,7 +7,6 @@ * @copyright 2010 Alexis Deveria, 2010 Jeff Schiller */ -import './svgpathseg.js'; import jQueryPluginSVG from './jQuery.attr.js'; // Needed for SVG attribute setting and array form with `attr` import {NS} from './namespaces.js'; import {getTransformList} from './svgtransformlist.js'; diff --git a/src/editor/extensions/ext-closepath/ext-closepath.js b/src/editor/extensions/ext-closepath/ext-closepath.js index 88d0905d..129523db 100644 --- a/src/editor/extensions/ext-closepath/ext-closepath.js +++ b/src/editor/extensions/ext-closepath/ext-closepath.js @@ -6,7 +6,6 @@ * @copyright 2010 Jeff Schiller * */ -import '../../../common/svgpathseg.js'; const loadExtensionTranslation = async function (lang) { let translationModule; diff --git a/src/svgcanvas/coords.js b/src/svgcanvas/coords.js index e0fa5b65..8d0ff6f6 100644 --- a/src/svgcanvas/coords.js +++ b/src/svgcanvas/coords.js @@ -5,7 +5,6 @@ * @license MIT */ -import '../common/svgpathseg.js'; import { snapToGrid, assignAttributes, getBBox, getRefElem, findDefs } from '../common/utilities.js'; diff --git a/src/svgcanvas/path.js b/src/svgcanvas/path.js index 0f69ea78..5f728a90 100644 --- a/src/svgcanvas/path.js +++ b/src/svgcanvas/path.js @@ -7,7 +7,6 @@ * @copyright 2011 Alexis Deveria, 2011 Jeff Schiller */ -import '../common/svgpathseg.js'; import {NS} from '../common/namespaces.js'; import {getTransformList} from '../common/svgtransformlist.js'; import {shortFloat} from '../common/units.js';