StructV2/dist/sv.js

1 line
3.8 MiB
JavaScript
Raw Normal View History

2021-09-13 13:35:59 +00:00
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var i in n)("object"==typeof exports?exports:t)[i]=n[i]}}(window,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var l=e[i]={i:i,l:!1,exports:{}};return t[i].call(l.exports,l,l.exports,n),l.l=!0,l.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var l in t)n.d(i,l,function(e){return t[e]}.bind(null,l));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(module,exports,__webpack_require__){"use strict";eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.SV = void 0;\r\nconst engine_1 = __webpack_require__(9);\r\nconst boundingRect_1 = __webpack_require__(6);\r\nconst group_1 = __webpack_require__(5);\r\nconst pointer_1 = __webpack_require__(18);\r\nconst G6 = __webpack_require__(1);\r\nconst linkListNode_1 = __webpack_require__(19);\r\nconst binaryTreeNode_1 = __webpack_require__(20);\r\nconst clenQueuePointer_1 = __webpack_require__(21);\r\nconst twoCellNode_1 = __webpack_require__(22);\r\nconst cursor_1 = __webpack_require__(23);\r\nconst vector_1 = __webpack_require__(7);\r\nconst indexedNode_1 = __webpack_require__(24);\r\nexports.SV = function (DOMContainer, engineOptions = {}) {\r\n return new engine_1.Engine(DOMContainer, engineOptions);\r\n};\r\nexports.SV.Group = group_1.Group;\r\nexports.SV.Bound = boundingRect_1.Bound;\r\nexports.SV.Vector = vector_1.Vector;\r\nexports.SV.Mat3 = G6.Util.mat3;\r\nexports.SV.G6 = G6;\r\nexports.SV.registeredLayouter = {};\r\nexports.SV.registeredShape = [\r\n pointer_1.default,\r\n linkListNode_1.default,\r\n binaryTreeNode_1.default,\r\n twoCellNode_1.default,\r\n indexedNode_1.default,\r\n cursor_1.default,\r\n clenQueuePointer_1.default,\r\n];\r\nexports.SV.registerShape = G6.registerNode;\r\nexports.SV.registerLayouter = function (name, layouter) {\r\n if (typeof layouter.sourcesPreprocess !== 'function') {\r\n layouter.sourcesPreprocess = function (data) {\r\n return data;\r\n };\r\n }\r\n if (typeof layouter.defineLeakRule !== 'function') {\r\n layouter.defineLeakRule = function (elements) {\r\n return elements;\r\n };\r\n }\r\n if (typeof layouter.defineOptions !== 'function' || typeof layouter.layout !== 'function') {\r\n return;\r\n }\r\n exports.SV.registeredLayouter[name] = layouter;\r\n};\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvU3RydWN0Vi50cz9iMTNkIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHdDQUFrQztBQUNsQyw4Q0FBOEM7QUFDOUMsdUNBQXVDO0FBQ3ZDLDBDQUFnRDtBQUNoRCxrQ0FBa0M7QUFDbEMsK0NBQTBEO0FBQzFELGlEQUE4RDtBQUM5RCxtREFBa0U7QUFDbEUsOENBQXdEO0FBQ3hELHlDQUE4QztBQUM5Qyx3Q0FBeUM7QUFDekMsOENBQXdEO0FBNkIzQyxVQUFFLEdBQVksVUFBUyxZQUF5QixFQUFFLGdCQUErQixFQUFHO0lBQzdGLE9BQU8sSUFBSSxlQUFNLENBQUMsWUFBWSxFQUFFLGFBQWEsQ0FBQyxDQUFDO0FBQ25ELENBQUM7QUFFRCxVQUFFLENBQUMsS0FBSyxHQUFHLGFBQUssQ0FBQztBQUNqQixVQUFFLENBQUMsS0FBSyxHQUFHLG9CQUFLLENBQUM7QUFDakIsVUFBRSxDQUFDLE1BQU0sR0FBRyxlQUFNLENBQUM7QUFDbkIsVUFBRSxDQUFDLElBQUksR0FBRyxFQUFFLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQztBQUN2QixVQUFFLENBQUMsRUFBRSxHQUFHLEVBQUUsQ0FBQztBQUVYLFVBQUUsQ0FBQyxrQkFBa0IsR0FBRyxFQUFFLENBQUM7QUFDM0IsVUFBRSxDQUFDLGVBQWUsR0FBRztJQUNqQixpQkFBTztJQUNQLHNCQUFZO0lBQ1osd0JBQWM7SUFDZCxx