2 lines
55 KiB
JavaScript
2 lines
55 KiB
JavaScript
|
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.EMFJS=e():t.EMFJS=e()}(this,(()=>(()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{Error:()=>a,Renderer:()=>x,loggingEnabled:()=>c});var i,s=function(){function t(){}return t.prototype.flood=function(t,e,i,s,n){var o=document.createElementNS("http://www.w3.org/2000/svg","feFlood");e&&o.setAttribute("id",e),o.setAttribute("flood-color",i),o.setAttribute("flood-opacity",s.toString()),t.appendChild(o)},t.prototype.composite=function(t,e,i,s,n,o,r,a,h){var c=document.createElementNS("http://www.w3.org/2000/svg","feComposite");e&&c.setAttribute("id",e),c.setAttribute("in",i),c.setAttribute("in2",s),t.appendChild(c)},t}(),n=function(){function t(){this._path=""}return t.prototype.move=function(t,e){this._path+=" M ".concat(t," ").concat(e)},t.prototype.path=function(){return this._path.substr(1)},t.prototype.line=function(t){var e=this;t.forEach((function(t){e._path+=" L ".concat(t[0]," ").concat(t[1])}))},t.prototype.curveC=function(t,e,i,s,n,o){this._path+=" C ".concat(t," ").concat(e,", ").concat(i," ").concat(s,", ").concat(n," ").concat(o)},t.prototype.close=function(){this._path+=" Z"},t}(),o=function(){function t(t){this.filters=new s,this._defs=void 0,this._svg=t}return t.prototype.svg=function(t,e,i,s,n,o){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");return r.setAttribute("x",e.toString()),r.setAttribute("y",i.toString()),r.setAttribute("width",s.toString()),r.setAttribute("height",n.toString()),this._appendSettings(o,r),null!=t?t.appendChild(r):this._svg.appendChild(r),r},t.prototype.image=function(t,e,i,s,n,o,r){var a=document.createElementNS("http://www.w3.org/2000/svg","image");return a.setAttribute("x",e.toString()),a.setAttribute("y",i.toString()),a.setAttribute("width",s.toString()),a.setAttribute("height",n.toString()),a.setAttributeNS("http://www.w3.org/1999/xlink","href",o),this._appendSettings(r,a),t.appendChild(a),a},t.prototype.rect=function(t,e,i,s,n,o,r,a){var h=document.createElementNS("http://www.w3.org/2000/svg","rect");return h.setAttribute("x",e.toString()),h.setAttribute("y",i.toString()),h.setAttribute("width",s.toString()),h.setAttribute("height",n.toString()),void 0!==o&&(o instanceof Number?h.setAttribute("rx",o.toString()):o instanceof Object&&this._appendSettings(o,h)),void 0!==r&&h.setAttribute("ry",r.toString()),this._appendSettings(a,h),t.appendChild(h),h},t.prototype.line=function(t,e,i,s,n,o){var r=document.createElementNS("http://www.w3.org/2000/svg","line");return r.setAttribute("x1",e.toString()),r.setAttribute("y1",i.toString()),r.setAttribute("x2",s.toString()),r.setAttribute("y2",n.toString()),this._appendSettings(o,r),t.appendChild(r),r},t.prototype.polygon=function(t,e,i){var s=document.createElementNS("http://www.w3.org/2000/svg","polygon");return s.setAttribute("points",e.map((function(t){return t.join(",")})).join(" ")),this._appendSettings(i,s),t.appendChild(s),s},t.prototype.polyline=function(t,e,i){var s=document.createElementNS("http://www.w3.org/2000/svg","polyline");return s.setAttribute("points",e.map((function(t){return t.join(",")})).join(" ")),this._appendSettings(i,s),t.appendChild(s),s},t.prototype.ellipse=function(t,e,i,s,n,o){var r=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return r.setAttribute("cx",e.toString()),r.setAttribute("cy",i.toString()),r.setAttribute("rx",s.toString()),r.setAttribute("ry",n.toString()),this._appendSettings(o,r),t.appendChild(r),r},t.prototype.path=function(t,e,i){var s=document.createElementNS("http://www.w3.org/2000/svg","path");return s.setAttribute("d",e.path()),this._appendSettings(i,s),t.appendChild(s),s},t.prototy
|
||
|
//# sourceMappingURL=EMFJS.bundle.min.js.map
|