- Build: Update per latest Rollup
- npm: Update devDeps
This commit is contained in:
267
dist/extensions/ext-server_moinsave.js
vendored
267
dist/extensions/ext-server_moinsave.js
vendored
@@ -106,7 +106,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
return _setPrototypeOf(o, p);
|
||||
}
|
||||
|
||||
function isNativeReflectConstruct() {
|
||||
function _isNativeReflectConstruct() {
|
||||
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
||||
if (Reflect.construct.sham) return false;
|
||||
if (typeof Proxy === "function") return true;
|
||||
@@ -120,7 +120,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}
|
||||
|
||||
function _construct(Parent, args, Class) {
|
||||
if (isNativeReflectConstruct()) {
|
||||
if (_isNativeReflectConstruct()) {
|
||||
_construct = Reflect.construct;
|
||||
} else {
|
||||
_construct = function _construct(Parent, args, Class) {
|
||||
@@ -152,6 +152,23 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
return _assertThisInitialized(self);
|
||||
}
|
||||
|
||||
function _createSuper(Derived) {
|
||||
return function () {
|
||||
var Super = _getPrototypeOf(Derived),
|
||||
result;
|
||||
|
||||
if (_isNativeReflectConstruct()) {
|
||||
var NewTarget = _getPrototypeOf(this).constructor;
|
||||
|
||||
result = Reflect.construct(Super, arguments, NewTarget);
|
||||
} else {
|
||||
result = Super.apply(this, arguments);
|
||||
}
|
||||
|
||||
return _possibleConstructorReturn(this, result);
|
||||
};
|
||||
}
|
||||
|
||||
function _superPropBase(object, property) {
|
||||
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
||||
object = _getPrototypeOf(object);
|
||||
@@ -183,19 +200,15 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}
|
||||
|
||||
function _slicedToArray(arr, i) {
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
||||
}
|
||||
|
||||
function _toConsumableArray(arr) {
|
||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
||||
}
|
||||
|
||||
function _arrayWithoutHoles(arr) {
|
||||
if (Array.isArray(arr)) {
|
||||
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
||||
|
||||
return arr2;
|
||||
}
|
||||
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
||||
}
|
||||
|
||||
function _arrayWithHoles(arr) {
|
||||
@@ -203,14 +216,11 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}
|
||||
|
||||
function _iterableToArray(iter) {
|
||||
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
||||
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
||||
}
|
||||
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
var _arr = [];
|
||||
var _n = true;
|
||||
var _d = false;
|
||||
@@ -236,12 +246,29 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
return _arr;
|
||||
}
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) {
|
||||
if (!o) return;
|
||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||||
if (n === "Map" || n === "Set") return Array.from(n);
|
||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||
}
|
||||
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
if (len == null || len > arr.length) len = arr.length;
|
||||
|
||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||
|
||||
return arr2;
|
||||
}
|
||||
|
||||
function _nonIterableSpread() {
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
function _nonIterableRest() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1658,12 +1685,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
SkewBase: /*#__PURE__*/function (_this$Type$matrix) {
|
||||
_inherits(SkewBase, _this$Type$matrix);
|
||||
|
||||
var _super = _createSuper(SkewBase);
|
||||
|
||||
function SkewBase(s) {
|
||||
var _this3;
|
||||
|
||||
_classCallCheck(this, SkewBase);
|
||||
|
||||
_this3 = _possibleConstructorReturn(this, _getPrototypeOf(SkewBase).call(this, s));
|
||||
_this3 = _super.call(this, s);
|
||||
_this3.angle = new svg.Property('angle', s);
|
||||
return _this3;
|
||||
}
|
||||
@@ -1675,12 +1704,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
skewX: /*#__PURE__*/function (_this$Type$SkewBase) {
|
||||
_inherits(skewX, _this$Type$SkewBase);
|
||||
|
||||
var _super2 = _createSuper(skewX);
|
||||
|
||||
function skewX(s) {
|
||||
var _this4;
|
||||
|
||||
_classCallCheck(this, skewX);
|
||||
|
||||
_this4 = _possibleConstructorReturn(this, _getPrototypeOf(skewX).call(this, s));
|
||||
_this4 = _super2.call(this, s);
|
||||
_this4.m = [1, 0, Math.tan(_this4.angle.toRadians()), 1, 0, 0];
|
||||
return _this4;
|
||||
}
|
||||
@@ -1690,12 +1721,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
skewY: /*#__PURE__*/function (_this$Type$SkewBase2) {
|
||||
_inherits(skewY, _this$Type$SkewBase2);
|
||||
|
||||
var _super3 = _createSuper(skewY);
|
||||
|
||||
function skewY(s) {
|
||||
var _this5;
|
||||
|
||||
_classCallCheck(this, skewY);
|
||||
|
||||
_this5 = _possibleConstructorReturn(this, _getPrototypeOf(skewY).call(this, s));
|
||||
_this5 = _super3.call(this, s);
|
||||
_this5.m = [1, Math.tan(_this5.angle.toRadians()), 0, 1, 0, 0];
|
||||
return _this5;
|
||||
}
|
||||
@@ -2029,10 +2062,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.RenderedElementBase = /*#__PURE__*/function (_svg$Element$ElementB) {
|
||||
_inherits(_class5, _svg$Element$ElementB);
|
||||
|
||||
var _super4 = _createSuper(_class5);
|
||||
|
||||
function _class5() {
|
||||
_classCallCheck(this, _class5);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class5).apply(this, arguments));
|
||||
return _super4.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class5, [{
|
||||
@@ -2134,10 +2169,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.PathElementBase = /*#__PURE__*/function (_svg$Element$Rendered) {
|
||||
_inherits(_class6, _svg$Element$Rendered);
|
||||
|
||||
var _super5 = _createSuper(_class6);
|
||||
|
||||
function _class6() {
|
||||
_classCallCheck(this, _class6);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class6).apply(this, arguments));
|
||||
return _super5.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class6, [{
|
||||
@@ -2203,10 +2240,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.svg = /*#__PURE__*/function (_svg$Element$Rendered2) {
|
||||
_inherits(_class7, _svg$Element$Rendered2);
|
||||
|
||||
var _super6 = _createSuper(_class7);
|
||||
|
||||
function _class7() {
|
||||
_classCallCheck(this, _class7);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class7).apply(this, arguments));
|
||||
return _super6.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class7, [{
|
||||
@@ -2284,10 +2323,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.rect = /*#__PURE__*/function (_svg$Element$PathElem) {
|
||||
_inherits(_class8, _svg$Element$PathElem);
|
||||
|
||||
var _super7 = _createSuper(_class8);
|
||||
|
||||
function _class8() {
|
||||
_classCallCheck(this, _class8);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class8).apply(this, arguments));
|
||||
return _super7.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class8, [{
|
||||
@@ -2329,10 +2370,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.circle = /*#__PURE__*/function (_svg$Element$PathElem2) {
|
||||
_inherits(_class9, _svg$Element$PathElem2);
|
||||
|
||||
var _super8 = _createSuper(_class9);
|
||||
|
||||
function _class9() {
|
||||
_classCallCheck(this, _class9);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class9).apply(this, arguments));
|
||||
return _super8.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class9, [{
|
||||
@@ -2361,10 +2404,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.ellipse = /*#__PURE__*/function (_svg$Element$PathElem3) {
|
||||
_inherits(_class10, _svg$Element$PathElem3);
|
||||
|
||||
var _super9 = _createSuper(_class10);
|
||||
|
||||
function _class10() {
|
||||
_classCallCheck(this, _class10);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class10).apply(this, arguments));
|
||||
return _super9.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class10, [{
|
||||
@@ -2396,10 +2441,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.line = /*#__PURE__*/function (_svg$Element$PathElem4) {
|
||||
_inherits(_class11, _svg$Element$PathElem4);
|
||||
|
||||
var _super10 = _createSuper(_class11);
|
||||
|
||||
function _class11() {
|
||||
_classCallCheck(this, _class11);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class11).apply(this, arguments));
|
||||
return _super10.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class11, [{
|
||||
@@ -2436,12 +2483,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.polyline = /*#__PURE__*/function (_svg$Element$PathElem5) {
|
||||
_inherits(_class12, _svg$Element$PathElem5);
|
||||
|
||||
var _super11 = _createSuper(_class12);
|
||||
|
||||
function _class12(node) {
|
||||
var _this8;
|
||||
|
||||
_classCallCheck(this, _class12);
|
||||
|
||||
_this8 = _possibleConstructorReturn(this, _getPrototypeOf(_class12).call(this, node));
|
||||
_this8 = _super11.call(this, node);
|
||||
_this8.points = svg.CreatePath(_this8.attribute('points').value);
|
||||
return _this8;
|
||||
}
|
||||
@@ -2490,10 +2539,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.polygon = /*#__PURE__*/function (_svg$Element$polyline) {
|
||||
_inherits(_class13, _svg$Element$polyline);
|
||||
|
||||
var _super12 = _createSuper(_class13);
|
||||
|
||||
function _class13() {
|
||||
_classCallCheck(this, _class13);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class13).apply(this, arguments));
|
||||
return _super12.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class13, [{
|
||||
@@ -2517,12 +2568,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.path = /*#__PURE__*/function (_svg$Element$PathElem6) {
|
||||
_inherits(_class14, _svg$Element$PathElem6);
|
||||
|
||||
var _super13 = _createSuper(_class14);
|
||||
|
||||
function _class14(node) {
|
||||
var _this9;
|
||||
|
||||
_classCallCheck(this, _class14);
|
||||
|
||||
_this9 = _possibleConstructorReturn(this, _getPrototypeOf(_class14).call(this, node));
|
||||
_this9 = _super13.call(this, node);
|
||||
|
||||
var d = _this9.attribute('d').value // TODO: convert to real lexer based on https://www.w3.org/TR/SVG11/paths.html#PathDataBNF
|
||||
.replace(/,/gm, ' ') // get rid of all commas
|
||||
@@ -2894,10 +2947,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.pattern = /*#__PURE__*/function (_svg$Element$ElementB2) {
|
||||
_inherits(_class15, _svg$Element$ElementB2);
|
||||
|
||||
var _super14 = _createSuper(_class15);
|
||||
|
||||
function _class15() {
|
||||
_classCallCheck(this, _class15);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class15).apply(this, arguments));
|
||||
return _super14.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class15, [{
|
||||
@@ -2943,10 +2998,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.marker = /*#__PURE__*/function (_svg$Element$ElementB3) {
|
||||
_inherits(_class16, _svg$Element$ElementB3);
|
||||
|
||||
var _super15 = _createSuper(_class16);
|
||||
|
||||
function _class16() {
|
||||
_classCallCheck(this, _class16);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class16).apply(this, arguments));
|
||||
return _super15.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class16, [{
|
||||
@@ -2981,10 +3038,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.defs = /*#__PURE__*/function (_svg$Element$ElementB4) {
|
||||
_inherits(_class17, _svg$Element$ElementB4);
|
||||
|
||||
var _super16 = _createSuper(_class17);
|
||||
|
||||
function _class17() {
|
||||
_classCallCheck(this, _class17);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class17).apply(this, arguments));
|
||||
return _super16.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class17, [{
|
||||
@@ -3000,12 +3059,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.GradientBase = /*#__PURE__*/function (_svg$Element$ElementB5) {
|
||||
_inherits(_class18, _svg$Element$ElementB5);
|
||||
|
||||
var _super17 = _createSuper(_class18);
|
||||
|
||||
function _class18(node) {
|
||||
var _this10;
|
||||
|
||||
_classCallCheck(this, _class18);
|
||||
|
||||
_this10 = _possibleConstructorReturn(this, _getPrototypeOf(_class18).call(this, node));
|
||||
_this10 = _super17.call(this, node);
|
||||
_this10.gradientUnits = _this10.attribute('gradientUnits').valueOrDefault('objectBoundingBox');
|
||||
_this10.stops = [];
|
||||
|
||||
@@ -3081,10 +3142,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.linearGradient = /*#__PURE__*/function (_svg$Element$Gradient) {
|
||||
_inherits(_class19, _svg$Element$Gradient);
|
||||
|
||||
var _super18 = _createSuper(_class19);
|
||||
|
||||
function _class19() {
|
||||
_classCallCheck(this, _class19);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class19).apply(this, arguments));
|
||||
return _super18.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class19, [{
|
||||
@@ -3116,10 +3179,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.radialGradient = /*#__PURE__*/function (_svg$Element$Gradient2) {
|
||||
_inherits(_class20, _svg$Element$Gradient2);
|
||||
|
||||
var _super19 = _createSuper(_class20);
|
||||
|
||||
function _class20() {
|
||||
_classCallCheck(this, _class20);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class20).apply(this, arguments));
|
||||
return _super19.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class20, [{
|
||||
@@ -3155,12 +3220,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.stop = /*#__PURE__*/function (_svg$Element$ElementB6) {
|
||||
_inherits(_class21, _svg$Element$ElementB6);
|
||||
|
||||
var _super20 = _createSuper(_class21);
|
||||
|
||||
function _class21(node) {
|
||||
var _this11;
|
||||
|
||||
_classCallCheck(this, _class21);
|
||||
|
||||
_this11 = _possibleConstructorReturn(this, _getPrototypeOf(_class21).call(this, node));
|
||||
_this11 = _super20.call(this, node);
|
||||
_this11.offset = _this11.attribute('offset').numValue();
|
||||
if (_this11.offset < 0) _this11.offset = 0;
|
||||
if (_this11.offset > 1) _this11.offset = 1;
|
||||
@@ -3182,12 +3249,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.AnimateBase = /*#__PURE__*/function (_svg$Element$ElementB7) {
|
||||
_inherits(_class22, _svg$Element$ElementB7);
|
||||
|
||||
var _super21 = _createSuper(_class22);
|
||||
|
||||
function _class22(node) {
|
||||
var _this12;
|
||||
|
||||
_classCallCheck(this, _class22);
|
||||
|
||||
_this12 = _possibleConstructorReturn(this, _getPrototypeOf(_class22).call(this, node));
|
||||
_this12 = _super21.call(this, node);
|
||||
svg.Animations.push(_assertThisInitialized(_this12));
|
||||
_this12.duration = 0.0;
|
||||
_this12.begin = _this12.attribute('begin').toMilliseconds();
|
||||
@@ -3297,10 +3366,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.animate = /*#__PURE__*/function (_svg$Element$AnimateB) {
|
||||
_inherits(_class23, _svg$Element$AnimateB);
|
||||
|
||||
var _super22 = _createSuper(_class23);
|
||||
|
||||
function _class23() {
|
||||
_classCallCheck(this, _class23);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class23).apply(this, arguments));
|
||||
return _super22.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class23, [{
|
||||
@@ -3320,10 +3391,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.animateColor = /*#__PURE__*/function (_svg$Element$AnimateB2) {
|
||||
_inherits(_class24, _svg$Element$AnimateB2);
|
||||
|
||||
var _super23 = _createSuper(_class24);
|
||||
|
||||
function _class24() {
|
||||
_classCallCheck(this, _class24);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class24).apply(this, arguments));
|
||||
return _super23.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class24, [{
|
||||
@@ -3352,10 +3425,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.animateTransform = /*#__PURE__*/function (_svg$Element$animate) {
|
||||
_inherits(_class25, _svg$Element$animate);
|
||||
|
||||
var _super24 = _createSuper(_class25);
|
||||
|
||||
function _class25() {
|
||||
_classCallCheck(this, _class25);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class25).apply(this, arguments));
|
||||
return _super24.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class25, [{
|
||||
@@ -3380,12 +3455,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.font = /*#__PURE__*/function (_svg$Element$ElementB8) {
|
||||
_inherits(_class26, _svg$Element$ElementB8);
|
||||
|
||||
var _super25 = _createSuper(_class26);
|
||||
|
||||
function _class26(node) {
|
||||
var _this13;
|
||||
|
||||
_classCallCheck(this, _class26);
|
||||
|
||||
_this13 = _possibleConstructorReturn(this, _getPrototypeOf(_class26).call(this, node));
|
||||
_this13 = _super25.call(this, node);
|
||||
_this13.horizAdvX = _this13.attribute('horiz-adv-x').numValue();
|
||||
_this13.isRTL = false;
|
||||
_this13.isArabic = false;
|
||||
@@ -3428,12 +3505,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.fontface = /*#__PURE__*/function (_svg$Element$ElementB9) {
|
||||
_inherits(_class27, _svg$Element$ElementB9);
|
||||
|
||||
var _super26 = _createSuper(_class27);
|
||||
|
||||
function _class27(node) {
|
||||
var _this14;
|
||||
|
||||
_classCallCheck(this, _class27);
|
||||
|
||||
_this14 = _possibleConstructorReturn(this, _getPrototypeOf(_class27).call(this, node));
|
||||
_this14 = _super26.call(this, node);
|
||||
_this14.ascent = _this14.attribute('ascent').value;
|
||||
_this14.descent = _this14.attribute('descent').value;
|
||||
_this14.unitsPerEm = _this14.attribute('units-per-em').numValue();
|
||||
@@ -3447,12 +3526,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.missingglyph = /*#__PURE__*/function (_svg$Element$path) {
|
||||
_inherits(_class28, _svg$Element$path);
|
||||
|
||||
var _super27 = _createSuper(_class28);
|
||||
|
||||
function _class28(node) {
|
||||
var _this15;
|
||||
|
||||
_classCallCheck(this, _class28);
|
||||
|
||||
_this15 = _possibleConstructorReturn(this, _getPrototypeOf(_class28).call(this, node));
|
||||
_this15 = _super27.call(this, node);
|
||||
_this15.horizAdvX = 0;
|
||||
return _this15;
|
||||
}
|
||||
@@ -3464,12 +3545,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.glyph = /*#__PURE__*/function (_svg$Element$path2) {
|
||||
_inherits(_class29, _svg$Element$path2);
|
||||
|
||||
var _super28 = _createSuper(_class29);
|
||||
|
||||
function _class29(node) {
|
||||
var _this16;
|
||||
|
||||
_classCallCheck(this, _class29);
|
||||
|
||||
_this16 = _possibleConstructorReturn(this, _getPrototypeOf(_class29).call(this, node));
|
||||
_this16 = _super28.call(this, node);
|
||||
_this16.horizAdvX = _this16.attribute('horiz-adv-x').numValue();
|
||||
_this16.unicode = _this16.attribute('unicode').value;
|
||||
_this16.arabicForm = _this16.attribute('arabic-form').value;
|
||||
@@ -3483,10 +3566,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.text = /*#__PURE__*/function (_svg$Element$Rendered3) {
|
||||
_inherits(_class30, _svg$Element$Rendered3);
|
||||
|
||||
var _super29 = _createSuper(_class30);
|
||||
|
||||
function _class30(node) {
|
||||
_classCallCheck(this, _class30);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class30).call(this, node, true));
|
||||
return _super29.call(this, node, true);
|
||||
}
|
||||
|
||||
_createClass(_class30, [{
|
||||
@@ -3579,10 +3664,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.TextElementBase = /*#__PURE__*/function (_svg$Element$Rendered4) {
|
||||
_inherits(_class31, _svg$Element$Rendered4);
|
||||
|
||||
var _super30 = _createSuper(_class31);
|
||||
|
||||
function _class31() {
|
||||
_classCallCheck(this, _class31);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class31).apply(this, arguments));
|
||||
return _super30.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class31, [{
|
||||
@@ -3703,12 +3790,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.tspan = /*#__PURE__*/function (_svg$Element$TextElem) {
|
||||
_inherits(_class32, _svg$Element$TextElem);
|
||||
|
||||
var _super31 = _createSuper(_class32);
|
||||
|
||||
function _class32(node) {
|
||||
var _this18;
|
||||
|
||||
_classCallCheck(this, _class32);
|
||||
|
||||
_this18 = _possibleConstructorReturn(this, _getPrototypeOf(_class32).call(this, node, true));
|
||||
_this18 = _super31.call(this, node, true);
|
||||
_this18.text = node.nodeValue || node.text || '';
|
||||
return _this18;
|
||||
}
|
||||
@@ -3727,10 +3816,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.tref = /*#__PURE__*/function (_svg$Element$TextElem2) {
|
||||
_inherits(_class33, _svg$Element$TextElem2);
|
||||
|
||||
var _super32 = _createSuper(_class33);
|
||||
|
||||
function _class33() {
|
||||
_classCallCheck(this, _class33);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class33).apply(this, arguments));
|
||||
return _super32.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class33, [{
|
||||
@@ -3749,12 +3840,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.a = /*#__PURE__*/function (_svg$Element$TextElem3) {
|
||||
_inherits(_class34, _svg$Element$TextElem3);
|
||||
|
||||
var _super33 = _createSuper(_class34);
|
||||
|
||||
function _class34(node) {
|
||||
var _this19;
|
||||
|
||||
_classCallCheck(this, _class34);
|
||||
|
||||
_this19 = _possibleConstructorReturn(this, _getPrototypeOf(_class34).call(this, node));
|
||||
_this19 = _super33.call(this, node);
|
||||
_this19.hasText = true;
|
||||
|
||||
_toConsumableArray(node.childNodes).forEach(function (childNode) {
|
||||
@@ -3809,12 +3902,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.image = /*#__PURE__*/function (_svg$Element$Rendered5) {
|
||||
_inherits(_class35, _svg$Element$Rendered5);
|
||||
|
||||
var _super34 = _createSuper(_class35);
|
||||
|
||||
function _class35(node) {
|
||||
var _this20;
|
||||
|
||||
_classCallCheck(this, _class35);
|
||||
|
||||
_this20 = _possibleConstructorReturn(this, _getPrototypeOf(_class35).call(this, node));
|
||||
_this20 = _super34.call(this, node);
|
||||
|
||||
var href = _this20.getHrefAttribute().value;
|
||||
|
||||
@@ -3896,10 +3991,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.g = /*#__PURE__*/function (_svg$Element$Rendered6) {
|
||||
_inherits(_class36, _svg$Element$Rendered6);
|
||||
|
||||
var _super35 = _createSuper(_class36);
|
||||
|
||||
function _class36() {
|
||||
_classCallCheck(this, _class36);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class36).apply(this, arguments));
|
||||
return _super35.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class36, [{
|
||||
@@ -3920,10 +4017,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.symbol = /*#__PURE__*/function (_svg$Element$Rendered7) {
|
||||
_inherits(_class37, _svg$Element$Rendered7);
|
||||
|
||||
var _super36 = _createSuper(_class37);
|
||||
|
||||
function _class37() {
|
||||
_classCallCheck(this, _class37);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class37).apply(this, arguments));
|
||||
return _super36.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class37, [{
|
||||
@@ -3939,12 +4038,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.style = /*#__PURE__*/function (_svg$Element$ElementB10) {
|
||||
_inherits(_class38, _svg$Element$ElementB10);
|
||||
|
||||
var _super37 = _createSuper(_class38);
|
||||
|
||||
function _class38(node) {
|
||||
var _this21;
|
||||
|
||||
_classCallCheck(this, _class38);
|
||||
|
||||
_this21 = _possibleConstructorReturn(this, _getPrototypeOf(_class38).call(this, node)); // text, or spaces then CDATA
|
||||
_this21 = _super37.call(this, node); // text, or spaces then CDATA
|
||||
|
||||
var css = '';
|
||||
|
||||
@@ -4017,12 +4118,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.use = /*#__PURE__*/function (_svg$Element$Rendered8) {
|
||||
_inherits(_class39, _svg$Element$Rendered8);
|
||||
|
||||
var _super38 = _createSuper(_class39);
|
||||
|
||||
function _class39(node) {
|
||||
var _this22;
|
||||
|
||||
_classCallCheck(this, _class39);
|
||||
|
||||
_this22 = _possibleConstructorReturn(this, _getPrototypeOf(_class39).call(this, node));
|
||||
_this22 = _super38.call(this, node);
|
||||
_this22._el = _this22.getHrefAttribute().getDefinition();
|
||||
return _this22;
|
||||
}
|
||||
@@ -4087,10 +4190,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.mask = /*#__PURE__*/function (_svg$Element$ElementB11) {
|
||||
_inherits(_class40, _svg$Element$ElementB11);
|
||||
|
||||
var _super39 = _createSuper(_class40);
|
||||
|
||||
function _class40() {
|
||||
_classCallCheck(this, _class40);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class40).apply(this, arguments));
|
||||
return _super39.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class40, [{
|
||||
@@ -4147,10 +4252,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.clipPath = /*#__PURE__*/function (_svg$Element$ElementB12) {
|
||||
_inherits(_class41, _svg$Element$ElementB12);
|
||||
|
||||
var _super40 = _createSuper(_class41);
|
||||
|
||||
function _class41() {
|
||||
_classCallCheck(this, _class41);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class41).apply(this, arguments));
|
||||
return _super40.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class41, [{
|
||||
@@ -4187,10 +4294,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.filter = /*#__PURE__*/function (_svg$Element$ElementB13) {
|
||||
_inherits(_class42, _svg$Element$ElementB13);
|
||||
|
||||
var _super41 = _createSuper(_class42);
|
||||
|
||||
function _class42() {
|
||||
_classCallCheck(this, _class42);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class42).apply(this, arguments));
|
||||
return _super41.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class42, [{
|
||||
@@ -4239,10 +4348,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.feMorphology = /*#__PURE__*/function (_svg$Element$ElementB14) {
|
||||
_inherits(_class43, _svg$Element$ElementB14);
|
||||
|
||||
var _super42 = _createSuper(_class43);
|
||||
|
||||
function _class43() {
|
||||
_classCallCheck(this, _class43);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class43).apply(this, arguments));
|
||||
return _super42.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class43, [{
|
||||
@@ -4257,10 +4368,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.feComposite = /*#__PURE__*/function (_svg$Element$ElementB15) {
|
||||
_inherits(_class44, _svg$Element$ElementB15);
|
||||
|
||||
var _super43 = _createSuper(_class44);
|
||||
|
||||
function _class44() {
|
||||
_classCallCheck(this, _class44);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class44).apply(this, arguments));
|
||||
return _super43.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class44, [{
|
||||
@@ -4304,12 +4417,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.feColorMatrix = /*#__PURE__*/function (_svg$Element$ElementB16) {
|
||||
_inherits(_class45, _svg$Element$ElementB16);
|
||||
|
||||
var _super44 = _createSuper(_class45);
|
||||
|
||||
function _class45(node) {
|
||||
var _this23;
|
||||
|
||||
_classCallCheck(this, _class45);
|
||||
|
||||
_this23 = _possibleConstructorReturn(this, _getPrototypeOf(_class45).call(this, node));
|
||||
_this23 = _super44.call(this, node);
|
||||
var matrix = svg.ToNumberArray(_this23.attribute('values').value);
|
||||
|
||||
switch (_this23.attribute('type').valueOrDefault('matrix')) {
|
||||
@@ -4379,12 +4494,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.feGaussianBlur = /*#__PURE__*/function (_svg$Element$ElementB17) {
|
||||
_inherits(_class46, _svg$Element$ElementB17);
|
||||
|
||||
var _super45 = _createSuper(_class46);
|
||||
|
||||
function _class46(node) {
|
||||
var _this24;
|
||||
|
||||
_classCallCheck(this, _class46);
|
||||
|
||||
_this24 = _possibleConstructorReturn(this, _getPrototypeOf(_class46).call(this, node));
|
||||
_this24 = _super45.call(this, node);
|
||||
_this24.blurRadius = Math.floor(_this24.attribute('stdDeviation').numValue());
|
||||
_this24.extraFilterDistance = _this24.blurRadius;
|
||||
return _this24;
|
||||
@@ -4410,10 +4527,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.title = /*#__PURE__*/function (_svg$Element$ElementB18) {
|
||||
_inherits(_class47, _svg$Element$ElementB18);
|
||||
|
||||
var _super46 = _createSuper(_class47);
|
||||
|
||||
function _class47(node) {
|
||||
_classCallCheck(this, _class47);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class47).call(this));
|
||||
return _super46.call(this);
|
||||
}
|
||||
|
||||
return _class47;
|
||||
@@ -4423,10 +4542,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.desc = /*#__PURE__*/function (_svg$Element$ElementB19) {
|
||||
_inherits(_class48, _svg$Element$ElementB19);
|
||||
|
||||
var _super47 = _createSuper(_class48);
|
||||
|
||||
function _class48(node) {
|
||||
_classCallCheck(this, _class48);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class48).call(this));
|
||||
return _super47.call(this);
|
||||
}
|
||||
|
||||
return _class48;
|
||||
@@ -4435,12 +4556,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svg.Element.MISSING = /*#__PURE__*/function (_svg$Element$ElementB20) {
|
||||
_inherits(_class49, _svg$Element$ElementB20);
|
||||
|
||||
var _super48 = _createSuper(_class49);
|
||||
|
||||
function _class49(node) {
|
||||
var _this25;
|
||||
|
||||
_classCallCheck(this, _class49);
|
||||
|
||||
_this25 = _possibleConstructorReturn(this, _getPrototypeOf(_class49).call(this));
|
||||
_this25 = _super48.call(this);
|
||||
svg.log('ERROR: Element \'' + node.nodeName + '\' not yet implemented.');
|
||||
return _this25;
|
||||
}
|
||||
@@ -4773,19 +4896,17 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
init: function init(_ref) {
|
||||
var _this = this;
|
||||
|
||||
var $ = _ref.$,
|
||||
encode64 = _ref.encode64,
|
||||
importLocale = _ref.importLocale;
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
||||
var strings, svgEditor, svgCanvas, saveSvgAction;
|
||||
var $, encode64, importLocale, strings, svgEditor, svgCanvas, saveSvgAction;
|
||||
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
||||
while (1) {
|
||||
switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
_context2.next = 2;
|
||||
$ = _ref.$, encode64 = _ref.encode64, importLocale = _ref.importLocale;
|
||||
_context2.next = 3;
|
||||
return importLocale();
|
||||
|
||||
case 2:
|
||||
case 3:
|
||||
strings = _context2.sent;
|
||||
svgEditor = _this;
|
||||
svgCanvas = svgEditor.canvas;
|
||||
@@ -4799,14 +4920,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
svgEditor.setCustomHandlers({
|
||||
save: function save(win, data) {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var svg, _ref2, pathname, name, svgData, c, datauri, pngData;
|
||||
var svg, _URL, pathname, name, svgData, c, datauri, pngData;
|
||||
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
svg = '<?xml version="1.0"?>\n' + data;
|
||||
_ref2 = new URL(location), pathname = _ref2.pathname;
|
||||
_URL = new URL(location), pathname = _URL.pathname;
|
||||
name = pathname.replace(/\/+get\//, '');
|
||||
svgData = encode64(svg);
|
||||
|
||||
@@ -4847,7 +4968,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
||||
}
|
||||
});
|
||||
|
||||
case 8:
|
||||
case 9:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user