- Update: Underscore copy; build files per Rollup/Babel updates

- npm: Update devDeps (babel, cypress, linting, mocha, rollup related)
This commit is contained in:
Brett Zamir
2020-03-07 17:45:59 +08:00
parent 623a8a715a
commit 231fdb2189
34 changed files with 1129 additions and 2069 deletions

352
dist/index-umd.js vendored
View File

@@ -339,9 +339,7 @@
(function () {
if (!('SVGPathSeg' in window)) {
// Spec: https://www.w3.org/TR/SVG11/single-page.html#paths-InterfaceSVGPathSeg
var _SVGPathSeg =
/*#__PURE__*/
function () {
var _SVGPathSeg = /*#__PURE__*/function () {
function _SVGPathSeg(type, typeAsLetter, owningPathSegList) {
_classCallCheck(this, _SVGPathSeg);
@@ -385,9 +383,7 @@
_SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18;
_SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19;
var _SVGPathSegClosePath =
/*#__PURE__*/
function (_SVGPathSeg2) {
var _SVGPathSegClosePath = /*#__PURE__*/function (_SVGPathSeg2) {
_inherits(_SVGPathSegClosePath, _SVGPathSeg2);
function _SVGPathSegClosePath(owningPathSegList) {
@@ -416,9 +412,7 @@
return _SVGPathSegClosePath;
}(_SVGPathSeg);
var _SVGPathSegMovetoAbs =
/*#__PURE__*/
function (_SVGPathSeg3) {
var _SVGPathSegMovetoAbs = /*#__PURE__*/function (_SVGPathSeg3) {
_inherits(_SVGPathSegMovetoAbs, _SVGPathSeg3);
function _SVGPathSegMovetoAbs(owningPathSegList, x, y) {
@@ -477,9 +471,7 @@
}
});
var _SVGPathSegMovetoRel =
/*#__PURE__*/
function (_SVGPathSeg4) {
var _SVGPathSegMovetoRel = /*#__PURE__*/function (_SVGPathSeg4) {
_inherits(_SVGPathSegMovetoRel, _SVGPathSeg4);
function _SVGPathSegMovetoRel(owningPathSegList, x, y) {
@@ -538,9 +530,7 @@
}
});
var _SVGPathSegLinetoAbs =
/*#__PURE__*/
function (_SVGPathSeg5) {
var _SVGPathSegLinetoAbs = /*#__PURE__*/function (_SVGPathSeg5) {
_inherits(_SVGPathSegLinetoAbs, _SVGPathSeg5);
function _SVGPathSegLinetoAbs(owningPathSegList, x, y) {
@@ -599,9 +589,7 @@
}
});
var _SVGPathSegLinetoRel =
/*#__PURE__*/
function (_SVGPathSeg6) {
var _SVGPathSegLinetoRel = /*#__PURE__*/function (_SVGPathSeg6) {
_inherits(_SVGPathSegLinetoRel, _SVGPathSeg6);
function _SVGPathSegLinetoRel(owningPathSegList, x, y) {
@@ -660,9 +648,7 @@
}
});
var _SVGPathSegCurvetoCubicAbs =
/*#__PURE__*/
function (_SVGPathSeg7) {
var _SVGPathSegCurvetoCubicAbs = /*#__PURE__*/function (_SVGPathSeg7) {
_inherits(_SVGPathSegCurvetoCubicAbs, _SVGPathSeg7);
function _SVGPathSegCurvetoCubicAbs(owningPathSegList, x, y, x1, y1, x2, y2) {
@@ -769,9 +755,7 @@
}
});
var _SVGPathSegCurvetoCubicRel =
/*#__PURE__*/
function (_SVGPathSeg8) {
var _SVGPathSegCurvetoCubicRel = /*#__PURE__*/function (_SVGPathSeg8) {
_inherits(_SVGPathSegCurvetoCubicRel, _SVGPathSeg8);
function _SVGPathSegCurvetoCubicRel(owningPathSegList, x, y, x1, y1, x2, y2) {
@@ -878,9 +862,7 @@
}
});
var _SVGPathSegCurvetoQuadraticAbs =
/*#__PURE__*/
function (_SVGPathSeg9) {
var _SVGPathSegCurvetoQuadraticAbs = /*#__PURE__*/function (_SVGPathSeg9) {
_inherits(_SVGPathSegCurvetoQuadraticAbs, _SVGPathSeg9);
function _SVGPathSegCurvetoQuadraticAbs(owningPathSegList, x, y, x1, y1) {
@@ -963,9 +945,7 @@
}
});
var _SVGPathSegCurvetoQuadraticRel =
/*#__PURE__*/
function (_SVGPathSeg10) {
var _SVGPathSegCurvetoQuadraticRel = /*#__PURE__*/function (_SVGPathSeg10) {
_inherits(_SVGPathSegCurvetoQuadraticRel, _SVGPathSeg10);
function _SVGPathSegCurvetoQuadraticRel(owningPathSegList, x, y, x1, y1) {
@@ -1048,9 +1028,7 @@
}
});
var _SVGPathSegArcAbs =
/*#__PURE__*/
function (_SVGPathSeg11) {
var _SVGPathSegArcAbs = /*#__PURE__*/function (_SVGPathSeg11) {
_inherits(_SVGPathSegArcAbs, _SVGPathSeg11);
function _SVGPathSegArcAbs(owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
@@ -1169,9 +1147,7 @@
}
});
var _SVGPathSegArcRel =
/*#__PURE__*/
function (_SVGPathSeg12) {
var _SVGPathSegArcRel = /*#__PURE__*/function (_SVGPathSeg12) {
_inherits(_SVGPathSegArcRel, _SVGPathSeg12);
function _SVGPathSegArcRel(owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
@@ -1290,9 +1266,7 @@
}
});
var _SVGPathSegLinetoHorizontalAbs =
/*#__PURE__*/
function (_SVGPathSeg13) {
var _SVGPathSegLinetoHorizontalAbs = /*#__PURE__*/function (_SVGPathSeg13) {
_inherits(_SVGPathSegLinetoHorizontalAbs, _SVGPathSeg13);
function _SVGPathSegLinetoHorizontalAbs(owningPathSegList, x) {
@@ -1337,9 +1311,7 @@
enumerable: true
});
var _SVGPathSegLinetoHorizontalRel =
/*#__PURE__*/
function (_SVGPathSeg14) {
var _SVGPathSegLinetoHorizontalRel = /*#__PURE__*/function (_SVGPathSeg14) {
_inherits(_SVGPathSegLinetoHorizontalRel, _SVGPathSeg14);
function _SVGPathSegLinetoHorizontalRel(owningPathSegList, x) {
@@ -1384,9 +1356,7 @@
enumerable: true
});
var _SVGPathSegLinetoVerticalAbs =
/*#__PURE__*/
function (_SVGPathSeg15) {
var _SVGPathSegLinetoVerticalAbs = /*#__PURE__*/function (_SVGPathSeg15) {
_inherits(_SVGPathSegLinetoVerticalAbs, _SVGPathSeg15);
function _SVGPathSegLinetoVerticalAbs(owningPathSegList, y) {
@@ -1431,9 +1401,7 @@
enumerable: true
});
var _SVGPathSegLinetoVerticalRel =
/*#__PURE__*/
function (_SVGPathSeg16) {
var _SVGPathSegLinetoVerticalRel = /*#__PURE__*/function (_SVGPathSeg16) {
_inherits(_SVGPathSegLinetoVerticalRel, _SVGPathSeg16);
function _SVGPathSegLinetoVerticalRel(owningPathSegList, y) {
@@ -1478,9 +1446,7 @@
enumerable: true
});
var _SVGPathSegCurvetoCubicSmoothAbs =
/*#__PURE__*/
function (_SVGPathSeg17) {
var _SVGPathSegCurvetoCubicSmoothAbs = /*#__PURE__*/function (_SVGPathSeg17) {
_inherits(_SVGPathSegCurvetoCubicSmoothAbs, _SVGPathSeg17);
function _SVGPathSegCurvetoCubicSmoothAbs(owningPathSegList, x, y, x2, y2) {
@@ -1563,9 +1529,7 @@
}
});
var _SVGPathSegCurvetoCubicSmoothRel =
/*#__PURE__*/
function (_SVGPathSeg18) {
var _SVGPathSegCurvetoCubicSmoothRel = /*#__PURE__*/function (_SVGPathSeg18) {
_inherits(_SVGPathSegCurvetoCubicSmoothRel, _SVGPathSeg18);
function _SVGPathSegCurvetoCubicSmoothRel(owningPathSegList, x, y, x2, y2) {
@@ -1648,9 +1612,7 @@
}
});
var _SVGPathSegCurvetoQuadraticSmoothAbs =
/*#__PURE__*/
function (_SVGPathSeg19) {
var _SVGPathSegCurvetoQuadraticSmoothAbs = /*#__PURE__*/function (_SVGPathSeg19) {
_inherits(_SVGPathSegCurvetoQuadraticSmoothAbs, _SVGPathSeg19);
function _SVGPathSegCurvetoQuadraticSmoothAbs(owningPathSegList, x, y) {
@@ -1709,9 +1671,7 @@
}
});
var _SVGPathSegCurvetoQuadraticSmoothRel =
/*#__PURE__*/
function (_SVGPathSeg20) {
var _SVGPathSegCurvetoQuadraticSmoothRel = /*#__PURE__*/function (_SVGPathSeg20) {
_inherits(_SVGPathSegCurvetoQuadraticSmoothRel, _SVGPathSeg20);
function _SVGPathSegCurvetoQuadraticSmoothRel(owningPathSegList, x, y) {
@@ -1907,9 +1867,7 @@
if (!('SVGPathSegList' in window) || !('appendItem' in window.SVGPathSegList.prototype)) {
// Spec: https://www.w3.org/TR/SVG11/single-page.html#paths-InterfaceSVGPathSegList
var SVGPathSegList =
/*#__PURE__*/
function () {
var SVGPathSegList = /*#__PURE__*/function () {
function SVGPathSegList(pathElement) {
_classCallCheck(this, SVGPathSegList);
@@ -2093,9 +2051,7 @@
var owningPathSegList = this; // eslint-disable-line consistent-this
var Builder =
/*#__PURE__*/
function () {
var Builder = /*#__PURE__*/function () {
function Builder() {
_classCallCheck(this, Builder);
@@ -2112,9 +2068,7 @@
return Builder;
}();
var Source =
/*#__PURE__*/
function () {
var Source = /*#__PURE__*/function () {
function Source(string) {
_classCallCheck(this, Source);
@@ -3139,9 +3093,7 @@
* @implements {module:SVGTransformList.SVGEditTransformList}
*/
var SVGTransformList =
/*#__PURE__*/
function () {
var SVGTransformList = /*#__PURE__*/function () {
// eslint-disable-line no-shadow
/**
@@ -3777,9 +3729,7 @@
* Base class for commands.
*/
var Command =
/*#__PURE__*/
function () {
var Command = /*#__PURE__*/function () {
function Command() {
_classCallCheck(this, Command);
}
@@ -3873,9 +3823,7 @@
*/
var MoveElementCommand =
/*#__PURE__*/
function (_Command) {
var MoveElementCommand = /*#__PURE__*/function (_Command) {
_inherits(MoveElementCommand, _Command);
/**
@@ -3969,9 +3917,7 @@
* @implements {module:history.HistoryCommand}
*/
var InsertElementCommand =
/*#__PURE__*/
function (_Command2) {
var InsertElementCommand = /*#__PURE__*/function (_Command2) {
_inherits(InsertElementCommand, _Command2);
/**
@@ -4061,9 +4007,7 @@
* @implements {module:history.HistoryCommand}
*/
var RemoveElementCommand =
/*#__PURE__*/
function (_Command3) {
var RemoveElementCommand = /*#__PURE__*/function (_Command3) {
_inherits(RemoveElementCommand, _Command3);
/**
@@ -4175,9 +4119,7 @@
* @implements {module:history.HistoryCommand}
*/
var ChangeElementCommand =
/*#__PURE__*/
function (_Command4) {
var ChangeElementCommand = /*#__PURE__*/function (_Command4) {
_inherits(ChangeElementCommand, _Command4);
/**
@@ -4370,9 +4312,7 @@
* @implements {module:history.HistoryCommand}
*/
var BatchCommand =
/*#__PURE__*/
function (_Command5) {
var BatchCommand = /*#__PURE__*/function (_Command5) {
_inherits(BatchCommand, _Command5);
/**
@@ -4498,9 +4438,7 @@
*
*/
var UndoManager =
/*#__PURE__*/
function () {
var UndoManager = /*#__PURE__*/function () {
/**
* @param {module:history.HistoryEventHandler} historyEventHandler
*/
@@ -5639,9 +5577,7 @@
*
*/
var Segment =
/*#__PURE__*/
function () {
var Segment = /*#__PURE__*/function () {
/**
* @param {Integer} index
* @param {SVGPathSeg} item
@@ -5869,9 +5805,7 @@
*
*/
var Path =
/*#__PURE__*/
function () {
var Path = /*#__PURE__*/function () {
/**
* @param {SVGPathElement} elem
* @throws {Error} If constructed without a path element
@@ -9499,9 +9433,7 @@
*/
function _importSetGlobal() {
_importSetGlobal = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee(url, _ref2) {
_importSetGlobal = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(url, _ref2) {
var glob, returnDefault, modularVersion;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
@@ -9962,9 +9894,7 @@
* @memberof module:layer
*/
var Layer =
/*#__PURE__*/
function () {
var Layer = /*#__PURE__*/function () {
/**
* @param {string} name - Layer name
* @param {SVGGElement|null} group - An existing SVG group element or null.
@@ -10259,9 +10189,7 @@
* @memberof module:history
*/
var HistoryRecordingService =
/*#__PURE__*/
function () {
var HistoryRecordingService = /*#__PURE__*/function () {
/**
* @param {history.UndoManager|null} undoManager - The undo manager.
* A value of `null` is valid for cases where no history recording is required.
@@ -10474,9 +10402,7 @@
*/
var Drawing =
/*#__PURE__*/
function () {
var Drawing = /*#__PURE__*/function () {
/**
* @param {SVGSVGElement} svgElem - The SVG DOM Element that this JS object
* encapsulates. If the svgElem has a se:nonce attribute on it, then
@@ -13143,9 +13069,7 @@
* Private class for DOM element selection boxes.
*/
var Selector =
/*#__PURE__*/
function () {
var Selector = /*#__PURE__*/function () {
/**
* @param {Integer} id - Internally identify the selector
* @param {Element} elem - DOM element associated with this selector
@@ -13392,9 +13316,7 @@
* Manage all selector objects (selection boxes).
*/
var SelectorManager =
/*#__PURE__*/
function () {
var SelectorManager = /*#__PURE__*/function () {
/**
* Sets up properties and calls `initGroup`.
*/
@@ -14867,12 +14789,8 @@
*/
this.addExtension =
/*#__PURE__*/
function () {
var _ref3 = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee(name, extInitFunc, _ref4) {
this.addExtension = /*#__PURE__*/function () {
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(name, extInitFunc, _ref4) {
var jq, importLocale, argObj, extObj;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
@@ -18085,12 +18003,8 @@
* @returns {Promise<module:svgcanvas.ImageExportedResults>} Resolves to {@link module:svgcanvas.ImageExportedResults}
*/
this.rasterExport =
/*#__PURE__*/
function () {
var _ref5 = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee2(imgType, quality, exportWindowName) {
this.rasterExport = /*#__PURE__*/function () {
var _ref5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(imgType, quality, exportWindowName) {
var opts,
type,
mimeType,
@@ -18233,12 +18147,8 @@
*/
this.exportPDF =
/*#__PURE__*/
function () {
var _ref7 = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee3(exportWindowName) {
this.exportPDF = /*#__PURE__*/function () {
var _ref7 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(exportWindowName) {
var outputType,
modularVersion,
res,
@@ -28224,12 +28134,8 @@
* @returns {Promise<module:locale.LangAndData>} Resolves to [`LangAndData`]{@link module:locale.LangAndData}
*/
var readLang =
/*#__PURE__*/
function () {
var _ref3 = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee(langData) {
var readLang = /*#__PURE__*/function () {
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(langData) {
var more, _langData, tools, properties, config, layers, common, ui, opts, ariaLabels;
return regeneratorRuntime.wrap(function _callee$(_context) {
@@ -28479,12 +28385,8 @@
* @returns {Promise<module:locale.LangAndData>} Resolves to result of {@link module:locale.readLang}
*/
var putLocale =
/*#__PURE__*/
function () {
var _ref8 = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee2(givenParam, goodLangs, conf) {
var putLocale = /*#__PURE__*/function () {
var _ref8 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(givenParam, goodLangs, conf) {
var url;
return regeneratorRuntime.wrap(function _callee2$(_context2) {
while (1) {
@@ -29015,9 +28917,7 @@
function _loadSvgString() {
_loadSvgString = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee23(str) {
_loadSvgString = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee23(str) {
var _ref49,
noAlert,
success,
@@ -29073,12 +28973,8 @@
* @param {string} [localeInfo.lang=defaultLang] Defaults to `defaultLang` of {@link module:SVGEditor~getImportLocale}
* @returns {Promise<module:locale.LocaleStrings>} Resolves to {@link module:locale.LocaleStrings}
*/
return (
/*#__PURE__*/
function () {
var _importLocaleDefaulting = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee() {
return (/*#__PURE__*/function () {
var _importLocaleDefaulting = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
var _ref2,
_ref2$name,
name,
@@ -29601,12 +29497,8 @@
*/
var extAndLocaleFunc =
/*#__PURE__*/
function () {
var _ref7 = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee3() {
var extAndLocaleFunc = /*#__PURE__*/function () {
var _ref7 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
var _ref8, langParam, langData, _uiStrings$common, ok, cancel;
return regeneratorRuntime.wrap(function _callee3$(_context3) {
@@ -29633,12 +29525,8 @@
_context3.prev = 10;
_context3.next = 13;
return Promise.all(curConfig.extensions.map(
/*#__PURE__*/
function () {
var _ref9 = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee2(extname) {
return Promise.all(curConfig.extensions.map( /*#__PURE__*/function () {
var _ref9 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(extname) {
var extName, url, imported, _imported$name, _name2, init, importLocale;
return regeneratorRuntime.wrap(function _callee2$(_context2) {
@@ -30241,9 +30129,7 @@
'#tools_bottom label .svg_icon': 18
},
callback: function callback(icons) {
return _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee4() {
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
var tleft, minHeight, size, getStylesheetPriority, stylesheets, idx, _stylesheets;
return regeneratorRuntime.wrap(function _callee4$(_context4) {
@@ -30817,9 +30703,7 @@
function _promptImgURL() {
_promptImgURL = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee18() {
_promptImgURL = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee18() {
var _ref35,
_ref35$cancelDeletes,
cancelDeletes,
@@ -32082,12 +31966,8 @@
* @returns {Promise<void>|void} Resolves to `undefined`
*/
var extAdded =
/*#__PURE__*/
function () {
var _ref16 = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee5(win, ext) {
var extAdded = /*#__PURE__*/function () {
var _ref16 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(win, ext) {
var cbCalled, resizeDone, lang, prepResize, runCallback, btnSelects, svgicons, fallbackObj, altsObj, placementObj, holders;
return regeneratorRuntime.wrap(function _callee5$(_context5) {
while (1) {
@@ -32778,11 +32658,7 @@
}); // fired when user wants to move elements to another layer
var promptMoveLayerOnce = false;
$$b('#selLayerNames').change(
/*#__PURE__*/
_asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee6() {
$$b('#selLayerNames').change( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
var destLayer, confirmStr, moveToLayer, ok;
return regeneratorRuntime.wrap(function _callee6$(_context6) {
while (1) {
@@ -33525,12 +33401,8 @@
*/
var makeHyperlink =
/*#__PURE__*/
function () {
var _ref20 = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee7() {
var makeHyperlink = /*#__PURE__*/function () {
var _ref20 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
var url;
return regeneratorRuntime.wrap(function _callee7$(_context7) {
while (1) {
@@ -33680,12 +33552,8 @@
*/
var clickClear =
/*#__PURE__*/
function () {
var _ref21 = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee8() {
var clickClear = /*#__PURE__*/function () {
var _ref21 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
var _curConfig$dimensions, x, y, ok;
return regeneratorRuntime.wrap(function _callee8$(_context8) {
@@ -33772,12 +33640,8 @@
* @returns {Promise<void>} Resolves to `undefined`
*/
var clickExport =
/*#__PURE__*/
function () {
var _ref22 = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee9() {
var clickExport = /*#__PURE__*/function () {
var _ref22 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
var imgType, exportWindowName, openExportWindow, chrome, quality;
return regeneratorRuntime.wrap(function _callee9$(_context9) {
while (1) {
@@ -34073,12 +33937,8 @@
*/
var saveSourceEditor =
/*#__PURE__*/
function () {
var _ref24 = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee10() {
var saveSourceEditor = /*#__PURE__*/function () {
var _ref24 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
var saveChanges, ok;
return regeneratorRuntime.wrap(function _callee10$(_context10) {
while (1) {
@@ -34218,11 +34078,7 @@
*/
var savePreferences = editor.savePreferences =
/*#__PURE__*/
_asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee11() {
var savePreferences = editor.savePreferences = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
var color, lang, _ref26, langParam, langData;
return regeneratorRuntime.wrap(function _callee11$(_context11) {
@@ -34283,12 +34139,8 @@
* @returns {Promise<void>} Resolves to `undefined`
*/
var cancelOverlays =
/*#__PURE__*/
function () {
var _ref27 = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee12() {
var cancelOverlays = /*#__PURE__*/function () {
var _ref27 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {
var ok;
return regeneratorRuntime.wrap(function _callee12$(_context12) {
while (1) {
@@ -34505,9 +34357,7 @@
*/
var PaintBox =
/*#__PURE__*/
function () {
var PaintBox = /*#__PURE__*/function () {
/**
* @param {string|Element|external:jQuery} container
* @param {"fill"} type
@@ -34750,11 +34600,7 @@
$$b(this).removeClass('push_button_pressed').addClass('push_button');
}); // ask for a layer name
$$b('#layer_new').click(
/*#__PURE__*/
_asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee13() {
$$b('#layer_new').click( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13() {
var uniqName, i, newName;
return regeneratorRuntime.wrap(function _callee13$(_context13) {
while (1) {
@@ -34833,9 +34679,7 @@
function _cloneLayer() {
_cloneLayer = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee19() {
_cloneLayer = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee19() {
var name, newName;
return regeneratorRuntime.wrap(function _callee19$(_context19) {
while (1) {
@@ -34913,11 +34757,7 @@
$$b('#layer_down').click(function () {
moveLayer(1);
});
$$b('#layer_rename').click(
/*#__PURE__*/
_asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee14() {
$$b('#layer_rename').click( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14() {
var oldName, newName;
return regeneratorRuntime.wrap(function _callee14$(_context14) {
while (1) {
@@ -36172,12 +36012,8 @@
workarea[0].addEventListener('dragover', onDragOver);
workarea[0].addEventListener('dragleave', onDragLeave);
workarea[0].addEventListener('drop', importImage);
var open = $$b('<input type="file">').change(
/*#__PURE__*/
function () {
var _ref31 = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee16(e) {
var open = $$b('<input type="file">').change( /*#__PURE__*/function () {
var _ref31 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16(e) {
var ok, reader;
return regeneratorRuntime.wrap(function _callee16$(_context16) {
while (1) {
@@ -36203,12 +36039,8 @@
$$b.process_cancel(uiStrings$1.notification.loadingImage);
reader = new FileReader();
reader.onloadend =
/*#__PURE__*/
function () {
var _ref32 = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee15(_ref33) {
reader.onloadend = /*#__PURE__*/function () {
var _ref32 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee15(_ref33) {
var target;
return regeneratorRuntime.wrap(function _callee15$(_context15) {
while (1) {
@@ -36274,12 +36106,8 @@
* @returns {Promise<void>} A Promise which resolves to `undefined`
*/
var setLang = editor.setLang =
/*#__PURE__*/
function () {
var _ref34 = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee17(lang, allStrings) {
var setLang = editor.setLang = /*#__PURE__*/function () {
var _ref34 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee17(lang, allStrings) {
var oldLayerName, renameLayer, elems;
return regeneratorRuntime.wrap(function _callee17$(_context17) {
while (1) {
@@ -36468,11 +36296,7 @@
*/
editor.runCallbacks =
/*#__PURE__*/
_asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee20() {
editor.runCallbacks = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee20() {
return regeneratorRuntime.wrap(function _callee20$(_context20) {
while (1) {
switch (_context20.prev = _context20.next) {
@@ -36528,11 +36352,7 @@
var _ref43 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
noAlert = _ref43.noAlert;
return editor.ready(
/*#__PURE__*/
_asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee21() {
return editor.ready( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee21() {
return regeneratorRuntime.wrap(function _callee21$(_context21) {
while (1) {
switch (_context21.prev = _context21.next) {
@@ -36727,9 +36547,7 @@
window.addEventListener('message', messageListener); // Run init once DOM is loaded
// jQuery(editor.init);
_asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee22() {
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee22() {
return regeneratorRuntime.wrap(function _callee22$(_context22) {
while (1) {
switch (_context22.prev = _context22.next) {