Merge pull request #519 from SVG-Edit/jQ-remove
stop using local outdated version of jquery and use latest npm versionmaster
commit
e126ae40d4
|
@ -1 +1 @@
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="83" height="20"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" rx="3" fill="#fff"/></mask></defs><g id="bg" mask="url(#round)"><path fill="#696969" d="M0 0h41v20H0z"/><path fill="#4c1" d="M41 0h42v20H41z"/><path fill="url(#smooth)" d="M0 0h83v20H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">Tests</text><text class="high" x="5" y="14">Tests</text><text class="shadow" x="46.5" y="15">21/21</text><text class="high" x="46" y="14">21/21</text></g></svg>
|
<svg xmlns="http://www.w3.org/2000/svg" width="97" height="20"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" rx="3" fill="#fff"/></mask></defs><g id="bg" mask="url(#round)"><path fill="#696969" d="M0 0h41v20H0z"/><path fill="#4c1" d="M41 0h56v20H41z"/><path fill="url(#smooth)" d="M0 0h97v20H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">Tests</text><text class="high" x="5" y="14">Tests</text><text class="shadow" x="46.5" y="15">139/139</text><text class="high" x="46" y="14">139/139</text></g></svg>
|
Before Width: | Height: | Size: 816 B After Width: | Height: | Size: 820 B |
|
@ -1,4 +1,5 @@
|
||||||
import '../../../instrumented/editor/jquery.min.js';
|
import $ from 'jquery';
|
||||||
|
window.$ = $;
|
||||||
import * as contextmenu from '../../../instrumented/editor/contextmenu.js';
|
import * as contextmenu from '../../../instrumented/editor/contextmenu.js';
|
||||||
|
|
||||||
describe('contextmenu', function () {
|
describe('contextmenu', function () {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import '../../../instrumented/editor/jquery.min.js';
|
import $ from 'jquery';
|
||||||
|
window.$ = $;
|
||||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||||
import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
|
import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
|
||||||
import * as coords from '../../../instrumented/svgcanvas/coords.js';
|
import * as coords from '../../../instrumented/svgcanvas/coords.js';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import '../../../instrumented/editor/jquery.min.js';
|
import $ from 'jquery';
|
||||||
|
window.$ = $;
|
||||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||||
import * as draw from '../../../instrumented/svgcanvas/draw.js';
|
import * as draw from '../../../instrumented/svgcanvas/draw.js';
|
||||||
import * as units from '../../../instrumented/common/units.js';
|
import * as units from '../../../instrumented/common/units.js';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import '../../../instrumented/editor/jquery.min.js';
|
import $ from 'jquery';
|
||||||
|
window.$ = $;
|
||||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||||
import * as transformlist from '../../../instrumented/svgcanvas/svgtransformlist.js';
|
import * as transformlist from '../../../instrumented/svgcanvas/svgtransformlist.js';
|
||||||
import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
|
import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import '../../../instrumented/editor/jquery.min.js';
|
import $ from 'jquery';
|
||||||
|
window.$ = $;
|
||||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||||
import * as math from '../../../instrumented/svgcanvas/math.js';
|
import * as math from '../../../instrumented/svgcanvas/math.js';
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* globals SVGPathSeg */
|
/* globals SVGPathSeg */
|
||||||
import 'pathseg';
|
import 'pathseg';
|
||||||
|
import $ from 'jquery';
|
||||||
import '../../../instrumented/editor/jquery.min.js';
|
window.$ = $;
|
||||||
|
|
||||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||||
import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
|
import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
import '../../../instrumented/editor/jquery.min.js';
|
import $ from 'jquery';
|
||||||
|
window.$ = $;
|
||||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||||
import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
|
import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
|
||||||
import * as coords from '../../../instrumented/svgcanvas/coords.js';
|
import * as coords from '../../../instrumented/svgcanvas/coords.js';
|
||||||
import * as recalculate from '../../../instrumented/svgcanvas/recalculate.js';
|
import * as recalculate from '../../../instrumented/svgcanvas/recalculate.js';
|
||||||
|
|
||||||
|
|
||||||
describe('recalculate', function () {
|
describe('recalculate', function () {
|
||||||
// eslint-disable-next-line no-shadow
|
// eslint-disable-next-line no-shadow
|
||||||
const root = document.createElement('div');
|
const root = document.createElement('div');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import '../../../instrumented/editor/jquery.min.js';
|
import $ from 'jquery';
|
||||||
|
window.$ = $;
|
||||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||||
import * as sanitize from '../../../instrumented/svgcanvas/sanitize.js';
|
import * as sanitize from '../../../instrumented/svgcanvas/sanitize.js';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import '../../../instrumented/editor/jquery.min.js';
|
import $ from 'jquery';
|
||||||
|
window.$ = $;
|
||||||
import * as select from '../../../instrumented/svgcanvas/select.js';
|
import * as select from '../../../instrumented/svgcanvas/select.js';
|
||||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import '../../../instrumented/editor/jquery.min.js';
|
import $ from 'jquery';
|
||||||
|
window.$ = $;
|
||||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||||
import * as transformlist from '../../../instrumented/svgcanvas/svgtransformlist.js';
|
import * as transformlist from '../../../instrumented/svgcanvas/svgtransformlist.js';
|
||||||
import { disableSupportsNativeTransformLists } from '../../../instrumented/common/browser.js';
|
import { disableSupportsNativeTransformLists } from '../../../instrumented/common/browser.js';
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* eslint-disable max-len, no-console */
|
/* eslint-disable max-len, no-console */
|
||||||
import '../../../instrumented/editor/jquery.min.js';
|
import $ from 'jquery';
|
||||||
|
window.$ = $;
|
||||||
|
|
||||||
import SvgCanvas from '../../../instrumented/svgcanvas/svgcanvas.js';
|
import SvgCanvas from '../../../instrumented/svgcanvas/svgcanvas.js';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import '../../../instrumented/editor/jquery.min.js';
|
import $ from 'jquery';
|
||||||
|
window.$ = $;
|
||||||
import * as units from '../../../instrumented/common/units.js';
|
import * as units from '../../../instrumented/common/units.js';
|
||||||
|
|
||||||
describe('units', function () {
|
describe('units', function () {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* eslint-disable max-len */
|
/* eslint-disable max-len */
|
||||||
import 'pathseg';
|
import 'pathseg';
|
||||||
|
import $ from 'jquery';
|
||||||
import '../../../instrumented/editor/jquery.min.js';
|
window.$ = $;
|
||||||
|
|
||||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||||
import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
|
import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/* eslint-disable max-len, no-console */
|
/* eslint-disable max-len, no-console */
|
||||||
import 'pathseg';
|
import 'pathseg';
|
||||||
import '../../../instrumented/editor/jquery.min.js';
|
import $ from 'jquery';
|
||||||
|
window.$ = $;
|
||||||
|
|
||||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||||
import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
|
import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* eslint-disable max-len */
|
/* eslint-disable max-len */
|
||||||
import '../../../instrumented/editor/jquery.min.js';
|
import $ from 'jquery';
|
||||||
|
window.$ = $;
|
||||||
import * as browser from '../../../instrumented/common/browser.js';
|
import * as browser from '../../../instrumented/common/browser.js';
|
||||||
import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
|
import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
|
||||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
"deparam": "1.0.5",
|
"deparam": "1.0.5",
|
||||||
"elix": "15.0.0",
|
"elix": "15.0.0",
|
||||||
"i18next": "20.3.0",
|
"i18next": "20.3.0",
|
||||||
|
"jquery": "3.6.0",
|
||||||
"jspdf": "2.3.1",
|
"jspdf": "2.3.1",
|
||||||
"pathseg": "1.2.0",
|
"pathseg": "1.2.0",
|
||||||
"regenerator-runtime": "0.13.7",
|
"regenerator-runtime": "0.13.7",
|
||||||
|
@ -14399,6 +14400,11 @@
|
||||||
"integrity": "sha512-9IXdWudL61npZjvLuVe/ktHiA41iE8qFyLB+4VDTblEsWBzeg8WQTlktdUK4CdncUqtUgUg0bbOmTE2bKBKaBQ==",
|
"integrity": "sha512-9IXdWudL61npZjvLuVe/ktHiA41iE8qFyLB+4VDTblEsWBzeg8WQTlktdUK4CdncUqtUgUg0bbOmTE2bKBKaBQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"node_modules/jquery": {
|
||||||
|
"version": "3.6.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.0.tgz",
|
||||||
|
"integrity": "sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw=="
|
||||||
|
},
|
||||||
"node_modules/js-base64": {
|
"node_modules/js-base64": {
|
||||||
"version": "2.6.4",
|
"version": "2.6.4",
|
||||||
"resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz",
|
"resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz",
|
||||||
|
@ -36456,6 +36462,11 @@
|
||||||
"integrity": "sha512-9IXdWudL61npZjvLuVe/ktHiA41iE8qFyLB+4VDTblEsWBzeg8WQTlktdUK4CdncUqtUgUg0bbOmTE2bKBKaBQ==",
|
"integrity": "sha512-9IXdWudL61npZjvLuVe/ktHiA41iE8qFyLB+4VDTblEsWBzeg8WQTlktdUK4CdncUqtUgUg0bbOmTE2bKBKaBQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"jquery": {
|
||||||
|
"version": "3.6.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.0.tgz",
|
||||||
|
"integrity": "sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw=="
|
||||||
|
},
|
||||||
"js-base64": {
|
"js-base64": {
|
||||||
"version": "2.6.4",
|
"version": "2.6.4",
|
||||||
"resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz",
|
"resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz",
|
||||||
|
|
|
@ -99,6 +99,7 @@
|
||||||
"deparam": "1.0.5",
|
"deparam": "1.0.5",
|
||||||
"elix": "15.0.0",
|
"elix": "15.0.0",
|
||||||
"i18next": "20.3.0",
|
"i18next": "20.3.0",
|
||||||
|
"jquery": "3.6.0",
|
||||||
"jspdf": "2.3.1",
|
"jspdf": "2.3.1",
|
||||||
"pathseg": "1.2.0",
|
"pathseg": "1.2.0",
|
||||||
"regenerator-runtime": "0.13.7",
|
"regenerator-runtime": "0.13.7",
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
/* globals jQuery */
|
/* globals $ */
|
||||||
const $ = jQuery;
|
|
||||||
const atags = document.querySelectorAll('a');
|
const atags = document.querySelectorAll('a');
|
||||||
Array.prototype.forEach.call(atags, function (aEle) {
|
Array.prototype.forEach.call(atags, function (aEle) {
|
||||||
aEle.addEventListener('click', function (event) {
|
aEle.addEventListener('click', function (event) {
|
||||||
|
|
|
@ -4,9 +4,15 @@ For default config and extensions (and available options) available to
|
||||||
`setConfig()`, see the file `docs/tutorials/ConfigOptions.md`
|
`setConfig()`, see the file `docs/tutorials/ConfigOptions.md`
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import './jquery.min.js';
|
import jQuery from 'jquery/dist/jquery.slim.js';
|
||||||
|
import jQueryPluginSVG from '../svgcanvas/jQuery.attr.js'; // Needed for SVG attribute
|
||||||
|
import './components/index.js';
|
||||||
|
import './dialogs/index.js';
|
||||||
import Editor from './Editor.js';
|
import Editor from './Editor.js';
|
||||||
|
|
||||||
|
// Global Constant
|
||||||
|
window.$ = jQueryPluginSVG(jQuery);
|
||||||
|
|
||||||
const svgEditor = new Editor();
|
const svgEditor = new Editor();
|
||||||
svgEditor.init();
|
svgEditor.init();
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -3,6 +3,7 @@
|
||||||
* @license MIT
|
* @license MIT
|
||||||
* @copyright 2011 Jeff Schiller
|
* @copyright 2011 Jeff Schiller
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { jGraduate } from '../editor/components/jgraduate/jQuery.jGraduate.js';
|
import { jGraduate } from '../editor/components/jgraduate/jQuery.jGraduate.js';
|
||||||
import * as hstry from './history.js';
|
import * as hstry from './history.js';
|
||||||
import { NS } from '../common/namespaces.js';
|
import { NS } from '../common/namespaces.js';
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* globals jQuery */
|
/* globals $ */
|
||||||
/**
|
/**
|
||||||
* Path functionality.
|
* Path functionality.
|
||||||
* @module path
|
* @module path
|
||||||
|
@ -23,8 +23,6 @@ import {
|
||||||
isWebkit
|
isWebkit
|
||||||
} from '../common/browser.js';
|
} from '../common/browser.js';
|
||||||
|
|
||||||
const $ = jQuery;
|
|
||||||
|
|
||||||
let pathActionsContext_ = null;
|
let pathActionsContext_ = null;
|
||||||
let editorContext_ = null;
|
let editorContext_ = null;
|
||||||
let path = null;
|
let path = null;
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
/* globals jQuery */
|
/* globals $ */
|
||||||
/**
|
/**
|
||||||
* Recalculate.
|
* Recalculate.
|
||||||
* @module recalculate
|
* @module recalculate
|
||||||
* @license MIT
|
* @license MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import jQueryPluginSVG from './jQuery.attr.js'; // Needed for SVG attribute setting and array form with `attr`
|
|
||||||
import { NS } from '../common/namespaces.js';
|
import { NS } from '../common/namespaces.js';
|
||||||
import { convertToNum } from '../common/units.js';
|
import { convertToNum } from '../common/units.js';
|
||||||
import { isWebkit } from '../common/browser.js';
|
import { isWebkit } from '../common/browser.js';
|
||||||
|
@ -18,8 +17,6 @@ import {
|
||||||
hasMatrixTransform
|
hasMatrixTransform
|
||||||
} from './math.js';
|
} from './math.js';
|
||||||
|
|
||||||
const $ = jQueryPluginSVG(jQuery);
|
|
||||||
|
|
||||||
let context_;
|
let context_;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* globals jQuery */
|
/* globals $ */
|
||||||
/**
|
/**
|
||||||
* Tools for SVG selected element operation.
|
* Tools for SVG selected element operation.
|
||||||
* @module selected-elem
|
* @module selected-elem
|
||||||
|
@ -6,7 +6,7 @@
|
||||||
*
|
*
|
||||||
* @copyright 2010 Alexis Deveria, 2010 Jeff Schiller
|
* @copyright 2010 Alexis Deveria, 2010 Jeff Schiller
|
||||||
*/
|
*/
|
||||||
import jQueryPluginSVG from './jQuery.attr.js'; // Needed for SVG attribute
|
|
||||||
import { NS } from '../common/namespaces.js';
|
import { NS } from '../common/namespaces.js';
|
||||||
import * as hstry from './history.js';
|
import * as hstry from './history.js';
|
||||||
import * as pathModule from './path.js';
|
import * as pathModule from './path.js';
|
||||||
|
@ -31,7 +31,6 @@ import { getParents } from '../editor/components/jgraduate/Util.js';
|
||||||
const {
|
const {
|
||||||
MoveElementCommand, BatchCommand, InsertElementCommand, RemoveElementCommand, ChangeElementCommand
|
MoveElementCommand, BatchCommand, InsertElementCommand, RemoveElementCommand, ChangeElementCommand
|
||||||
} = hstry;
|
} = hstry;
|
||||||
const $ = jQueryPluginSVG(jQuery);
|
|
||||||
|
|
||||||
let elementContext_ = null;
|
let elementContext_ = null;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* globals jQuery */
|
/* globals $ */
|
||||||
/**
|
/**
|
||||||
* Tools for svg.
|
* Tools for svg.
|
||||||
* @module svg
|
* @module svg
|
||||||
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
import { jsPDF } from 'jspdf/dist/jspdf.es.min.js';
|
import { jsPDF } from 'jspdf/dist/jspdf.es.min.js';
|
||||||
import 'svg2pdf.js/dist/svg2pdf.es.js';
|
import 'svg2pdf.js/dist/svg2pdf.es.js';
|
||||||
import jQueryPluginSVG from './jQuery.attr.js';
|
|
||||||
import * as hstry from './history.js';
|
import * as hstry from './history.js';
|
||||||
import {
|
import {
|
||||||
text2xml, cleanupElement, findDefs, getHref, preventClickDefault,
|
text2xml, cleanupElement, findDefs, getHref, preventClickDefault,
|
||||||
|
@ -36,8 +35,6 @@ const {
|
||||||
ChangeElementCommand, BatchCommand
|
ChangeElementCommand, BatchCommand
|
||||||
} = hstry;
|
} = hstry;
|
||||||
|
|
||||||
const $ = jQueryPluginSVG(jQuery);
|
|
||||||
|
|
||||||
let svgContext_ = null;
|
let svgContext_ = null;
|
||||||
let $id = null;
|
let $id = null;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* globals jQuery */
|
/* globals $ */
|
||||||
/**
|
/**
|
||||||
* Numerous tools for working with the editor's "canvas".
|
* Numerous tools for working with the editor's "canvas".
|
||||||
* @module svgcanvas
|
* @module svgcanvas
|
||||||
|
@ -12,8 +12,6 @@
|
||||||
import { Canvg as canvg } from 'canvg';
|
import { Canvg as canvg } from 'canvg';
|
||||||
import 'pathseg';
|
import 'pathseg';
|
||||||
|
|
||||||
import jQueryPluginSVG from './jQuery.attr.js'; // Needed for SVG attribute setting and array form with `attr`
|
|
||||||
|
|
||||||
import * as pathModule from './path.js';
|
import * as pathModule from './path.js';
|
||||||
import * as hstry from './history.js';
|
import * as hstry from './history.js';
|
||||||
import * as draw from './draw.js';
|
import * as draw from './draw.js';
|
||||||
|
@ -114,7 +112,6 @@ import {
|
||||||
getClosest, getParents, mergeDeep
|
getClosest, getParents, mergeDeep
|
||||||
} from '../editor/components/jgraduate/Util.js';
|
} from '../editor/components/jgraduate/Util.js';
|
||||||
|
|
||||||
const $ = jQueryPluginSVG(jQuery);
|
|
||||||
const {
|
const {
|
||||||
MoveElementCommand, InsertElementCommand, RemoveElementCommand,
|
MoveElementCommand, InsertElementCommand, RemoveElementCommand,
|
||||||
ChangeElementCommand, BatchCommand
|
ChangeElementCommand, BatchCommand
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* globals jQuery */
|
/* globals $ */
|
||||||
/**
|
/**
|
||||||
* Miscellaneous utilities.
|
* Miscellaneous utilities.
|
||||||
* @module utilities
|
* @module utilities
|
||||||
|
@ -7,7 +7,6 @@
|
||||||
* @copyright 2010 Alexis Deveria, 2010 Jeff Schiller
|
* @copyright 2010 Alexis Deveria, 2010 Jeff Schiller
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import jQueryPluginSVG from './jQuery.attr.js'; // Needed for SVG attribute setting and array form with `attr`
|
|
||||||
import { NS } from '../common/namespaces.js';
|
import { NS } from '../common/namespaces.js';
|
||||||
import { getTransformList } from './svgtransformlist.js';
|
import { getTransformList } from './svgtransformlist.js';
|
||||||
import { setUnitAttr, getTypeMap } from '../common/units.js';
|
import { setUnitAttr, getTypeMap } from '../common/units.js';
|
||||||
|
@ -20,9 +19,6 @@ import {
|
||||||
} from '../common/browser.js';
|
} from '../common/browser.js';
|
||||||
import { getClosest } from '../editor/components/jgraduate/Util.js';
|
import { getClosest } from '../editor/components/jgraduate/Util.js';
|
||||||
|
|
||||||
// Constants
|
|
||||||
const $ = jQueryPluginSVG(jQuery);
|
|
||||||
|
|
||||||
// String used to encode base64.
|
// String used to encode base64.
|
||||||
const KEYSTR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
const KEYSTR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue