@logicflow/extension 1.2.23 → 1.2.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/dnd-panel/index.js +10 -0
- package/cjs/components/selection-select/index.js +13 -0
- package/cjs/style/index.css +4 -0
- package/es/components/dnd-panel/index.d.ts +1 -0
- package/es/components/dnd-panel/index.js +10 -0
- package/es/components/selection-select/index.d.ts +1 -0
- package/es/components/selection-select/index.js +13 -0
- package/es/style/index.css +4 -0
- package/lib/DndPanel.js +1 -1
- package/lib/SelectionSelect.js +1 -1
- package/lib/style/index.css +4 -0
- package/package.json +2 -2
- package/types/NodeResize/BasicShape/Polygon.d.ts +10 -0
- package/types/NodeResize/BasicShape/Rect.d.ts +17 -0
- package/types/NodeResize/Control/Control.d.ts +66 -0
- package/types/NodeResize/Control/ControlGroup.d.ts +13 -0
- package/types/NodeResize/Control/Util.d.ts +33 -0
- package/types/NodeResize/Node/DiamondResize.d.ts +30 -0
- package/types/NodeResize/Node/EllipseResize.d.ts +30 -0
- package/types/NodeResize/Node/HtmlResize.d.ts +30 -0
- package/types/NodeResize/Node/RectResize.d.ts +32 -0
- package/types/NodeResize/index.d.ts +11 -0
- package/types/bpmn/constant.d.ts +46 -0
- package/types/bpmn/events/EndEvent.d.ts +21 -0
- package/types/bpmn/events/StartEvent.d.ts +17 -0
- package/types/bpmn/flow/SequenceFlow.d.ts +15 -0
- package/types/bpmn/gateways/ExclusiveGateway.d.ts +16 -0
- package/types/bpmn/getBpmnId.d.ts +1 -0
- package/types/bpmn/index.d.ts +13 -0
- package/types/bpmn/tasks/ServiceTask.d.ts +17 -0
- package/types/bpmn/tasks/UserTask.d.ts +17 -0
- package/types/bpmn-adapter/bpmnIds.d.ts +1 -0
- package/types/bpmn-adapter/index.d.ts +63 -0
- package/types/bpmn-adapter/json2xml.d.ts +3 -0
- package/types/bpmn-adapter/xml2json.d.ts +2 -0
- package/types/bpmn-elements/index.d.ts +17 -0
- package/types/bpmn-elements/presets/Event/EndEventFactory.d.ts +5 -0
- package/types/bpmn-elements/presets/Event/IntermediateCatchEvent.d.ts +5 -0
- package/types/bpmn-elements/presets/Event/IntermediateThrowEvent.d.ts +5 -0
- package/types/bpmn-elements/presets/Event/StartEventFactory.d.ts +5 -0
- package/types/bpmn-elements/presets/Event/boundaryEventFactory.d.ts +5 -0
- package/types/bpmn-elements/presets/Event/index.d.ts +2 -0
- package/types/bpmn-elements/presets/Flow/index.d.ts +7 -0
- package/types/bpmn-elements/presets/Flow/sequenceFlow.d.ts +5 -0
- package/types/bpmn-elements/presets/Gateway/gateway.d.ts +17 -0
- package/types/bpmn-elements/presets/Gateway/index.d.ts +2 -0
- package/types/bpmn-elements/presets/Task/index.d.ts +2 -0
- package/types/bpmn-elements/presets/Task/subProcess.d.ts +5 -0
- package/types/bpmn-elements/presets/Task/task.d.ts +12 -0
- package/types/bpmn-elements/presets/icons.d.ts +25 -0
- package/types/bpmn-elements/utils.d.ts +2 -0
- package/types/bpmn-elements-adapter/constant.d.ts +66 -0
- package/types/bpmn-elements-adapter/index.d.ts +103 -0
- package/types/bpmn-elements-adapter/json2xml.d.ts +3 -0
- package/types/bpmn-elements-adapter/xml2json.d.ts +2 -0
- package/types/components/context-menu/index.d.ts +34 -0
- package/types/components/control/index.d.ts +26 -0
- package/types/components/dnd-panel/index.d.ts +25 -0
- package/types/components/highlight/index.d.ts +21 -0
- package/types/components/menu/index.d.ts +50 -0
- package/types/components/mini-map/index.d.ts +88 -0
- package/types/components/selection-select/index.d.ts +43 -0
- package/types/index.d.ts +21 -0
- package/types/insert-node-in-polyline/edge.d.ts +31 -0
- package/types/insert-node-in-polyline/index.d.ts +28 -0
- package/types/materials/curved-edge/index.d.ts +14 -0
- package/types/materials/group/GroupNode.d.ts +125 -0
- package/types/materials/group/index.d.ts +65 -0
- package/types/tools/auto-layout/index.d.ts +40 -0
- package/types/tools/flow-path/index.d.ts +47 -0
- package/types/tools/snapshot/index.d.ts +26 -0
- package/types/turbo-adapter/index.d.ts +21 -0
- package/types/type/index.d.ts +6 -0
|
@@ -57,6 +57,16 @@ var DndPanel = /** @class */ (function () {
|
|
|
57
57
|
text.className = 'lf-dnd-text';
|
|
58
58
|
el.appendChild(text);
|
|
59
59
|
}
|
|
60
|
+
if (shapeItem.disabled) {
|
|
61
|
+
el.classList.add('disabled');
|
|
62
|
+
// 保留callback的执行,可用于界面提示当前shapeItem的禁用状态
|
|
63
|
+
el.onmousedown = function () {
|
|
64
|
+
if (shapeItem.callback) {
|
|
65
|
+
shapeItem.callback(_this.lf, _this.domContainer);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
return el;
|
|
69
|
+
}
|
|
60
70
|
el.onmousedown = function () {
|
|
61
71
|
if (shapeItem.type) {
|
|
62
72
|
_this.lf.dnd.startDrag({
|
|
@@ -54,6 +54,18 @@ var SelectionSelect = /** @class */ (function () {
|
|
|
54
54
|
});
|
|
55
55
|
_this.lf.emit('selection:selected', elements);
|
|
56
56
|
};
|
|
57
|
+
this.__zoom = function (ev) {
|
|
58
|
+
var _a, _b;
|
|
59
|
+
ev.preventDefault();
|
|
60
|
+
var newEvent = new WheelEvent('wheel', {
|
|
61
|
+
deltaX: ev.deltaX,
|
|
62
|
+
deltaY: ev.deltaY,
|
|
63
|
+
clientX: ev.clientX,
|
|
64
|
+
clientY: ev.clientY,
|
|
65
|
+
ctrlKey: ev.ctrlKey,
|
|
66
|
+
});
|
|
67
|
+
(_b = (_a = _this.lf.container) === null || _a === void 0 ? void 0 : _a.querySelector('.lf-canvas-overlay[name="canvas-overlay"]')) === null || _b === void 0 ? void 0 : _b.dispatchEvent(newEvent);
|
|
68
|
+
};
|
|
57
69
|
this.lf = lf;
|
|
58
70
|
// 初始化isDefaultStopMoveGraph取值
|
|
59
71
|
var stopMoveGraph = lf.getEditConfig().stopMoveGraph;
|
|
@@ -94,6 +106,7 @@ var SelectionSelect = /** @class */ (function () {
|
|
|
94
106
|
_this.wrapper = wrapper;
|
|
95
107
|
document.addEventListener('mousemove', _this.__draw);
|
|
96
108
|
document.addEventListener('mouseup', _this.__drawOff);
|
|
109
|
+
document.addEventListener('wheel', _this.__zoom, { passive: false });
|
|
97
110
|
});
|
|
98
111
|
};
|
|
99
112
|
/**
|
package/cjs/style/index.css
CHANGED
|
@@ -54,6 +54,16 @@ var DndPanel = /** @class */ (function () {
|
|
|
54
54
|
text.className = 'lf-dnd-text';
|
|
55
55
|
el.appendChild(text);
|
|
56
56
|
}
|
|
57
|
+
if (shapeItem.disabled) {
|
|
58
|
+
el.classList.add('disabled');
|
|
59
|
+
// 保留callback的执行,可用于界面提示当前shapeItem的禁用状态
|
|
60
|
+
el.onmousedown = function () {
|
|
61
|
+
if (shapeItem.callback) {
|
|
62
|
+
shapeItem.callback(_this.lf, _this.domContainer);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
return el;
|
|
66
|
+
}
|
|
57
67
|
el.onmousedown = function () {
|
|
58
68
|
if (shapeItem.type) {
|
|
59
69
|
_this.lf.dnd.startDrag({
|
|
@@ -51,6 +51,18 @@ var SelectionSelect = /** @class */ (function () {
|
|
|
51
51
|
});
|
|
52
52
|
_this.lf.emit('selection:selected', elements);
|
|
53
53
|
};
|
|
54
|
+
this.__zoom = function (ev) {
|
|
55
|
+
var _a, _b;
|
|
56
|
+
ev.preventDefault();
|
|
57
|
+
var newEvent = new WheelEvent('wheel', {
|
|
58
|
+
deltaX: ev.deltaX,
|
|
59
|
+
deltaY: ev.deltaY,
|
|
60
|
+
clientX: ev.clientX,
|
|
61
|
+
clientY: ev.clientY,
|
|
62
|
+
ctrlKey: ev.ctrlKey,
|
|
63
|
+
});
|
|
64
|
+
(_b = (_a = _this.lf.container) === null || _a === void 0 ? void 0 : _a.querySelector('.lf-canvas-overlay[name="canvas-overlay"]')) === null || _b === void 0 ? void 0 : _b.dispatchEvent(newEvent);
|
|
65
|
+
};
|
|
54
66
|
this.lf = lf;
|
|
55
67
|
// 初始化isDefaultStopMoveGraph取值
|
|
56
68
|
var stopMoveGraph = lf.getEditConfig().stopMoveGraph;
|
|
@@ -91,6 +103,7 @@ var SelectionSelect = /** @class */ (function () {
|
|
|
91
103
|
_this.wrapper = wrapper;
|
|
92
104
|
document.addEventListener('mousemove', _this.__draw);
|
|
93
105
|
document.addEventListener('mouseup', _this.__drawOff);
|
|
106
|
+
document.addEventListener('wheel', _this.__zoom, { passive: false });
|
|
94
107
|
});
|
|
95
108
|
};
|
|
96
109
|
/**
|
package/es/style/index.css
CHANGED
package/lib/DndPanel.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var e=n();for(var r in e)("object"==typeof exports?exports:t)[r]=e[r]}}(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=233)}([function(t,n,e){(function(n){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||Function("return this")()}).call(this,e(98))},function(t,n){var e=Function.prototype,r=e.bind,o=e.call,i=r&&r.bind(o);t.exports=r?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=function(t){return"function"==typeof t}},function(t,n,e){var r=e(0),o=e(32),i=e(6),c=e(37),u=e(49),a=e(62),f=o("wks"),s=r.Symbol,l=s&&s.for,p=a?s:s&&s.withoutSetter||c;t.exports=function(t){if(!i(f,t)||!u&&"string"!=typeof f[t]){var n="Symbol."+t;u&&i(s,t)?f[t]=s[t]:f[t]=a&&l?l(n):p(n)}return f[t]}},function(t,n,e){var r=e(0),o=e(25).f,i=e(16),c=e(15),u=e(41),a=e(70),f=e(75);t.exports=function(t,n){var e,s,l,p,v,d=t.target,h=t.global,y=t.stat;if(e=h?r:y?r[d]||u(d,{}):(r[d]||{}).prototype)for(s in n){if(p=n[s],l=t.noTargetGet?(v=o(e,s))&&v.value:e[s],!f(h?s:d+(y?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),c(e,s,p,t)}}},function(t,n,e){var r=e(1),o=e(14),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,n){return i(o(t),n)}},function(t,n,e){var r=e(2);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,n,e){var r=e(3);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},function(t,n,e){var r=e(0),o=e(7),i=e(63),c=e(10),u=e(28),a=r.TypeError,f=Object.defineProperty;n.f=o?f:function(t,n,e){if(c(t),n=u(n),c(e),i)try{return f(t,n,e)}catch(t){}if("get"in e||"set"in e)throw a("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(0),o=e(8),i=r.String,c=r.TypeError;t.exports=function(t){if(o(t))return t;throw c(i(t)+" is not an object")}},function(t,n){var e=Function.prototype.call;t.exports=e.bind?e.bind(e):function(){return e.apply(e,arguments)}},function(t,n,e){var r=e(57),o=e(27);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(0),o=e(3),i=function(t){return o(t)?t:void 0};t.exports=function(t,n){return arguments.length<2?i(r[t]):r[t]&&r[t][n]}},function(t,n,e){var r=e(0),o=e(27),i=r.Object;t.exports=function(t){return i(o(t))}},function(t,n,e){var r=e(0),o=e(3),i=e(6),c=e(16),u=e(41),a=e(38),f=e(22),s=e(54).CONFIGURABLE,l=f.get,p=f.enforce,v=String(String).split("String");(t.exports=function(t,n,e,a){var f,l=!!a&&!!a.unsafe,d=!!a&&!!a.enumerable,h=!!a&&!!a.noTargetGet,y=a&&void 0!==a.name?a.name:n;o(e)&&("Symbol("===String(y).slice(0,7)&&(y="["+String(y).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(e,"name")||s&&e.name!==y)&&c(e,"name",y),(f=p(e)).source||(f.source=v.join("string"==typeof y?y:""))),t!==r?(l?!h&&t[n]&&(d=!0):delete t[n],d?t[n]=e:c(t,n,e)):d?t[n]=e:u(n,e)})(Function.prototype,"toString",(function(){return o(this)&&l(this).source||a(this)}))},function(t,n,e){var r=e(7),o=e(9),i=e(23);t.exports=r?function(t,n,e){return o.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(82);t.exports=function(t){return r(t.length)}},function(t,n,e){var r=e(1),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},,,,function(t,n,e){var r,o,i,c=e(101),u=e(0),a=e(1),f=e(8),s=e(16),l=e(6),p=e(40),v=e(35),d=e(24),h=u.TypeError,y=u.WeakMap;if(c||p.state){var m=p.state||(p.state=new y),b=a(m.get),g=a(m.has),x=a(m.set);r=function(t,n){if(g(m,t))throw new h("Object already initialized");return n.facade=t,x(m,t,n),n},o=function(t){return b(m,t)||{}},i=function(t){return g(m,t)}}else{var S=v("state");d[S]=!0,r=function(t,n){if(l(t,S))throw new h("Object already initialized");return n.facade=t,s(t,S,n),n},o=function(t){return l(t,S)?t[S]:{}},i=function(t){return l(t,S)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(n){var e;if(!f(n)||(e=o(n)).type!==t)throw h("Incompatible receiver, "+t+" required");return e}}}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){t.exports={}},function(t,n,e){var r=e(7),o=e(11),i=e(61),c=e(23),u=e(12),a=e(28),f=e(6),s=e(63),l=Object.getOwnPropertyDescriptor;n.f=r?l:function(t,n){if(t=u(t),n=a(n),s)try{return l(t,n)}catch(t){}if(f(t,n))return c(!o(i.f,t,n),t[n])}},function(t,n,e){var r=e(1);t.exports=r({}.isPrototypeOf)},function(t,n,e){var r=e(0).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},function(t,n,e){var r=e(99),o=e(46);t.exports=function(t){var n=r(t,"string");return o(n)?n:n+""}},function(t,n,e){var r=e(18);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(0),o=e(43),i=e(3),c=e(18),u=e(4)("toStringTag"),a=r.Object,f="Arguments"==c(function(){return arguments}());t.exports=o?c:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=a(t),u))?e:f?c(n):"Object"==(r=c(n))&&i(n.callee)?"Arguments":r}},,function(t,n,e){var r=e(34),o=e(40);(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,n,e){var r=e(0),o=e(3),i=e(52),c=r.TypeError;t.exports=function(t){if(o(t))return t;throw c(i(t)+" is not a function")}},function(t,n){t.exports=!1},function(t,n,e){var r=e(32),o=e(37),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){var n=+t;return n!=n||0===n?0:(n>0?r:e)(n)}},function(t,n,e){var r=e(1),o=0,i=Math.random(),c=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+c(++o+i,36)}},function(t,n,e){var r=e(1),o=e(3),i=e(40),c=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return c(t)}),t.exports=i.inspectSource},function(t,n,e){var r=e(65),o=e(48).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){var r=e(0),o=e(41),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,n,e){var r=e(0),o=Object.defineProperty;t.exports=function(t,n){try{o(r,t,{value:n,configurable:!0,writable:!0})}catch(e){r[t]=n}return n}},function(t,n,e){var r=e(0),o=e(8),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},function(t,n,e){var r={};r[e(4)("toStringTag")]="z",t.exports="[object z]"===String(r)},,function(t,n,e){var r=e(33);t.exports=function(t,n){var e=t[n];return null==e?void 0:r(e)}},function(t,n,e){var r=e(0),o=e(13),i=e(3),c=e(26),u=e(62),a=r.Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var n=o("Symbol");return i(n)&&c(n.prototype,a(t))}},function(t,n,e){var r=e(1),o=e(33),i=r(r.bind);t.exports=function(t,n){return o(t),void 0===n?t:i?i(t,n):function(){return t.apply(n,arguments)}}},function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,n,e){var r=e(50),o=e(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,n,e){var r,o,i=e(0),c=e(73),u=i.process,a=i.Deno,f=u&&u.versions||a&&a.version,s=f&&f.v8;s&&(o=(r=s.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&c&&(!(r=c.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},,function(t,n,e){var r=e(0).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,n,e){var r=e(47),o=e(1),i=e(57),c=e(14),u=e(17),a=e(71),f=o([].push),s=function(t){var n=1==t,e=2==t,o=3==t,s=4==t,l=6==t,p=7==t,v=5==t||l;return function(d,h,y,m){for(var b,g,x=c(d),S=i(x),O=r(h,y),j=u(S),w=0,E=m||a,L=n?E(d,j):e||p?E(d,0):void 0;j>w;w++)if((v||w in S)&&(g=O(b=S[w],w,x),t))if(n)L[w]=g;else if(g)switch(t){case 3:return!0;case 5:return b;case 6:return w;case 2:f(L,b)}else switch(t){case 4:return!1;case 7:f(L,b)}return l?-1:o||s?s:L}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},function(t,n,e){var r=e(7),o=e(6),i=Function.prototype,c=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),a=u&&"something"===function(){}.name,f=u&&(!r||r&&c(i,"name").configurable);t.exports={EXISTS:u,PROPER:a,CONFIGURABLE:f}},function(t,n,e){var r=e(1),o=e(2),i=e(3),c=e(30),u=e(13),a=e(38),f=function(){},s=[],l=u("Reflect","construct"),p=/^\s*(?:class|function)\b/,v=r(p.exec),d=!p.exec(f),h=function(t){if(!i(t))return!1;try{return l(f,s,t),!0}catch(t){return!1}};t.exports=!l||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(c(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return d||!!v(p,a(t))}:h},function(t,n,e){var r=e(36),o=Math.max,i=Math.min;t.exports=function(t,n){var e=r(t);return e<0?o(e+n,0):i(e,n)}},function(t,n,e){var r=e(0),o=e(1),i=e(2),c=e(18),u=r.Object,a=o("".split);t.exports=i((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"==c(t)?a(t,""):u(t)}:u},,,function(t,n,e){var r=e(43),o=e(15),i=e(103);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,n,e){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);n.f=i?function(t){var n=o(this,t);return!!n&&n.enumerable}:r},function(t,n,e){var r=e(49);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,n,e){var r=e(7),o=e(2),i=e(42);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,n,e){var r=e(5),o=e(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:e(9).f})},function(t,n,e){var r=e(1),o=e(6),i=e(12),c=e(87).indexOf,u=e(24),a=r([].push);t.exports=function(t,n){var e,r=i(t),f=0,s=[];for(e in r)!o(u,e)&&o(r,e)&&a(s,e);for(;n.length>f;)o(r,e=n[f++])&&(~c(s,e)||a(s,e));return s}},function(t,n){n.f=Object.getOwnPropertySymbols},,,,function(t,n,e){var r=e(6),o=e(85),i=e(25),c=e(9);t.exports=function(t,n){for(var e=o(n),u=c.f,a=i.f,f=0;f<e.length;f++){var s=e[f];r(t,s)||u(t,s,a(n,s))}}},function(t,n,e){var r=e(102);t.exports=function(t,n){return new(r(t))(0===n?0:n)}},,function(t,n,e){var r=e(13);t.exports=r("navigator","userAgent")||""},function(t,n,e){"use strict";var r=e(53).forEach,o=e(79)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,n,e){var r=e(2),o=e(3),i=/#|\.prototype\./,c=function(t,n){var e=a[u(t)];return e==s||e!=f&&(o(n)?r(n):!!n)},u=c.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=c.data={},f=c.NATIVE="N",s=c.POLYFILL="P";t.exports=c},function(t,n){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,n,e){var r=e(42)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},,function(t,n,e){"use strict";var r=e(2);t.exports=function(t,n){var e=[][t];return!!e&&r((function(){e.call(null,n||function(){throw 1},1)}))}},,,function(t,n,e){var r=e(36),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},,,function(t,n,e){var r=e(13),o=e(1),i=e(39),c=e(66),u=e(10),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var n=i.f(u(t)),e=c.f;return e?a(n,e(t)):n}},,function(t,n,e){var r=e(12),o=e(56),i=e(17),c=function(t){return function(n,e,c){var u,a=r(n),f=i(a),s=o(c,f);if(t&&e!=e){for(;f>s;)if((u=a[s++])!=u)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===e)return t||s||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},,,,,,,,function(t,n,e){"use strict";var r=e(5),o=e(74);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,n,e){var r=e(0),o=e(76),i=e(77),c=e(74),u=e(16),a=function(t){if(t&&t.forEach!==c)try{u(t,"forEach",c)}catch(n){t.forEach=c}};for(var f in o)o[f]&&a(r[f]&&r[f].prototype);a(i)},,function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){var r=e(0),o=e(11),i=e(8),c=e(46),u=e(45),a=e(100),f=e(4),s=r.TypeError,l=f("toPrimitive");t.exports=function(t,n){if(!i(t)||c(t))return t;var e,r=u(t,l);if(r){if(void 0===n&&(n="default"),e=o(r,t,n),!i(e)||c(e))return e;throw s("Can't convert object to primitive value")}return void 0===n&&(n="number"),a(t,n)}},function(t,n,e){var r=e(0),o=e(11),i=e(3),c=e(8),u=r.TypeError;t.exports=function(t,n){var e,r;if("string"===n&&i(e=t.toString)&&!c(r=o(e,t)))return r;if(i(e=t.valueOf)&&!c(r=o(e,t)))return r;if("string"!==n&&i(e=t.toString)&&!c(r=o(e,t)))return r;throw u("Can't convert object to primitive value")}},function(t,n,e){var r=e(0),o=e(3),i=e(38),c=r.WeakMap;t.exports=o(c)&&/native code/.test(i(c))},function(t,n,e){var r=e(0),o=e(29),i=e(55),c=e(8),u=e(4)("species"),a=r.Array;t.exports=function(t){var n;return o(t)&&(n=t.constructor,(i(n)&&(n===a||o(n.prototype))||c(n)&&null===(n=n[u]))&&(n=void 0)),void 0===n?a:n}},function(t,n,e){"use strict";var r=e(43),o=e(30);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,e){"use strict";e.r(n),e.d(n,"DndPanel",(function(){return u}));e(95),e(60),e(96),e(64);function r(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o,i,c,u=function(){function t(n){var e=this,r=n.lf;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.lf=r,this.lf.setPatternItems=function(t){e.setPatternItems(t)}}var n,e,o;return n=t,(e=[{key:"render",value:function(t,n){var e=this;this.destroy(),this.shapeList&&0!==this.shapeList.length?(this.panelEl=document.createElement("div"),this.panelEl.className="lf-dndpanel",this.shapeList.forEach((function(t){e.panelEl.appendChild(e.createDndItem(t))})),n.appendChild(this.panelEl),this.domContainer=n):this.domContainer=n}},{key:"destroy",value:function(){this.domContainer&&this.panelEl&&this.domContainer.contains(this.panelEl)&&this.domContainer.removeChild(this.panelEl)}},{key:"setPatternItems",value:function(t){this.shapeList=t,this.domContainer&&this.render(this.lf,this.domContainer)}},{key:"createDndItem",value:function(t){var n=this,e=document.createElement("div");e.className=t.className?"lf-dnd-item ".concat(t.className):"lf-dnd-item";var r=document.createElement("div");if(r.className="lf-dnd-shape",t.icon&&(r.style.backgroundImage="url(".concat(t.icon,")")),e.appendChild(r),t.label){var o=document.createElement("div");o.innerText=t.label,o.className="lf-dnd-text",e.appendChild(o)}return e.onmousedown=function(){t.type&&n.lf.dnd.startDrag({type:t.type,properties:t.properties,text:t.text}),t.callback&&t.callback(n.lf,n.domContainer)},e.ondblclick=function(e){n.lf.graphModel.eventCenter.emit("dnd:panel-dbclick",{e:e,data:t})},e.onclick=function(e){n.lf.graphModel.eventCenter.emit("dnd:panel-click",{e:e,data:t})},e.oncontextmenu=function(e){n.lf.graphModel.eventCenter.emit("dnd:panel-contextmenu",{e:e,data:t})},e}}])&&r(n.prototype,e),o&&r(n,o),t}();c="dndPanel",(i="pluginName")in(o=u)?Object.defineProperty(o,i,{value:c,enumerable:!0,configurable:!0,writable:!0}):o[i]=c}])}));
|
|
1
|
+
!function(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var e=n();for(var r in e)("object"==typeof exports?exports:t)[r]=e[r]}}(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=233)}([function(t,n,e){(function(n){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||Function("return this")()}).call(this,e(98))},function(t,n){var e=Function.prototype,r=e.bind,o=e.call,i=r&&r.bind(o);t.exports=r?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=function(t){return"function"==typeof t}},function(t,n,e){var r=e(0),o=e(32),i=e(6),c=e(37),u=e(49),a=e(62),f=o("wks"),s=r.Symbol,l=s&&s.for,p=a?s:s&&s.withoutSetter||c;t.exports=function(t){if(!i(f,t)||!u&&"string"!=typeof f[t]){var n="Symbol."+t;u&&i(s,t)?f[t]=s[t]:f[t]=a&&l?l(n):p(n)}return f[t]}},function(t,n,e){var r=e(0),o=e(25).f,i=e(16),c=e(15),u=e(41),a=e(70),f=e(75);t.exports=function(t,n){var e,s,l,p,v,d=t.target,h=t.global,y=t.stat;if(e=h?r:y?r[d]||u(d,{}):(r[d]||{}).prototype)for(s in n){if(p=n[s],l=t.noTargetGet?(v=o(e,s))&&v.value:e[s],!f(h?s:d+(y?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),c(e,s,p,t)}}},function(t,n,e){var r=e(1),o=e(14),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,n){return i(o(t),n)}},function(t,n,e){var r=e(2);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,n,e){var r=e(3);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},function(t,n,e){var r=e(0),o=e(7),i=e(63),c=e(10),u=e(28),a=r.TypeError,f=Object.defineProperty;n.f=o?f:function(t,n,e){if(c(t),n=u(n),c(e),i)try{return f(t,n,e)}catch(t){}if("get"in e||"set"in e)throw a("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(0),o=e(8),i=r.String,c=r.TypeError;t.exports=function(t){if(o(t))return t;throw c(i(t)+" is not an object")}},function(t,n){var e=Function.prototype.call;t.exports=e.bind?e.bind(e):function(){return e.apply(e,arguments)}},function(t,n,e){var r=e(57),o=e(27);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(0),o=e(3),i=function(t){return o(t)?t:void 0};t.exports=function(t,n){return arguments.length<2?i(r[t]):r[t]&&r[t][n]}},function(t,n,e){var r=e(0),o=e(27),i=r.Object;t.exports=function(t){return i(o(t))}},function(t,n,e){var r=e(0),o=e(3),i=e(6),c=e(16),u=e(41),a=e(38),f=e(22),s=e(54).CONFIGURABLE,l=f.get,p=f.enforce,v=String(String).split("String");(t.exports=function(t,n,e,a){var f,l=!!a&&!!a.unsafe,d=!!a&&!!a.enumerable,h=!!a&&!!a.noTargetGet,y=a&&void 0!==a.name?a.name:n;o(e)&&("Symbol("===String(y).slice(0,7)&&(y="["+String(y).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(e,"name")||s&&e.name!==y)&&c(e,"name",y),(f=p(e)).source||(f.source=v.join("string"==typeof y?y:""))),t!==r?(l?!h&&t[n]&&(d=!0):delete t[n],d?t[n]=e:c(t,n,e)):d?t[n]=e:u(n,e)})(Function.prototype,"toString",(function(){return o(this)&&l(this).source||a(this)}))},function(t,n,e){var r=e(7),o=e(9),i=e(23);t.exports=r?function(t,n,e){return o.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(82);t.exports=function(t){return r(t.length)}},function(t,n,e){var r=e(1),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},,,,function(t,n,e){var r,o,i,c=e(101),u=e(0),a=e(1),f=e(8),s=e(16),l=e(6),p=e(40),v=e(35),d=e(24),h=u.TypeError,y=u.WeakMap;if(c||p.state){var m=p.state||(p.state=new y),b=a(m.get),g=a(m.has),x=a(m.set);r=function(t,n){if(g(m,t))throw new h("Object already initialized");return n.facade=t,x(m,t,n),n},o=function(t){return b(m,t)||{}},i=function(t){return g(m,t)}}else{var S=v("state");d[S]=!0,r=function(t,n){if(l(t,S))throw new h("Object already initialized");return n.facade=t,s(t,S,n),n},o=function(t){return l(t,S)?t[S]:{}},i=function(t){return l(t,S)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(n){var e;if(!f(n)||(e=o(n)).type!==t)throw h("Incompatible receiver, "+t+" required");return e}}}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){t.exports={}},function(t,n,e){var r=e(7),o=e(11),i=e(61),c=e(23),u=e(12),a=e(28),f=e(6),s=e(63),l=Object.getOwnPropertyDescriptor;n.f=r?l:function(t,n){if(t=u(t),n=a(n),s)try{return l(t,n)}catch(t){}if(f(t,n))return c(!o(i.f,t,n),t[n])}},function(t,n,e){var r=e(1);t.exports=r({}.isPrototypeOf)},function(t,n,e){var r=e(0).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},function(t,n,e){var r=e(99),o=e(46);t.exports=function(t){var n=r(t,"string");return o(n)?n:n+""}},function(t,n,e){var r=e(18);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(0),o=e(43),i=e(3),c=e(18),u=e(4)("toStringTag"),a=r.Object,f="Arguments"==c(function(){return arguments}());t.exports=o?c:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=a(t),u))?e:f?c(n):"Object"==(r=c(n))&&i(n.callee)?"Arguments":r}},,function(t,n,e){var r=e(34),o=e(40);(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,n,e){var r=e(0),o=e(3),i=e(52),c=r.TypeError;t.exports=function(t){if(o(t))return t;throw c(i(t)+" is not a function")}},function(t,n){t.exports=!1},function(t,n,e){var r=e(32),o=e(37),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){var n=+t;return n!=n||0===n?0:(n>0?r:e)(n)}},function(t,n,e){var r=e(1),o=0,i=Math.random(),c=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+c(++o+i,36)}},function(t,n,e){var r=e(1),o=e(3),i=e(40),c=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return c(t)}),t.exports=i.inspectSource},function(t,n,e){var r=e(65),o=e(48).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){var r=e(0),o=e(41),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,n,e){var r=e(0),o=Object.defineProperty;t.exports=function(t,n){try{o(r,t,{value:n,configurable:!0,writable:!0})}catch(e){r[t]=n}return n}},function(t,n,e){var r=e(0),o=e(8),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},function(t,n,e){var r={};r[e(4)("toStringTag")]="z",t.exports="[object z]"===String(r)},,function(t,n,e){var r=e(33);t.exports=function(t,n){var e=t[n];return null==e?void 0:r(e)}},function(t,n,e){var r=e(0),o=e(13),i=e(3),c=e(26),u=e(62),a=r.Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var n=o("Symbol");return i(n)&&c(n.prototype,a(t))}},function(t,n,e){var r=e(1),o=e(33),i=r(r.bind);t.exports=function(t,n){return o(t),void 0===n?t:i?i(t,n):function(){return t.apply(n,arguments)}}},function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,n,e){var r=e(50),o=e(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,n,e){var r,o,i=e(0),c=e(73),u=i.process,a=i.Deno,f=u&&u.versions||a&&a.version,s=f&&f.v8;s&&(o=(r=s.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&c&&(!(r=c.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},,function(t,n,e){var r=e(0).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,n,e){var r=e(47),o=e(1),i=e(57),c=e(14),u=e(17),a=e(71),f=o([].push),s=function(t){var n=1==t,e=2==t,o=3==t,s=4==t,l=6==t,p=7==t,v=5==t||l;return function(d,h,y,m){for(var b,g,x=c(d),S=i(x),O=r(h,y),j=u(S),w=0,E=m||a,L=n?E(d,j):e||p?E(d,0):void 0;j>w;w++)if((v||w in S)&&(g=O(b=S[w],w,x),t))if(n)L[w]=g;else if(g)switch(t){case 3:return!0;case 5:return b;case 6:return w;case 2:f(L,b)}else switch(t){case 4:return!1;case 7:f(L,b)}return l?-1:o||s?s:L}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},function(t,n,e){var r=e(7),o=e(6),i=Function.prototype,c=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),a=u&&"something"===function(){}.name,f=u&&(!r||r&&c(i,"name").configurable);t.exports={EXISTS:u,PROPER:a,CONFIGURABLE:f}},function(t,n,e){var r=e(1),o=e(2),i=e(3),c=e(30),u=e(13),a=e(38),f=function(){},s=[],l=u("Reflect","construct"),p=/^\s*(?:class|function)\b/,v=r(p.exec),d=!p.exec(f),h=function(t){if(!i(t))return!1;try{return l(f,s,t),!0}catch(t){return!1}};t.exports=!l||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(c(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return d||!!v(p,a(t))}:h},function(t,n,e){var r=e(36),o=Math.max,i=Math.min;t.exports=function(t,n){var e=r(t);return e<0?o(e+n,0):i(e,n)}},function(t,n,e){var r=e(0),o=e(1),i=e(2),c=e(18),u=r.Object,a=o("".split);t.exports=i((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"==c(t)?a(t,""):u(t)}:u},,,function(t,n,e){var r=e(43),o=e(15),i=e(103);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,n,e){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);n.f=i?function(t){var n=o(this,t);return!!n&&n.enumerable}:r},function(t,n,e){var r=e(49);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,n,e){var r=e(7),o=e(2),i=e(42);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,n,e){var r=e(5),o=e(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:e(9).f})},function(t,n,e){var r=e(1),o=e(6),i=e(12),c=e(87).indexOf,u=e(24),a=r([].push);t.exports=function(t,n){var e,r=i(t),f=0,s=[];for(e in r)!o(u,e)&&o(r,e)&&a(s,e);for(;n.length>f;)o(r,e=n[f++])&&(~c(s,e)||a(s,e));return s}},function(t,n){n.f=Object.getOwnPropertySymbols},,,,function(t,n,e){var r=e(6),o=e(85),i=e(25),c=e(9);t.exports=function(t,n){for(var e=o(n),u=c.f,a=i.f,f=0;f<e.length;f++){var s=e[f];r(t,s)||u(t,s,a(n,s))}}},function(t,n,e){var r=e(102);t.exports=function(t,n){return new(r(t))(0===n?0:n)}},,function(t,n,e){var r=e(13);t.exports=r("navigator","userAgent")||""},function(t,n,e){"use strict";var r=e(53).forEach,o=e(79)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,n,e){var r=e(2),o=e(3),i=/#|\.prototype\./,c=function(t,n){var e=a[u(t)];return e==s||e!=f&&(o(n)?r(n):!!n)},u=c.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=c.data={},f=c.NATIVE="N",s=c.POLYFILL="P";t.exports=c},function(t,n){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,n,e){var r=e(42)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},,function(t,n,e){"use strict";var r=e(2);t.exports=function(t,n){var e=[][t];return!!e&&r((function(){e.call(null,n||function(){throw 1},1)}))}},,,function(t,n,e){var r=e(36),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},,,function(t,n,e){var r=e(13),o=e(1),i=e(39),c=e(66),u=e(10),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var n=i.f(u(t)),e=c.f;return e?a(n,e(t)):n}},,function(t,n,e){var r=e(12),o=e(56),i=e(17),c=function(t){return function(n,e,c){var u,a=r(n),f=i(a),s=o(c,f);if(t&&e!=e){for(;f>s;)if((u=a[s++])!=u)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===e)return t||s||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},,,,,,,,function(t,n,e){"use strict";var r=e(5),o=e(74);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,n,e){var r=e(0),o=e(76),i=e(77),c=e(74),u=e(16),a=function(t){if(t&&t.forEach!==c)try{u(t,"forEach",c)}catch(n){t.forEach=c}};for(var f in o)o[f]&&a(r[f]&&r[f].prototype);a(i)},,function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){var r=e(0),o=e(11),i=e(8),c=e(46),u=e(45),a=e(100),f=e(4),s=r.TypeError,l=f("toPrimitive");t.exports=function(t,n){if(!i(t)||c(t))return t;var e,r=u(t,l);if(r){if(void 0===n&&(n="default"),e=o(r,t,n),!i(e)||c(e))return e;throw s("Can't convert object to primitive value")}return void 0===n&&(n="number"),a(t,n)}},function(t,n,e){var r=e(0),o=e(11),i=e(3),c=e(8),u=r.TypeError;t.exports=function(t,n){var e,r;if("string"===n&&i(e=t.toString)&&!c(r=o(e,t)))return r;if(i(e=t.valueOf)&&!c(r=o(e,t)))return r;if("string"!==n&&i(e=t.toString)&&!c(r=o(e,t)))return r;throw u("Can't convert object to primitive value")}},function(t,n,e){var r=e(0),o=e(3),i=e(38),c=r.WeakMap;t.exports=o(c)&&/native code/.test(i(c))},function(t,n,e){var r=e(0),o=e(29),i=e(55),c=e(8),u=e(4)("species"),a=r.Array;t.exports=function(t){var n;return o(t)&&(n=t.constructor,(i(n)&&(n===a||o(n.prototype))||c(n)&&null===(n=n[u]))&&(n=void 0)),void 0===n?a:n}},function(t,n,e){"use strict";var r=e(43),o=e(30);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,e){"use strict";e.r(n),e.d(n,"DndPanel",(function(){return u}));e(95),e(60),e(96),e(64);function r(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o,i,c,u=function(){function t(n){var e=this,r=n.lf;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.lf=r,this.lf.setPatternItems=function(t){e.setPatternItems(t)}}var n,e,o;return n=t,(e=[{key:"render",value:function(t,n){var e=this;this.destroy(),this.shapeList&&0!==this.shapeList.length?(this.panelEl=document.createElement("div"),this.panelEl.className="lf-dndpanel",this.shapeList.forEach((function(t){e.panelEl.appendChild(e.createDndItem(t))})),n.appendChild(this.panelEl),this.domContainer=n):this.domContainer=n}},{key:"destroy",value:function(){this.domContainer&&this.panelEl&&this.domContainer.contains(this.panelEl)&&this.domContainer.removeChild(this.panelEl)}},{key:"setPatternItems",value:function(t){this.shapeList=t,this.domContainer&&this.render(this.lf,this.domContainer)}},{key:"createDndItem",value:function(t){var n=this,e=document.createElement("div");e.className=t.className?"lf-dnd-item ".concat(t.className):"lf-dnd-item";var r=document.createElement("div");if(r.className="lf-dnd-shape",t.icon&&(r.style.backgroundImage="url(".concat(t.icon,")")),e.appendChild(r),t.label){var o=document.createElement("div");o.innerText=t.label,o.className="lf-dnd-text",e.appendChild(o)}return t.disabled?(e.classList.add("disabled"),e.onmousedown=function(){t.callback&&t.callback(n.lf,n.domContainer)},e):(e.onmousedown=function(){t.type&&n.lf.dnd.startDrag({type:t.type,properties:t.properties,text:t.text}),t.callback&&t.callback(n.lf,n.domContainer)},e.ondblclick=function(e){n.lf.graphModel.eventCenter.emit("dnd:panel-dbclick",{e:e,data:t})},e.onclick=function(e){n.lf.graphModel.eventCenter.emit("dnd:panel-click",{e:e,data:t})},e.oncontextmenu=function(e){n.lf.graphModel.eventCenter.emit("dnd:panel-contextmenu",{e:e,data:t})},e)}}])&&r(n.prototype,e),o&&r(n,o),t}();c="dndPanel",(i="pluginName")in(o=u)?Object.defineProperty(o,i,{value:c,enumerable:!0,configurable:!0,writable:!0}):o[i]=c}])}));
|
package/lib/SelectionSelect.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var e=n();for(var r in e)("object"==typeof exports?exports:t)[r]=e[r]}}(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=236)}([function(t,n,e){(function(n){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||Function("return this")()}).call(this,e(98))},function(t,n){var e=Function.prototype,r=e.bind,o=e.call,i=r&&r.bind(o);t.exports=r?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=function(t){return"function"==typeof t}},function(t,n,e){var r=e(0),o=e(32),i=e(6),c=e(37),u=e(49),a=e(62),f=o("wks"),s=r.Symbol,l=s&&s.for,p=a?s:s&&s.withoutSetter||c;t.exports=function(t){if(!i(f,t)||!u&&"string"!=typeof f[t]){var n="Symbol."+t;u&&i(s,t)?f[t]=s[t]:f[t]=a&&l?l(n):p(n)}return f[t]}},function(t,n,e){var r=e(0),o=e(25).f,i=e(16),c=e(15),u=e(41),a=e(70),f=e(75);t.exports=function(t,n){var e,s,l,p,v,d=t.target,h=t.global,y=t.stat;if(e=h?r:y?r[d]||u(d,{}):(r[d]||{}).prototype)for(s in n){if(p=n[s],l=t.noTargetGet?(v=o(e,s))&&v.value:e[s],!f(h?s:d+(y?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),c(e,s,p,t)}}},function(t,n,e){var r=e(1),o=e(14),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,n){return i(o(t),n)}},function(t,n,e){var r=e(2);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,n,e){var r=e(3);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},function(t,n,e){var r=e(0),o=e(7),i=e(63),c=e(10),u=e(28),a=r.TypeError,f=Object.defineProperty;n.f=o?f:function(t,n,e){if(c(t),n=u(n),c(e),i)try{return f(t,n,e)}catch(t){}if("get"in e||"set"in e)throw a("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(0),o=e(8),i=r.String,c=r.TypeError;t.exports=function(t){if(o(t))return t;throw c(i(t)+" is not an object")}},function(t,n){var e=Function.prototype.call;t.exports=e.bind?e.bind(e):function(){return e.apply(e,arguments)}},function(t,n,e){var r=e(57),o=e(27);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(0),o=e(3),i=function(t){return o(t)?t:void 0};t.exports=function(t,n){return arguments.length<2?i(r[t]):r[t]&&r[t][n]}},function(t,n,e){var r=e(0),o=e(27),i=r.Object;t.exports=function(t){return i(o(t))}},function(t,n,e){var r=e(0),o=e(3),i=e(6),c=e(16),u=e(41),a=e(38),f=e(22),s=e(54).CONFIGURABLE,l=f.get,p=f.enforce,v=String(String).split("String");(t.exports=function(t,n,e,a){var f,l=!!a&&!!a.unsafe,d=!!a&&!!a.enumerable,h=!!a&&!!a.noTargetGet,y=a&&void 0!==a.name?a.name:n;o(e)&&("Symbol("===String(y).slice(0,7)&&(y="["+String(y).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(e,"name")||s&&e.name!==y)&&c(e,"name",y),(f=p(e)).source||(f.source=v.join("string"==typeof y?y:""))),t!==r?(l?!h&&t[n]&&(d=!0):delete t[n],d?t[n]=e:c(t,n,e)):d?t[n]=e:u(n,e)})(Function.prototype,"toString",(function(){return o(this)&&l(this).source||a(this)}))},function(t,n,e){var r=e(7),o=e(9),i=e(23);t.exports=r?function(t,n,e){return o.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(82);t.exports=function(t){return r(t.length)}},function(t,n,e){var r=e(1),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},,,,function(t,n,e){var r,o,i,c=e(101),u=e(0),a=e(1),f=e(8),s=e(16),l=e(6),p=e(40),v=e(35),d=e(24),h=u.TypeError,y=u.WeakMap;if(c||p.state){var m=p.state||(p.state=new y),b=a(m.get),g=a(m.has),x=a(m.set);r=function(t,n){if(g(m,t))throw new h("Object already initialized");return n.facade=t,x(m,t,n),n},o=function(t){return b(m,t)||{}},i=function(t){return g(m,t)}}else{var S=v("state");d[S]=!0,r=function(t,n){if(l(t,S))throw new h("Object already initialized");return n.facade=t,s(t,S,n),n},o=function(t){return l(t,S)?t[S]:{}},i=function(t){return l(t,S)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(n){var e;if(!f(n)||(e=o(n)).type!==t)throw h("Incompatible receiver, "+t+" required");return e}}}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){t.exports={}},function(t,n,e){var r=e(7),o=e(11),i=e(61),c=e(23),u=e(12),a=e(28),f=e(6),s=e(63),l=Object.getOwnPropertyDescriptor;n.f=r?l:function(t,n){if(t=u(t),n=a(n),s)try{return l(t,n)}catch(t){}if(f(t,n))return c(!o(i.f,t,n),t[n])}},function(t,n,e){var r=e(1);t.exports=r({}.isPrototypeOf)},function(t,n,e){var r=e(0).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},function(t,n,e){var r=e(99),o=e(46);t.exports=function(t){var n=r(t,"string");return o(n)?n:n+""}},function(t,n,e){var r=e(18);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(0),o=e(43),i=e(3),c=e(18),u=e(4)("toStringTag"),a=r.Object,f="Arguments"==c(function(){return arguments}());t.exports=o?c:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=a(t),u))?e:f?c(n):"Object"==(r=c(n))&&i(n.callee)?"Arguments":r}},,function(t,n,e){var r=e(34),o=e(40);(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,n,e){var r=e(0),o=e(3),i=e(52),c=r.TypeError;t.exports=function(t){if(o(t))return t;throw c(i(t)+" is not a function")}},function(t,n){t.exports=!1},function(t,n,e){var r=e(32),o=e(37),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){var n=+t;return n!=n||0===n?0:(n>0?r:e)(n)}},function(t,n,e){var r=e(1),o=0,i=Math.random(),c=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+c(++o+i,36)}},function(t,n,e){var r=e(1),o=e(3),i=e(40),c=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return c(t)}),t.exports=i.inspectSource},function(t,n,e){var r=e(65),o=e(48).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){var r=e(0),o=e(41),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,n,e){var r=e(0),o=Object.defineProperty;t.exports=function(t,n){try{o(r,t,{value:n,configurable:!0,writable:!0})}catch(e){r[t]=n}return n}},function(t,n,e){var r=e(0),o=e(8),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},function(t,n,e){var r={};r[e(4)("toStringTag")]="z",t.exports="[object z]"===String(r)},,function(t,n,e){var r=e(33);t.exports=function(t,n){var e=t[n];return null==e?void 0:r(e)}},function(t,n,e){var r=e(0),o=e(13),i=e(3),c=e(26),u=e(62),a=r.Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var n=o("Symbol");return i(n)&&c(n.prototype,a(t))}},function(t,n,e){var r=e(1),o=e(33),i=r(r.bind);t.exports=function(t,n){return o(t),void 0===n?t:i?i(t,n):function(){return t.apply(n,arguments)}}},function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,n,e){var r=e(50),o=e(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,n,e){var r,o,i=e(0),c=e(73),u=i.process,a=i.Deno,f=u&&u.versions||a&&a.version,s=f&&f.v8;s&&(o=(r=s.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&c&&(!(r=c.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},,function(t,n,e){var r=e(0).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,n,e){var r=e(47),o=e(1),i=e(57),c=e(14),u=e(17),a=e(71),f=o([].push),s=function(t){var n=1==t,e=2==t,o=3==t,s=4==t,l=6==t,p=7==t,v=5==t||l;return function(d,h,y,m){for(var b,g,x=c(d),S=i(x),w=r(h,y),O=u(S),j=0,E=m||a,P=n?E(d,O):e||p?E(d,0):void 0;O>j;j++)if((v||j in S)&&(g=w(b=S[j],j,x),t))if(n)P[j]=g;else if(g)switch(t){case 3:return!0;case 5:return b;case 6:return j;case 2:f(P,b)}else switch(t){case 4:return!1;case 7:f(P,b)}return l?-1:o||s?s:P}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},function(t,n,e){var r=e(7),o=e(6),i=Function.prototype,c=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),a=u&&"something"===function(){}.name,f=u&&(!r||r&&c(i,"name").configurable);t.exports={EXISTS:u,PROPER:a,CONFIGURABLE:f}},function(t,n,e){var r=e(1),o=e(2),i=e(3),c=e(30),u=e(13),a=e(38),f=function(){},s=[],l=u("Reflect","construct"),p=/^\s*(?:class|function)\b/,v=r(p.exec),d=!p.exec(f),h=function(t){if(!i(t))return!1;try{return l(f,s,t),!0}catch(t){return!1}};t.exports=!l||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(c(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return d||!!v(p,a(t))}:h},function(t,n,e){var r=e(36),o=Math.max,i=Math.min;t.exports=function(t,n){var e=r(t);return e<0?o(e+n,0):i(e,n)}},function(t,n,e){var r=e(0),o=e(1),i=e(2),c=e(18),u=r.Object,a=o("".split);t.exports=i((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"==c(t)?a(t,""):u(t)}:u},,,function(t,n,e){var r=e(43),o=e(15),i=e(103);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,n,e){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);n.f=i?function(t){var n=o(this,t);return!!n&&n.enumerable}:r},function(t,n,e){var r=e(49);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,n,e){var r=e(7),o=e(2),i=e(42);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,n,e){var r=e(5),o=e(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:e(9).f})},function(t,n,e){var r=e(1),o=e(6),i=e(12),c=e(87).indexOf,u=e(24),a=r([].push);t.exports=function(t,n){var e,r=i(t),f=0,s=[];for(e in r)!o(u,e)&&o(r,e)&&a(s,e);for(;n.length>f;)o(r,e=n[f++])&&(~c(s,e)||a(s,e));return s}},function(t,n){n.f=Object.getOwnPropertySymbols},,,,function(t,n,e){var r=e(6),o=e(85),i=e(25),c=e(9);t.exports=function(t,n){for(var e=o(n),u=c.f,a=i.f,f=0;f<e.length;f++){var s=e[f];r(t,s)||u(t,s,a(n,s))}}},function(t,n,e){var r=e(102);t.exports=function(t,n){return new(r(t))(0===n?0:n)}},,function(t,n,e){var r=e(13);t.exports=r("navigator","userAgent")||""},function(t,n,e){"use strict";var r=e(53).forEach,o=e(79)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,n,e){var r=e(2),o=e(3),i=/#|\.prototype\./,c=function(t,n){var e=a[u(t)];return e==s||e!=f&&(o(n)?r(n):!!n)},u=c.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=c.data={},f=c.NATIVE="N",s=c.POLYFILL="P";t.exports=c},function(t,n){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,n,e){var r=e(42)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},,function(t,n,e){"use strict";var r=e(2);t.exports=function(t,n){var e=[][t];return!!e&&r((function(){e.call(null,n||function(){throw 1},1)}))}},,,function(t,n,e){var r=e(36),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},,,function(t,n,e){var r=e(13),o=e(1),i=e(39),c=e(66),u=e(10),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var n=i.f(u(t)),e=c.f;return e?a(n,e(t)):n}},,function(t,n,e){var r=e(12),o=e(56),i=e(17),c=function(t){return function(n,e,c){var u,a=r(n),f=i(a),s=o(c,f);if(t&&e!=e){for(;f>s;)if((u=a[s++])!=u)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===e)return t||s||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},,,,,,,,function(t,n,e){"use strict";var r=e(5),o=e(74);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,n,e){var r=e(0),o=e(76),i=e(77),c=e(74),u=e(16),a=function(t){if(t&&t.forEach!==c)try{u(t,"forEach",c)}catch(n){t.forEach=c}};for(var f in o)o[f]&&a(r[f]&&r[f].prototype);a(i)},,function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){var r=e(0),o=e(11),i=e(8),c=e(46),u=e(45),a=e(100),f=e(4),s=r.TypeError,l=f("toPrimitive");t.exports=function(t,n){if(!i(t)||c(t))return t;var e,r=u(t,l);if(r){if(void 0===n&&(n="default"),e=o(r,t,n),!i(e)||c(e))return e;throw s("Can't convert object to primitive value")}return void 0===n&&(n="number"),a(t,n)}},function(t,n,e){var r=e(0),o=e(11),i=e(3),c=e(8),u=r.TypeError;t.exports=function(t,n){var e,r;if("string"===n&&i(e=t.toString)&&!c(r=o(e,t)))return r;if(i(e=t.valueOf)&&!c(r=o(e,t)))return r;if("string"!==n&&i(e=t.toString)&&!c(r=o(e,t)))return r;throw u("Can't convert object to primitive value")}},function(t,n,e){var r=e(0),o=e(3),i=e(38),c=r.WeakMap;t.exports=o(c)&&/native code/.test(i(c))},function(t,n,e){var r=e(0),o=e(29),i=e(55),c=e(8),u=e(4)("species"),a=r.Array;t.exports=function(t){var n;return o(t)&&(n=t.constructor,(i(n)&&(n===a||o(n.prototype))||c(n)&&null===(n=n[u]))&&(n=void 0)),void 0===n?a:n}},function(t,n,e){"use strict";var r=e(43),o=e(30);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,e){"use strict";e.r(n),e.d(n,"SelectionSelect",(function(){return i}));e(95),e(60),e(96),e(64);function r(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var i=function(){function t(n){var e=this,r=n.lf;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,"__disabled",!1),o(this,"isDefaultStopMoveGraph",!1),o(this,"isWholeNode",!0),o(this,"isWholeEdge",!0),o(this,"__draw",(function(t){var n=e.lf.getPointByClient(t.clientX,t.clientY).domOverlayPosition,r=n.x,o=n.y;e.endPoint={x:r,y:o};var i=e.startPoint,c=i.x,u=i.y,a=e.wrapper.style,f=c,s=u,l=r-c,p=o-u;r<c&&(f=r,l=c-r),o<u&&(s=o,p=u-o),a.left="".concat(f,"px"),a.top="".concat(s,"px"),a.width="".concat(l,"px"),a.height="".concat(p,"px")})),o(this,"__drawOff",(function(){document.removeEventListener("mousemove",e.__draw),document.removeEventListener("mouseup",e.__drawOff),e.wrapper.oncontextmenu=null,e.__domContainer.removeChild(e.wrapper);var t=e.startPoint,n=t.x,r=t.y,o=e.endPoint,i=o.x,c=o.y;if(!(Math.abs(i-n)<10&&Math.abs(c-r)<10)){var u=[Math.min(n,i),Math.min(r,c)],a=[Math.max(n,i),Math.max(r,c)],f=e.lf.graphModel.getAreaElement(u,a,e.isWholeEdge,e.isWholeNode,!0),s=e.lf.graphModel.group;f.forEach((function(t){s&&s.getNodeGroup(t.id)||e.lf.selectElementById(t.id,!0)})),e.lf.emit("selection:selected",f)}})),this.lf=r;var i=r.getEditConfig().stopMoveGraph;this.isDefaultStopMoveGraph=i,r.openSelectionSelect=function(){e.openSelectionSelect()},r.closeSelectionSelect=function(){e.closeSelectionSelect()}}var n,e,i;return n=t,(e=[{key:"render",value:function(t,n){var e=this;this.__domContainer=n,t.on("blank:mousedown",(function(r){var o=r.e;if(t.getEditConfig().stopMoveGraph&&!e.__disabled&&2!==o.button){var i=t.getPointByClient(o.clientX,o.clientY).domOverlayPosition,c=i.x,u=i.y;e.startPoint={x:c,y:u},e.endPoint={x:c,y:u};var a=document.createElement("div");a.className="lf-selection-select",a.oncontextmenu=function(t){t.preventDefault()},a.style.top="".concat(e.startPoint.y,"px"),a.style.left="".concat(e.startPoint.x,"px"),n.appendChild(a),e.wrapper=a,document.addEventListener("mousemove",e.__draw),document.addEventListener("mouseup",e.__drawOff)}}))}},{key:"setSelectionSense",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.isWholeEdge=t,this.isWholeNode=n}},{key:"openSelectionSelect",value:function(){this.lf.getEditConfig().stopMoveGraph||(this.isDefaultStopMoveGraph=!1,this.lf.updateEditConfig({stopMoveGraph:!0})),this.open()}},{key:"closeSelectionSelect",value:function(){this.isDefaultStopMoveGraph||this.lf.updateEditConfig({stopMoveGraph:!1}),this.close()}},{key:"open",value:function(){this.__disabled=!1}},{key:"close",value:function(){this.__disabled=!0}}])&&r(n.prototype,e),i&&r(n,i),t}();o(i,"pluginName","selectionSelect")}])}));
|
|
1
|
+
!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 r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},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=236)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(98))},function(t,e){var n=Function.prototype,r=n.bind,o=n.call,i=r&&r.bind(o);t.exports=r?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e,n){var r=n(0),o=n(32),i=n(6),c=n(37),u=n(49),a=n(62),f=o("wks"),s=r.Symbol,l=s&&s.for,p=a?s:s&&s.withoutSetter||c;t.exports=function(t){if(!i(f,t)||!u&&"string"!=typeof f[t]){var e="Symbol."+t;u&&i(s,t)?f[t]=s[t]:f[t]=a&&l?l(e):p(e)}return f[t]}},function(t,e,n){var r=n(0),o=n(25).f,i=n(16),c=n(15),u=n(41),a=n(70),f=n(75);t.exports=function(t,e){var n,s,l,p,v,d=t.target,h=t.global,y=t.stat;if(n=h?r:y?r[d]||u(d,{}):(r[d]||{}).prototype)for(s in e){if(p=e[s],l=t.noTargetGet?(v=o(n,s))&&v.value:n[s],!f(h?s:d+(y?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),c(n,s,p,t)}}},function(t,e,n){var r=n(1),o=n(14),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},function(t,e,n){var r=n(2);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(3);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},function(t,e,n){var r=n(0),o=n(7),i=n(63),c=n(10),u=n(28),a=r.TypeError,f=Object.defineProperty;e.f=o?f:function(t,e,n){if(c(t),e=u(e),c(n),i)try{return f(t,e,n)}catch(t){}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(0),o=n(8),i=r.String,c=r.TypeError;t.exports=function(t){if(o(t))return t;throw c(i(t)+" is not an object")}},function(t,e){var n=Function.prototype.call;t.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},function(t,e,n){var r=n(57),o=n(27);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(0),o=n(3),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(0),o=n(27),i=r.Object;t.exports=function(t){return i(o(t))}},function(t,e,n){var r=n(0),o=n(3),i=n(6),c=n(16),u=n(41),a=n(38),f=n(22),s=n(54).CONFIGURABLE,l=f.get,p=f.enforce,v=String(String).split("String");(t.exports=function(t,e,n,a){var f,l=!!a&&!!a.unsafe,d=!!a&&!!a.enumerable,h=!!a&&!!a.noTargetGet,y=a&&void 0!==a.name?a.name:e;o(n)&&("Symbol("===String(y).slice(0,7)&&(y="["+String(y).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||s&&n.name!==y)&&c(n,"name",y),(f=p(n)).source||(f.source=v.join("string"==typeof y?y:""))),t!==r?(l?!h&&t[e]&&(d=!0):delete t[e],d?t[e]=n:c(t,e,n)):d?t[e]=n:u(e,n)})(Function.prototype,"toString",(function(){return o(this)&&l(this).source||a(this)}))},function(t,e,n){var r=n(7),o=n(9),i=n(23);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(82);t.exports=function(t){return r(t.length)}},function(t,e,n){var r=n(1),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},,,,function(t,e,n){var r,o,i,c=n(101),u=n(0),a=n(1),f=n(8),s=n(16),l=n(6),p=n(40),v=n(35),d=n(24),h=u.TypeError,y=u.WeakMap;if(c||p.state){var m=p.state||(p.state=new y),b=a(m.get),g=a(m.has),x=a(m.set);r=function(t,e){if(g(m,t))throw new h("Object already initialized");return e.facade=t,x(m,t,e),e},o=function(t){return b(m,t)||{}},i=function(t){return g(m,t)}}else{var S=v("state");d[S]=!0,r=function(t,e){if(l(t,S))throw new h("Object already initialized");return e.facade=t,s(t,S,e),e},o=function(t){return l(t,S)?t[S]:{}},i=function(t){return l(t,S)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!f(e)||(n=o(e)).type!==t)throw h("Incompatible receiver, "+t+" required");return n}}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports={}},function(t,e,n){var r=n(7),o=n(11),i=n(61),c=n(23),u=n(12),a=n(28),f=n(6),s=n(63),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=u(t),e=a(e),s)try{return l(t,e)}catch(t){}if(f(t,e))return c(!o(i.f,t,e),t[e])}},function(t,e,n){var r=n(1);t.exports=r({}.isPrototypeOf)},function(t,e,n){var r=n(0).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},function(t,e,n){var r=n(99),o=n(46);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},function(t,e,n){var r=n(18);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(0),o=n(43),i=n(3),c=n(18),u=n(4)("toStringTag"),a=r.Object,f="Arguments"==c(function(){return arguments}());t.exports=o?c:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),u))?n:f?c(e):"Object"==(r=c(e))&&i(e.callee)?"Arguments":r}},,function(t,e,n){var r=n(34),o=n(40);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(0),o=n(3),i=n(52),c=r.TypeError;t.exports=function(t){if(o(t))return t;throw c(i(t)+" is not a function")}},function(t,e){t.exports=!1},function(t,e,n){var r=n(32),o=n(37),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?r:n)(e)}},function(t,e,n){var r=n(1),o=0,i=Math.random(),c=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+c(++o+i,36)}},function(t,e,n){var r=n(1),o=n(3),i=n(40),c=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return c(t)}),t.exports=i.inspectSource},function(t,e,n){var r=n(65),o=n(48).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(0),o=n(41),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(0),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(0),o=n(8),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},function(t,e,n){var r={};r[n(4)("toStringTag")]="z",t.exports="[object z]"===String(r)},,function(t,e,n){var r=n(33);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},function(t,e,n){var r=n(0),o=n(13),i=n(3),c=n(26),u=n(62),a=r.Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return i(e)&&c(e.prototype,a(t))}},function(t,e,n){var r=n(1),o=n(33),i=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?i(t,e):function(){return t.apply(e,arguments)}}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r=n(50),o=n(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e,n){var r,o,i=n(0),c=n(73),u=i.process,a=i.Deno,f=u&&u.versions||a&&a.version,s=f&&f.v8;s&&(o=(r=s.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&c&&(!(r=c.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},,function(t,e,n){var r=n(0).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,e,n){var r=n(47),o=n(1),i=n(57),c=n(14),u=n(17),a=n(71),f=o([].push),s=function(t){var e=1==t,n=2==t,o=3==t,s=4==t,l=6==t,p=7==t,v=5==t||l;return function(d,h,y,m){for(var b,g,x=c(d),S=i(x),w=r(h,y),O=u(S),j=0,E=m||a,P=e?E(d,O):n||p?E(d,0):void 0;O>j;j++)if((v||j in S)&&(g=w(b=S[j],j,x),t))if(e)P[j]=g;else if(g)switch(t){case 3:return!0;case 5:return b;case 6:return j;case 2:f(P,b)}else switch(t){case 4:return!1;case 7:f(P,b)}return l?-1:o||s?s:P}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},function(t,e,n){var r=n(7),o=n(6),i=Function.prototype,c=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),a=u&&"something"===function(){}.name,f=u&&(!r||r&&c(i,"name").configurable);t.exports={EXISTS:u,PROPER:a,CONFIGURABLE:f}},function(t,e,n){var r=n(1),o=n(2),i=n(3),c=n(30),u=n(13),a=n(38),f=function(){},s=[],l=u("Reflect","construct"),p=/^\s*(?:class|function)\b/,v=r(p.exec),d=!p.exec(f),h=function(t){if(!i(t))return!1;try{return l(f,s,t),!0}catch(t){return!1}};t.exports=!l||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(c(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return d||!!v(p,a(t))}:h},function(t,e,n){var r=n(36),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){var r=n(0),o=n(1),i=n(2),c=n(18),u=r.Object,a=o("".split);t.exports=i((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"==c(t)?a(t,""):u(t)}:u},,,function(t,e,n){var r=n(43),o=n(15),i=n(103);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(49);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(7),o=n(2),i=n(42);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(5),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(9).f})},function(t,e,n){var r=n(1),o=n(6),i=n(12),c=n(87).indexOf,u=n(24),a=r([].push);t.exports=function(t,e){var n,r=i(t),f=0,s=[];for(n in r)!o(u,n)&&o(r,n)&&a(s,n);for(;e.length>f;)o(r,n=e[f++])&&(~c(s,n)||a(s,n));return s}},function(t,e){e.f=Object.getOwnPropertySymbols},,,,function(t,e,n){var r=n(6),o=n(85),i=n(25),c=n(9);t.exports=function(t,e){for(var n=o(e),u=c.f,a=i.f,f=0;f<n.length;f++){var s=n[f];r(t,s)||u(t,s,a(e,s))}}},function(t,e,n){var r=n(102);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},,function(t,e,n){var r=n(13);t.exports=r("navigator","userAgent")||""},function(t,e,n){"use strict";var r=n(53).forEach,o=n(79)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){var r=n(2),o=n(3),i=/#|\.prototype\./,c=function(t,e){var n=a[u(t)];return n==s||n!=f&&(o(e)?r(e):!!e)},u=c.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=c.data={},f=c.NATIVE="N",s=c.POLYFILL="P";t.exports=c},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(42)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},,function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},,,function(t,e,n){var r=n(36),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},,,function(t,e,n){var r=n(13),o=n(1),i=n(39),c=n(66),u=n(10),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(u(t)),n=c.f;return n?a(e,n(t)):e}},,function(t,e,n){var r=n(12),o=n(56),i=n(17),c=function(t){return function(e,n,c){var u,a=r(e),f=i(a),s=o(c,f);if(t&&n!=n){for(;f>s;)if((u=a[s++])!=u)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},,,,,,,,function(t,e,n){"use strict";var r=n(5),o=n(74);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){var r=n(0),o=n(76),i=n(77),c=n(74),u=n(16),a=function(t){if(t&&t.forEach!==c)try{u(t,"forEach",c)}catch(e){t.forEach=c}};for(var f in o)o[f]&&a(r[f]&&r[f].prototype);a(i)},,function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(0),o=n(11),i=n(8),c=n(46),u=n(45),a=n(100),f=n(4),s=r.TypeError,l=f("toPrimitive");t.exports=function(t,e){if(!i(t)||c(t))return t;var n,r=u(t,l);if(r){if(void 0===e&&(e="default"),n=o(r,t,e),!i(n)||c(n))return n;throw s("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},function(t,e,n){var r=n(0),o=n(11),i=n(3),c=n(8),u=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&i(n=t.toString)&&!c(r=o(n,t)))return r;if(i(n=t.valueOf)&&!c(r=o(n,t)))return r;if("string"!==e&&i(n=t.toString)&&!c(r=o(n,t)))return r;throw u("Can't convert object to primitive value")}},function(t,e,n){var r=n(0),o=n(3),i=n(38),c=r.WeakMap;t.exports=o(c)&&/native code/.test(i(c))},function(t,e,n){var r=n(0),o=n(29),i=n(55),c=n(8),u=n(4)("species"),a=r.Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,(i(e)&&(e===a||o(e.prototype))||c(e)&&null===(e=e[u]))&&(e=void 0)),void 0===e?a:e}},function(t,e,n){"use strict";var r=n(43),o=n(30);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"SelectionSelect",(function(){return i}));n(95),n(60),n(96),n(64);function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=function(){function t(e){var n=this,r=e.lf;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,"__disabled",!1),o(this,"isDefaultStopMoveGraph",!1),o(this,"isWholeNode",!0),o(this,"isWholeEdge",!0),o(this,"__draw",(function(t){var e=n.lf.getPointByClient(t.clientX,t.clientY).domOverlayPosition,r=e.x,o=e.y;n.endPoint={x:r,y:o};var i=n.startPoint,c=i.x,u=i.y,a=n.wrapper.style,f=c,s=u,l=r-c,p=o-u;r<c&&(f=r,l=c-r),o<u&&(s=o,p=u-o),a.left="".concat(f,"px"),a.top="".concat(s,"px"),a.width="".concat(l,"px"),a.height="".concat(p,"px")})),o(this,"__drawOff",(function(){document.removeEventListener("mousemove",n.__draw),document.removeEventListener("mouseup",n.__drawOff),n.wrapper.oncontextmenu=null,n.__domContainer.removeChild(n.wrapper);var t=n.startPoint,e=t.x,r=t.y,o=n.endPoint,i=o.x,c=o.y;if(!(Math.abs(i-e)<10&&Math.abs(c-r)<10)){var u=[Math.min(e,i),Math.min(r,c)],a=[Math.max(e,i),Math.max(r,c)],f=n.lf.graphModel.getAreaElement(u,a,n.isWholeEdge,n.isWholeNode,!0),s=n.lf.graphModel.group;f.forEach((function(t){s&&s.getNodeGroup(t.id)||n.lf.selectElementById(t.id,!0)})),n.lf.emit("selection:selected",f)}})),o(this,"__zoom",(function(t){var e,r;t.preventDefault();var o=new WheelEvent("wheel",{deltaX:t.deltaX,deltaY:t.deltaY,clientX:t.clientX,clientY:t.clientY,ctrlKey:t.ctrlKey});null===(e=n.lf.container)||void 0===e||null===(r=e.querySelector('.lf-canvas-overlay[name="canvas-overlay"]'))||void 0===r||r.dispatchEvent(o)})),this.lf=r;var i=r.getEditConfig().stopMoveGraph;this.isDefaultStopMoveGraph=i,r.openSelectionSelect=function(){n.openSelectionSelect()},r.closeSelectionSelect=function(){n.closeSelectionSelect()}}var e,n,i;return e=t,(n=[{key:"render",value:function(t,e){var n=this;this.__domContainer=e,t.on("blank:mousedown",(function(r){var o=r.e;if(t.getEditConfig().stopMoveGraph&&!n.__disabled&&2!==o.button){var i=t.getPointByClient(o.clientX,o.clientY).domOverlayPosition,c=i.x,u=i.y;n.startPoint={x:c,y:u},n.endPoint={x:c,y:u};var a=document.createElement("div");a.className="lf-selection-select",a.oncontextmenu=function(t){t.preventDefault()},a.style.top="".concat(n.startPoint.y,"px"),a.style.left="".concat(n.startPoint.x,"px"),e.appendChild(a),n.wrapper=a,document.addEventListener("mousemove",n.__draw),document.addEventListener("mouseup",n.__drawOff),document.addEventListener("wheel",n.__zoom,{passive:!1})}}))}},{key:"setSelectionSense",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.isWholeEdge=t,this.isWholeNode=e}},{key:"openSelectionSelect",value:function(){this.lf.getEditConfig().stopMoveGraph||(this.isDefaultStopMoveGraph=!1,this.lf.updateEditConfig({stopMoveGraph:!0})),this.open()}},{key:"closeSelectionSelect",value:function(){this.isDefaultStopMoveGraph||this.lf.updateEditConfig({stopMoveGraph:!1}),this.close()}},{key:"open",value:function(){this.__disabled=!1}},{key:"close",value:function(){this.__disabled=!0}}])&&r(e.prototype,n),i&&r(e,i),t}();o(i,"pluginName","selectionSelect")}])}));
|
package/lib/style/index.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logicflow/extension",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.24",
|
|
4
4
|
"description": "LogicFlow extension",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"readme.md"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@logicflow/core": "^1.2.
|
|
35
|
+
"@logicflow/core": "^1.2.24",
|
|
36
36
|
"jest": "27.5.1",
|
|
37
37
|
"lodash-es": "^4.17.21",
|
|
38
38
|
"preact": "^10.4.8"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { h } from '@logicflow/core';
|
|
2
|
+
export default function Polygon({ fillOpacity, strokeWidth, strokeOpacity, fill, stroke, points, className, }: {
|
|
3
|
+
fillOpacity?: number;
|
|
4
|
+
strokeWidth?: number;
|
|
5
|
+
strokeOpacity?: number;
|
|
6
|
+
fill?: string;
|
|
7
|
+
stroke?: string;
|
|
8
|
+
points: any;
|
|
9
|
+
className?: string;
|
|
10
|
+
}): h.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { h, Point, Size } from '@logicflow/core';
|
|
2
|
+
declare type IProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
radius?: number;
|
|
5
|
+
stroke?: string;
|
|
6
|
+
strokeDasharray?: string;
|
|
7
|
+
} & Point & Size;
|
|
8
|
+
declare function Rect(props: IProps): h.JSX.Element;
|
|
9
|
+
declare namespace Rect {
|
|
10
|
+
var defaultProps: {
|
|
11
|
+
radius: number;
|
|
12
|
+
stroke: string;
|
|
13
|
+
strokeDasharray: string;
|
|
14
|
+
className: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export default Rect;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { h, Component } from 'preact';
|
|
2
|
+
import { BaseNodeModel, GraphModel, LogicFlowUtil } from '@logicflow/core';
|
|
3
|
+
interface IProps {
|
|
4
|
+
index: number;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
model: BaseNodeModel;
|
|
8
|
+
graphModel: GraphModel;
|
|
9
|
+
style?: CSSStyleDeclaration;
|
|
10
|
+
}
|
|
11
|
+
declare class Control extends Component<IProps> {
|
|
12
|
+
index: number;
|
|
13
|
+
nodeModel: BaseNodeModel;
|
|
14
|
+
graphModel: GraphModel;
|
|
15
|
+
dragHandler: LogicFlowUtil.StepDrag;
|
|
16
|
+
constructor(props: any);
|
|
17
|
+
getNodeEdges(nodeId: any): {
|
|
18
|
+
sourceEdges: any[];
|
|
19
|
+
targetEdges: any[];
|
|
20
|
+
};
|
|
21
|
+
updatePosition: ({ deltaX, deltaY }: {
|
|
22
|
+
deltaX: any;
|
|
23
|
+
deltaY: any;
|
|
24
|
+
}) => void;
|
|
25
|
+
getResize: ({ index, deltaX, deltaY, width, height, PCTResizeInfo, pct }: {
|
|
26
|
+
index: any;
|
|
27
|
+
deltaX: any;
|
|
28
|
+
deltaY: any;
|
|
29
|
+
width: any;
|
|
30
|
+
height: any;
|
|
31
|
+
PCTResizeInfo: any;
|
|
32
|
+
pct?: number;
|
|
33
|
+
}) => {
|
|
34
|
+
width: any;
|
|
35
|
+
height: any;
|
|
36
|
+
deltaX: any;
|
|
37
|
+
deltaY: any;
|
|
38
|
+
};
|
|
39
|
+
updateEdgePointByAnchors: () => void;
|
|
40
|
+
updateRect: ({ deltaX, deltaY }: {
|
|
41
|
+
deltaX: any;
|
|
42
|
+
deltaY: any;
|
|
43
|
+
}) => void;
|
|
44
|
+
updateEllipse: ({ deltaX, deltaY }: {
|
|
45
|
+
deltaX: any;
|
|
46
|
+
deltaY: any;
|
|
47
|
+
}) => void;
|
|
48
|
+
updateDiamond: ({ deltaX, deltaY }: {
|
|
49
|
+
deltaX: any;
|
|
50
|
+
deltaY: any;
|
|
51
|
+
}) => void;
|
|
52
|
+
eventEmit: ({ beforeNode, afterNode }: {
|
|
53
|
+
beforeNode: any;
|
|
54
|
+
afterNode: any;
|
|
55
|
+
}) => void;
|
|
56
|
+
onDragging: ({ deltaX, deltaY }: {
|
|
57
|
+
deltaX: any;
|
|
58
|
+
deltaY: any;
|
|
59
|
+
}) => void;
|
|
60
|
+
/**
|
|
61
|
+
* 由于将拖拽放大缩小改成丝滑模式,这个时候需要在拖拽结束的时候,将节点的位置更新到grid上.
|
|
62
|
+
*/
|
|
63
|
+
onDragEnd: () => void;
|
|
64
|
+
render(): h.JSX.Element;
|
|
65
|
+
}
|
|
66
|
+
export default Control;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { h, Component } from 'preact';
|
|
2
|
+
import { BaseNodeModel, GraphModel } from '@logicflow/core';
|
|
3
|
+
interface IProps {
|
|
4
|
+
model: BaseNodeModel;
|
|
5
|
+
graphModel: GraphModel;
|
|
6
|
+
}
|
|
7
|
+
declare class ControlGroup extends Component<IProps> {
|
|
8
|
+
constructor();
|
|
9
|
+
getResizeControl(): h.JSX.Element[];
|
|
10
|
+
getGroupSolid(): h.JSX.Element;
|
|
11
|
+
render(): h.JSX.Element;
|
|
12
|
+
}
|
|
13
|
+
export default ControlGroup;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare enum ModelType {
|
|
2
|
+
NODE = "node",
|
|
3
|
+
CIRCLE_NODE = "circle-node",
|
|
4
|
+
POLYGON_NODE = "polygon-node",
|
|
5
|
+
RECT_NODE = "rect-node",
|
|
6
|
+
HTML_NODE = "html-node",
|
|
7
|
+
TEXT_NODE = "text-node",
|
|
8
|
+
ELLIPSE_NODE = "ellipse-node",
|
|
9
|
+
DIAMOND_NODE = "diamond-node",
|
|
10
|
+
EDGE = "edge",
|
|
11
|
+
LINE_EDGE = "line-edge",
|
|
12
|
+
POLYLINE_EDGE = "polyline-edge",
|
|
13
|
+
BEZIER_EDGE = "bezier-edge",
|
|
14
|
+
GRAPH = "graph"
|
|
15
|
+
}
|
|
16
|
+
export declare function getRectResizeEdgePoint({ point, beforeNode, afterNode }: {
|
|
17
|
+
point: any;
|
|
18
|
+
beforeNode: any;
|
|
19
|
+
afterNode: any;
|
|
20
|
+
}): {
|
|
21
|
+
x: any;
|
|
22
|
+
y: any;
|
|
23
|
+
};
|
|
24
|
+
export declare function getEllipseResizeEdgePoint({ point, beforeNode, afterNode }: {
|
|
25
|
+
point: any;
|
|
26
|
+
beforeNode: any;
|
|
27
|
+
afterNode: any;
|
|
28
|
+
}): any;
|
|
29
|
+
export declare function getDiamondResizeEdgePoint({ point, beforeNode, afterNode }: {
|
|
30
|
+
point: any;
|
|
31
|
+
beforeNode: any;
|
|
32
|
+
afterNode: any;
|
|
33
|
+
}): any;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { h, DiamondNode, DiamondNodeModel } from '@logicflow/core';
|
|
2
|
+
declare class DiamondResizeModel extends DiamondNodeModel {
|
|
3
|
+
private PCTResizeInfo;
|
|
4
|
+
constructor(data: any, graphModel: any);
|
|
5
|
+
initNodeData(data: any): void;
|
|
6
|
+
getOutlineStyle(): import("@logicflow/core/types/constant/DefaultTheme").OutlineTheme;
|
|
7
|
+
getResizeOutlineStyle(): {
|
|
8
|
+
stroke: string;
|
|
9
|
+
strokeWidth: number;
|
|
10
|
+
strokeDasharray: string;
|
|
11
|
+
};
|
|
12
|
+
getControlPointStyle(): {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
fill: string;
|
|
16
|
+
stroke: string;
|
|
17
|
+
};
|
|
18
|
+
enableProportionResize(turnOn?: boolean): void;
|
|
19
|
+
}
|
|
20
|
+
declare class DiamondResizeView extends DiamondNode {
|
|
21
|
+
getControlGroup(): h.JSX.Element;
|
|
22
|
+
getResizeShape(): h.JSX.Element;
|
|
23
|
+
getShape(): h.JSX.Element;
|
|
24
|
+
}
|
|
25
|
+
declare const EllipseResize: {
|
|
26
|
+
type: string;
|
|
27
|
+
view: typeof DiamondResizeView;
|
|
28
|
+
model: typeof DiamondResizeModel;
|
|
29
|
+
};
|
|
30
|
+
export default EllipseResize;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { h, EllipseNode, EllipseNodeModel } from '@logicflow/core';
|
|
2
|
+
declare class EllipseResizeModel extends EllipseNodeModel {
|
|
3
|
+
private PCTResizeInfo;
|
|
4
|
+
constructor(data: any, graphModel: any);
|
|
5
|
+
initNodeData(data: any): void;
|
|
6
|
+
getOutlineStyle(): import("@logicflow/core/types/constant/DefaultTheme").OutlineTheme;
|
|
7
|
+
getResizeOutlineStyle(): {
|
|
8
|
+
stroke: string;
|
|
9
|
+
strokeWidth: number;
|
|
10
|
+
strokeDasharray: string;
|
|
11
|
+
};
|
|
12
|
+
getControlPointStyle(): {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
fill: string;
|
|
16
|
+
stroke: string;
|
|
17
|
+
};
|
|
18
|
+
enableProportionResize(turnOn?: boolean): void;
|
|
19
|
+
}
|
|
20
|
+
declare class EllipseResizeView extends EllipseNode {
|
|
21
|
+
getControlGroup(): h.JSX.Element;
|
|
22
|
+
getResizeShape(): h.JSX.Element;
|
|
23
|
+
getShape(): h.JSX.Element;
|
|
24
|
+
}
|
|
25
|
+
declare const EllipseResize: {
|
|
26
|
+
type: string;
|
|
27
|
+
view: typeof EllipseResizeView;
|
|
28
|
+
model: typeof EllipseResizeModel;
|
|
29
|
+
};
|
|
30
|
+
export default EllipseResize;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { h, HtmlNode, HtmlNodeModel } from '@logicflow/core';
|
|
2
|
+
declare class HtmlResizeModel extends HtmlNodeModel {
|
|
3
|
+
private PCTResizeInfo;
|
|
4
|
+
constructor(data: any, graphModel: any);
|
|
5
|
+
initNodeData(data: any): void;
|
|
6
|
+
getOutlineStyle(): import("@logicflow/core/types/constant/DefaultTheme").OutlineTheme;
|
|
7
|
+
getResizeOutlineStyle(): {
|
|
8
|
+
stroke: string;
|
|
9
|
+
strokeWidth: number;
|
|
10
|
+
strokeDasharray: string;
|
|
11
|
+
};
|
|
12
|
+
getControlPointStyle(): {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
fill: string;
|
|
16
|
+
stroke: string;
|
|
17
|
+
};
|
|
18
|
+
enableProportionResize(turnOn?: boolean): void;
|
|
19
|
+
}
|
|
20
|
+
declare class HtmlResizeView extends HtmlNode {
|
|
21
|
+
getControlGroup(): h.JSX.Element;
|
|
22
|
+
getResizeShape(): h.JSX.Element;
|
|
23
|
+
getShape(): h.JSX.Element;
|
|
24
|
+
}
|
|
25
|
+
declare const HtmlResize: {
|
|
26
|
+
type: string;
|
|
27
|
+
view: typeof HtmlResizeView;
|
|
28
|
+
model: typeof HtmlResizeModel;
|
|
29
|
+
};
|
|
30
|
+
export default HtmlResize;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { h, RectNode, RectNodeModel } from '@logicflow/core';
|
|
2
|
+
declare class RectResizeModel extends RectNodeModel {
|
|
3
|
+
private PCTResizeInfo;
|
|
4
|
+
constructor(data: any, graphModel: any);
|
|
5
|
+
initNodeData(data: any): void;
|
|
6
|
+
getOutlineStyle(): import("@logicflow/core/types/constant/DefaultTheme").OutlineTheme;
|
|
7
|
+
getResizeOutlineStyle(): {
|
|
8
|
+
fill: string;
|
|
9
|
+
stroke: string;
|
|
10
|
+
strokeWidth: number;
|
|
11
|
+
strokeDasharray: string;
|
|
12
|
+
};
|
|
13
|
+
getControlPointStyle(): {
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
fill: string;
|
|
17
|
+
stroke: string;
|
|
18
|
+
};
|
|
19
|
+
resize(deltaX: any, deltaY: any): void;
|
|
20
|
+
enableProportionResize(turnOn?: boolean): void;
|
|
21
|
+
}
|
|
22
|
+
declare class RectResizeView extends RectNode {
|
|
23
|
+
getControlGroup(): h.JSX.Element;
|
|
24
|
+
getResizeShape(): h.JSX.Element;
|
|
25
|
+
getShape(): h.JSX.Element;
|
|
26
|
+
}
|
|
27
|
+
declare const RectResize: {
|
|
28
|
+
type: string;
|
|
29
|
+
view: typeof RectResizeView;
|
|
30
|
+
model: typeof RectResizeModel;
|
|
31
|
+
};
|
|
32
|
+
export default RectResize;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import RectResize from './Node/RectResize';
|
|
2
|
+
import EllipseResize from './Node/EllipseResize';
|
|
3
|
+
import DiamondResize from './Node/DiamondResize';
|
|
4
|
+
import HtmlResize from './Node/HtmlResize';
|
|
5
|
+
declare const NodeResize: {
|
|
6
|
+
pluginName: string;
|
|
7
|
+
step: number;
|
|
8
|
+
install(lf: any): void;
|
|
9
|
+
};
|
|
10
|
+
export default NodeResize;
|
|
11
|
+
export { NodeResize, RectResize, EllipseResize, DiamondResize, HtmlResize, };
|