- Build: Update

- npm: Update devDeps
This commit is contained in:
Brett Zamir
2020-05-09 21:59:46 +08:00
parent 05fc69795c
commit c1e5bc70f7
8 changed files with 270 additions and 175 deletions

View File

@@ -67,7 +67,9 @@ var svgEditorExtension_webappfind = (function () {
_this.canvas.bind('message', _this.canvas.bind('message',
/** /**
* @param {external:Window} win * @param {external:Window} win
* @param {module:svgcanvas.SvgCanvas#event:message} data * @param {PlainObject} info
* @param {module:svgcanvas.SvgCanvas#event:message} info.data
* @param {string} info.origin
* @listens module:svgcanvas.SvgCanvas#event:message * @listens module:svgcanvas.SvgCanvas#event:message
* @throws {Error} Unexpected event type * @throws {Error} Unexpected event type
* @returns {void} * @returns {void}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -29092,6 +29092,7 @@
/** /**
* Store and retrieve preferences. * Store and retrieve preferences.
* @function module:SVGEditor.pref
* @param {string} key The preference name to be retrieved or set * @param {string} key The preference name to be retrieved or set
* @param {string} [val] The value. If the value supplied is missing or falsey, no change to the preference will * @param {string} [val] The value. If the value supplied is missing or falsey, no change to the preference will
* be made unless `mayBeEmpty` is set. * be made unless `mayBeEmpty` is set.
@@ -29138,6 +29139,7 @@
* storage. This will override URL settings (for security reasons) but * storage. This will override URL settings (for security reasons) but
* not `svgedit-config-iife.js` configuration (unless initial user * not `svgedit-config-iife.js` configuration (unless initial user
* overriding is explicitly permitted there via `allowInitialUserOverride`). * overriding is explicitly permitted there via `allowInitialUserOverride`).
* @function module:SVGEditor.loadContentAndPrefs
* @todo Split `allowInitialUserOverride` into `allowOverrideByURL` and * @todo Split `allowInitialUserOverride` into `allowOverrideByURL` and
* `allowOverrideByUserStorage` so `svgedit-config-iife.js` can disallow some * `allowOverrideByUserStorage` so `svgedit-config-iife.js` can disallow some
* individual items for URL setting but allow for user storage AND/OR * individual items for URL setting but allow for user storage AND/OR
@@ -29184,6 +29186,7 @@
}; };
/** /**
* Allows setting of preferences or configuration (including extensions). * Allows setting of preferences or configuration (including extensions).
* @function module:SVGEditor.setConfig
* @param {module:SVGEditor.Config|module:SVGEditor.Prefs} opts The preferences or configuration (including extensions). See the tutorial on {@tutorial ConfigOptions} for info on config and preferences. * @param {module:SVGEditor.Config|module:SVGEditor.Prefs} opts The preferences or configuration (including extensions). See the tutorial on {@tutorial ConfigOptions} for info on config and preferences.
* @param {PlainObject} [cfgCfg] Describes configuration which applies to the * @param {PlainObject} [cfgCfg] Describes configuration which applies to the
* particular batch of supplied options * particular batch of supplied options
@@ -29328,6 +29331,7 @@
/** /**
* Allows one to override default SVGEdit `open`, `save`, and * Allows one to override default SVGEdit `open`, `save`, and
* `export` editor behaviors. * `export` editor behaviors.
* @function module:SVGEditor.setCustomHandlers
* @param {module:SVGEditor.CustomHandler} opts Extension mechanisms may call `setCustomHandlers` with three functions: `opts.open`, `opts.save`, and `opts.exportImage` * @param {module:SVGEditor.CustomHandler} opts Extension mechanisms may call `setCustomHandlers` with three functions: `opts.open`, `opts.save`, and `opts.exportImage`
* @returns {Promise<void>} * @returns {Promise<void>}
*/ */
@@ -29358,9 +29362,10 @@
}); });
}; };
/** /**
* @param {boolean} arg * @function module:SVGEditor.randomizeIds
* @returns {void} * @param {boolean} arg
*/ * @returns {void}
*/
editor.randomizeIds = function (arg) { editor.randomizeIds = function (arg) {
@@ -29368,6 +29373,7 @@
}; };
/** /**
* Auto-run after a Promise microtask. * Auto-run after a Promise microtask.
* @function module:SVGEditor.init
* @returns {void} * @returns {void}
*/ */
@@ -29533,6 +29539,7 @@
setupCurPrefs(); setupCurPrefs();
/** /**
* Called internally. * Called internally.
* @function module:SVGEditor.setIcon
* @param {string|Element|external:jQuery} elem * @param {string|Element|external:jQuery} elem
* @param {string|external:jQuery} iconId * @param {string|external:jQuery} iconId
* @param {Float} forcedSize Not in use * @param {Float} forcedSize Not in use
@@ -29803,6 +29810,7 @@
}; };
/** /**
* Called internally. * Called internally.
* @function module:SVGEditor.setIconSize
* @param {module:SVGEditor.IconSize} size * @param {module:SVGEditor.IconSize} size
* @returns {void} * @returns {void}
*/ */
@@ -30661,7 +30669,7 @@
* - Removes the `tool_button_current` class from whatever tool currently has it. * - Removes the `tool_button_current` class from whatever tool currently has it.
* - Hides any flyouts. * - Hides any flyouts.
* - Adds the `tool_button_current` class to the button passed in. * - Adds the `tool_button_current` class to the button passed in.
* @function module:SVGEDitor.toolButtonClick * @function module:SVGEditor.toolButtonClick
* @param {string|Element} button The DOM element or string selector representing the toolbar button * @param {string|Element} button The DOM element or string selector representing the toolbar button
* @param {boolean} noHiding Whether not to hide any flyouts * @param {boolean} noHiding Whether not to hide any flyouts
* @returns {boolean} Whether the button was disabled or not * @returns {boolean} Whether the button was disabled or not
@@ -32932,9 +32940,10 @@
} }
}); });
/** /**
* @param {boolean} active * @function module:SVGEditor.setPanning
* @returns {void} * @param {boolean} active
*/ * @returns {void}
*/
editor.setPanning = function (active) { editor.setPanning = function (active) {
svgCanvas.spaceKey = keypan = active; svgCanvas.spaceKey = keypan = active;
@@ -33031,6 +33040,7 @@
*/ */
/** /**
* @function module:SVGEditor.addDropDown
* @param {Element|string} elem DOM Element or selector * @param {Element|string} elem DOM Element or selector
* @param {module:SVGEditor.DropDownCallback} callback Mouseup callback * @param {module:SVGEditor.DropDownCallback} callback Mouseup callback
* @param {boolean} dropUp * @param {boolean} dropUp
@@ -35926,9 +35936,10 @@
return uiStrings$1; return uiStrings$1;
}; };
/** /**
* @returns {Promise<boolean>} Resolves to boolean indicating `true` if there were no changes * @function module:SVGEditor.openPrep
* and `false` after the user confirms. * @returns {boolean|Promise<boolean>} Resolves to boolean indicating `true` if there were no changes
*/ * and `false` after the user confirms.
*/
editor.openPrep = function () { editor.openPrep = function () {
@@ -36338,6 +36349,7 @@
* Queues a callback to be invoked when the editor is ready (or * Queues a callback to be invoked when the editor is ready (or
* to be invoked immediately if it is already ready--i.e., * to be invoked immediately if it is already ready--i.e.,
* if `runCallbacks` has been run). * if `runCallbacks` has been run).
* @function module:SVGEditor.ready
* @param {module:SVGEditor.ReadyCallback} cb Callback to be queued to invoke * @param {module:SVGEditor.ReadyCallback} cb Callback to be queued to invoke
* @returns {Promise<ArbitraryCallbackResult>} Resolves when all callbacks, including the supplied have resolved * @returns {Promise<ArbitraryCallbackResult>} Resolves when all callbacks, including the supplied have resolved
*/ */
@@ -36358,6 +36370,7 @@
}; };
/** /**
* Invokes the callbacks previous set by `svgEditor.ready` * Invokes the callbacks previous set by `svgEditor.ready`
* @function module:SVGEditor.runCallbacks
* @returns {Promise<void>} Resolves to `undefined` if all callbacks succeeded and rejects otherwise * @returns {Promise<void>} Resolves to `undefined` if all callbacks succeeded and rejects otherwise
*/ */
@@ -36408,11 +36421,12 @@
}, _callee20, null, [[0, 5]]); }, _callee20, null, [[0, 5]]);
})); }));
/** /**
* @param {string} str The SVG string to load * @function module:SVGEditor.loadFromString
* @param {PlainObject} [opts={}] * @param {string} str The SVG string to load
* @param {boolean} [opts.noAlert=false] Option to avoid alert to user and instead get rejected promise * @param {PlainObject} [opts={}]
* @returns {Promise<void>} * @param {boolean} [opts.noAlert=false] Option to avoid alert to user and instead get rejected promise
*/ * @returns {Promise<void>}
*/
editor.loadFromString = function (str) { editor.loadFromString = function (str) {
var _ref36 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, var _ref36 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
@@ -36454,6 +36468,7 @@
}; };
/** /**
* Not presently in use. * Not presently in use.
* @function module:SVGEditor.disableUI
* @param {PlainObject} featList * @param {PlainObject} featList
* @returns {void} * @returns {void}
*/ */
@@ -36471,14 +36486,15 @@
*/ */
/** /**
* @param {string} url URL from which to load an SVG string via Ajax * @function module:SVGEditor.loadFromURL
* @param {PlainObject} [opts={}] May contain properties: `cache`, `callback` * @param {string} url URL from which to load an SVG string via Ajax
* @param {boolean} [opts.cache] * @param {PlainObject} [opts={}] May contain properties: `cache`, `callback`
* @param {boolean} [opts.noAlert] * @param {boolean} [opts.cache]
* @returns {Promise<void>} Resolves to `undefined` or rejects upon bad loading of * @param {boolean} [opts.noAlert]
* the SVG (or upon failure to parse the loaded string) when `noAlert` is * @returns {Promise<void>} Resolves to `undefined` or rejects upon bad loading of
* enabled * the SVG (or upon failure to parse the loaded string) when `noAlert` is
*/ * enabled
*/
editor.loadFromURL = function (url) { editor.loadFromURL = function (url) {
@@ -36525,6 +36541,7 @@
}); });
}; };
/** /**
* @function module:SVGEditor.loadFromDataURI
* @param {string} str The Data URI to base64-decode (if relevant) and load * @param {string} str The Data URI to base64-decode (if relevant) and load
* @param {PlainObject} [opts={}] * @param {PlainObject} [opts={}]
* @param {boolean} [opts.noAlert] * @param {boolean} [opts.noAlert]
@@ -36557,6 +36574,7 @@
}); });
}; };
/** /**
* @function module:SVGEditor.addExtension
* @param {string} name Used internally; no need for i18n. * @param {string} name Used internally; no need for i18n.
* @param {module:svgcanvas.ExtensionInitCallback} init Config to be invoked on this module * @param {module:svgcanvas.ExtensionInitCallback} init Config to be invoked on this module
* @param {module:svgcanvas.ExtensionInitArgs} initArgs * @param {module:svgcanvas.ExtensionInitArgs} initArgs

295
package-lock.json generated
View File

@@ -1572,9 +1572,9 @@
"dev": true "dev": true
}, },
"@cypress/browserify-preprocessor": { "@cypress/browserify-preprocessor": {
"version": "2.2.2", "version": "2.2.3",
"resolved": "https://registry.npmjs.org/@cypress/browserify-preprocessor/-/browserify-preprocessor-2.2.2.tgz", "resolved": "https://registry.npmjs.org/@cypress/browserify-preprocessor/-/browserify-preprocessor-2.2.3.tgz",
"integrity": "sha512-uESobQlfv68GRKDokhBM5i47ZEwBBWS8zqFYFFBWVjv3KcXHpeReTXMPY/x1DljIO3RYRAxUsPJkh8vxhpRwNA==", "integrity": "sha512-NjumJpUlWeolsGICIseYblCRYsQDQA01W1ZxPcWZkG1hK01EI1HxMtX7fBnyeg2jY/i1xjrZV27PczmdGKAhXQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"@babel/core": "7.4.5", "@babel/core": "7.4.5",
@@ -1722,14 +1722,14 @@
} }
}, },
"@cypress/code-coverage": { "@cypress/code-coverage": {
"version": "3.7.0", "version": "3.7.2",
"resolved": "https://registry.npmjs.org/@cypress/code-coverage/-/code-coverage-3.7.0.tgz", "resolved": "https://registry.npmjs.org/@cypress/code-coverage/-/code-coverage-3.7.2.tgz",
"integrity": "sha512-GJZhh/kmybCO3Fgrsr3XrUpUMl9e1dFxNU7N8KQKp60UT4sGahrQL3zjx0+pGvR7kj3zN6Z67g/dyFUye878FQ==", "integrity": "sha512-DEcM8kcObqwX9LoS2aLU1JYm8MQG66WSjBbt/mtq8IuzXTVEeAwfd8ctDrRs9vaDPGqttqpTdcpumhnwIAC95Q==",
"dev": true, "dev": true,
"requires": { "requires": {
"@cypress/browserify-preprocessor": "2.2.2", "@cypress/browserify-preprocessor": "2.2.3",
"debug": "4.1.1", "debug": "4.1.1",
"execa": "4.0.0", "execa": "4.0.1",
"globby": "11.0.0", "globby": "11.0.0",
"istanbul-lib-coverage": "3.0.0", "istanbul-lib-coverage": "3.0.0",
"nyc": "15.0.1" "nyc": "15.0.1"
@@ -3714,9 +3714,9 @@
} }
}, },
"cli-width": { "cli-width": {
"version": "2.2.0", "version": "2.2.1",
"resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.1.tgz",
"integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=", "integrity": "sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw==",
"dev": true "dev": true
}, },
"cliui": { "cliui": {
@@ -5119,22 +5119,22 @@
} }
}, },
"eslint": { "eslint": {
"version": "6.8.0", "version": "7.0.0",
"resolved": "https://registry.npmjs.org/eslint/-/eslint-6.8.0.tgz", "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.0.0.tgz",
"integrity": "sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig==", "integrity": "sha512-qY1cwdOxMONHJfGqw52UOpZDeqXy8xmD0u8CT6jIstil72jkhURC704W8CFyTPDPllz4z4lu0Ql1+07PG/XdIg==",
"dev": true, "dev": true,
"requires": { "requires": {
"@babel/code-frame": "^7.0.0", "@babel/code-frame": "^7.0.0",
"ajv": "^6.10.0", "ajv": "^6.10.0",
"chalk": "^2.1.0", "chalk": "^4.0.0",
"cross-spawn": "^6.0.5", "cross-spawn": "^7.0.2",
"debug": "^4.0.1", "debug": "^4.0.1",
"doctrine": "^3.0.0", "doctrine": "^3.0.0",
"eslint-scope": "^5.0.0", "eslint-scope": "^5.0.0",
"eslint-utils": "^1.4.3", "eslint-utils": "^2.0.0",
"eslint-visitor-keys": "^1.1.0", "eslint-visitor-keys": "^1.1.0",
"espree": "^6.1.2", "espree": "^7.0.0",
"esquery": "^1.0.1", "esquery": "^1.2.0",
"esutils": "^2.0.2", "esutils": "^2.0.2",
"file-entry-cache": "^5.0.1", "file-entry-cache": "^5.0.1",
"functional-red-black-tree": "^1.0.1", "functional-red-black-tree": "^1.0.1",
@@ -5147,118 +5147,191 @@
"is-glob": "^4.0.0", "is-glob": "^4.0.0",
"js-yaml": "^3.13.1", "js-yaml": "^3.13.1",
"json-stable-stringify-without-jsonify": "^1.0.1", "json-stable-stringify-without-jsonify": "^1.0.1",
"levn": "^0.3.0", "levn": "^0.4.1",
"lodash": "^4.17.14", "lodash": "^4.17.14",
"minimatch": "^3.0.4", "minimatch": "^3.0.4",
"mkdirp": "^0.5.1",
"natural-compare": "^1.4.0", "natural-compare": "^1.4.0",
"optionator": "^0.8.3", "optionator": "^0.9.1",
"progress": "^2.0.0", "progress": "^2.0.0",
"regexpp": "^2.0.1", "regexpp": "^3.1.0",
"semver": "^6.1.2", "semver": "^7.2.1",
"strip-ansi": "^5.2.0", "strip-ansi": "^6.0.0",
"strip-json-comments": "^3.0.1", "strip-json-comments": "^3.1.0",
"table": "^5.2.3", "table": "^5.2.3",
"text-table": "^0.2.0", "text-table": "^0.2.0",
"v8-compile-cache": "^2.0.3" "v8-compile-cache": "^2.0.3"
}, },
"dependencies": { "dependencies": {
"cross-spawn": { "acorn-jsx": {
"version": "6.0.5", "version": "5.2.0",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.2.0.tgz",
"integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", "integrity": "sha512-HiUX/+K2YpkpJ+SzBffkM/AQ2YE03S0U1kjTLVpoJdhZMOWy8qvXVN9JdLqv2QsaQ6MPYQIuNmwD8zOiYUofLQ==",
"dev": true
},
"ansi-regex": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz",
"integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==",
"dev": true
},
"ansi-styles": {
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
"integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
"dev": true, "dev": true,
"requires": { "requires": {
"nice-try": "^1.0.4", "@types/color-name": "^1.1.1",
"path-key": "^2.0.1", "color-convert": "^2.0.1"
"semver": "^5.5.0", }
"shebang-command": "^1.2.0", },
"which": "^1.2.9" "chalk": {
}, "version": "4.0.0",
"dependencies": { "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.0.0.tgz",
"semver": { "integrity": "sha512-N9oWFcegS0sFr9oh1oz2d7Npos6vNoWW9HvtCg5N1KRFpUhaAhvTv5Y58g880fZaEYSNm3qDz8SU1UrGvp+n7A==",
"version": "5.7.1", "dev": true,
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", "requires": {
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", "ansi-styles": "^4.1.0",
"dev": true "supports-color": "^7.1.0"
} }
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true
},
"eslint-utils": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.0.0.tgz",
"integrity": "sha512-0HCPuJv+7Wv1bACm8y5/ECVfYdfsAm9xmVb7saeFlxjPYALefjhbYoCkBjPdPzGH8wWyTpAez82Fh3VKYEZ8OA==",
"dev": true,
"requires": {
"eslint-visitor-keys": "^1.1.0"
} }
}, },
"espree": { "espree": {
"version": "6.1.2", "version": "7.0.0",
"resolved": "https://registry.npmjs.org/espree/-/espree-6.1.2.tgz", "resolved": "https://registry.npmjs.org/espree/-/espree-7.0.0.tgz",
"integrity": "sha512-2iUPuuPP+yW1PZaMSDM9eyVf8D5P0Hi8h83YtZ5bPc/zHYjII5khoixIUTMO794NOY8F/ThF1Bo8ncZILarUTA==", "integrity": "sha512-/r2XEx5Mw4pgKdyb7GNLQNsu++asx/dltf/CI8RFi9oGHxmQFgvLbc5Op4U6i8Oaj+kdslhJtVlEZeAqH5qOTw==",
"dev": true, "dev": true,
"requires": { "requires": {
"acorn": "^7.1.0", "acorn": "^7.1.1",
"acorn-jsx": "^5.1.0", "acorn-jsx": "^5.2.0",
"eslint-visitor-keys": "^1.1.0" "eslint-visitor-keys": "^1.1.0"
} }
}, },
"glob-parent": { "glob-parent": {
"version": "5.1.0", "version": "5.1.1",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.0.tgz", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz",
"integrity": "sha512-qjtRgnIVmOfnKUE3NJAQEdk+lKrxfw8t5ke7SXtfMTHcjsBfOfWXCQfdb30zfDoZQ2IRSIiidmjtbHZPZ++Ihw==", "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"is-glob": "^4.0.1" "is-glob": "^4.0.1"
} }
}, },
"globals": { "globals": {
"version": "12.3.0", "version": "12.4.0",
"resolved": "https://registry.npmjs.org/globals/-/globals-12.3.0.tgz", "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz",
"integrity": "sha512-wAfjdLgFsPZsklLJvOBUBmzYE8/CwhEqSBEMRXA3qxIiNtyqvjYurAtIfDh6chlEPUfmTY3MnZh5Hfh4q0UlIw==", "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==",
"dev": true, "dev": true,
"requires": { "requires": {
"type-fest": "^0.8.1" "type-fest": "^0.8.1"
} }
}, },
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true
},
"ignore": { "ignore": {
"version": "4.0.6", "version": "4.0.6",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz",
"integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==",
"dev": true "dev": true
}, },
"path-key": { "levn": {
"version": "2.0.1", "version": "0.4.1",
"resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
"integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
"dev": true,
"requires": {
"prelude-ls": "^1.2.1",
"type-check": "~0.4.0"
}
},
"optionator": {
"version": "0.9.1",
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz",
"integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==",
"dev": true,
"requires": {
"deep-is": "^0.1.3",
"fast-levenshtein": "^2.0.6",
"levn": "^0.4.1",
"prelude-ls": "^1.2.1",
"type-check": "^0.4.0",
"word-wrap": "^1.2.3"
}
},
"prelude-ls": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
"integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
"dev": true
},
"regexpp": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz",
"integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==",
"dev": true "dev": true
}, },
"semver": { "semver": {
"version": "6.3.0", "version": "7.3.2",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz",
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==",
"dev": true "dev": true
}, },
"shebang-command": { "strip-ansi": {
"version": "1.2.0", "version": "6.0.0",
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",
"integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
"dev": true, "dev": true,
"requires": { "requires": {
"shebang-regex": "^1.0.0" "ansi-regex": "^5.0.0"
} }
}, },
"shebang-regex": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
"integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=",
"dev": true
},
"strip-json-comments": { "strip-json-comments": {
"version": "3.0.1", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.0.1.tgz", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.0.tgz",
"integrity": "sha512-VTyMAUfdm047mwKl+u79WIdrZxtFtn+nBxHeb844XBQ9uMNTuTHdx2hc5RiAJYqwTj3wc/xe5HLSdJSkJ+WfZw==", "integrity": "sha512-e6/d0eBu7gHtdCqFt0xJr642LdToM5/cN4Qb9DbHjVx1CP5RyeM+zH7pbecEmDv/lBqb0QH+6Uqq75rxFPkM0w==",
"dev": true "dev": true
}, },
"which": { "supports-color": {
"version": "1.3.1", "version": "7.1.0",
"resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
"integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==",
"dev": true, "dev": true,
"requires": { "requires": {
"isexe": "^2.0.0" "has-flag": "^4.0.0"
}
},
"type-check": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
"integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
"dev": true,
"requires": {
"prelude-ls": "^1.2.1"
} }
} }
} }
@@ -5553,9 +5626,9 @@
} }
}, },
"eslint-plugin-jsdoc": { "eslint-plugin-jsdoc": {
"version": "24.0.5", "version": "25.0.1",
"resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-24.0.5.tgz", "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-25.0.1.tgz",
"integrity": "sha512-H//NC6Wsxt9J1RbV64nvD38mlT1NbGIpHclet5m//Belz5uLlqcE126E1Thnu87fVQSF8gElgQWUjGGtQSNyfQ==", "integrity": "sha512-lLazG3UDlAVZwXs8C+E8OnavzLxXpjx0UtlzhKcXZ5gnzGdxQ9hL3Tab98gJuh2QNZJPBk2jH/BZG2KXjSEkIw==",
"dev": true, "dev": true,
"requires": { "requires": {
"comment-parser": "^0.7.4", "comment-parser": "^0.7.4",
@@ -6029,9 +6102,9 @@
} }
}, },
"execa": { "execa": {
"version": "4.0.0", "version": "4.0.1",
"resolved": "https://registry.npmjs.org/execa/-/execa-4.0.0.tgz", "resolved": "https://registry.npmjs.org/execa/-/execa-4.0.1.tgz",
"integrity": "sha512-JbDUxwV3BoT5ZVXQrSVbAiaXhXUkIwvbhPIwZ0N13kX+5yCzOhUNdocxB/UQRuYOHRYYwAxKYwJYc0T4D12pDA==", "integrity": "sha512-SCjM/zlBdOK8Q5TIjOn6iEHZaPHFsMoTxXQ2nvUvtPnuohz3H2dIozSg+etNR98dGoYUp2ENSKLL/XaMmbxVgw==",
"dev": true, "dev": true,
"requires": { "requires": {
"cross-spawn": "^7.0.0", "cross-spawn": "^7.0.0",
@@ -6551,9 +6624,9 @@
} }
}, },
"flatted": { "flatted": {
"version": "2.0.1", "version": "2.0.2",
"resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.1.tgz", "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.2.tgz",
"integrity": "sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg==", "integrity": "sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==",
"dev": true "dev": true
}, },
"for-in": { "for-in": {
@@ -8939,9 +9012,9 @@
} }
}, },
"license-badger": { "license-badger": {
"version": "0.15.0", "version": "0.16.0",
"resolved": "https://registry.npmjs.org/license-badger/-/license-badger-0.15.0.tgz", "resolved": "https://registry.npmjs.org/license-badger/-/license-badger-0.16.0.tgz",
"integrity": "sha512-hRvKtS6ob9k08lVtorZfqd2jFeasVQ+W8Q3D4kcTJS+EKEVPl+o47vIQc4AiWYXz5YIvKNebz1ZUW4H7bTFmbQ==", "integrity": "sha512-EIpzOr6PEAHENrxQGaJ2b77Ml2b6m7qXbGLJ4kFnMGXVGu7HMDtLMXuj58mr4bAI70NicsW60Gf9uv97x6WyoQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"badge-up": "git+https://github.com/brettz9/badge-up.git#npm-and-testing-with-promise", "badge-up": "git+https://github.com/brettz9/badge-up.git#npm-and-testing-with-promise",
@@ -8950,19 +9023,6 @@
"licensee": "git+https://github.com/brettz9/licensee.js.git#filterPackages-and-error-aborting", "licensee": "git+https://github.com/brettz9/licensee.js.git#filterPackages-and-error-aborting",
"npm-consider": "git+https://github.com/brettz9/npm-consider.git#fixes", "npm-consider": "git+https://github.com/brettz9/npm-consider.git#fixes",
"spdx-expression-parse": "^3.0.0" "spdx-expression-parse": "^3.0.0"
},
"dependencies": {
"command-line-basics": {
"version": "0.8.0",
"resolved": "https://registry.npmjs.org/command-line-basics/-/command-line-basics-0.8.0.tgz",
"integrity": "sha512-D/GqMaWILtpkLo+IZfz6ngWkxI2Tv3Edu7zqmSsSV+vB8eC/Z1RKLObVS6tz//D5/rNFfLfBTzEpnVOLVo9RXw==",
"dev": true,
"requires": {
"command-line-args": "^5.1.1",
"command-line-usage": "^6.1.0",
"update-notifier": "^4.1.0"
}
}
} }
}, },
"licensee": { "licensee": {
@@ -10024,9 +10084,9 @@
} }
}, },
"mocha-badge-generator": { "mocha-badge-generator": {
"version": "0.6.0", "version": "0.7.0",
"resolved": "https://registry.npmjs.org/mocha-badge-generator/-/mocha-badge-generator-0.6.0.tgz", "resolved": "https://registry.npmjs.org/mocha-badge-generator/-/mocha-badge-generator-0.7.0.tgz",
"integrity": "sha512-deBtwUCjqii/KJ3BICOJR2Zj+QlZpWkyQ7nq55itIusctZARVJmVO5w3NkEEAYT5H6j3wB71FzTOIYktIp1YOg==", "integrity": "sha512-1lGI16m/Lw2jL2iNcso7I2yACRqytqDKkI3pej+kVJzVN2UttAZ5PhDqSGF4PXhbVbb9WKOb9HIm17ne7PnsqQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"badge-up": "git+https://github.com/brettz9/badge-up.git#npm-and-testing-with-promise", "badge-up": "git+https://github.com/brettz9/badge-up.git#npm-and-testing-with-promise",
@@ -10385,7 +10445,7 @@
"dev": true "dev": true
}, },
"npm-consider": { "npm-consider": {
"version": "git+https://github.com/brettz9/npm-consider.git#0b5df863cef1b83109b99f9625e56d4a1889773d", "version": "git+https://github.com/brettz9/npm-consider.git#73d69210884d64ea2d54850e150ebff4501791ba",
"from": "git+https://github.com/brettz9/npm-consider.git#fixes", "from": "git+https://github.com/brettz9/npm-consider.git#fixes",
"dev": true, "dev": true,
"requires": { "requires": {
@@ -12504,9 +12564,9 @@
} }
}, },
"rollup": { "rollup": {
"version": "2.8.0", "version": "2.8.2",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.8.0.tgz", "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.8.2.tgz",
"integrity": "sha512-hyjpreMA0BTNrO68o4wCtcktwYTK8o1UtauOqsPniwDGzN2PvNaKmwa/RHmjNHJMrt6ItY2C7XjpT7TDf6WmJw==", "integrity": "sha512-LRzMcB8V1M69pSvf6uCbR+W9OPCy5FuxcIwqioWg5RKidrrqKbzjJF9pEGXceaMVkbptNFZgIVJlUokCU0sfng==",
"dev": true, "dev": true,
"requires": { "requires": {
"fsevents": "~2.1.2" "fsevents": "~2.1.2"
@@ -12564,13 +12624,10 @@
} }
}, },
"run-async": { "run-async": {
"version": "2.4.0", "version": "2.4.1",
"resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.0.tgz", "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz",
"integrity": "sha512-xJTbh/d7Lm7SBhc1tNvTpeCHaEzoyxPrqNlvSdMfBTYwaY++UJFyXUOxAtsRUXjlqOfj8luNaR9vjCh4KeV+pg==", "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==",
"dev": true, "dev": true
"requires": {
"is-promise": "^2.1.0"
}
}, },
"run-parallel": { "run-parallel": {
"version": "1.1.9", "version": "1.1.9",

View File

@@ -146,7 +146,7 @@
"@babel/plugin-transform-named-capturing-groups-regex": "^7.8.3", "@babel/plugin-transform-named-capturing-groups-regex": "^7.8.3",
"@babel/preset-env": "^7.9.6", "@babel/preset-env": "^7.9.6",
"@babel/register": "^7.9.0", "@babel/register": "^7.9.0",
"@cypress/code-coverage": "^3.7.0", "@cypress/code-coverage": "^3.7.2",
"@cypress/fiddle": "^1.18.2", "@cypress/fiddle": "^1.18.2",
"@fintechstudios/eslint-plugin-chai-as-promised": "^3.0.2", "@fintechstudios/eslint-plugin-chai-as-promised": "^3.0.2",
"@mysticatea/eslint-plugin": "^13.0.0", "@mysticatea/eslint-plugin": "^13.0.0",
@@ -159,7 +159,7 @@
"cypress-axe": "^0.8.1", "cypress-axe": "^0.8.1",
"cypress-multi-reporters": "^1.2.4", "cypress-multi-reporters": "^1.2.4",
"deparam": "git+https://github.com/brettz9/deparam.git#updates", "deparam": "git+https://github.com/brettz9/deparam.git#updates",
"eslint": "^6.8.0", "eslint": "^7.0.0",
"eslint-config-ash-nazg": "^21.0.0", "eslint-config-ash-nazg": "^21.0.0",
"eslint-config-standard": "^14.1.1", "eslint-config-standard": "^14.1.1",
"eslint-plugin-array-func": "^3.1.5", "eslint-plugin-array-func": "^3.1.5",
@@ -171,7 +171,7 @@
"eslint-plugin-eslint-comments": "^3.1.2", "eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-html": "^6.0.2", "eslint-plugin-html": "^6.0.2",
"eslint-plugin-import": "^2.20.2", "eslint-plugin-import": "^2.20.2",
"eslint-plugin-jsdoc": "^24.0.5", "eslint-plugin-jsdoc": "^25.0.1",
"eslint-plugin-markdown": "^1.0.2", "eslint-plugin-markdown": "^1.0.2",
"eslint-plugin-mocha": "^6.3.0", "eslint-plugin-mocha": "^6.3.0",
"eslint-plugin-mocha-cleanup": "^1.8.0", "eslint-plugin-mocha-cleanup": "^1.8.0",
@@ -186,10 +186,10 @@
"imageoptim-cli": "^3.0.2", "imageoptim-cli": "^3.0.2",
"jamilih": "^0.52.2", "jamilih": "^0.52.2",
"jsdoc": "^3.6.4", "jsdoc": "^3.6.4",
"license-badger": "^0.15.0", "license-badger": "^0.16.0",
"load-stylesheets": "^0.9.0", "load-stylesheets": "^0.9.0",
"mocha": "^7.1.2", "mocha": "^7.1.2",
"mocha-badge-generator": "^0.6.0", "mocha-badge-generator": "^0.7.0",
"mochawesome": "^6.1.1", "mochawesome": "^6.1.1",
"mochawesome-merge": "^4.0.3", "mochawesome-merge": "^4.0.3",
"mochawesome-report-generator": "^5.1.0", "mochawesome-report-generator": "^5.1.0",
@@ -206,7 +206,7 @@
"remark-cli": "^8.0.0", "remark-cli": "^8.0.0",
"remark-lint-ordered-list-marker-value": "^2.0.0", "remark-lint-ordered-list-marker-value": "^2.0.0",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"rollup": "2.8.0", "rollup": "2.8.2",
"rollup-plugin-babel": "^4.4.0", "rollup-plugin-babel": "^4.4.0",
"rollup-plugin-re": "^1.0.7", "rollup-plugin-re": "^1.0.7",
"rollup-plugin-terser": "^5.3.0", "rollup-plugin-terser": "^5.3.0",

View File

@@ -29092,6 +29092,7 @@
/** /**
* Store and retrieve preferences. * Store and retrieve preferences.
* @function module:SVGEditor.pref
* @param {string} key The preference name to be retrieved or set * @param {string} key The preference name to be retrieved or set
* @param {string} [val] The value. If the value supplied is missing or falsey, no change to the preference will * @param {string} [val] The value. If the value supplied is missing or falsey, no change to the preference will
* be made unless `mayBeEmpty` is set. * be made unless `mayBeEmpty` is set.
@@ -29138,6 +29139,7 @@
* storage. This will override URL settings (for security reasons) but * storage. This will override URL settings (for security reasons) but
* not `svgedit-config-iife.js` configuration (unless initial user * not `svgedit-config-iife.js` configuration (unless initial user
* overriding is explicitly permitted there via `allowInitialUserOverride`). * overriding is explicitly permitted there via `allowInitialUserOverride`).
* @function module:SVGEditor.loadContentAndPrefs
* @todo Split `allowInitialUserOverride` into `allowOverrideByURL` and * @todo Split `allowInitialUserOverride` into `allowOverrideByURL` and
* `allowOverrideByUserStorage` so `svgedit-config-iife.js` can disallow some * `allowOverrideByUserStorage` so `svgedit-config-iife.js` can disallow some
* individual items for URL setting but allow for user storage AND/OR * individual items for URL setting but allow for user storage AND/OR
@@ -29184,6 +29186,7 @@
}; };
/** /**
* Allows setting of preferences or configuration (including extensions). * Allows setting of preferences or configuration (including extensions).
* @function module:SVGEditor.setConfig
* @param {module:SVGEditor.Config|module:SVGEditor.Prefs} opts The preferences or configuration (including extensions). See the tutorial on {@tutorial ConfigOptions} for info on config and preferences. * @param {module:SVGEditor.Config|module:SVGEditor.Prefs} opts The preferences or configuration (including extensions). See the tutorial on {@tutorial ConfigOptions} for info on config and preferences.
* @param {PlainObject} [cfgCfg] Describes configuration which applies to the * @param {PlainObject} [cfgCfg] Describes configuration which applies to the
* particular batch of supplied options * particular batch of supplied options
@@ -29328,6 +29331,7 @@
/** /**
* Allows one to override default SVGEdit `open`, `save`, and * Allows one to override default SVGEdit `open`, `save`, and
* `export` editor behaviors. * `export` editor behaviors.
* @function module:SVGEditor.setCustomHandlers
* @param {module:SVGEditor.CustomHandler} opts Extension mechanisms may call `setCustomHandlers` with three functions: `opts.open`, `opts.save`, and `opts.exportImage` * @param {module:SVGEditor.CustomHandler} opts Extension mechanisms may call `setCustomHandlers` with three functions: `opts.open`, `opts.save`, and `opts.exportImage`
* @returns {Promise<void>} * @returns {Promise<void>}
*/ */
@@ -29358,9 +29362,10 @@
}); });
}; };
/** /**
* @param {boolean} arg * @function module:SVGEditor.randomizeIds
* @returns {void} * @param {boolean} arg
*/ * @returns {void}
*/
editor.randomizeIds = function (arg) { editor.randomizeIds = function (arg) {
@@ -29368,6 +29373,7 @@
}; };
/** /**
* Auto-run after a Promise microtask. * Auto-run after a Promise microtask.
* @function module:SVGEditor.init
* @returns {void} * @returns {void}
*/ */
@@ -29533,6 +29539,7 @@
setupCurPrefs(); setupCurPrefs();
/** /**
* Called internally. * Called internally.
* @function module:SVGEditor.setIcon
* @param {string|Element|external:jQuery} elem * @param {string|Element|external:jQuery} elem
* @param {string|external:jQuery} iconId * @param {string|external:jQuery} iconId
* @param {Float} forcedSize Not in use * @param {Float} forcedSize Not in use
@@ -29803,6 +29810,7 @@
}; };
/** /**
* Called internally. * Called internally.
* @function module:SVGEditor.setIconSize
* @param {module:SVGEditor.IconSize} size * @param {module:SVGEditor.IconSize} size
* @returns {void} * @returns {void}
*/ */
@@ -30661,7 +30669,7 @@
* - Removes the `tool_button_current` class from whatever tool currently has it. * - Removes the `tool_button_current` class from whatever tool currently has it.
* - Hides any flyouts. * - Hides any flyouts.
* - Adds the `tool_button_current` class to the button passed in. * - Adds the `tool_button_current` class to the button passed in.
* @function module:SVGEDitor.toolButtonClick * @function module:SVGEditor.toolButtonClick
* @param {string|Element} button The DOM element or string selector representing the toolbar button * @param {string|Element} button The DOM element or string selector representing the toolbar button
* @param {boolean} noHiding Whether not to hide any flyouts * @param {boolean} noHiding Whether not to hide any flyouts
* @returns {boolean} Whether the button was disabled or not * @returns {boolean} Whether the button was disabled or not
@@ -32932,9 +32940,10 @@
} }
}); });
/** /**
* @param {boolean} active * @function module:SVGEditor.setPanning
* @returns {void} * @param {boolean} active
*/ * @returns {void}
*/
editor.setPanning = function (active) { editor.setPanning = function (active) {
svgCanvas.spaceKey = keypan = active; svgCanvas.spaceKey = keypan = active;
@@ -33031,6 +33040,7 @@
*/ */
/** /**
* @function module:SVGEditor.addDropDown
* @param {Element|string} elem DOM Element or selector * @param {Element|string} elem DOM Element or selector
* @param {module:SVGEditor.DropDownCallback} callback Mouseup callback * @param {module:SVGEditor.DropDownCallback} callback Mouseup callback
* @param {boolean} dropUp * @param {boolean} dropUp
@@ -35926,9 +35936,10 @@
return uiStrings$1; return uiStrings$1;
}; };
/** /**
* @returns {Promise<boolean>} Resolves to boolean indicating `true` if there were no changes * @function module:SVGEditor.openPrep
* and `false` after the user confirms. * @returns {boolean|Promise<boolean>} Resolves to boolean indicating `true` if there were no changes
*/ * and `false` after the user confirms.
*/
editor.openPrep = function () { editor.openPrep = function () {
@@ -36338,6 +36349,7 @@
* Queues a callback to be invoked when the editor is ready (or * Queues a callback to be invoked when the editor is ready (or
* to be invoked immediately if it is already ready--i.e., * to be invoked immediately if it is already ready--i.e.,
* if `runCallbacks` has been run). * if `runCallbacks` has been run).
* @function module:SVGEditor.ready
* @param {module:SVGEditor.ReadyCallback} cb Callback to be queued to invoke * @param {module:SVGEditor.ReadyCallback} cb Callback to be queued to invoke
* @returns {Promise<ArbitraryCallbackResult>} Resolves when all callbacks, including the supplied have resolved * @returns {Promise<ArbitraryCallbackResult>} Resolves when all callbacks, including the supplied have resolved
*/ */
@@ -36358,6 +36370,7 @@
}; };
/** /**
* Invokes the callbacks previous set by `svgEditor.ready` * Invokes the callbacks previous set by `svgEditor.ready`
* @function module:SVGEditor.runCallbacks
* @returns {Promise<void>} Resolves to `undefined` if all callbacks succeeded and rejects otherwise * @returns {Promise<void>} Resolves to `undefined` if all callbacks succeeded and rejects otherwise
*/ */
@@ -36408,11 +36421,12 @@
}, _callee20, null, [[0, 5]]); }, _callee20, null, [[0, 5]]);
})); }));
/** /**
* @param {string} str The SVG string to load * @function module:SVGEditor.loadFromString
* @param {PlainObject} [opts={}] * @param {string} str The SVG string to load
* @param {boolean} [opts.noAlert=false] Option to avoid alert to user and instead get rejected promise * @param {PlainObject} [opts={}]
* @returns {Promise<void>} * @param {boolean} [opts.noAlert=false] Option to avoid alert to user and instead get rejected promise
*/ * @returns {Promise<void>}
*/
editor.loadFromString = function (str) { editor.loadFromString = function (str) {
var _ref36 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, var _ref36 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
@@ -36454,6 +36468,7 @@
}; };
/** /**
* Not presently in use. * Not presently in use.
* @function module:SVGEditor.disableUI
* @param {PlainObject} featList * @param {PlainObject} featList
* @returns {void} * @returns {void}
*/ */
@@ -36471,14 +36486,15 @@
*/ */
/** /**
* @param {string} url URL from which to load an SVG string via Ajax * @function module:SVGEditor.loadFromURL
* @param {PlainObject} [opts={}] May contain properties: `cache`, `callback` * @param {string} url URL from which to load an SVG string via Ajax
* @param {boolean} [opts.cache] * @param {PlainObject} [opts={}] May contain properties: `cache`, `callback`
* @param {boolean} [opts.noAlert] * @param {boolean} [opts.cache]
* @returns {Promise<void>} Resolves to `undefined` or rejects upon bad loading of * @param {boolean} [opts.noAlert]
* the SVG (or upon failure to parse the loaded string) when `noAlert` is * @returns {Promise<void>} Resolves to `undefined` or rejects upon bad loading of
* enabled * the SVG (or upon failure to parse the loaded string) when `noAlert` is
*/ * enabled
*/
editor.loadFromURL = function (url) { editor.loadFromURL = function (url) {
@@ -36525,6 +36541,7 @@
}); });
}; };
/** /**
* @function module:SVGEditor.loadFromDataURI
* @param {string} str The Data URI to base64-decode (if relevant) and load * @param {string} str The Data URI to base64-decode (if relevant) and load
* @param {PlainObject} [opts={}] * @param {PlainObject} [opts={}]
* @param {boolean} [opts.noAlert] * @param {boolean} [opts.noAlert]
@@ -36557,6 +36574,7 @@
}); });
}; };
/** /**
* @function module:SVGEditor.addExtension
* @param {string} name Used internally; no need for i18n. * @param {string} name Used internally; no need for i18n.
* @param {module:svgcanvas.ExtensionInitCallback} init Config to be invoked on this module * @param {module:svgcanvas.ExtensionInitCallback} init Config to be invoked on this module
* @param {module:svgcanvas.ExtensionInitArgs} initArgs * @param {module:svgcanvas.ExtensionInitArgs} initArgs