- Update: Underscore copy; build files per Rollup/Babel updates
- npm: Update devDeps (babel, cypress, linting, mocha, rollup related)
This commit is contained in:
224
dist/canvg.js
vendored
224
dist/canvg.js
vendored
@@ -441,9 +441,7 @@ var canvg = (function (exports) {
|
||||
* A class to parse color values.
|
||||
*/
|
||||
|
||||
var RGBColor =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var RGBColor = /*#__PURE__*/function () {
|
||||
/**
|
||||
* @param {string} colorString
|
||||
*/
|
||||
@@ -1122,9 +1120,7 @@ var canvg = (function (exports) {
|
||||
mathematical: 'alphabetic'
|
||||
};
|
||||
|
||||
svg.Property =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
svg.Property = /*#__PURE__*/function () {
|
||||
function Property(name, value) {
|
||||
_classCallCheck(this, Property);
|
||||
|
||||
@@ -1379,9 +1375,7 @@ var canvg = (function (exports) {
|
||||
});
|
||||
};
|
||||
|
||||
svg.Point =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
svg.Point = /*#__PURE__*/function () {
|
||||
function _class(x, y) {
|
||||
_classCallCheck(this, _class);
|
||||
|
||||
@@ -1424,9 +1418,7 @@ var canvg = (function (exports) {
|
||||
}; // bounding box
|
||||
|
||||
|
||||
svg.BoundingBox =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
svg.BoundingBox = /*#__PURE__*/function () {
|
||||
function _class2(x1, y1, x2, y2) {
|
||||
_classCallCheck(this, _class2);
|
||||
|
||||
@@ -1579,9 +1571,7 @@ var canvg = (function (exports) {
|
||||
}(); // transforms
|
||||
|
||||
|
||||
svg.Transform =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
svg.Transform = /*#__PURE__*/function () {
|
||||
function _class3(v) {
|
||||
var _this6 = this;
|
||||
|
||||
@@ -1665,9 +1655,7 @@ var canvg = (function (exports) {
|
||||
}
|
||||
};
|
||||
Object.assign(this.Type, {
|
||||
SkewBase:
|
||||
/*#__PURE__*/
|
||||
function (_this$Type$matrix) {
|
||||
SkewBase: /*#__PURE__*/function (_this$Type$matrix) {
|
||||
_inherits(SkewBase, _this$Type$matrix);
|
||||
|
||||
function SkewBase(s) {
|
||||
@@ -1684,9 +1672,7 @@ var canvg = (function (exports) {
|
||||
}(this.Type.matrix)
|
||||
});
|
||||
Object.assign(this.Type, {
|
||||
skewX:
|
||||
/*#__PURE__*/
|
||||
function (_this$Type$SkewBase) {
|
||||
skewX: /*#__PURE__*/function (_this$Type$SkewBase) {
|
||||
_inherits(skewX, _this$Type$SkewBase);
|
||||
|
||||
function skewX(s) {
|
||||
@@ -1701,9 +1687,7 @@ var canvg = (function (exports) {
|
||||
|
||||
return skewX;
|
||||
}(this.Type.SkewBase),
|
||||
skewY:
|
||||
/*#__PURE__*/
|
||||
function (_this$Type$SkewBase2) {
|
||||
skewY: /*#__PURE__*/function (_this$Type$SkewBase2) {
|
||||
_inherits(skewY, _this$Type$SkewBase2);
|
||||
|
||||
function skewY(s) {
|
||||
@@ -1802,9 +1786,7 @@ var canvg = (function (exports) {
|
||||
svg.Element = {};
|
||||
svg.EmptyProperty = new svg.Property('EMPTY', '');
|
||||
|
||||
svg.Element.ElementBase =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
svg.Element.ElementBase = /*#__PURE__*/function () {
|
||||
function _class4(node) {
|
||||
var _this7 = this;
|
||||
|
||||
@@ -2044,9 +2026,7 @@ var canvg = (function (exports) {
|
||||
return _class4;
|
||||
}();
|
||||
|
||||
svg.Element.RenderedElementBase =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB) {
|
||||
svg.Element.RenderedElementBase = /*#__PURE__*/function (_svg$Element$ElementB) {
|
||||
_inherits(_class5, _svg$Element$ElementB);
|
||||
|
||||
function _class5() {
|
||||
@@ -2151,9 +2131,7 @@ var canvg = (function (exports) {
|
||||
return _class5;
|
||||
}(svg.Element.ElementBase);
|
||||
|
||||
svg.Element.PathElementBase =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered) {
|
||||
svg.Element.PathElementBase = /*#__PURE__*/function (_svg$Element$Rendered) {
|
||||
_inherits(_class6, _svg$Element$Rendered);
|
||||
|
||||
function _class6() {
|
||||
@@ -2222,9 +2200,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.RenderedElementBase); // svg element
|
||||
|
||||
|
||||
svg.Element.svg =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered2) {
|
||||
svg.Element.svg = /*#__PURE__*/function (_svg$Element$Rendered2) {
|
||||
_inherits(_class7, _svg$Element$Rendered2);
|
||||
|
||||
function _class7() {
|
||||
@@ -2305,9 +2281,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.RenderedElementBase); // rect element
|
||||
|
||||
|
||||
svg.Element.rect =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$PathElem) {
|
||||
svg.Element.rect = /*#__PURE__*/function (_svg$Element$PathElem) {
|
||||
_inherits(_class8, _svg$Element$PathElem);
|
||||
|
||||
function _class8() {
|
||||
@@ -2352,9 +2326,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.PathElementBase); // circle element
|
||||
|
||||
|
||||
svg.Element.circle =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$PathElem2) {
|
||||
svg.Element.circle = /*#__PURE__*/function (_svg$Element$PathElem2) {
|
||||
_inherits(_class9, _svg$Element$PathElem2);
|
||||
|
||||
function _class9() {
|
||||
@@ -2386,9 +2358,7 @@ var canvg = (function (exports) {
|
||||
|
||||
var KAPPA = 4 * ((Math.sqrt(2) - 1) / 3);
|
||||
|
||||
svg.Element.ellipse =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$PathElem3) {
|
||||
svg.Element.ellipse = /*#__PURE__*/function (_svg$Element$PathElem3) {
|
||||
_inherits(_class10, _svg$Element$PathElem3);
|
||||
|
||||
function _class10() {
|
||||
@@ -2423,9 +2393,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.PathElementBase); // line element
|
||||
|
||||
|
||||
svg.Element.line =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$PathElem4) {
|
||||
svg.Element.line = /*#__PURE__*/function (_svg$Element$PathElem4) {
|
||||
_inherits(_class11, _svg$Element$PathElem4);
|
||||
|
||||
function _class11() {
|
||||
@@ -2465,9 +2433,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.PathElementBase); // polyline element
|
||||
|
||||
|
||||
svg.Element.polyline =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$PathElem5) {
|
||||
svg.Element.polyline = /*#__PURE__*/function (_svg$Element$PathElem5) {
|
||||
_inherits(_class12, _svg$Element$PathElem5);
|
||||
|
||||
function _class12(node) {
|
||||
@@ -2521,9 +2487,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.PathElementBase); // polygon element
|
||||
|
||||
|
||||
svg.Element.polygon =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$polyline) {
|
||||
svg.Element.polygon = /*#__PURE__*/function (_svg$Element$polyline) {
|
||||
_inherits(_class13, _svg$Element$polyline);
|
||||
|
||||
function _class13() {
|
||||
@@ -2550,9 +2514,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.polyline); // path element
|
||||
|
||||
|
||||
svg.Element.path =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$PathElem6) {
|
||||
svg.Element.path = /*#__PURE__*/function (_svg$Element$PathElem6) {
|
||||
_inherits(_class14, _svg$Element$PathElem6);
|
||||
|
||||
function _class14(node) {
|
||||
@@ -2929,9 +2891,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.PathElementBase); // pattern element
|
||||
|
||||
|
||||
svg.Element.pattern =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB2) {
|
||||
svg.Element.pattern = /*#__PURE__*/function (_svg$Element$ElementB2) {
|
||||
_inherits(_class15, _svg$Element$ElementB2);
|
||||
|
||||
function _class15() {
|
||||
@@ -2980,9 +2940,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.ElementBase); // marker element
|
||||
|
||||
|
||||
svg.Element.marker =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB3) {
|
||||
svg.Element.marker = /*#__PURE__*/function (_svg$Element$ElementB3) {
|
||||
_inherits(_class16, _svg$Element$ElementB3);
|
||||
|
||||
function _class16() {
|
||||
@@ -3020,9 +2978,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.ElementBase); // definitions element
|
||||
|
||||
|
||||
svg.Element.defs =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB4) {
|
||||
svg.Element.defs = /*#__PURE__*/function (_svg$Element$ElementB4) {
|
||||
_inherits(_class17, _svg$Element$ElementB4);
|
||||
|
||||
function _class17() {
|
||||
@@ -3041,9 +2997,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.ElementBase); // base for gradients
|
||||
|
||||
|
||||
svg.Element.GradientBase =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB5) {
|
||||
svg.Element.GradientBase = /*#__PURE__*/function (_svg$Element$ElementB5) {
|
||||
_inherits(_class18, _svg$Element$ElementB5);
|
||||
|
||||
function _class18(node) {
|
||||
@@ -3124,9 +3078,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.ElementBase); // linear gradient element
|
||||
|
||||
|
||||
svg.Element.linearGradient =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Gradient) {
|
||||
svg.Element.linearGradient = /*#__PURE__*/function (_svg$Element$Gradient) {
|
||||
_inherits(_class19, _svg$Element$Gradient);
|
||||
|
||||
function _class19() {
|
||||
@@ -3161,9 +3113,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.GradientBase); // radial gradient element
|
||||
|
||||
|
||||
svg.Element.radialGradient =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Gradient2) {
|
||||
svg.Element.radialGradient = /*#__PURE__*/function (_svg$Element$Gradient2) {
|
||||
_inherits(_class20, _svg$Element$Gradient2);
|
||||
|
||||
function _class20() {
|
||||
@@ -3202,9 +3152,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.GradientBase); // gradient stop element
|
||||
|
||||
|
||||
svg.Element.stop =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB6) {
|
||||
svg.Element.stop = /*#__PURE__*/function (_svg$Element$ElementB6) {
|
||||
_inherits(_class21, _svg$Element$ElementB6);
|
||||
|
||||
function _class21(node) {
|
||||
@@ -3231,9 +3179,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.ElementBase); // animation base element
|
||||
|
||||
|
||||
svg.Element.AnimateBase =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB7) {
|
||||
svg.Element.AnimateBase = /*#__PURE__*/function (_svg$Element$ElementB7) {
|
||||
_inherits(_class22, _svg$Element$ElementB7);
|
||||
|
||||
function _class22(node) {
|
||||
@@ -3348,9 +3294,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.ElementBase); // animate element
|
||||
|
||||
|
||||
svg.Element.animate =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$AnimateB) {
|
||||
svg.Element.animate = /*#__PURE__*/function (_svg$Element$AnimateB) {
|
||||
_inherits(_class23, _svg$Element$AnimateB);
|
||||
|
||||
function _class23() {
|
||||
@@ -3373,9 +3317,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.AnimateBase); // animate color element
|
||||
|
||||
|
||||
svg.Element.animateColor =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$AnimateB2) {
|
||||
svg.Element.animateColor = /*#__PURE__*/function (_svg$Element$AnimateB2) {
|
||||
_inherits(_class24, _svg$Element$AnimateB2);
|
||||
|
||||
function _class24() {
|
||||
@@ -3407,9 +3349,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.AnimateBase); // animate transform element
|
||||
|
||||
|
||||
svg.Element.animateTransform =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$animate) {
|
||||
svg.Element.animateTransform = /*#__PURE__*/function (_svg$Element$animate) {
|
||||
_inherits(_class25, _svg$Element$animate);
|
||||
|
||||
function _class25() {
|
||||
@@ -3437,9 +3377,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.animate); // font element
|
||||
|
||||
|
||||
svg.Element.font =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB8) {
|
||||
svg.Element.font = /*#__PURE__*/function (_svg$Element$ElementB8) {
|
||||
_inherits(_class26, _svg$Element$ElementB8);
|
||||
|
||||
function _class26(node) {
|
||||
@@ -3487,9 +3425,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.ElementBase); // font-face element
|
||||
|
||||
|
||||
svg.Element.fontface =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB9) {
|
||||
svg.Element.fontface = /*#__PURE__*/function (_svg$Element$ElementB9) {
|
||||
_inherits(_class27, _svg$Element$ElementB9);
|
||||
|
||||
function _class27(node) {
|
||||
@@ -3508,9 +3444,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.ElementBase); // missing-glyph element
|
||||
|
||||
|
||||
svg.Element.missingglyph =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$path) {
|
||||
svg.Element.missingglyph = /*#__PURE__*/function (_svg$Element$path) {
|
||||
_inherits(_class28, _svg$Element$path);
|
||||
|
||||
function _class28(node) {
|
||||
@@ -3527,9 +3461,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.path); // glyph element
|
||||
|
||||
|
||||
svg.Element.glyph =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$path2) {
|
||||
svg.Element.glyph = /*#__PURE__*/function (_svg$Element$path2) {
|
||||
_inherits(_class29, _svg$Element$path2);
|
||||
|
||||
function _class29(node) {
|
||||
@@ -3548,9 +3480,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.path); // text element
|
||||
|
||||
|
||||
svg.Element.text =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered3) {
|
||||
svg.Element.text = /*#__PURE__*/function (_svg$Element$Rendered3) {
|
||||
_inherits(_class30, _svg$Element$Rendered3);
|
||||
|
||||
function _class30(node) {
|
||||
@@ -3646,9 +3576,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.RenderedElementBase); // text base
|
||||
|
||||
|
||||
svg.Element.TextElementBase =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered4) {
|
||||
svg.Element.TextElementBase = /*#__PURE__*/function (_svg$Element$Rendered4) {
|
||||
_inherits(_class31, _svg$Element$Rendered4);
|
||||
|
||||
function _class31() {
|
||||
@@ -3772,9 +3700,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.RenderedElementBase); // tspan
|
||||
|
||||
|
||||
svg.Element.tspan =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$TextElem) {
|
||||
svg.Element.tspan = /*#__PURE__*/function (_svg$Element$TextElem) {
|
||||
_inherits(_class32, _svg$Element$TextElem);
|
||||
|
||||
function _class32(node) {
|
||||
@@ -3798,9 +3724,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.TextElementBase); // tref
|
||||
|
||||
|
||||
svg.Element.tref =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$TextElem2) {
|
||||
svg.Element.tref = /*#__PURE__*/function (_svg$Element$TextElem2) {
|
||||
_inherits(_class33, _svg$Element$TextElem2);
|
||||
|
||||
function _class33() {
|
||||
@@ -3822,9 +3746,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.TextElementBase); // a element
|
||||
|
||||
|
||||
svg.Element.a =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$TextElem3) {
|
||||
svg.Element.a = /*#__PURE__*/function (_svg$Element$TextElem3) {
|
||||
_inherits(_class34, _svg$Element$TextElem3);
|
||||
|
||||
function _class34(node) {
|
||||
@@ -3884,9 +3806,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.TextElementBase); // image element
|
||||
|
||||
|
||||
svg.Element.image =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered5) {
|
||||
svg.Element.image = /*#__PURE__*/function (_svg$Element$Rendered5) {
|
||||
_inherits(_class35, _svg$Element$Rendered5);
|
||||
|
||||
function _class35(node) {
|
||||
@@ -3973,9 +3893,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.RenderedElementBase); // group element
|
||||
|
||||
|
||||
svg.Element.g =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered6) {
|
||||
svg.Element.g = /*#__PURE__*/function (_svg$Element$Rendered6) {
|
||||
_inherits(_class36, _svg$Element$Rendered6);
|
||||
|
||||
function _class36() {
|
||||
@@ -3999,9 +3917,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.RenderedElementBase); // symbol element
|
||||
|
||||
|
||||
svg.Element.symbol =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered7) {
|
||||
svg.Element.symbol = /*#__PURE__*/function (_svg$Element$Rendered7) {
|
||||
_inherits(_class37, _svg$Element$Rendered7);
|
||||
|
||||
function _class37() {
|
||||
@@ -4020,9 +3936,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.RenderedElementBase); // style element
|
||||
|
||||
|
||||
svg.Element.style =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB10) {
|
||||
svg.Element.style = /*#__PURE__*/function (_svg$Element$ElementB10) {
|
||||
_inherits(_class38, _svg$Element$ElementB10);
|
||||
|
||||
function _class38(node) {
|
||||
@@ -4100,9 +4014,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.ElementBase); // use element
|
||||
|
||||
|
||||
svg.Element.use =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered8) {
|
||||
svg.Element.use = /*#__PURE__*/function (_svg$Element$Rendered8) {
|
||||
_inherits(_class39, _svg$Element$Rendered8);
|
||||
|
||||
function _class39(node) {
|
||||
@@ -4172,9 +4084,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.RenderedElementBase); // mask element
|
||||
|
||||
|
||||
svg.Element.mask =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB11) {
|
||||
svg.Element.mask = /*#__PURE__*/function (_svg$Element$ElementB11) {
|
||||
_inherits(_class40, _svg$Element$ElementB11);
|
||||
|
||||
function _class40() {
|
||||
@@ -4234,9 +4144,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.ElementBase); // clip element
|
||||
|
||||
|
||||
svg.Element.clipPath =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB12) {
|
||||
svg.Element.clipPath = /*#__PURE__*/function (_svg$Element$ElementB12) {
|
||||
_inherits(_class41, _svg$Element$ElementB12);
|
||||
|
||||
function _class41() {
|
||||
@@ -4276,9 +4184,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.ElementBase); // filters
|
||||
|
||||
|
||||
svg.Element.filter =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB13) {
|
||||
svg.Element.filter = /*#__PURE__*/function (_svg$Element$ElementB13) {
|
||||
_inherits(_class42, _svg$Element$ElementB13);
|
||||
|
||||
function _class42() {
|
||||
@@ -4330,9 +4236,7 @@ var canvg = (function (exports) {
|
||||
return _class42;
|
||||
}(svg.Element.ElementBase);
|
||||
|
||||
svg.Element.feMorphology =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB14) {
|
||||
svg.Element.feMorphology = /*#__PURE__*/function (_svg$Element$ElementB14) {
|
||||
_inherits(_class43, _svg$Element$ElementB14);
|
||||
|
||||
function _class43() {
|
||||
@@ -4350,9 +4254,7 @@ var canvg = (function (exports) {
|
||||
return _class43;
|
||||
}(svg.Element.ElementBase);
|
||||
|
||||
svg.Element.feComposite =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB15) {
|
||||
svg.Element.feComposite = /*#__PURE__*/function (_svg$Element$ElementB15) {
|
||||
_inherits(_class44, _svg$Element$ElementB15);
|
||||
|
||||
function _class44() {
|
||||
@@ -4399,9 +4301,7 @@ var canvg = (function (exports) {
|
||||
img[y * width * 4 + x * 4 + rgba] = val;
|
||||
}
|
||||
|
||||
svg.Element.feColorMatrix =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB16) {
|
||||
svg.Element.feColorMatrix = /*#__PURE__*/function (_svg$Element$ElementB16) {
|
||||
_inherits(_class45, _svg$Element$ElementB16);
|
||||
|
||||
function _class45(node) {
|
||||
@@ -4476,9 +4376,7 @@ var canvg = (function (exports) {
|
||||
return _class45;
|
||||
}(svg.Element.ElementBase);
|
||||
|
||||
svg.Element.feGaussianBlur =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB17) {
|
||||
svg.Element.feGaussianBlur = /*#__PURE__*/function (_svg$Element$ElementB17) {
|
||||
_inherits(_class46, _svg$Element$ElementB17);
|
||||
|
||||
function _class46(node) {
|
||||
@@ -4509,9 +4407,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.ElementBase); // title element, do nothing
|
||||
|
||||
|
||||
svg.Element.title =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB18) {
|
||||
svg.Element.title = /*#__PURE__*/function (_svg$Element$ElementB18) {
|
||||
_inherits(_class47, _svg$Element$ElementB18);
|
||||
|
||||
function _class47(node) {
|
||||
@@ -4524,9 +4420,7 @@ var canvg = (function (exports) {
|
||||
}(svg.Element.ElementBase); // desc element, do nothing
|
||||
|
||||
|
||||
svg.Element.desc =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB19) {
|
||||
svg.Element.desc = /*#__PURE__*/function (_svg$Element$ElementB19) {
|
||||
_inherits(_class48, _svg$Element$ElementB19);
|
||||
|
||||
function _class48(node) {
|
||||
@@ -4538,9 +4432,7 @@ var canvg = (function (exports) {
|
||||
return _class48;
|
||||
}(svg.Element.ElementBase);
|
||||
|
||||
svg.Element.MISSING =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB20) {
|
||||
svg.Element.MISSING = /*#__PURE__*/function (_svg$Element$ElementB20) {
|
||||
_inherits(_class49, _svg$Element$ElementB20);
|
||||
|
||||
function _class49(node) {
|
||||
@@ -4574,12 +4466,8 @@ var canvg = (function (exports) {
|
||||
}; // load from url
|
||||
|
||||
|
||||
svg.load =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _ref12 = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee(ctx, url) {
|
||||
svg.load = /*#__PURE__*/function () {
|
||||
var _ref12 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(ctx, url) {
|
||||
var dom;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
|
||||
8
dist/extensions/ext-arrows.js
vendored
8
dist/extensions/ext-arrows.js
vendored
@@ -50,9 +50,7 @@ var svgEditorExtension_arrows = (function () {
|
||||
init: function init(S) {
|
||||
var _this = this;
|
||||
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee2() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
||||
var strings, svgEditor, svgCanvas, addElem, nonce, $, prefix, selElems, arrowprefix, randomizeIds, setArrowNonce, unsetArrowNonce, pathdata, getLinked, showPanel, resetMarker, addMarker, setArrow, colorChanged, contextTools;
|
||||
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
||||
while (1) {
|
||||
@@ -329,9 +327,7 @@ var svgEditorExtension_arrows = (function () {
|
||||
addLangData: function addLangData(_ref) {
|
||||
var lang = _ref.lang,
|
||||
importLocale = _ref.importLocale;
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var _ref2, langList;
|
||||
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
|
||||
4
dist/extensions/ext-closepath.js
vendored
4
dist/extensions/ext-closepath.js
vendored
@@ -54,9 +54,7 @@ var svgEditorExtension_closepath = (function () {
|
||||
|
||||
var importLocale = _ref.importLocale,
|
||||
$ = _ref.$;
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var strings, svgEditor, selElems, updateButton, showPanel, toggleClosed, buttons;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
|
||||
4
dist/extensions/ext-connector.js
vendored
4
dist/extensions/ext-connector.js
vendored
@@ -52,9 +52,7 @@ var svgEditorExtension_connector = (function () {
|
||||
init: function init(S) {
|
||||
var _this = this;
|
||||
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var svgEditor, svgCanvas, getElem, $, svgroot, importLocale, addElem, selManager, connSel, elData, strings, startX, startY, curLine, startElem, endElem, seNs, svgcontent, started, connections, selElems, getBBintersect, getOffset, showPanel, setPoint, updateLine, findConnectors, updateConnectors, init, buttons;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
|
||||
4
dist/extensions/ext-eyedropper.js
vendored
4
dist/extensions/ext-eyedropper.js
vendored
@@ -50,9 +50,7 @@ var svgEditorExtension_eyedropper = (function () {
|
||||
init: function init(S) {
|
||||
var _this = this;
|
||||
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var strings, svgEditor, $, ChangeElementCommand, svgCanvas, addToHistory, currentStyle, getStyle, buttons;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
|
||||
10
dist/extensions/ext-foreignobject.js
vendored
10
dist/extensions/ext-foreignobject.js
vendored
@@ -50,9 +50,7 @@ var svgEditorExtension_foreignobject = (function () {
|
||||
init: function init(S) {
|
||||
var _this = this;
|
||||
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee2() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
||||
var svgEditor, $, text2xml, NS, importLocale, svgCanvas, svgdoc, strings, properlySourceSizeTextArea, showPanel, toggleSourceButtons, selElems, started, newFO, editingforeign, setForeignString, showForeignEditor, setAttr, buttons, contextTools;
|
||||
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
||||
while (1) {
|
||||
@@ -220,11 +218,7 @@ var svgEditorExtension_foreignobject = (function () {
|
||||
// Create source save/cancel buttons
|
||||
|
||||
/* const save = */
|
||||
$('#tool_source_save').clone().hide().attr('id', 'foreign_save').unbind().appendTo('#tool_source_back').click(
|
||||
/*#__PURE__*/
|
||||
_asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee() {
|
||||
$('#tool_source_save').clone().hide().attr('id', 'foreign_save').unbind().appendTo('#tool_source_back').click( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var ok;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
|
||||
4
dist/extensions/ext-grid.js
vendored
4
dist/extensions/ext-grid.js
vendored
@@ -54,9 +54,7 @@ var svgEditorExtension_grid = (function () {
|
||||
NS = _ref.NS,
|
||||
getTypeMap = _ref.getTypeMap,
|
||||
importLocale = _ref.importLocale;
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var strings, svgEditor, svgCanvas, svgdoc, assignAttributes, hcanvas, canvBG, units, intervals, showGrid, canvasGrid, gridDefs, gridPattern, gridimg, gridBox, updateGrid, gridUpdate, buttons;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
|
||||
4
dist/extensions/ext-helloworld.js
vendored
4
dist/extensions/ext-helloworld.js
vendored
@@ -100,9 +100,7 @@ var svgEditorExtension_helloworld = (function () {
|
||||
|
||||
var $ = _ref.$,
|
||||
importLocale = _ref.importLocale;
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var strings, svgEditor, svgCanvas;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
|
||||
8
dist/extensions/ext-imagelib.js
vendored
8
dist/extensions/ext-imagelib.js
vendored
@@ -70,9 +70,7 @@ var svgEditorExtension_imagelib = (function () {
|
||||
decode64 = _ref.decode64,
|
||||
importLocale = _ref.importLocale,
|
||||
dropXMLInternalSubset = _ref.dropXMLInternalSubset;
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee2() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
||||
var imagelibStrings, modularVersion, svgEditor, uiStrings, svgCanvas, extIconsPath, allowedImageLibOrigins, closeBrowser, importImage, pending, mode, multiArr, transferStopped, preview, submit, onMessage, _onMessage, toggleMulti, showBrowser, buttons;
|
||||
|
||||
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
||||
@@ -194,9 +192,7 @@ var svgEditorExtension_imagelib = (function () {
|
||||
};
|
||||
|
||||
_onMessage = function _ref9() {
|
||||
_onMessage = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee(_ref5) {
|
||||
_onMessage = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(_ref5) {
|
||||
var origin, response, id, type, hasName, hasHref, char1, secondpos, entry, curMeta, svgStr, imgStr, name, message, pre, src, title, xml, ok;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
|
||||
12
dist/extensions/ext-markers.js
vendored
12
dist/extensions/ext-markers.js
vendored
@@ -72,9 +72,7 @@ var svgEditorExtension_markers = (function () {
|
||||
init: function init(S) {
|
||||
var _this = this;
|
||||
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee3() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
||||
var strings, svgEditor, $, svgCanvas, addElem, mtypes, markerPrefix, idPrefix, markerTypes, getLinked, setIcon, selElems, showPanel, addMarker, convertline, setMarker, colorChanged, updateReferences, triggerTextEntry, showTextPrompt, _showTextPrompt, setArrowFromButton, _setArrowFromButton, getTitle, buildButtonList, contextTools;
|
||||
|
||||
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
||||
@@ -141,9 +139,7 @@ var svgEditorExtension_markers = (function () {
|
||||
};
|
||||
|
||||
_setArrowFromButton = function _ref14() {
|
||||
_setArrowFromButton = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee2(ev) {
|
||||
_setArrowFromButton = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(ev) {
|
||||
var parts, pos, val;
|
||||
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
||||
while (1) {
|
||||
@@ -185,9 +181,7 @@ var svgEditorExtension_markers = (function () {
|
||||
};
|
||||
|
||||
_showTextPrompt = function _ref12() {
|
||||
_showTextPrompt = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee(pos) {
|
||||
_showTextPrompt = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(pos) {
|
||||
var def, txt;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
|
||||
8
dist/extensions/ext-mathjax.js
vendored
8
dist/extensions/ext-mathjax.js
vendored
@@ -108,9 +108,7 @@ var svgEditorExtension_mathjax = (function () {
|
||||
|
||||
var $ = _ref.$,
|
||||
importLocale = _ref.importLocale;
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee2() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
||||
var strings, svgEditor, svgCanvas, mathjaxSrcSecure, uiStrings, math, locationX, locationY, mathjaxLoaded, saveMath, buttons;
|
||||
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
||||
while (1) {
|
||||
@@ -226,9 +224,7 @@ var svgEditorExtension_mathjax = (function () {
|
||||
icon: svgEditor.curConfig.extIconsPath + 'mathjax.png',
|
||||
events: {
|
||||
click: function click() {
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
|
||||
4
dist/extensions/ext-panning.js
vendored
4
dist/extensions/ext-panning.js
vendored
@@ -55,9 +55,7 @@ var svgEditorExtension_panning = (function () {
|
||||
var _this = this;
|
||||
|
||||
var importLocale = _ref.importLocale;
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var strings, svgEditor, svgCanvas, buttons;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
|
||||
4
dist/extensions/ext-placemark.js
vendored
4
dist/extensions/ext-placemark.js
vendored
@@ -91,9 +91,7 @@ var svgEditorExtension_placemark = (function () {
|
||||
init: function init(S) {
|
||||
var _this = this;
|
||||
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var svgEditor, svgCanvas, addElem, $, importLocale, selElems, started, newPM, strings, markerTypes, showPanel, getLinked, updateText, updateFont, addMarker, setMarker, colorChanged, updateReferences, setArrowFromButton, getTitle, addMarkerButtons, buttons, contextTools;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
|
||||
4
dist/extensions/ext-polygon.js
vendored
4
dist/extensions/ext-polygon.js
vendored
@@ -49,9 +49,7 @@ var svgEditorExtension_polygon = (function () {
|
||||
init: function init(S) {
|
||||
var _this = this;
|
||||
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var svgEditor, svgCanvas, $, importLocale, editingitex, strings, selElems, started, newFO, showPanel, setAttr, cot, sec, buttons, contextTools;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
|
||||
232
dist/extensions/ext-server_moinsave.js
vendored
232
dist/extensions/ext-server_moinsave.js
vendored
@@ -441,9 +441,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
* A class to parse color values.
|
||||
*/
|
||||
|
||||
var RGBColor =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var RGBColor = /*#__PURE__*/function () {
|
||||
/**
|
||||
* @param {string} colorString
|
||||
*/
|
||||
@@ -1122,9 +1120,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
mathematical: 'alphabetic'
|
||||
};
|
||||
|
||||
svg.Property =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
svg.Property = /*#__PURE__*/function () {
|
||||
function Property(name, value) {
|
||||
_classCallCheck(this, Property);
|
||||
|
||||
@@ -1379,9 +1375,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
});
|
||||
};
|
||||
|
||||
svg.Point =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
svg.Point = /*#__PURE__*/function () {
|
||||
function _class(x, y) {
|
||||
_classCallCheck(this, _class);
|
||||
|
||||
@@ -1424,9 +1418,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}; // bounding box
|
||||
|
||||
|
||||
svg.BoundingBox =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
svg.BoundingBox = /*#__PURE__*/function () {
|
||||
function _class2(x1, y1, x2, y2) {
|
||||
_classCallCheck(this, _class2);
|
||||
|
||||
@@ -1579,9 +1571,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(); // transforms
|
||||
|
||||
|
||||
svg.Transform =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
svg.Transform = /*#__PURE__*/function () {
|
||||
function _class3(v) {
|
||||
var _this6 = this;
|
||||
|
||||
@@ -1665,9 +1655,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}
|
||||
};
|
||||
Object.assign(this.Type, {
|
||||
SkewBase:
|
||||
/*#__PURE__*/
|
||||
function (_this$Type$matrix) {
|
||||
SkewBase: /*#__PURE__*/function (_this$Type$matrix) {
|
||||
_inherits(SkewBase, _this$Type$matrix);
|
||||
|
||||
function SkewBase(s) {
|
||||
@@ -1684,9 +1672,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(this.Type.matrix)
|
||||
});
|
||||
Object.assign(this.Type, {
|
||||
skewX:
|
||||
/*#__PURE__*/
|
||||
function (_this$Type$SkewBase) {
|
||||
skewX: /*#__PURE__*/function (_this$Type$SkewBase) {
|
||||
_inherits(skewX, _this$Type$SkewBase);
|
||||
|
||||
function skewX(s) {
|
||||
@@ -1701,9 +1687,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
|
||||
return skewX;
|
||||
}(this.Type.SkewBase),
|
||||
skewY:
|
||||
/*#__PURE__*/
|
||||
function (_this$Type$SkewBase2) {
|
||||
skewY: /*#__PURE__*/function (_this$Type$SkewBase2) {
|
||||
_inherits(skewY, _this$Type$SkewBase2);
|
||||
|
||||
function skewY(s) {
|
||||
@@ -1802,9 +1786,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element = {};
|
||||
svg.EmptyProperty = new svg.Property('EMPTY', '');
|
||||
|
||||
svg.Element.ElementBase =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
svg.Element.ElementBase = /*#__PURE__*/function () {
|
||||
function _class4(node) {
|
||||
var _this7 = this;
|
||||
|
||||
@@ -2044,9 +2026,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
return _class4;
|
||||
}();
|
||||
|
||||
svg.Element.RenderedElementBase =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB) {
|
||||
svg.Element.RenderedElementBase = /*#__PURE__*/function (_svg$Element$ElementB) {
|
||||
_inherits(_class5, _svg$Element$ElementB);
|
||||
|
||||
function _class5() {
|
||||
@@ -2151,9 +2131,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
return _class5;
|
||||
}(svg.Element.ElementBase);
|
||||
|
||||
svg.Element.PathElementBase =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered) {
|
||||
svg.Element.PathElementBase = /*#__PURE__*/function (_svg$Element$Rendered) {
|
||||
_inherits(_class6, _svg$Element$Rendered);
|
||||
|
||||
function _class6() {
|
||||
@@ -2222,9 +2200,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.RenderedElementBase); // svg element
|
||||
|
||||
|
||||
svg.Element.svg =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered2) {
|
||||
svg.Element.svg = /*#__PURE__*/function (_svg$Element$Rendered2) {
|
||||
_inherits(_class7, _svg$Element$Rendered2);
|
||||
|
||||
function _class7() {
|
||||
@@ -2305,9 +2281,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.RenderedElementBase); // rect element
|
||||
|
||||
|
||||
svg.Element.rect =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$PathElem) {
|
||||
svg.Element.rect = /*#__PURE__*/function (_svg$Element$PathElem) {
|
||||
_inherits(_class8, _svg$Element$PathElem);
|
||||
|
||||
function _class8() {
|
||||
@@ -2352,9 +2326,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.PathElementBase); // circle element
|
||||
|
||||
|
||||
svg.Element.circle =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$PathElem2) {
|
||||
svg.Element.circle = /*#__PURE__*/function (_svg$Element$PathElem2) {
|
||||
_inherits(_class9, _svg$Element$PathElem2);
|
||||
|
||||
function _class9() {
|
||||
@@ -2386,9 +2358,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
|
||||
var KAPPA = 4 * ((Math.sqrt(2) - 1) / 3);
|
||||
|
||||
svg.Element.ellipse =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$PathElem3) {
|
||||
svg.Element.ellipse = /*#__PURE__*/function (_svg$Element$PathElem3) {
|
||||
_inherits(_class10, _svg$Element$PathElem3);
|
||||
|
||||
function _class10() {
|
||||
@@ -2423,9 +2393,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.PathElementBase); // line element
|
||||
|
||||
|
||||
svg.Element.line =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$PathElem4) {
|
||||
svg.Element.line = /*#__PURE__*/function (_svg$Element$PathElem4) {
|
||||
_inherits(_class11, _svg$Element$PathElem4);
|
||||
|
||||
function _class11() {
|
||||
@@ -2465,9 +2433,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.PathElementBase); // polyline element
|
||||
|
||||
|
||||
svg.Element.polyline =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$PathElem5) {
|
||||
svg.Element.polyline = /*#__PURE__*/function (_svg$Element$PathElem5) {
|
||||
_inherits(_class12, _svg$Element$PathElem5);
|
||||
|
||||
function _class12(node) {
|
||||
@@ -2521,9 +2487,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.PathElementBase); // polygon element
|
||||
|
||||
|
||||
svg.Element.polygon =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$polyline) {
|
||||
svg.Element.polygon = /*#__PURE__*/function (_svg$Element$polyline) {
|
||||
_inherits(_class13, _svg$Element$polyline);
|
||||
|
||||
function _class13() {
|
||||
@@ -2550,9 +2514,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.polyline); // path element
|
||||
|
||||
|
||||
svg.Element.path =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$PathElem6) {
|
||||
svg.Element.path = /*#__PURE__*/function (_svg$Element$PathElem6) {
|
||||
_inherits(_class14, _svg$Element$PathElem6);
|
||||
|
||||
function _class14(node) {
|
||||
@@ -2929,9 +2891,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.PathElementBase); // pattern element
|
||||
|
||||
|
||||
svg.Element.pattern =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB2) {
|
||||
svg.Element.pattern = /*#__PURE__*/function (_svg$Element$ElementB2) {
|
||||
_inherits(_class15, _svg$Element$ElementB2);
|
||||
|
||||
function _class15() {
|
||||
@@ -2980,9 +2940,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.ElementBase); // marker element
|
||||
|
||||
|
||||
svg.Element.marker =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB3) {
|
||||
svg.Element.marker = /*#__PURE__*/function (_svg$Element$ElementB3) {
|
||||
_inherits(_class16, _svg$Element$ElementB3);
|
||||
|
||||
function _class16() {
|
||||
@@ -3020,9 +2978,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.ElementBase); // definitions element
|
||||
|
||||
|
||||
svg.Element.defs =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB4) {
|
||||
svg.Element.defs = /*#__PURE__*/function (_svg$Element$ElementB4) {
|
||||
_inherits(_class17, _svg$Element$ElementB4);
|
||||
|
||||
function _class17() {
|
||||
@@ -3041,9 +2997,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.ElementBase); // base for gradients
|
||||
|
||||
|
||||
svg.Element.GradientBase =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB5) {
|
||||
svg.Element.GradientBase = /*#__PURE__*/function (_svg$Element$ElementB5) {
|
||||
_inherits(_class18, _svg$Element$ElementB5);
|
||||
|
||||
function _class18(node) {
|
||||
@@ -3124,9 +3078,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.ElementBase); // linear gradient element
|
||||
|
||||
|
||||
svg.Element.linearGradient =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Gradient) {
|
||||
svg.Element.linearGradient = /*#__PURE__*/function (_svg$Element$Gradient) {
|
||||
_inherits(_class19, _svg$Element$Gradient);
|
||||
|
||||
function _class19() {
|
||||
@@ -3161,9 +3113,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.GradientBase); // radial gradient element
|
||||
|
||||
|
||||
svg.Element.radialGradient =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Gradient2) {
|
||||
svg.Element.radialGradient = /*#__PURE__*/function (_svg$Element$Gradient2) {
|
||||
_inherits(_class20, _svg$Element$Gradient2);
|
||||
|
||||
function _class20() {
|
||||
@@ -3202,9 +3152,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.GradientBase); // gradient stop element
|
||||
|
||||
|
||||
svg.Element.stop =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB6) {
|
||||
svg.Element.stop = /*#__PURE__*/function (_svg$Element$ElementB6) {
|
||||
_inherits(_class21, _svg$Element$ElementB6);
|
||||
|
||||
function _class21(node) {
|
||||
@@ -3231,9 +3179,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.ElementBase); // animation base element
|
||||
|
||||
|
||||
svg.Element.AnimateBase =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB7) {
|
||||
svg.Element.AnimateBase = /*#__PURE__*/function (_svg$Element$ElementB7) {
|
||||
_inherits(_class22, _svg$Element$ElementB7);
|
||||
|
||||
function _class22(node) {
|
||||
@@ -3348,9 +3294,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.ElementBase); // animate element
|
||||
|
||||
|
||||
svg.Element.animate =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$AnimateB) {
|
||||
svg.Element.animate = /*#__PURE__*/function (_svg$Element$AnimateB) {
|
||||
_inherits(_class23, _svg$Element$AnimateB);
|
||||
|
||||
function _class23() {
|
||||
@@ -3373,9 +3317,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.AnimateBase); // animate color element
|
||||
|
||||
|
||||
svg.Element.animateColor =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$AnimateB2) {
|
||||
svg.Element.animateColor = /*#__PURE__*/function (_svg$Element$AnimateB2) {
|
||||
_inherits(_class24, _svg$Element$AnimateB2);
|
||||
|
||||
function _class24() {
|
||||
@@ -3407,9 +3349,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.AnimateBase); // animate transform element
|
||||
|
||||
|
||||
svg.Element.animateTransform =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$animate) {
|
||||
svg.Element.animateTransform = /*#__PURE__*/function (_svg$Element$animate) {
|
||||
_inherits(_class25, _svg$Element$animate);
|
||||
|
||||
function _class25() {
|
||||
@@ -3437,9 +3377,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.animate); // font element
|
||||
|
||||
|
||||
svg.Element.font =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB8) {
|
||||
svg.Element.font = /*#__PURE__*/function (_svg$Element$ElementB8) {
|
||||
_inherits(_class26, _svg$Element$ElementB8);
|
||||
|
||||
function _class26(node) {
|
||||
@@ -3487,9 +3425,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.ElementBase); // font-face element
|
||||
|
||||
|
||||
svg.Element.fontface =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB9) {
|
||||
svg.Element.fontface = /*#__PURE__*/function (_svg$Element$ElementB9) {
|
||||
_inherits(_class27, _svg$Element$ElementB9);
|
||||
|
||||
function _class27(node) {
|
||||
@@ -3508,9 +3444,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.ElementBase); // missing-glyph element
|
||||
|
||||
|
||||
svg.Element.missingglyph =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$path) {
|
||||
svg.Element.missingglyph = /*#__PURE__*/function (_svg$Element$path) {
|
||||
_inherits(_class28, _svg$Element$path);
|
||||
|
||||
function _class28(node) {
|
||||
@@ -3527,9 +3461,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.path); // glyph element
|
||||
|
||||
|
||||
svg.Element.glyph =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$path2) {
|
||||
svg.Element.glyph = /*#__PURE__*/function (_svg$Element$path2) {
|
||||
_inherits(_class29, _svg$Element$path2);
|
||||
|
||||
function _class29(node) {
|
||||
@@ -3548,9 +3480,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.path); // text element
|
||||
|
||||
|
||||
svg.Element.text =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered3) {
|
||||
svg.Element.text = /*#__PURE__*/function (_svg$Element$Rendered3) {
|
||||
_inherits(_class30, _svg$Element$Rendered3);
|
||||
|
||||
function _class30(node) {
|
||||
@@ -3646,9 +3576,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.RenderedElementBase); // text base
|
||||
|
||||
|
||||
svg.Element.TextElementBase =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered4) {
|
||||
svg.Element.TextElementBase = /*#__PURE__*/function (_svg$Element$Rendered4) {
|
||||
_inherits(_class31, _svg$Element$Rendered4);
|
||||
|
||||
function _class31() {
|
||||
@@ -3772,9 +3700,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.RenderedElementBase); // tspan
|
||||
|
||||
|
||||
svg.Element.tspan =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$TextElem) {
|
||||
svg.Element.tspan = /*#__PURE__*/function (_svg$Element$TextElem) {
|
||||
_inherits(_class32, _svg$Element$TextElem);
|
||||
|
||||
function _class32(node) {
|
||||
@@ -3798,9 +3724,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.TextElementBase); // tref
|
||||
|
||||
|
||||
svg.Element.tref =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$TextElem2) {
|
||||
svg.Element.tref = /*#__PURE__*/function (_svg$Element$TextElem2) {
|
||||
_inherits(_class33, _svg$Element$TextElem2);
|
||||
|
||||
function _class33() {
|
||||
@@ -3822,9 +3746,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.TextElementBase); // a element
|
||||
|
||||
|
||||
svg.Element.a =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$TextElem3) {
|
||||
svg.Element.a = /*#__PURE__*/function (_svg$Element$TextElem3) {
|
||||
_inherits(_class34, _svg$Element$TextElem3);
|
||||
|
||||
function _class34(node) {
|
||||
@@ -3884,9 +3806,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.TextElementBase); // image element
|
||||
|
||||
|
||||
svg.Element.image =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered5) {
|
||||
svg.Element.image = /*#__PURE__*/function (_svg$Element$Rendered5) {
|
||||
_inherits(_class35, _svg$Element$Rendered5);
|
||||
|
||||
function _class35(node) {
|
||||
@@ -3973,9 +3893,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.RenderedElementBase); // group element
|
||||
|
||||
|
||||
svg.Element.g =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered6) {
|
||||
svg.Element.g = /*#__PURE__*/function (_svg$Element$Rendered6) {
|
||||
_inherits(_class36, _svg$Element$Rendered6);
|
||||
|
||||
function _class36() {
|
||||
@@ -3999,9 +3917,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.RenderedElementBase); // symbol element
|
||||
|
||||
|
||||
svg.Element.symbol =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered7) {
|
||||
svg.Element.symbol = /*#__PURE__*/function (_svg$Element$Rendered7) {
|
||||
_inherits(_class37, _svg$Element$Rendered7);
|
||||
|
||||
function _class37() {
|
||||
@@ -4020,9 +3936,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.RenderedElementBase); // style element
|
||||
|
||||
|
||||
svg.Element.style =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB10) {
|
||||
svg.Element.style = /*#__PURE__*/function (_svg$Element$ElementB10) {
|
||||
_inherits(_class38, _svg$Element$ElementB10);
|
||||
|
||||
function _class38(node) {
|
||||
@@ -4100,9 +4014,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.ElementBase); // use element
|
||||
|
||||
|
||||
svg.Element.use =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered8) {
|
||||
svg.Element.use = /*#__PURE__*/function (_svg$Element$Rendered8) {
|
||||
_inherits(_class39, _svg$Element$Rendered8);
|
||||
|
||||
function _class39(node) {
|
||||
@@ -4172,9 +4084,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.RenderedElementBase); // mask element
|
||||
|
||||
|
||||
svg.Element.mask =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB11) {
|
||||
svg.Element.mask = /*#__PURE__*/function (_svg$Element$ElementB11) {
|
||||
_inherits(_class40, _svg$Element$ElementB11);
|
||||
|
||||
function _class40() {
|
||||
@@ -4234,9 +4144,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.ElementBase); // clip element
|
||||
|
||||
|
||||
svg.Element.clipPath =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB12) {
|
||||
svg.Element.clipPath = /*#__PURE__*/function (_svg$Element$ElementB12) {
|
||||
_inherits(_class41, _svg$Element$ElementB12);
|
||||
|
||||
function _class41() {
|
||||
@@ -4276,9 +4184,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.ElementBase); // filters
|
||||
|
||||
|
||||
svg.Element.filter =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB13) {
|
||||
svg.Element.filter = /*#__PURE__*/function (_svg$Element$ElementB13) {
|
||||
_inherits(_class42, _svg$Element$ElementB13);
|
||||
|
||||
function _class42() {
|
||||
@@ -4330,9 +4236,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
return _class42;
|
||||
}(svg.Element.ElementBase);
|
||||
|
||||
svg.Element.feMorphology =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB14) {
|
||||
svg.Element.feMorphology = /*#__PURE__*/function (_svg$Element$ElementB14) {
|
||||
_inherits(_class43, _svg$Element$ElementB14);
|
||||
|
||||
function _class43() {
|
||||
@@ -4350,9 +4254,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
return _class43;
|
||||
}(svg.Element.ElementBase);
|
||||
|
||||
svg.Element.feComposite =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB15) {
|
||||
svg.Element.feComposite = /*#__PURE__*/function (_svg$Element$ElementB15) {
|
||||
_inherits(_class44, _svg$Element$ElementB15);
|
||||
|
||||
function _class44() {
|
||||
@@ -4399,9 +4301,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
img[y * width * 4 + x * 4 + rgba] = val;
|
||||
}
|
||||
|
||||
svg.Element.feColorMatrix =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB16) {
|
||||
svg.Element.feColorMatrix = /*#__PURE__*/function (_svg$Element$ElementB16) {
|
||||
_inherits(_class45, _svg$Element$ElementB16);
|
||||
|
||||
function _class45(node) {
|
||||
@@ -4476,9 +4376,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
return _class45;
|
||||
}(svg.Element.ElementBase);
|
||||
|
||||
svg.Element.feGaussianBlur =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB17) {
|
||||
svg.Element.feGaussianBlur = /*#__PURE__*/function (_svg$Element$ElementB17) {
|
||||
_inherits(_class46, _svg$Element$ElementB17);
|
||||
|
||||
function _class46(node) {
|
||||
@@ -4509,9 +4407,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.ElementBase); // title element, do nothing
|
||||
|
||||
|
||||
svg.Element.title =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB18) {
|
||||
svg.Element.title = /*#__PURE__*/function (_svg$Element$ElementB18) {
|
||||
_inherits(_class47, _svg$Element$ElementB18);
|
||||
|
||||
function _class47(node) {
|
||||
@@ -4524,9 +4420,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}(svg.Element.ElementBase); // desc element, do nothing
|
||||
|
||||
|
||||
svg.Element.desc =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB19) {
|
||||
svg.Element.desc = /*#__PURE__*/function (_svg$Element$ElementB19) {
|
||||
_inherits(_class48, _svg$Element$ElementB19);
|
||||
|
||||
function _class48(node) {
|
||||
@@ -4538,9 +4432,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
return _class48;
|
||||
}(svg.Element.ElementBase);
|
||||
|
||||
svg.Element.MISSING =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB20) {
|
||||
svg.Element.MISSING = /*#__PURE__*/function (_svg$Element$ElementB20) {
|
||||
_inherits(_class49, _svg$Element$ElementB20);
|
||||
|
||||
function _class49(node) {
|
||||
@@ -4574,12 +4466,8 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}; // load from url
|
||||
|
||||
|
||||
svg.load =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _ref12 = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee(ctx, url) {
|
||||
svg.load = /*#__PURE__*/function () {
|
||||
var _ref12 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(ctx, url) {
|
||||
var dom;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
@@ -4888,9 +4776,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
var $ = _ref.$,
|
||||
encode64 = _ref.encode64,
|
||||
importLocale = _ref.importLocale;
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee2() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
||||
var strings, svgEditor, svgCanvas, saveSvgAction;
|
||||
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
||||
while (1) {
|
||||
@@ -4912,9 +4798,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
$("<iframe name=\"output_frame\" title=\"".concat(strings.hiddenframe, "\"\n style=\"width: 0; height: 0;\" src=\"data:text/html;base64,PGh0bWw+PC9odG1sPg==\"/>")).appendTo('body');
|
||||
svgEditor.setCustomHandlers({
|
||||
save: function save(win, data) {
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var svg, _ref2, pathname, name, svgData, c, datauri, pngData;
|
||||
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
|
||||
248
dist/extensions/ext-server_opensave.js
vendored
248
dist/extensions/ext-server_opensave.js
vendored
@@ -441,9 +441,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
* A class to parse color values.
|
||||
*/
|
||||
|
||||
var RGBColor =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var RGBColor = /*#__PURE__*/function () {
|
||||
/**
|
||||
* @param {string} colorString
|
||||
*/
|
||||
@@ -1122,9 +1120,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
mathematical: 'alphabetic'
|
||||
};
|
||||
|
||||
svg.Property =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
svg.Property = /*#__PURE__*/function () {
|
||||
function Property(name, value) {
|
||||
_classCallCheck(this, Property);
|
||||
|
||||
@@ -1379,9 +1375,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
});
|
||||
};
|
||||
|
||||
svg.Point =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
svg.Point = /*#__PURE__*/function () {
|
||||
function _class(x, y) {
|
||||
_classCallCheck(this, _class);
|
||||
|
||||
@@ -1424,9 +1418,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}; // bounding box
|
||||
|
||||
|
||||
svg.BoundingBox =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
svg.BoundingBox = /*#__PURE__*/function () {
|
||||
function _class2(x1, y1, x2, y2) {
|
||||
_classCallCheck(this, _class2);
|
||||
|
||||
@@ -1579,9 +1571,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(); // transforms
|
||||
|
||||
|
||||
svg.Transform =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
svg.Transform = /*#__PURE__*/function () {
|
||||
function _class3(v) {
|
||||
var _this6 = this;
|
||||
|
||||
@@ -1665,9 +1655,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}
|
||||
};
|
||||
Object.assign(this.Type, {
|
||||
SkewBase:
|
||||
/*#__PURE__*/
|
||||
function (_this$Type$matrix) {
|
||||
SkewBase: /*#__PURE__*/function (_this$Type$matrix) {
|
||||
_inherits(SkewBase, _this$Type$matrix);
|
||||
|
||||
function SkewBase(s) {
|
||||
@@ -1684,9 +1672,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(this.Type.matrix)
|
||||
});
|
||||
Object.assign(this.Type, {
|
||||
skewX:
|
||||
/*#__PURE__*/
|
||||
function (_this$Type$SkewBase) {
|
||||
skewX: /*#__PURE__*/function (_this$Type$SkewBase) {
|
||||
_inherits(skewX, _this$Type$SkewBase);
|
||||
|
||||
function skewX(s) {
|
||||
@@ -1701,9 +1687,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
|
||||
return skewX;
|
||||
}(this.Type.SkewBase),
|
||||
skewY:
|
||||
/*#__PURE__*/
|
||||
function (_this$Type$SkewBase2) {
|
||||
skewY: /*#__PURE__*/function (_this$Type$SkewBase2) {
|
||||
_inherits(skewY, _this$Type$SkewBase2);
|
||||
|
||||
function skewY(s) {
|
||||
@@ -1802,9 +1786,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
svg.Element = {};
|
||||
svg.EmptyProperty = new svg.Property('EMPTY', '');
|
||||
|
||||
svg.Element.ElementBase =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
svg.Element.ElementBase = /*#__PURE__*/function () {
|
||||
function _class4(node) {
|
||||
var _this7 = this;
|
||||
|
||||
@@ -2044,9 +2026,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
return _class4;
|
||||
}();
|
||||
|
||||
svg.Element.RenderedElementBase =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB) {
|
||||
svg.Element.RenderedElementBase = /*#__PURE__*/function (_svg$Element$ElementB) {
|
||||
_inherits(_class5, _svg$Element$ElementB);
|
||||
|
||||
function _class5() {
|
||||
@@ -2151,9 +2131,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
return _class5;
|
||||
}(svg.Element.ElementBase);
|
||||
|
||||
svg.Element.PathElementBase =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered) {
|
||||
svg.Element.PathElementBase = /*#__PURE__*/function (_svg$Element$Rendered) {
|
||||
_inherits(_class6, _svg$Element$Rendered);
|
||||
|
||||
function _class6() {
|
||||
@@ -2222,9 +2200,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.RenderedElementBase); // svg element
|
||||
|
||||
|
||||
svg.Element.svg =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered2) {
|
||||
svg.Element.svg = /*#__PURE__*/function (_svg$Element$Rendered2) {
|
||||
_inherits(_class7, _svg$Element$Rendered2);
|
||||
|
||||
function _class7() {
|
||||
@@ -2305,9 +2281,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.RenderedElementBase); // rect element
|
||||
|
||||
|
||||
svg.Element.rect =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$PathElem) {
|
||||
svg.Element.rect = /*#__PURE__*/function (_svg$Element$PathElem) {
|
||||
_inherits(_class8, _svg$Element$PathElem);
|
||||
|
||||
function _class8() {
|
||||
@@ -2352,9 +2326,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.PathElementBase); // circle element
|
||||
|
||||
|
||||
svg.Element.circle =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$PathElem2) {
|
||||
svg.Element.circle = /*#__PURE__*/function (_svg$Element$PathElem2) {
|
||||
_inherits(_class9, _svg$Element$PathElem2);
|
||||
|
||||
function _class9() {
|
||||
@@ -2386,9 +2358,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
|
||||
var KAPPA = 4 * ((Math.sqrt(2) - 1) / 3);
|
||||
|
||||
svg.Element.ellipse =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$PathElem3) {
|
||||
svg.Element.ellipse = /*#__PURE__*/function (_svg$Element$PathElem3) {
|
||||
_inherits(_class10, _svg$Element$PathElem3);
|
||||
|
||||
function _class10() {
|
||||
@@ -2423,9 +2393,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.PathElementBase); // line element
|
||||
|
||||
|
||||
svg.Element.line =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$PathElem4) {
|
||||
svg.Element.line = /*#__PURE__*/function (_svg$Element$PathElem4) {
|
||||
_inherits(_class11, _svg$Element$PathElem4);
|
||||
|
||||
function _class11() {
|
||||
@@ -2465,9 +2433,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.PathElementBase); // polyline element
|
||||
|
||||
|
||||
svg.Element.polyline =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$PathElem5) {
|
||||
svg.Element.polyline = /*#__PURE__*/function (_svg$Element$PathElem5) {
|
||||
_inherits(_class12, _svg$Element$PathElem5);
|
||||
|
||||
function _class12(node) {
|
||||
@@ -2521,9 +2487,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.PathElementBase); // polygon element
|
||||
|
||||
|
||||
svg.Element.polygon =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$polyline) {
|
||||
svg.Element.polygon = /*#__PURE__*/function (_svg$Element$polyline) {
|
||||
_inherits(_class13, _svg$Element$polyline);
|
||||
|
||||
function _class13() {
|
||||
@@ -2550,9 +2514,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.polyline); // path element
|
||||
|
||||
|
||||
svg.Element.path =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$PathElem6) {
|
||||
svg.Element.path = /*#__PURE__*/function (_svg$Element$PathElem6) {
|
||||
_inherits(_class14, _svg$Element$PathElem6);
|
||||
|
||||
function _class14(node) {
|
||||
@@ -2929,9 +2891,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.PathElementBase); // pattern element
|
||||
|
||||
|
||||
svg.Element.pattern =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB2) {
|
||||
svg.Element.pattern = /*#__PURE__*/function (_svg$Element$ElementB2) {
|
||||
_inherits(_class15, _svg$Element$ElementB2);
|
||||
|
||||
function _class15() {
|
||||
@@ -2980,9 +2940,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.ElementBase); // marker element
|
||||
|
||||
|
||||
svg.Element.marker =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB3) {
|
||||
svg.Element.marker = /*#__PURE__*/function (_svg$Element$ElementB3) {
|
||||
_inherits(_class16, _svg$Element$ElementB3);
|
||||
|
||||
function _class16() {
|
||||
@@ -3020,9 +2978,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.ElementBase); // definitions element
|
||||
|
||||
|
||||
svg.Element.defs =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB4) {
|
||||
svg.Element.defs = /*#__PURE__*/function (_svg$Element$ElementB4) {
|
||||
_inherits(_class17, _svg$Element$ElementB4);
|
||||
|
||||
function _class17() {
|
||||
@@ -3041,9 +2997,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.ElementBase); // base for gradients
|
||||
|
||||
|
||||
svg.Element.GradientBase =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB5) {
|
||||
svg.Element.GradientBase = /*#__PURE__*/function (_svg$Element$ElementB5) {
|
||||
_inherits(_class18, _svg$Element$ElementB5);
|
||||
|
||||
function _class18(node) {
|
||||
@@ -3124,9 +3078,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.ElementBase); // linear gradient element
|
||||
|
||||
|
||||
svg.Element.linearGradient =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Gradient) {
|
||||
svg.Element.linearGradient = /*#__PURE__*/function (_svg$Element$Gradient) {
|
||||
_inherits(_class19, _svg$Element$Gradient);
|
||||
|
||||
function _class19() {
|
||||
@@ -3161,9 +3113,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.GradientBase); // radial gradient element
|
||||
|
||||
|
||||
svg.Element.radialGradient =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Gradient2) {
|
||||
svg.Element.radialGradient = /*#__PURE__*/function (_svg$Element$Gradient2) {
|
||||
_inherits(_class20, _svg$Element$Gradient2);
|
||||
|
||||
function _class20() {
|
||||
@@ -3202,9 +3152,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.GradientBase); // gradient stop element
|
||||
|
||||
|
||||
svg.Element.stop =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB6) {
|
||||
svg.Element.stop = /*#__PURE__*/function (_svg$Element$ElementB6) {
|
||||
_inherits(_class21, _svg$Element$ElementB6);
|
||||
|
||||
function _class21(node) {
|
||||
@@ -3231,9 +3179,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.ElementBase); // animation base element
|
||||
|
||||
|
||||
svg.Element.AnimateBase =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB7) {
|
||||
svg.Element.AnimateBase = /*#__PURE__*/function (_svg$Element$ElementB7) {
|
||||
_inherits(_class22, _svg$Element$ElementB7);
|
||||
|
||||
function _class22(node) {
|
||||
@@ -3348,9 +3294,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.ElementBase); // animate element
|
||||
|
||||
|
||||
svg.Element.animate =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$AnimateB) {
|
||||
svg.Element.animate = /*#__PURE__*/function (_svg$Element$AnimateB) {
|
||||
_inherits(_class23, _svg$Element$AnimateB);
|
||||
|
||||
function _class23() {
|
||||
@@ -3373,9 +3317,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.AnimateBase); // animate color element
|
||||
|
||||
|
||||
svg.Element.animateColor =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$AnimateB2) {
|
||||
svg.Element.animateColor = /*#__PURE__*/function (_svg$Element$AnimateB2) {
|
||||
_inherits(_class24, _svg$Element$AnimateB2);
|
||||
|
||||
function _class24() {
|
||||
@@ -3407,9 +3349,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.AnimateBase); // animate transform element
|
||||
|
||||
|
||||
svg.Element.animateTransform =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$animate) {
|
||||
svg.Element.animateTransform = /*#__PURE__*/function (_svg$Element$animate) {
|
||||
_inherits(_class25, _svg$Element$animate);
|
||||
|
||||
function _class25() {
|
||||
@@ -3437,9 +3377,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.animate); // font element
|
||||
|
||||
|
||||
svg.Element.font =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB8) {
|
||||
svg.Element.font = /*#__PURE__*/function (_svg$Element$ElementB8) {
|
||||
_inherits(_class26, _svg$Element$ElementB8);
|
||||
|
||||
function _class26(node) {
|
||||
@@ -3487,9 +3425,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.ElementBase); // font-face element
|
||||
|
||||
|
||||
svg.Element.fontface =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB9) {
|
||||
svg.Element.fontface = /*#__PURE__*/function (_svg$Element$ElementB9) {
|
||||
_inherits(_class27, _svg$Element$ElementB9);
|
||||
|
||||
function _class27(node) {
|
||||
@@ -3508,9 +3444,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.ElementBase); // missing-glyph element
|
||||
|
||||
|
||||
svg.Element.missingglyph =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$path) {
|
||||
svg.Element.missingglyph = /*#__PURE__*/function (_svg$Element$path) {
|
||||
_inherits(_class28, _svg$Element$path);
|
||||
|
||||
function _class28(node) {
|
||||
@@ -3527,9 +3461,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.path); // glyph element
|
||||
|
||||
|
||||
svg.Element.glyph =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$path2) {
|
||||
svg.Element.glyph = /*#__PURE__*/function (_svg$Element$path2) {
|
||||
_inherits(_class29, _svg$Element$path2);
|
||||
|
||||
function _class29(node) {
|
||||
@@ -3548,9 +3480,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.path); // text element
|
||||
|
||||
|
||||
svg.Element.text =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered3) {
|
||||
svg.Element.text = /*#__PURE__*/function (_svg$Element$Rendered3) {
|
||||
_inherits(_class30, _svg$Element$Rendered3);
|
||||
|
||||
function _class30(node) {
|
||||
@@ -3646,9 +3576,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.RenderedElementBase); // text base
|
||||
|
||||
|
||||
svg.Element.TextElementBase =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered4) {
|
||||
svg.Element.TextElementBase = /*#__PURE__*/function (_svg$Element$Rendered4) {
|
||||
_inherits(_class31, _svg$Element$Rendered4);
|
||||
|
||||
function _class31() {
|
||||
@@ -3772,9 +3700,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.RenderedElementBase); // tspan
|
||||
|
||||
|
||||
svg.Element.tspan =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$TextElem) {
|
||||
svg.Element.tspan = /*#__PURE__*/function (_svg$Element$TextElem) {
|
||||
_inherits(_class32, _svg$Element$TextElem);
|
||||
|
||||
function _class32(node) {
|
||||
@@ -3798,9 +3724,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.TextElementBase); // tref
|
||||
|
||||
|
||||
svg.Element.tref =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$TextElem2) {
|
||||
svg.Element.tref = /*#__PURE__*/function (_svg$Element$TextElem2) {
|
||||
_inherits(_class33, _svg$Element$TextElem2);
|
||||
|
||||
function _class33() {
|
||||
@@ -3822,9 +3746,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.TextElementBase); // a element
|
||||
|
||||
|
||||
svg.Element.a =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$TextElem3) {
|
||||
svg.Element.a = /*#__PURE__*/function (_svg$Element$TextElem3) {
|
||||
_inherits(_class34, _svg$Element$TextElem3);
|
||||
|
||||
function _class34(node) {
|
||||
@@ -3884,9 +3806,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.TextElementBase); // image element
|
||||
|
||||
|
||||
svg.Element.image =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered5) {
|
||||
svg.Element.image = /*#__PURE__*/function (_svg$Element$Rendered5) {
|
||||
_inherits(_class35, _svg$Element$Rendered5);
|
||||
|
||||
function _class35(node) {
|
||||
@@ -3973,9 +3893,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.RenderedElementBase); // group element
|
||||
|
||||
|
||||
svg.Element.g =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered6) {
|
||||
svg.Element.g = /*#__PURE__*/function (_svg$Element$Rendered6) {
|
||||
_inherits(_class36, _svg$Element$Rendered6);
|
||||
|
||||
function _class36() {
|
||||
@@ -3999,9 +3917,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.RenderedElementBase); // symbol element
|
||||
|
||||
|
||||
svg.Element.symbol =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered7) {
|
||||
svg.Element.symbol = /*#__PURE__*/function (_svg$Element$Rendered7) {
|
||||
_inherits(_class37, _svg$Element$Rendered7);
|
||||
|
||||
function _class37() {
|
||||
@@ -4020,9 +3936,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.RenderedElementBase); // style element
|
||||
|
||||
|
||||
svg.Element.style =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB10) {
|
||||
svg.Element.style = /*#__PURE__*/function (_svg$Element$ElementB10) {
|
||||
_inherits(_class38, _svg$Element$ElementB10);
|
||||
|
||||
function _class38(node) {
|
||||
@@ -4100,9 +4014,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.ElementBase); // use element
|
||||
|
||||
|
||||
svg.Element.use =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$Rendered8) {
|
||||
svg.Element.use = /*#__PURE__*/function (_svg$Element$Rendered8) {
|
||||
_inherits(_class39, _svg$Element$Rendered8);
|
||||
|
||||
function _class39(node) {
|
||||
@@ -4172,9 +4084,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.RenderedElementBase); // mask element
|
||||
|
||||
|
||||
svg.Element.mask =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB11) {
|
||||
svg.Element.mask = /*#__PURE__*/function (_svg$Element$ElementB11) {
|
||||
_inherits(_class40, _svg$Element$ElementB11);
|
||||
|
||||
function _class40() {
|
||||
@@ -4234,9 +4144,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.ElementBase); // clip element
|
||||
|
||||
|
||||
svg.Element.clipPath =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB12) {
|
||||
svg.Element.clipPath = /*#__PURE__*/function (_svg$Element$ElementB12) {
|
||||
_inherits(_class41, _svg$Element$ElementB12);
|
||||
|
||||
function _class41() {
|
||||
@@ -4276,9 +4184,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.ElementBase); // filters
|
||||
|
||||
|
||||
svg.Element.filter =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB13) {
|
||||
svg.Element.filter = /*#__PURE__*/function (_svg$Element$ElementB13) {
|
||||
_inherits(_class42, _svg$Element$ElementB13);
|
||||
|
||||
function _class42() {
|
||||
@@ -4330,9 +4236,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
return _class42;
|
||||
}(svg.Element.ElementBase);
|
||||
|
||||
svg.Element.feMorphology =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB14) {
|
||||
svg.Element.feMorphology = /*#__PURE__*/function (_svg$Element$ElementB14) {
|
||||
_inherits(_class43, _svg$Element$ElementB14);
|
||||
|
||||
function _class43() {
|
||||
@@ -4350,9 +4254,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
return _class43;
|
||||
}(svg.Element.ElementBase);
|
||||
|
||||
svg.Element.feComposite =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB15) {
|
||||
svg.Element.feComposite = /*#__PURE__*/function (_svg$Element$ElementB15) {
|
||||
_inherits(_class44, _svg$Element$ElementB15);
|
||||
|
||||
function _class44() {
|
||||
@@ -4399,9 +4301,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
img[y * width * 4 + x * 4 + rgba] = val;
|
||||
}
|
||||
|
||||
svg.Element.feColorMatrix =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB16) {
|
||||
svg.Element.feColorMatrix = /*#__PURE__*/function (_svg$Element$ElementB16) {
|
||||
_inherits(_class45, _svg$Element$ElementB16);
|
||||
|
||||
function _class45(node) {
|
||||
@@ -4476,9 +4376,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
return _class45;
|
||||
}(svg.Element.ElementBase);
|
||||
|
||||
svg.Element.feGaussianBlur =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB17) {
|
||||
svg.Element.feGaussianBlur = /*#__PURE__*/function (_svg$Element$ElementB17) {
|
||||
_inherits(_class46, _svg$Element$ElementB17);
|
||||
|
||||
function _class46(node) {
|
||||
@@ -4509,9 +4407,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.ElementBase); // title element, do nothing
|
||||
|
||||
|
||||
svg.Element.title =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB18) {
|
||||
svg.Element.title = /*#__PURE__*/function (_svg$Element$ElementB18) {
|
||||
_inherits(_class47, _svg$Element$ElementB18);
|
||||
|
||||
function _class47(node) {
|
||||
@@ -4524,9 +4420,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}(svg.Element.ElementBase); // desc element, do nothing
|
||||
|
||||
|
||||
svg.Element.desc =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB19) {
|
||||
svg.Element.desc = /*#__PURE__*/function (_svg$Element$ElementB19) {
|
||||
_inherits(_class48, _svg$Element$ElementB19);
|
||||
|
||||
function _class48(node) {
|
||||
@@ -4538,9 +4432,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
return _class48;
|
||||
}(svg.Element.ElementBase);
|
||||
|
||||
svg.Element.MISSING =
|
||||
/*#__PURE__*/
|
||||
function (_svg$Element$ElementB20) {
|
||||
svg.Element.MISSING = /*#__PURE__*/function (_svg$Element$ElementB20) {
|
||||
_inherits(_class49, _svg$Element$ElementB20);
|
||||
|
||||
function _class49(node) {
|
||||
@@ -4574,12 +4466,8 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}; // load from url
|
||||
|
||||
|
||||
svg.load =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _ref12 = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee(ctx, url) {
|
||||
svg.load = /*#__PURE__*/function () {
|
||||
var _ref12 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(ctx, url) {
|
||||
var dom;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
@@ -4889,9 +4777,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
decode64 = _ref.decode64,
|
||||
encode64 = _ref.encode64,
|
||||
importLocale = _ref.importLocale;
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee5() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
||||
var strings, svgEditor, _svgEditor$curConfig, extPath, avoidClientSide, avoidClientSideDownload, avoidClientSideOpen, svgCanvas, getFileNameFromTitle, xhtmlEscape, clientDownloadSupport, saveSvgAction, saveImgAction, cancelled, openSvgAction, importSvgAction, importImgAction, openSvgForm, importSvgForm, importImgForm, rebuildInput;
|
||||
|
||||
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
||||
@@ -4912,9 +4798,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}
|
||||
|
||||
function _submit() {
|
||||
_submit = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee4() {
|
||||
_submit = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
||||
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
||||
while (1) {
|
||||
switch (_context4.prev = _context4.next) {
|
||||
@@ -4940,11 +4824,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}
|
||||
|
||||
if (form[0] === openSvgForm[0]) {
|
||||
inp.change(
|
||||
/*#__PURE__*/
|
||||
_asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee2() {
|
||||
inp.change( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
||||
var ok;
|
||||
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
||||
while (1) {
|
||||
@@ -4976,11 +4856,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
}, _callee2);
|
||||
})));
|
||||
} else {
|
||||
inp.change(
|
||||
/*#__PURE__*/
|
||||
_asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee3() {
|
||||
inp.change( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
||||
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
||||
while (1) {
|
||||
switch (_context3.prev = _context3.next) {
|
||||
@@ -5078,9 +4954,7 @@ var svgEditorExtension_server_opensave = (function () {
|
||||
},
|
||||
// Todo: Integrate this extension with a new built-in exportWindowType, "download"
|
||||
exportImage: function exportImage(win, data) {
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var issues, mimeType, quality, c, datauri, pre, note, filename, suffix;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
|
||||
4
dist/extensions/ext-shapes.js
vendored
4
dist/extensions/ext-shapes.js
vendored
@@ -94,9 +94,7 @@ var svgEditorExtension_shapes = (function () {
|
||||
|
||||
var $ = _ref.$,
|
||||
importLocale = _ref.importLocale;
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var strings, svgEditor, canv, svgroot, lastBBox, categories, library, modeId, startClientPos, currentD, curShapeId, curShape, startX, startY, curLib, loadIcons, makeButtons, loadLibrary, buttons;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
|
||||
4
dist/extensions/ext-star.js
vendored
4
dist/extensions/ext-star.js
vendored
@@ -49,9 +49,7 @@ var svgEditorExtension_star = (function () {
|
||||
init: function init(S) {
|
||||
var _this = this;
|
||||
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var svgEditor, svgCanvas, $, importLocale, selElems, started, newFO, strings, showPanel, setAttr, buttons, contextTools;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
|
||||
4
dist/extensions/ext-storage.js
vendored
4
dist/extensions/ext-storage.js
vendored
@@ -254,9 +254,7 @@ var svgEditorExtension_storage = (function () {
|
||||
name: 'storage',
|
||||
langReady: function langReady(_ref4) {
|
||||
var importLocale = _ref4.importLocale;
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var storagePrompt, confirmSetStorage, message, storagePrefsAndContent, storagePrefsOnly, storagePrefs, storageNoPrefsOrContent, storageNoPrefs, rememberLabel, rememberTooltip, options, oldContainerWidth, oldContainerMarginLeft, oldContentHeight, oldContainerHeight, _ref5, pref, checked;
|
||||
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
|
||||
4
dist/extensions/ext-webappfind.js
vendored
4
dist/extensions/ext-webappfind.js
vendored
@@ -51,9 +51,7 @@ var svgEditorExtension_webappfind = (function () {
|
||||
|
||||
var importLocale = _ref.importLocale,
|
||||
$ = _ref.$;
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var strings, svgEditor, saveMessage, readMessage, excludedMessages, pathID, buttons;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
|
||||
38
dist/extensions/imagelib/openclipart.js
vendored
38
dist/extensions/imagelib/openclipart.js
vendored
@@ -1175,9 +1175,7 @@
|
||||
* Class wrapping base class.
|
||||
*/
|
||||
|
||||
return cnstrct ?
|
||||
/*#__PURE__*/
|
||||
function (_baseClass) {
|
||||
return cnstrct ? /*#__PURE__*/function (_baseClass) {
|
||||
_inherits$1(_class, _baseClass);
|
||||
/**
|
||||
* Calls user constructor.
|
||||
@@ -1195,9 +1193,7 @@
|
||||
}
|
||||
|
||||
return _class;
|
||||
}(baseClass) :
|
||||
/*#__PURE__*/
|
||||
function (_baseClass2) {
|
||||
}(baseClass) : /*#__PURE__*/function (_baseClass2) {
|
||||
_inherits$1(_class2, _baseClass2);
|
||||
|
||||
function _class2() {
|
||||
@@ -1956,9 +1952,7 @@
|
||||
/**
|
||||
* Polyfill for `DOMException`.
|
||||
*/
|
||||
var DOMException =
|
||||
/*#__PURE__*/
|
||||
function (_Error) {
|
||||
var DOMException = /*#__PURE__*/function (_Error) {
|
||||
_inherits$1(DOMException, _Error);
|
||||
/* eslint-enable no-shadow, unicorn/custom-error-definition */
|
||||
|
||||
@@ -2367,9 +2361,7 @@
|
||||
*/
|
||||
|
||||
|
||||
var JamilihMap =
|
||||
/*#__PURE__*/
|
||||
function (_Map) {
|
||||
var JamilihMap = /*#__PURE__*/function (_Map) {
|
||||
_inherits$1(JamilihMap, _Map);
|
||||
|
||||
function JamilihMap() {
|
||||
@@ -2430,9 +2422,7 @@
|
||||
*/
|
||||
|
||||
|
||||
var JamilihWeakMap =
|
||||
/*#__PURE__*/
|
||||
function (_WeakMap) {
|
||||
var JamilihWeakMap = /*#__PURE__*/function (_WeakMap) {
|
||||
_inherits$1(JamilihWeakMap, _WeakMap);
|
||||
|
||||
function JamilihWeakMap() {
|
||||
@@ -2635,9 +2625,7 @@
|
||||
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
var QueryResult =
|
||||
/*#__PURE__*/
|
||||
function (_Array) {
|
||||
var QueryResult = /*#__PURE__*/function (_Array) {
|
||||
_inherits(QueryResult, _Array);
|
||||
|
||||
function QueryResult() {
|
||||
@@ -2647,7 +2635,7 @@
|
||||
}
|
||||
|
||||
return QueryResult;
|
||||
}(_wrapNativeSuper(Array));
|
||||
}( /*#__PURE__*/_wrapNativeSuper(Array));
|
||||
|
||||
var create = Object.create,
|
||||
defineProperty = Object.defineProperty;
|
||||
@@ -3357,9 +3345,7 @@
|
||||
}
|
||||
|
||||
function _processResults() {
|
||||
_processResults = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee3(url) {
|
||||
_processResults = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(url) {
|
||||
var queryLink, r, json, payload, _json$info, numResults, pages, currentPage, semiColonSep;
|
||||
|
||||
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
||||
@@ -3440,9 +3426,7 @@
|
||||
click: function click(e) {
|
||||
var _this = this;
|
||||
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee2() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
||||
var svgurl, post, result, svg;
|
||||
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
||||
while (1) {
|
||||
@@ -3565,9 +3549,7 @@
|
||||
id: 'openclipart',
|
||||
$custom: {
|
||||
$submit: function $submit() {
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var url;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
|
||||
352
dist/index-es.js
vendored
352
dist/index-es.js
vendored
@@ -333,9 +333,7 @@ var getReverseNS = function getReverseNS() {
|
||||
(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);
|
||||
|
||||
@@ -379,9 +377,7 @@ var getReverseNS = function getReverseNS() {
|
||||
_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) {
|
||||
@@ -410,9 +406,7 @@ var getReverseNS = function getReverseNS() {
|
||||
return _SVGPathSegClosePath;
|
||||
}(_SVGPathSeg);
|
||||
|
||||
var _SVGPathSegMovetoAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg3) {
|
||||
var _SVGPathSegMovetoAbs = /*#__PURE__*/function (_SVGPathSeg3) {
|
||||
_inherits(_SVGPathSegMovetoAbs, _SVGPathSeg3);
|
||||
|
||||
function _SVGPathSegMovetoAbs(owningPathSegList, x, y) {
|
||||
@@ -471,9 +465,7 @@ var getReverseNS = function getReverseNS() {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegMovetoRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg4) {
|
||||
var _SVGPathSegMovetoRel = /*#__PURE__*/function (_SVGPathSeg4) {
|
||||
_inherits(_SVGPathSegMovetoRel, _SVGPathSeg4);
|
||||
|
||||
function _SVGPathSegMovetoRel(owningPathSegList, x, y) {
|
||||
@@ -532,9 +524,7 @@ var getReverseNS = function getReverseNS() {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg5) {
|
||||
var _SVGPathSegLinetoAbs = /*#__PURE__*/function (_SVGPathSeg5) {
|
||||
_inherits(_SVGPathSegLinetoAbs, _SVGPathSeg5);
|
||||
|
||||
function _SVGPathSegLinetoAbs(owningPathSegList, x, y) {
|
||||
@@ -593,9 +583,7 @@ var getReverseNS = function getReverseNS() {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg6) {
|
||||
var _SVGPathSegLinetoRel = /*#__PURE__*/function (_SVGPathSeg6) {
|
||||
_inherits(_SVGPathSegLinetoRel, _SVGPathSeg6);
|
||||
|
||||
function _SVGPathSegLinetoRel(owningPathSegList, x, y) {
|
||||
@@ -654,9 +642,7 @@ var getReverseNS = function getReverseNS() {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoCubicAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg7) {
|
||||
var _SVGPathSegCurvetoCubicAbs = /*#__PURE__*/function (_SVGPathSeg7) {
|
||||
_inherits(_SVGPathSegCurvetoCubicAbs, _SVGPathSeg7);
|
||||
|
||||
function _SVGPathSegCurvetoCubicAbs(owningPathSegList, x, y, x1, y1, x2, y2) {
|
||||
@@ -763,9 +749,7 @@ var getReverseNS = function getReverseNS() {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoCubicRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg8) {
|
||||
var _SVGPathSegCurvetoCubicRel = /*#__PURE__*/function (_SVGPathSeg8) {
|
||||
_inherits(_SVGPathSegCurvetoCubicRel, _SVGPathSeg8);
|
||||
|
||||
function _SVGPathSegCurvetoCubicRel(owningPathSegList, x, y, x1, y1, x2, y2) {
|
||||
@@ -872,9 +856,7 @@ var getReverseNS = function getReverseNS() {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoQuadraticAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg9) {
|
||||
var _SVGPathSegCurvetoQuadraticAbs = /*#__PURE__*/function (_SVGPathSeg9) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticAbs, _SVGPathSeg9);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticAbs(owningPathSegList, x, y, x1, y1) {
|
||||
@@ -957,9 +939,7 @@ var getReverseNS = function getReverseNS() {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoQuadraticRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg10) {
|
||||
var _SVGPathSegCurvetoQuadraticRel = /*#__PURE__*/function (_SVGPathSeg10) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticRel, _SVGPathSeg10);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticRel(owningPathSegList, x, y, x1, y1) {
|
||||
@@ -1042,9 +1022,7 @@ var getReverseNS = function getReverseNS() {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegArcAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg11) {
|
||||
var _SVGPathSegArcAbs = /*#__PURE__*/function (_SVGPathSeg11) {
|
||||
_inherits(_SVGPathSegArcAbs, _SVGPathSeg11);
|
||||
|
||||
function _SVGPathSegArcAbs(owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
|
||||
@@ -1163,9 +1141,7 @@ var getReverseNS = function getReverseNS() {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegArcRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg12) {
|
||||
var _SVGPathSegArcRel = /*#__PURE__*/function (_SVGPathSeg12) {
|
||||
_inherits(_SVGPathSegArcRel, _SVGPathSeg12);
|
||||
|
||||
function _SVGPathSegArcRel(owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
|
||||
@@ -1284,9 +1260,7 @@ var getReverseNS = function getReverseNS() {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoHorizontalAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg13) {
|
||||
var _SVGPathSegLinetoHorizontalAbs = /*#__PURE__*/function (_SVGPathSeg13) {
|
||||
_inherits(_SVGPathSegLinetoHorizontalAbs, _SVGPathSeg13);
|
||||
|
||||
function _SVGPathSegLinetoHorizontalAbs(owningPathSegList, x) {
|
||||
@@ -1331,9 +1305,7 @@ var getReverseNS = function getReverseNS() {
|
||||
enumerable: true
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoHorizontalRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg14) {
|
||||
var _SVGPathSegLinetoHorizontalRel = /*#__PURE__*/function (_SVGPathSeg14) {
|
||||
_inherits(_SVGPathSegLinetoHorizontalRel, _SVGPathSeg14);
|
||||
|
||||
function _SVGPathSegLinetoHorizontalRel(owningPathSegList, x) {
|
||||
@@ -1378,9 +1350,7 @@ var getReverseNS = function getReverseNS() {
|
||||
enumerable: true
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoVerticalAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg15) {
|
||||
var _SVGPathSegLinetoVerticalAbs = /*#__PURE__*/function (_SVGPathSeg15) {
|
||||
_inherits(_SVGPathSegLinetoVerticalAbs, _SVGPathSeg15);
|
||||
|
||||
function _SVGPathSegLinetoVerticalAbs(owningPathSegList, y) {
|
||||
@@ -1425,9 +1395,7 @@ var getReverseNS = function getReverseNS() {
|
||||
enumerable: true
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoVerticalRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg16) {
|
||||
var _SVGPathSegLinetoVerticalRel = /*#__PURE__*/function (_SVGPathSeg16) {
|
||||
_inherits(_SVGPathSegLinetoVerticalRel, _SVGPathSeg16);
|
||||
|
||||
function _SVGPathSegLinetoVerticalRel(owningPathSegList, y) {
|
||||
@@ -1472,9 +1440,7 @@ var getReverseNS = function getReverseNS() {
|
||||
enumerable: true
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoCubicSmoothAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg17) {
|
||||
var _SVGPathSegCurvetoCubicSmoothAbs = /*#__PURE__*/function (_SVGPathSeg17) {
|
||||
_inherits(_SVGPathSegCurvetoCubicSmoothAbs, _SVGPathSeg17);
|
||||
|
||||
function _SVGPathSegCurvetoCubicSmoothAbs(owningPathSegList, x, y, x2, y2) {
|
||||
@@ -1557,9 +1523,7 @@ var getReverseNS = function getReverseNS() {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoCubicSmoothRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg18) {
|
||||
var _SVGPathSegCurvetoCubicSmoothRel = /*#__PURE__*/function (_SVGPathSeg18) {
|
||||
_inherits(_SVGPathSegCurvetoCubicSmoothRel, _SVGPathSeg18);
|
||||
|
||||
function _SVGPathSegCurvetoCubicSmoothRel(owningPathSegList, x, y, x2, y2) {
|
||||
@@ -1642,9 +1606,7 @@ var getReverseNS = function getReverseNS() {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoQuadraticSmoothAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg19) {
|
||||
var _SVGPathSegCurvetoQuadraticSmoothAbs = /*#__PURE__*/function (_SVGPathSeg19) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticSmoothAbs, _SVGPathSeg19);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticSmoothAbs(owningPathSegList, x, y) {
|
||||
@@ -1703,9 +1665,7 @@ var getReverseNS = function getReverseNS() {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoQuadraticSmoothRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg20) {
|
||||
var _SVGPathSegCurvetoQuadraticSmoothRel = /*#__PURE__*/function (_SVGPathSeg20) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticSmoothRel, _SVGPathSeg20);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticSmoothRel(owningPathSegList, x, y) {
|
||||
@@ -1901,9 +1861,7 @@ var getReverseNS = function getReverseNS() {
|
||||
|
||||
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);
|
||||
|
||||
@@ -2087,9 +2045,7 @@ var getReverseNS = function getReverseNS() {
|
||||
|
||||
var owningPathSegList = this; // eslint-disable-line consistent-this
|
||||
|
||||
var Builder =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Builder = /*#__PURE__*/function () {
|
||||
function Builder() {
|
||||
_classCallCheck(this, Builder);
|
||||
|
||||
@@ -2106,9 +2062,7 @@ var getReverseNS = function getReverseNS() {
|
||||
return Builder;
|
||||
}();
|
||||
|
||||
var Source =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Source = /*#__PURE__*/function () {
|
||||
function Source(string) {
|
||||
_classCallCheck(this, Source);
|
||||
|
||||
@@ -3133,9 +3087,7 @@ var listMap_ = {};
|
||||
* @implements {module:SVGTransformList.SVGEditTransformList}
|
||||
*/
|
||||
|
||||
var SVGTransformList =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var SVGTransformList = /*#__PURE__*/function () {
|
||||
// eslint-disable-line no-shadow
|
||||
|
||||
/**
|
||||
@@ -3771,9 +3723,7 @@ var HistoryEventTypes = {
|
||||
* Base class for commands.
|
||||
*/
|
||||
|
||||
var Command =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Command = /*#__PURE__*/function () {
|
||||
function Command() {
|
||||
_classCallCheck(this, Command);
|
||||
}
|
||||
@@ -3867,9 +3817,7 @@ function () {
|
||||
*/
|
||||
|
||||
|
||||
var MoveElementCommand =
|
||||
/*#__PURE__*/
|
||||
function (_Command) {
|
||||
var MoveElementCommand = /*#__PURE__*/function (_Command) {
|
||||
_inherits(MoveElementCommand, _Command);
|
||||
|
||||
/**
|
||||
@@ -3963,9 +3911,7 @@ MoveElementCommand.type = MoveElementCommand.prototype.type;
|
||||
* @implements {module:history.HistoryCommand}
|
||||
*/
|
||||
|
||||
var InsertElementCommand =
|
||||
/*#__PURE__*/
|
||||
function (_Command2) {
|
||||
var InsertElementCommand = /*#__PURE__*/function (_Command2) {
|
||||
_inherits(InsertElementCommand, _Command2);
|
||||
|
||||
/**
|
||||
@@ -4055,9 +4001,7 @@ InsertElementCommand.type = InsertElementCommand.prototype.type;
|
||||
* @implements {module:history.HistoryCommand}
|
||||
*/
|
||||
|
||||
var RemoveElementCommand =
|
||||
/*#__PURE__*/
|
||||
function (_Command3) {
|
||||
var RemoveElementCommand = /*#__PURE__*/function (_Command3) {
|
||||
_inherits(RemoveElementCommand, _Command3);
|
||||
|
||||
/**
|
||||
@@ -4169,9 +4113,7 @@ RemoveElementCommand.type = RemoveElementCommand.prototype.type;
|
||||
* @implements {module:history.HistoryCommand}
|
||||
*/
|
||||
|
||||
var ChangeElementCommand =
|
||||
/*#__PURE__*/
|
||||
function (_Command4) {
|
||||
var ChangeElementCommand = /*#__PURE__*/function (_Command4) {
|
||||
_inherits(ChangeElementCommand, _Command4);
|
||||
|
||||
/**
|
||||
@@ -4364,9 +4306,7 @@ ChangeElementCommand.type = ChangeElementCommand.prototype.type; // TODO: create
|
||||
* @implements {module:history.HistoryCommand}
|
||||
*/
|
||||
|
||||
var BatchCommand =
|
||||
/*#__PURE__*/
|
||||
function (_Command5) {
|
||||
var BatchCommand = /*#__PURE__*/function (_Command5) {
|
||||
_inherits(BatchCommand, _Command5);
|
||||
|
||||
/**
|
||||
@@ -4492,9 +4432,7 @@ BatchCommand.type = BatchCommand.prototype.type;
|
||||
*
|
||||
*/
|
||||
|
||||
var UndoManager =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var UndoManager = /*#__PURE__*/function () {
|
||||
/**
|
||||
* @param {module:history.HistoryEventHandler} historyEventHandler
|
||||
*/
|
||||
@@ -5633,9 +5571,7 @@ var smoothControlPoints = function smoothControlPoints(ct1, ct2, pt) {
|
||||
*
|
||||
*/
|
||||
|
||||
var Segment =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Segment = /*#__PURE__*/function () {
|
||||
/**
|
||||
* @param {Integer} index
|
||||
* @param {SVGPathSeg} item
|
||||
@@ -5863,9 +5799,7 @@ function () {
|
||||
*
|
||||
*/
|
||||
|
||||
var Path =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Path = /*#__PURE__*/function () {
|
||||
/**
|
||||
* @param {SVGPathElement} elem
|
||||
* @throws {Error} If constructed without a path element
|
||||
@@ -9493,9 +9427,7 @@ function importSetGlobal(_x, _x2) {
|
||||
*/
|
||||
|
||||
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) {
|
||||
@@ -9956,9 +9888,7 @@ var $$4 = jQuery;
|
||||
* @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.
|
||||
@@ -10253,9 +10183,7 @@ function addLayerClass(elem) {
|
||||
* @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.
|
||||
@@ -10468,9 +10396,7 @@ function getNewLayerName(existingLayerNames) {
|
||||
*/
|
||||
|
||||
|
||||
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
|
||||
@@ -13137,9 +13063,7 @@ var gripRadius = isTouch() ? 10 : 4;
|
||||
* 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
|
||||
@@ -13386,9 +13310,7 @@ function () {
|
||||
* Manage all selector objects (selection boxes).
|
||||
*/
|
||||
|
||||
var SelectorManager =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var SelectorManager = /*#__PURE__*/function () {
|
||||
/**
|
||||
* Sets up properties and calls `initGroup`.
|
||||
*/
|
||||
@@ -14861,12 +14783,8 @@ function SvgCanvas(container, config) {
|
||||
*/
|
||||
|
||||
|
||||
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) {
|
||||
@@ -18079,12 +17997,8 @@ function SvgCanvas(container, config) {
|
||||
* @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,
|
||||
@@ -18227,12 +18141,8 @@ function SvgCanvas(container, config) {
|
||||
*/
|
||||
|
||||
|
||||
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,
|
||||
@@ -28218,12 +28128,8 @@ var init$7 = function init(editor) {
|
||||
* @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) {
|
||||
@@ -28473,12 +28379,8 @@ function () {
|
||||
* @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) {
|
||||
@@ -29009,9 +28911,7 @@ function loadSvgString(_x) {
|
||||
|
||||
|
||||
function _loadSvgString() {
|
||||
_loadSvgString = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee23(str) {
|
||||
_loadSvgString = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee23(str) {
|
||||
var _ref49,
|
||||
noAlert,
|
||||
success,
|
||||
@@ -29067,12 +28967,8 @@ function getImportLocale(_ref) {
|
||||
* @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,
|
||||
@@ -29595,12 +29491,8 @@ editor.init = function () {
|
||||
*/
|
||||
|
||||
|
||||
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) {
|
||||
@@ -29627,12 +29519,8 @@ editor.init = function () {
|
||||
|
||||
_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) {
|
||||
@@ -30235,9 +30123,7 @@ editor.init = function () {
|
||||
'#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) {
|
||||
@@ -30811,9 +30697,7 @@ editor.init = function () {
|
||||
|
||||
|
||||
function _promptImgURL() {
|
||||
_promptImgURL = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee18() {
|
||||
_promptImgURL = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee18() {
|
||||
var _ref35,
|
||||
_ref35$cancelDeletes,
|
||||
cancelDeletes,
|
||||
@@ -32076,12 +31960,8 @@ editor.init = function () {
|
||||
* @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) {
|
||||
@@ -32772,11 +32652,7 @@ editor.init = function () {
|
||||
}); // 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) {
|
||||
@@ -33519,12 +33395,8 @@ editor.init = function () {
|
||||
*/
|
||||
|
||||
|
||||
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) {
|
||||
@@ -33674,12 +33546,8 @@ editor.init = function () {
|
||||
*/
|
||||
|
||||
|
||||
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) {
|
||||
@@ -33766,12 +33634,8 @@ editor.init = function () {
|
||||
* @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) {
|
||||
@@ -34067,12 +33931,8 @@ editor.init = function () {
|
||||
*/
|
||||
|
||||
|
||||
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) {
|
||||
@@ -34212,11 +34072,7 @@ editor.init = function () {
|
||||
*/
|
||||
|
||||
|
||||
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) {
|
||||
@@ -34277,12 +34133,8 @@ editor.init = function () {
|
||||
* @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) {
|
||||
@@ -34499,9 +34351,7 @@ editor.init = function () {
|
||||
*/
|
||||
|
||||
|
||||
var PaintBox =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var PaintBox = /*#__PURE__*/function () {
|
||||
/**
|
||||
* @param {string|Element|external:jQuery} container
|
||||
* @param {"fill"} type
|
||||
@@ -34744,11 +34594,7 @@ editor.init = function () {
|
||||
$$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) {
|
||||
@@ -34827,9 +34673,7 @@ editor.init = function () {
|
||||
|
||||
|
||||
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) {
|
||||
@@ -34907,11 +34751,7 @@ editor.init = function () {
|
||||
$$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) {
|
||||
@@ -36166,12 +36006,8 @@ editor.init = function () {
|
||||
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) {
|
||||
@@ -36197,12 +36033,8 @@ editor.init = function () {
|
||||
$$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) {
|
||||
@@ -36268,12 +36100,8 @@ editor.init = function () {
|
||||
* @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) {
|
||||
@@ -36462,11 +36290,7 @@ editor.ready = function (cb) {
|
||||
*/
|
||||
|
||||
|
||||
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) {
|
||||
@@ -36522,11 +36346,7 @@ editor.loadFromString = function (str) {
|
||||
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) {
|
||||
@@ -36721,9 +36541,7 @@ var messageListener = function messageListener(_ref47) {
|
||||
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) {
|
||||
|
||||
2
dist/index-es.min.js.map
vendored
2
dist/index-es.min.js.map
vendored
File diff suppressed because one or more lines are too long
352
dist/index-umd.js
vendored
352
dist/index-umd.js
vendored
@@ -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) {
|
||||
|
||||
2
dist/index-umd.min.js.map
vendored
2
dist/index-umd.min.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/jspdf.plugin.svgToPdf.js
vendored
4
dist/jspdf.plugin.svgToPdf.js
vendored
@@ -282,9 +282,7 @@
|
||||
* A class to parse color values.
|
||||
*/
|
||||
|
||||
var RGBColor =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var RGBColor = /*#__PURE__*/function () {
|
||||
/**
|
||||
* @param {string} colorString
|
||||
*/
|
||||
|
||||
92
dist/redirect-on-lacking-support.js
vendored
92
dist/redirect-on-lacking-support.js
vendored
@@ -113,9 +113,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);
|
||||
|
||||
@@ -159,9 +157,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) {
|
||||
@@ -190,9 +186,7 @@
|
||||
return _SVGPathSegClosePath;
|
||||
}(_SVGPathSeg);
|
||||
|
||||
var _SVGPathSegMovetoAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg3) {
|
||||
var _SVGPathSegMovetoAbs = /*#__PURE__*/function (_SVGPathSeg3) {
|
||||
_inherits(_SVGPathSegMovetoAbs, _SVGPathSeg3);
|
||||
|
||||
function _SVGPathSegMovetoAbs(owningPathSegList, x, y) {
|
||||
@@ -251,9 +245,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegMovetoRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg4) {
|
||||
var _SVGPathSegMovetoRel = /*#__PURE__*/function (_SVGPathSeg4) {
|
||||
_inherits(_SVGPathSegMovetoRel, _SVGPathSeg4);
|
||||
|
||||
function _SVGPathSegMovetoRel(owningPathSegList, x, y) {
|
||||
@@ -312,9 +304,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg5) {
|
||||
var _SVGPathSegLinetoAbs = /*#__PURE__*/function (_SVGPathSeg5) {
|
||||
_inherits(_SVGPathSegLinetoAbs, _SVGPathSeg5);
|
||||
|
||||
function _SVGPathSegLinetoAbs(owningPathSegList, x, y) {
|
||||
@@ -373,9 +363,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg6) {
|
||||
var _SVGPathSegLinetoRel = /*#__PURE__*/function (_SVGPathSeg6) {
|
||||
_inherits(_SVGPathSegLinetoRel, _SVGPathSeg6);
|
||||
|
||||
function _SVGPathSegLinetoRel(owningPathSegList, x, y) {
|
||||
@@ -434,9 +422,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoCubicAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg7) {
|
||||
var _SVGPathSegCurvetoCubicAbs = /*#__PURE__*/function (_SVGPathSeg7) {
|
||||
_inherits(_SVGPathSegCurvetoCubicAbs, _SVGPathSeg7);
|
||||
|
||||
function _SVGPathSegCurvetoCubicAbs(owningPathSegList, x, y, x1, y1, x2, y2) {
|
||||
@@ -543,9 +529,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoCubicRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg8) {
|
||||
var _SVGPathSegCurvetoCubicRel = /*#__PURE__*/function (_SVGPathSeg8) {
|
||||
_inherits(_SVGPathSegCurvetoCubicRel, _SVGPathSeg8);
|
||||
|
||||
function _SVGPathSegCurvetoCubicRel(owningPathSegList, x, y, x1, y1, x2, y2) {
|
||||
@@ -652,9 +636,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoQuadraticAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg9) {
|
||||
var _SVGPathSegCurvetoQuadraticAbs = /*#__PURE__*/function (_SVGPathSeg9) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticAbs, _SVGPathSeg9);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticAbs(owningPathSegList, x, y, x1, y1) {
|
||||
@@ -737,9 +719,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoQuadraticRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg10) {
|
||||
var _SVGPathSegCurvetoQuadraticRel = /*#__PURE__*/function (_SVGPathSeg10) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticRel, _SVGPathSeg10);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticRel(owningPathSegList, x, y, x1, y1) {
|
||||
@@ -822,9 +802,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegArcAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg11) {
|
||||
var _SVGPathSegArcAbs = /*#__PURE__*/function (_SVGPathSeg11) {
|
||||
_inherits(_SVGPathSegArcAbs, _SVGPathSeg11);
|
||||
|
||||
function _SVGPathSegArcAbs(owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
|
||||
@@ -943,9 +921,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegArcRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg12) {
|
||||
var _SVGPathSegArcRel = /*#__PURE__*/function (_SVGPathSeg12) {
|
||||
_inherits(_SVGPathSegArcRel, _SVGPathSeg12);
|
||||
|
||||
function _SVGPathSegArcRel(owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
|
||||
@@ -1064,9 +1040,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoHorizontalAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg13) {
|
||||
var _SVGPathSegLinetoHorizontalAbs = /*#__PURE__*/function (_SVGPathSeg13) {
|
||||
_inherits(_SVGPathSegLinetoHorizontalAbs, _SVGPathSeg13);
|
||||
|
||||
function _SVGPathSegLinetoHorizontalAbs(owningPathSegList, x) {
|
||||
@@ -1111,9 +1085,7 @@
|
||||
enumerable: true
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoHorizontalRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg14) {
|
||||
var _SVGPathSegLinetoHorizontalRel = /*#__PURE__*/function (_SVGPathSeg14) {
|
||||
_inherits(_SVGPathSegLinetoHorizontalRel, _SVGPathSeg14);
|
||||
|
||||
function _SVGPathSegLinetoHorizontalRel(owningPathSegList, x) {
|
||||
@@ -1158,9 +1130,7 @@
|
||||
enumerable: true
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoVerticalAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg15) {
|
||||
var _SVGPathSegLinetoVerticalAbs = /*#__PURE__*/function (_SVGPathSeg15) {
|
||||
_inherits(_SVGPathSegLinetoVerticalAbs, _SVGPathSeg15);
|
||||
|
||||
function _SVGPathSegLinetoVerticalAbs(owningPathSegList, y) {
|
||||
@@ -1205,9 +1175,7 @@
|
||||
enumerable: true
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoVerticalRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg16) {
|
||||
var _SVGPathSegLinetoVerticalRel = /*#__PURE__*/function (_SVGPathSeg16) {
|
||||
_inherits(_SVGPathSegLinetoVerticalRel, _SVGPathSeg16);
|
||||
|
||||
function _SVGPathSegLinetoVerticalRel(owningPathSegList, y) {
|
||||
@@ -1252,9 +1220,7 @@
|
||||
enumerable: true
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoCubicSmoothAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg17) {
|
||||
var _SVGPathSegCurvetoCubicSmoothAbs = /*#__PURE__*/function (_SVGPathSeg17) {
|
||||
_inherits(_SVGPathSegCurvetoCubicSmoothAbs, _SVGPathSeg17);
|
||||
|
||||
function _SVGPathSegCurvetoCubicSmoothAbs(owningPathSegList, x, y, x2, y2) {
|
||||
@@ -1337,9 +1303,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoCubicSmoothRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg18) {
|
||||
var _SVGPathSegCurvetoCubicSmoothRel = /*#__PURE__*/function (_SVGPathSeg18) {
|
||||
_inherits(_SVGPathSegCurvetoCubicSmoothRel, _SVGPathSeg18);
|
||||
|
||||
function _SVGPathSegCurvetoCubicSmoothRel(owningPathSegList, x, y, x2, y2) {
|
||||
@@ -1422,9 +1386,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoQuadraticSmoothAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg19) {
|
||||
var _SVGPathSegCurvetoQuadraticSmoothAbs = /*#__PURE__*/function (_SVGPathSeg19) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticSmoothAbs, _SVGPathSeg19);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticSmoothAbs(owningPathSegList, x, y) {
|
||||
@@ -1483,9 +1445,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoQuadraticSmoothRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg20) {
|
||||
var _SVGPathSegCurvetoQuadraticSmoothRel = /*#__PURE__*/function (_SVGPathSeg20) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticSmoothRel, _SVGPathSeg20);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticSmoothRel(owningPathSegList, x, y) {
|
||||
@@ -1681,9 +1641,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);
|
||||
|
||||
@@ -1867,9 +1825,7 @@
|
||||
|
||||
var owningPathSegList = this; // eslint-disable-line consistent-this
|
||||
|
||||
var Builder =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Builder = /*#__PURE__*/function () {
|
||||
function Builder() {
|
||||
_classCallCheck(this, Builder);
|
||||
|
||||
@@ -1886,9 +1842,7 @@
|
||||
return Builder;
|
||||
}();
|
||||
|
||||
var Source =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Source = /*#__PURE__*/function () {
|
||||
function Source(string) {
|
||||
_classCallCheck(this, Source);
|
||||
|
||||
|
||||
180
dist/svgcanvas-iife.js
vendored
180
dist/svgcanvas-iife.js
vendored
@@ -211,9 +211,7 @@ var SvgCanvas = (function () {
|
||||
(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);
|
||||
|
||||
@@ -257,9 +255,7 @@ var SvgCanvas = (function () {
|
||||
_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) {
|
||||
@@ -288,9 +284,7 @@ var SvgCanvas = (function () {
|
||||
return _SVGPathSegClosePath;
|
||||
}(_SVGPathSeg);
|
||||
|
||||
var _SVGPathSegMovetoAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg3) {
|
||||
var _SVGPathSegMovetoAbs = /*#__PURE__*/function (_SVGPathSeg3) {
|
||||
_inherits(_SVGPathSegMovetoAbs, _SVGPathSeg3);
|
||||
|
||||
function _SVGPathSegMovetoAbs(owningPathSegList, x, y) {
|
||||
@@ -349,9 +343,7 @@ var SvgCanvas = (function () {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegMovetoRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg4) {
|
||||
var _SVGPathSegMovetoRel = /*#__PURE__*/function (_SVGPathSeg4) {
|
||||
_inherits(_SVGPathSegMovetoRel, _SVGPathSeg4);
|
||||
|
||||
function _SVGPathSegMovetoRel(owningPathSegList, x, y) {
|
||||
@@ -410,9 +402,7 @@ var SvgCanvas = (function () {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg5) {
|
||||
var _SVGPathSegLinetoAbs = /*#__PURE__*/function (_SVGPathSeg5) {
|
||||
_inherits(_SVGPathSegLinetoAbs, _SVGPathSeg5);
|
||||
|
||||
function _SVGPathSegLinetoAbs(owningPathSegList, x, y) {
|
||||
@@ -471,9 +461,7 @@ var SvgCanvas = (function () {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg6) {
|
||||
var _SVGPathSegLinetoRel = /*#__PURE__*/function (_SVGPathSeg6) {
|
||||
_inherits(_SVGPathSegLinetoRel, _SVGPathSeg6);
|
||||
|
||||
function _SVGPathSegLinetoRel(owningPathSegList, x, y) {
|
||||
@@ -532,9 +520,7 @@ var SvgCanvas = (function () {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoCubicAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg7) {
|
||||
var _SVGPathSegCurvetoCubicAbs = /*#__PURE__*/function (_SVGPathSeg7) {
|
||||
_inherits(_SVGPathSegCurvetoCubicAbs, _SVGPathSeg7);
|
||||
|
||||
function _SVGPathSegCurvetoCubicAbs(owningPathSegList, x, y, x1, y1, x2, y2) {
|
||||
@@ -641,9 +627,7 @@ var SvgCanvas = (function () {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoCubicRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg8) {
|
||||
var _SVGPathSegCurvetoCubicRel = /*#__PURE__*/function (_SVGPathSeg8) {
|
||||
_inherits(_SVGPathSegCurvetoCubicRel, _SVGPathSeg8);
|
||||
|
||||
function _SVGPathSegCurvetoCubicRel(owningPathSegList, x, y, x1, y1, x2, y2) {
|
||||
@@ -750,9 +734,7 @@ var SvgCanvas = (function () {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoQuadraticAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg9) {
|
||||
var _SVGPathSegCurvetoQuadraticAbs = /*#__PURE__*/function (_SVGPathSeg9) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticAbs, _SVGPathSeg9);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticAbs(owningPathSegList, x, y, x1, y1) {
|
||||
@@ -835,9 +817,7 @@ var SvgCanvas = (function () {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoQuadraticRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg10) {
|
||||
var _SVGPathSegCurvetoQuadraticRel = /*#__PURE__*/function (_SVGPathSeg10) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticRel, _SVGPathSeg10);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticRel(owningPathSegList, x, y, x1, y1) {
|
||||
@@ -920,9 +900,7 @@ var SvgCanvas = (function () {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegArcAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg11) {
|
||||
var _SVGPathSegArcAbs = /*#__PURE__*/function (_SVGPathSeg11) {
|
||||
_inherits(_SVGPathSegArcAbs, _SVGPathSeg11);
|
||||
|
||||
function _SVGPathSegArcAbs(owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
|
||||
@@ -1041,9 +1019,7 @@ var SvgCanvas = (function () {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegArcRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg12) {
|
||||
var _SVGPathSegArcRel = /*#__PURE__*/function (_SVGPathSeg12) {
|
||||
_inherits(_SVGPathSegArcRel, _SVGPathSeg12);
|
||||
|
||||
function _SVGPathSegArcRel(owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
|
||||
@@ -1162,9 +1138,7 @@ var SvgCanvas = (function () {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoHorizontalAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg13) {
|
||||
var _SVGPathSegLinetoHorizontalAbs = /*#__PURE__*/function (_SVGPathSeg13) {
|
||||
_inherits(_SVGPathSegLinetoHorizontalAbs, _SVGPathSeg13);
|
||||
|
||||
function _SVGPathSegLinetoHorizontalAbs(owningPathSegList, x) {
|
||||
@@ -1209,9 +1183,7 @@ var SvgCanvas = (function () {
|
||||
enumerable: true
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoHorizontalRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg14) {
|
||||
var _SVGPathSegLinetoHorizontalRel = /*#__PURE__*/function (_SVGPathSeg14) {
|
||||
_inherits(_SVGPathSegLinetoHorizontalRel, _SVGPathSeg14);
|
||||
|
||||
function _SVGPathSegLinetoHorizontalRel(owningPathSegList, x) {
|
||||
@@ -1256,9 +1228,7 @@ var SvgCanvas = (function () {
|
||||
enumerable: true
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoVerticalAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg15) {
|
||||
var _SVGPathSegLinetoVerticalAbs = /*#__PURE__*/function (_SVGPathSeg15) {
|
||||
_inherits(_SVGPathSegLinetoVerticalAbs, _SVGPathSeg15);
|
||||
|
||||
function _SVGPathSegLinetoVerticalAbs(owningPathSegList, y) {
|
||||
@@ -1303,9 +1273,7 @@ var SvgCanvas = (function () {
|
||||
enumerable: true
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoVerticalRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg16) {
|
||||
var _SVGPathSegLinetoVerticalRel = /*#__PURE__*/function (_SVGPathSeg16) {
|
||||
_inherits(_SVGPathSegLinetoVerticalRel, _SVGPathSeg16);
|
||||
|
||||
function _SVGPathSegLinetoVerticalRel(owningPathSegList, y) {
|
||||
@@ -1350,9 +1318,7 @@ var SvgCanvas = (function () {
|
||||
enumerable: true
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoCubicSmoothAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg17) {
|
||||
var _SVGPathSegCurvetoCubicSmoothAbs = /*#__PURE__*/function (_SVGPathSeg17) {
|
||||
_inherits(_SVGPathSegCurvetoCubicSmoothAbs, _SVGPathSeg17);
|
||||
|
||||
function _SVGPathSegCurvetoCubicSmoothAbs(owningPathSegList, x, y, x2, y2) {
|
||||
@@ -1435,9 +1401,7 @@ var SvgCanvas = (function () {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoCubicSmoothRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg18) {
|
||||
var _SVGPathSegCurvetoCubicSmoothRel = /*#__PURE__*/function (_SVGPathSeg18) {
|
||||
_inherits(_SVGPathSegCurvetoCubicSmoothRel, _SVGPathSeg18);
|
||||
|
||||
function _SVGPathSegCurvetoCubicSmoothRel(owningPathSegList, x, y, x2, y2) {
|
||||
@@ -1520,9 +1484,7 @@ var SvgCanvas = (function () {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoQuadraticSmoothAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg19) {
|
||||
var _SVGPathSegCurvetoQuadraticSmoothAbs = /*#__PURE__*/function (_SVGPathSeg19) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticSmoothAbs, _SVGPathSeg19);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticSmoothAbs(owningPathSegList, x, y) {
|
||||
@@ -1581,9 +1543,7 @@ var SvgCanvas = (function () {
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoQuadraticSmoothRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg20) {
|
||||
var _SVGPathSegCurvetoQuadraticSmoothRel = /*#__PURE__*/function (_SVGPathSeg20) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticSmoothRel, _SVGPathSeg20);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticSmoothRel(owningPathSegList, x, y) {
|
||||
@@ -1779,9 +1739,7 @@ var SvgCanvas = (function () {
|
||||
|
||||
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);
|
||||
|
||||
@@ -1965,9 +1923,7 @@ var SvgCanvas = (function () {
|
||||
|
||||
var owningPathSegList = this; // eslint-disable-line consistent-this
|
||||
|
||||
var Builder =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Builder = /*#__PURE__*/function () {
|
||||
function Builder() {
|
||||
_classCallCheck(this, Builder);
|
||||
|
||||
@@ -1984,9 +1940,7 @@ var SvgCanvas = (function () {
|
||||
return Builder;
|
||||
}();
|
||||
|
||||
var Source =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Source = /*#__PURE__*/function () {
|
||||
function Source(string) {
|
||||
_classCallCheck(this, Source);
|
||||
|
||||
@@ -3248,9 +3202,7 @@ var SvgCanvas = (function () {
|
||||
* @implements {module:SVGTransformList.SVGEditTransformList}
|
||||
*/
|
||||
|
||||
var SVGTransformList =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var SVGTransformList = /*#__PURE__*/function () {
|
||||
// eslint-disable-line no-shadow
|
||||
|
||||
/**
|
||||
@@ -3843,9 +3795,7 @@ var SvgCanvas = (function () {
|
||||
* Base class for commands.
|
||||
*/
|
||||
|
||||
var Command =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Command = /*#__PURE__*/function () {
|
||||
function Command() {
|
||||
_classCallCheck(this, Command);
|
||||
}
|
||||
@@ -3939,9 +3889,7 @@ var SvgCanvas = (function () {
|
||||
*/
|
||||
|
||||
|
||||
var MoveElementCommand =
|
||||
/*#__PURE__*/
|
||||
function (_Command) {
|
||||
var MoveElementCommand = /*#__PURE__*/function (_Command) {
|
||||
_inherits(MoveElementCommand, _Command);
|
||||
|
||||
/**
|
||||
@@ -4035,9 +3983,7 @@ var SvgCanvas = (function () {
|
||||
* @implements {module:history.HistoryCommand}
|
||||
*/
|
||||
|
||||
var InsertElementCommand =
|
||||
/*#__PURE__*/
|
||||
function (_Command2) {
|
||||
var InsertElementCommand = /*#__PURE__*/function (_Command2) {
|
||||
_inherits(InsertElementCommand, _Command2);
|
||||
|
||||
/**
|
||||
@@ -4127,9 +4073,7 @@ var SvgCanvas = (function () {
|
||||
* @implements {module:history.HistoryCommand}
|
||||
*/
|
||||
|
||||
var RemoveElementCommand =
|
||||
/*#__PURE__*/
|
||||
function (_Command3) {
|
||||
var RemoveElementCommand = /*#__PURE__*/function (_Command3) {
|
||||
_inherits(RemoveElementCommand, _Command3);
|
||||
|
||||
/**
|
||||
@@ -4241,9 +4185,7 @@ var SvgCanvas = (function () {
|
||||
* @implements {module:history.HistoryCommand}
|
||||
*/
|
||||
|
||||
var ChangeElementCommand =
|
||||
/*#__PURE__*/
|
||||
function (_Command4) {
|
||||
var ChangeElementCommand = /*#__PURE__*/function (_Command4) {
|
||||
_inherits(ChangeElementCommand, _Command4);
|
||||
|
||||
/**
|
||||
@@ -4436,9 +4378,7 @@ var SvgCanvas = (function () {
|
||||
* @implements {module:history.HistoryCommand}
|
||||
*/
|
||||
|
||||
var BatchCommand =
|
||||
/*#__PURE__*/
|
||||
function (_Command5) {
|
||||
var BatchCommand = /*#__PURE__*/function (_Command5) {
|
||||
_inherits(BatchCommand, _Command5);
|
||||
|
||||
/**
|
||||
@@ -4564,9 +4504,7 @@ var SvgCanvas = (function () {
|
||||
*
|
||||
*/
|
||||
|
||||
var UndoManager =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var UndoManager = /*#__PURE__*/function () {
|
||||
/**
|
||||
* @param {module:history.HistoryEventHandler} historyEventHandler
|
||||
*/
|
||||
@@ -5705,9 +5643,7 @@ var SvgCanvas = (function () {
|
||||
*
|
||||
*/
|
||||
|
||||
var Segment =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Segment = /*#__PURE__*/function () {
|
||||
/**
|
||||
* @param {Integer} index
|
||||
* @param {SVGPathSeg} item
|
||||
@@ -5935,9 +5871,7 @@ var SvgCanvas = (function () {
|
||||
*
|
||||
*/
|
||||
|
||||
var Path =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Path = /*#__PURE__*/function () {
|
||||
/**
|
||||
* @param {SVGPathElement} elem
|
||||
* @throws {Error} If constructed without a path element
|
||||
@@ -9434,9 +9368,7 @@ var SvgCanvas = (function () {
|
||||
* @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.
|
||||
@@ -9731,9 +9663,7 @@ var SvgCanvas = (function () {
|
||||
* @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.
|
||||
@@ -9946,9 +9876,7 @@ var SvgCanvas = (function () {
|
||||
*/
|
||||
|
||||
|
||||
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
|
||||
@@ -11378,9 +11306,7 @@ var SvgCanvas = (function () {
|
||||
*/
|
||||
|
||||
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) {
|
||||
@@ -12827,9 +12753,7 @@ var SvgCanvas = (function () {
|
||||
* 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
|
||||
@@ -13076,9 +13000,7 @@ var SvgCanvas = (function () {
|
||||
* Manage all selector objects (selection boxes).
|
||||
*/
|
||||
|
||||
var SelectorManager =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var SelectorManager = /*#__PURE__*/function () {
|
||||
/**
|
||||
* Sets up properties and calls `initGroup`.
|
||||
*/
|
||||
@@ -14551,12 +14473,8 @@ var SvgCanvas = (function () {
|
||||
*/
|
||||
|
||||
|
||||
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) {
|
||||
@@ -17769,12 +17687,8 @@ var SvgCanvas = (function () {
|
||||
* @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,
|
||||
@@ -17917,12 +17831,8 @@ var SvgCanvas = (function () {
|
||||
*/
|
||||
|
||||
|
||||
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,
|
||||
|
||||
2
dist/svgcanvas-iife.min.js.map
vendored
2
dist/svgcanvas-iife.min.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user