@logicflow/extension 0.7.10 → 0.7.11
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/CHANGELOG.md +11 -0
- package/cjs/components/dnd-panel/index.js +5 -0
- package/es/components/dnd-panel/index.d.ts +1 -0
- package/es/components/dnd-panel/index.js +5 -0
- package/lib/DndPanel.js +1 -1
- package/package.json +3 -3
- package/types/components/dnd-panel/index.d.ts +1 -0
- package/types/mindmap/fakerRoot.d.ts +0 -13
- package/types/mindmap/index.d.ts +0 -40
- package/types/mindmap/markContent.d.ts +0 -17
- package/types/mindmap/markContentOption.d.ts +0 -17
- package/types/mindmap/markEntity.d.ts +0 -17
- package/types/mindmap/markRoot.d.ts +0 -17
- package/types/mindmap/mindNode.d.ts +0 -16
- package/types/mindmap/rootNode.d.ts +0 -17
- package/types/mindmap/theme.d.ts +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.7.11](https://github.com/didi/LogicFlow/compare/@logicflow/extension@0.7.10...@logicflow/extension@0.7.11) (2021-11-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* support disabled tool in core package ([1c7527f](https://github.com/didi/LogicFlow/commit/1c7527fc75929c444d9e5fb4b0b70b87086694c8))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.7.10](https://github.com/didi/LogicFlow/compare/@logicflow/extension@0.7.9...@logicflow/extension@0.7.10) (2021-11-26)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -8,6 +8,10 @@ var DndPanel = /** @class */ (function () {
|
|
|
8
8
|
this.lf = lf;
|
|
9
9
|
this.lf.setPatternItems = function (shapeList) {
|
|
10
10
|
_this.shapeList = shapeList;
|
|
11
|
+
// 支持渲染后重新设置拖拽面板
|
|
12
|
+
if (_this.domContainer) {
|
|
13
|
+
_this.render(_this.lf, _this.domContainer);
|
|
14
|
+
}
|
|
11
15
|
};
|
|
12
16
|
}
|
|
13
17
|
DndPanel.prototype.render = function (lf, domContainer) {
|
|
@@ -23,6 +27,7 @@ var DndPanel = /** @class */ (function () {
|
|
|
23
27
|
_this.panelEl.appendChild(_this.createDndItem(shapeItem));
|
|
24
28
|
});
|
|
25
29
|
domContainer.appendChild(this.panelEl);
|
|
30
|
+
this.domContainer = domContainer;
|
|
26
31
|
};
|
|
27
32
|
DndPanel.prototype.createDndItem = function (shapeItem) {
|
|
28
33
|
var _this = this;
|
|
@@ -5,6 +5,10 @@ var DndPanel = /** @class */ (function () {
|
|
|
5
5
|
this.lf = lf;
|
|
6
6
|
this.lf.setPatternItems = function (shapeList) {
|
|
7
7
|
_this.shapeList = shapeList;
|
|
8
|
+
// 支持渲染后重新设置拖拽面板
|
|
9
|
+
if (_this.domContainer) {
|
|
10
|
+
_this.render(_this.lf, _this.domContainer);
|
|
11
|
+
}
|
|
8
12
|
};
|
|
9
13
|
}
|
|
10
14
|
DndPanel.prototype.render = function (lf, domContainer) {
|
|
@@ -20,6 +24,7 @@ var DndPanel = /** @class */ (function () {
|
|
|
20
24
|
_this.panelEl.appendChild(_this.createDndItem(shapeItem));
|
|
21
25
|
});
|
|
22
26
|
domContainer.appendChild(this.panelEl);
|
|
27
|
+
this.domContainer = domContainer;
|
|
23
28
|
};
|
|
24
29
|
DndPanel.prototype.createDndItem = function (shapeItem) {
|
|
25
30
|
var _this = this;
|
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=189)}([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(83))},function(t,n,e){var r=e(0),o=e(35),i=e(5),c=e(29),u=e(36),a=e(47),f=o("wks"),s=r.Symbol,l=a?s:s&&s.withoutSetter||c;t.exports=function(t){return i(f,t)&&(u||"string"==typeof f[t])||(u&&i(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(0),o=e(18).f,i=e(9),c=e(13),u=e(33),a=e(57),f=e(58);t.exports=function(t,n){var e,s,l,p,v,d=t.target,y=t.global,h=t.stat;if(e=y?r:h?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(y?s:d+(h?".":"#")+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(11),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,n){return o.call(r(t),n)}},function(t,n,e){var r=e(7),o=e(48),i=e(8),c=e(21),u=Object.defineProperty;n.f=r?u:function(t,n,e){if(i(t),n=c(n),i(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},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){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,n,e){var r=e(7),o=e(6),i=e(15);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(41),o=e(27);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(27);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(0),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,n){return arguments.length<2?o(r[t]):r[t]&&r[t][n]}},function(t,n,e){var r=e(0),o=e(9),i=e(5),c=e(33),u=e(44),a=e(17),f=a.get,s=a.enforce,l=String(String).split("String");(t.exports=function(t,n,e,u){var a,f=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,v=!!u&&!!u.noTargetGet;"function"==typeof e&&("string"!=typeof n||i(e,"name")||o(e,"name",n),(a=s(e)).source||(a.source=l.join("string"==typeof n?n:""))),t!==r?(f?!v&&t[n]&&(p=!0):delete t[n],p?t[n]=e:o(t,n,e)):p?t[n]=e:c(n,e)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||u(this)}))},function(t,n,e){var r=e(34),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},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,o,i,c=e(85),u=e(0),a=e(3),f=e(9),s=e(5),l=e(32),p=e(26),v=e(16),d=u.WeakMap;if(c||l.state){var y=l.state||(l.state=new d),h=y.get,m=y.has,b=y.set;r=function(t,n){if(m.call(y,t))throw new TypeError("Object already initialized");return n.facade=t,b.call(y,t,n),n},o=function(t){return h.call(y,t)||{}},i=function(t){return m.call(y,t)}}else{var g=p("state");v[g]=!0,r=function(t,n){if(s(t,g))throw new TypeError("Object already initialized");return n.facade=t,f(t,g,n),n},o=function(t){return s(t,g)?t[g]:{}},i=function(t){return s(t,g)}}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(!a(n)||(e=o(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}}},function(t,n,e){var r=e(7),o=e(50),i=e(15),c=e(10),u=e(21),a=e(5),f=e(48),s=Object.getOwnPropertyDescriptor;n.f=r?s:function(t,n){if(t=c(t),n=u(n),f)try{return s(t,n)}catch(t){}if(a(t,n))return i(!o.f.call(t,n),t[n])}},function(t,n,e){var r=e(12),o=e(47);t.exports=o?function(t){return"symbol"==typeof t}:function(t){var n=r("Symbol");return"function"==typeof n&&Object(t)instanceof n}},,function(t,n,e){var r=e(76),o=e(19);t.exports=function(t){var n=r(t,"string");return o(n)?n:String(n)}},,,function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=!1},function(t,n,e){var r=e(35),o=e(29),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var r=e(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},function(t,n,e){var r=e(53),o=e(37).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},,function(t,n,e){var r=e(0),o=e(33),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,n,e){var r=e(0);t.exports=function(t,n){try{Object.defineProperty(r,t,{value:n,configurable:!0,writable:!0})}catch(e){r[t]=n}return n}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(25),o=e(32);(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.17.2",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,n,e){var r=e(38),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){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,n,e){var r,o,i=e(0),c=e(66),u=i.process,a=i.Deno,f=u&&u.versions||a&&a.version,s=f&&f.v8;s?o=(r=s.split("."))[0]<4?1:r[0]+r[1]:c&&(!(r=c.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},,function(t,n,e){var r=e(45);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 0:return function(){return t.call(n)};case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){var r=e(2),o=e(24),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,n,e){var r=e(40),o=e(41),i=e(11),c=e(14),u=e(59),a=[].push,f=function(t){var n=1==t,e=2==t,f=3==t,s=4==t,l=6==t,p=7==t,v=5==t||l;return function(d,y,h,m){for(var b,g,x=i(d),S=o(x),w=r(y,h,3),O=c(S.length),j=0,E=m||u,L=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)L[j]=g;else if(g)switch(t){case 3:return!0;case 5:return b;case 6:return j;case 2:a.call(L,b)}else switch(t){case 4:return!1;case 7:a.call(L,b)}return l?-1:f||s?s:L}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},,function(t,n,e){var r=e(32),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},,function(t,n,e){var r=e(36);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,n,e){var r=e(7),o=e(2),i=e(51);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},,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(0),o=e(3),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},,function(t,n,e){var r=e(5),o=e(10),i=e(72).indexOf,c=e(16);t.exports=function(t,n){var e,u=o(t),a=0,f=[];for(e in u)!r(c,e)&&r(u,e)&&f.push(e);for(;n.length>a;)r(u,e=n[a++])&&(~i(f,e)||f.push(e));return f}},function(t,n){n.f=Object.getOwnPropertySymbols},,,function(t,n,e){var r=e(5),o=e(71),i=e(18),c=e(6);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(2),o=/#|\.prototype\./,i=function(t,n){var e=u[c(t)];return e==f||e!=a&&("function"==typeof n?r(n):!!n)},c=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,n,e){var r=e(86);t.exports=function(t,n){return new(r(t))(0===n?0:n)}},function(t,n,e){var r=e(34),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){"use strict";var r=e(42).forEach,o=e(67)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},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(12);t.exports=r("navigator","userAgent")||""},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(12),o=e(30),i=e(54),c=e(8);t.exports=r("Reflect","ownKeys")||function(t){var n=o.f(c(t)),e=i.f;return e?n.concat(e(t)):n}},function(t,n,e){var r=e(10),o=e(14),i=e(60),c=function(t){return function(n,e,c){var u,a=r(n),f=o(a.length),s=i(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){var r=e(3),o=e(19),i=e(84),c=e(1)("toPrimitive");t.exports=function(t,n){if(!r(t)||o(t))return t;var e,u=t[c];if(void 0!==u){if(void 0===n&&(n="default"),e=u.call(t,n),!r(e)||o(e))return e;throw TypeError("Can't convert object to primitive value")}return void 0===n&&(n="number"),i(t,n)}},,,function(t,n,e){var r=e(4),o=e(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:e(6).f})},,,,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(3);t.exports=function(t,n){var e,o;if("string"===n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if("string"!==n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(0),o=e(44),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,n,e){var r=e(3),o=e(28),i=e(1)("species");t.exports=function(t){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),void 0===n?Array:n}},,,function(t,n,e){"use strict";var r=e(4),o=e(61);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,n,e){var r=e(0),o=e(62),i=e(61),c=e(9);for(var u in o){var a=r[u],f=a&&a.prototype;if(f&&f.forEach!==i)try{c(f,"forEach",i)}catch(t){f.forEach=i}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,e){"use strict";e.r(n),e.d(n,"DndPanel",(function(){return i}));e(89),e(90),e(79);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,"lf",void 0),o(this,"shapeList",void 0),o(this,"panelEl",void 0),this.lf=r,this.lf.setPatternItems=function(t){e.shapeList=t}}var n,e,i;return n=t,(e=[{key:"render",value:function(t,n){var e=this;this.panelEl&&n.removeChild(this.panelEl),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))}},{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()},e}}])&&r(n.prototype,e),i&&r(n,i),t}();o(i,"pluginName","DndPanel")}])}));
|
|
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=189)}([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(83))},function(t,n,e){var r=e(0),o=e(35),i=e(5),c=e(29),u=e(36),a=e(47),f=o("wks"),s=r.Symbol,l=a?s:s&&s.withoutSetter||c;t.exports=function(t){return i(f,t)&&(u||"string"==typeof f[t])||(u&&i(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(0),o=e(18).f,i=e(9),c=e(13),u=e(33),a=e(57),f=e(58);t.exports=function(t,n){var e,s,l,p,v,d=t.target,y=t.global,h=t.stat;if(e=y?r:h?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(y?s:d+(h?".":"#")+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(11),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,n){return o.call(r(t),n)}},function(t,n,e){var r=e(7),o=e(48),i=e(8),c=e(21),u=Object.defineProperty;n.f=r?u:function(t,n,e){if(i(t),n=c(n),i(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},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){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,n,e){var r=e(7),o=e(6),i=e(15);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(41),o=e(27);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(27);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(0),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,n){return arguments.length<2?o(r[t]):r[t]&&r[t][n]}},function(t,n,e){var r=e(0),o=e(9),i=e(5),c=e(33),u=e(44),a=e(17),f=a.get,s=a.enforce,l=String(String).split("String");(t.exports=function(t,n,e,u){var a,f=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,v=!!u&&!!u.noTargetGet;"function"==typeof e&&("string"!=typeof n||i(e,"name")||o(e,"name",n),(a=s(e)).source||(a.source=l.join("string"==typeof n?n:""))),t!==r?(f?!v&&t[n]&&(p=!0):delete t[n],p?t[n]=e:o(t,n,e)):p?t[n]=e:c(n,e)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||u(this)}))},function(t,n,e){var r=e(34),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},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,o,i,c=e(85),u=e(0),a=e(3),f=e(9),s=e(5),l=e(32),p=e(26),v=e(16),d=u.WeakMap;if(c||l.state){var y=l.state||(l.state=new d),h=y.get,m=y.has,b=y.set;r=function(t,n){if(m.call(y,t))throw new TypeError("Object already initialized");return n.facade=t,b.call(y,t,n),n},o=function(t){return h.call(y,t)||{}},i=function(t){return m.call(y,t)}}else{var g=p("state");v[g]=!0,r=function(t,n){if(s(t,g))throw new TypeError("Object already initialized");return n.facade=t,f(t,g,n),n},o=function(t){return s(t,g)?t[g]:{}},i=function(t){return s(t,g)}}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(!a(n)||(e=o(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}}},function(t,n,e){var r=e(7),o=e(50),i=e(15),c=e(10),u=e(21),a=e(5),f=e(48),s=Object.getOwnPropertyDescriptor;n.f=r?s:function(t,n){if(t=c(t),n=u(n),f)try{return s(t,n)}catch(t){}if(a(t,n))return i(!o.f.call(t,n),t[n])}},function(t,n,e){var r=e(12),o=e(47);t.exports=o?function(t){return"symbol"==typeof t}:function(t){var n=r("Symbol");return"function"==typeof n&&Object(t)instanceof n}},,function(t,n,e){var r=e(76),o=e(19);t.exports=function(t){var n=r(t,"string");return o(n)?n:String(n)}},,,function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=!1},function(t,n,e){var r=e(35),o=e(29),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var r=e(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},function(t,n,e){var r=e(53),o=e(37).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},,function(t,n,e){var r=e(0),o=e(33),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,n,e){var r=e(0);t.exports=function(t,n){try{Object.defineProperty(r,t,{value:n,configurable:!0,writable:!0})}catch(e){r[t]=n}return n}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(25),o=e(32);(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.17.2",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,n,e){var r=e(38),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){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,n,e){var r,o,i=e(0),c=e(66),u=i.process,a=i.Deno,f=u&&u.versions||a&&a.version,s=f&&f.v8;s?o=(r=s.split("."))[0]<4?1:r[0]+r[1]:c&&(!(r=c.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},,function(t,n,e){var r=e(45);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 0:return function(){return t.call(n)};case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){var r=e(2),o=e(24),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,n,e){var r=e(40),o=e(41),i=e(11),c=e(14),u=e(59),a=[].push,f=function(t){var n=1==t,e=2==t,f=3==t,s=4==t,l=6==t,p=7==t,v=5==t||l;return function(d,y,h,m){for(var b,g,x=i(d),S=o(x),w=r(y,h,3),O=c(S.length),j=0,E=m||u,L=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)L[j]=g;else if(g)switch(t){case 3:return!0;case 5:return b;case 6:return j;case 2:a.call(L,b)}else switch(t){case 4:return!1;case 7:a.call(L,b)}return l?-1:f||s?s:L}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},,function(t,n,e){var r=e(32),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},,function(t,n,e){var r=e(36);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,n,e){var r=e(7),o=e(2),i=e(51);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},,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(0),o=e(3),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},,function(t,n,e){var r=e(5),o=e(10),i=e(72).indexOf,c=e(16);t.exports=function(t,n){var e,u=o(t),a=0,f=[];for(e in u)!r(c,e)&&r(u,e)&&f.push(e);for(;n.length>a;)r(u,e=n[a++])&&(~i(f,e)||f.push(e));return f}},function(t,n){n.f=Object.getOwnPropertySymbols},,,function(t,n,e){var r=e(5),o=e(71),i=e(18),c=e(6);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(2),o=/#|\.prototype\./,i=function(t,n){var e=u[c(t)];return e==f||e!=a&&("function"==typeof n?r(n):!!n)},c=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,n,e){var r=e(86);t.exports=function(t,n){return new(r(t))(0===n?0:n)}},function(t,n,e){var r=e(34),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){"use strict";var r=e(42).forEach,o=e(67)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},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(12);t.exports=r("navigator","userAgent")||""},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(12),o=e(30),i=e(54),c=e(8);t.exports=r("Reflect","ownKeys")||function(t){var n=o.f(c(t)),e=i.f;return e?n.concat(e(t)):n}},function(t,n,e){var r=e(10),o=e(14),i=e(60),c=function(t){return function(n,e,c){var u,a=r(n),f=o(a.length),s=i(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){var r=e(3),o=e(19),i=e(84),c=e(1)("toPrimitive");t.exports=function(t,n){if(!r(t)||o(t))return t;var e,u=t[c];if(void 0!==u){if(void 0===n&&(n="default"),e=u.call(t,n),!r(e)||o(e))return e;throw TypeError("Can't convert object to primitive value")}return void 0===n&&(n="number"),i(t,n)}},,,function(t,n,e){var r=e(4),o=e(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:e(6).f})},,,,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(3);t.exports=function(t,n){var e,o;if("string"===n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if("string"!==n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(0),o=e(44),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,n,e){var r=e(3),o=e(28),i=e(1)("species");t.exports=function(t){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),void 0===n?Array:n}},,,function(t,n,e){"use strict";var r=e(4),o=e(61);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,n,e){var r=e(0),o=e(62),i=e(61),c=e(9);for(var u in o){var a=r[u],f=a&&a.prototype;if(f&&f.forEach!==i)try{c(f,"forEach",i)}catch(t){f.forEach=i}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,e){"use strict";e.r(n),e.d(n,"DndPanel",(function(){return i}));e(89),e(90),e(79);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,"lf",void 0),o(this,"shapeList",void 0),o(this,"panelEl",void 0),o(this,"domContainer",void 0),this.lf=r,this.lf.setPatternItems=function(t){e.shapeList=t,e.domContainer&&e.render(e.lf,e.domContainer)}}var n,e,i;return n=t,(e=[{key:"render",value:function(t,n){var e=this;this.panelEl&&n.removeChild(this.panelEl),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)}},{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()},e}}])&&r(n.prototype,e),i&&r(n,i),t}();o(i,"pluginName","DndPanel")}])}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logicflow/extension",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.11",
|
|
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": "^0.7.
|
|
35
|
+
"@logicflow/core": "^0.7.11",
|
|
36
36
|
"ids": "^1.0.0",
|
|
37
37
|
"preact": "^10.4.8"
|
|
38
38
|
},
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"webpack-cli": "^3.3.11",
|
|
85
85
|
"webpack-dev-server": "^3.10.3"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "fe5e91d4d28f0eaf12fa851d7a1d44202a939193"
|
|
88
88
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BaseNode, RectNodeModel } from '@logicflow/core';
|
|
2
|
-
declare class MarkRootModel extends RectNodeModel {
|
|
3
|
-
static extendKey: string;
|
|
4
|
-
}
|
|
5
|
-
declare class MarkRootView extends BaseNode {
|
|
6
|
-
getShape(): string;
|
|
7
|
-
}
|
|
8
|
-
declare const MarkRoot: {
|
|
9
|
-
type: string;
|
|
10
|
-
view: typeof MarkRootView;
|
|
11
|
-
model: typeof MarkRootModel;
|
|
12
|
-
};
|
|
13
|
-
export default MarkRoot;
|
package/types/mindmap/index.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export declare const ROOT_NODE = "mark:root";
|
|
2
|
-
export declare const FAKER_NODE = "faker:root";
|
|
3
|
-
declare class MindMap {
|
|
4
|
-
static pluginName: string;
|
|
5
|
-
lf: any;
|
|
6
|
-
constructor({ lf }: {
|
|
7
|
-
lf: any;
|
|
8
|
-
});
|
|
9
|
-
setContextMenu(): void;
|
|
10
|
-
private addChild;
|
|
11
|
-
private removeNode;
|
|
12
|
-
private getGraphTreeData;
|
|
13
|
-
private renderTree;
|
|
14
|
-
private graphToTree;
|
|
15
|
-
/**
|
|
16
|
-
* 将树这种数据格式转换为图
|
|
17
|
-
*/
|
|
18
|
-
private treeToGraph;
|
|
19
|
-
/**
|
|
20
|
-
* 由于树这种数据格式本身是没有坐标的
|
|
21
|
-
* 需要使用一些算法来将树转换为有坐标的树
|
|
22
|
-
*/
|
|
23
|
-
layoutTree(tree: any): any;
|
|
24
|
-
/**
|
|
25
|
-
* 遍历树的每一项,已传入的回调方法重新构建一个新的树
|
|
26
|
-
*/
|
|
27
|
-
dfsTree(tree: any, callback: any): any;
|
|
28
|
-
/**
|
|
29
|
-
* 将传入的数据转换为logicflow格式的数据
|
|
30
|
-
*/
|
|
31
|
-
adapterIn: (trees: any) => {
|
|
32
|
-
nodes: any[];
|
|
33
|
-
edges: any[];
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* 将logicflow格式的数据转换为mindmap需要的数据
|
|
37
|
-
*/
|
|
38
|
-
adapterOut: (graphData: any) => any;
|
|
39
|
-
}
|
|
40
|
-
export { MindMap, };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { RectNode, RectNodeModel } from '@logicflow/core';
|
|
2
|
-
declare class MarkContentModel extends RectNodeModel {
|
|
3
|
-
static extendKey: string;
|
|
4
|
-
constructor(data: any, graphModel: any);
|
|
5
|
-
setAttributes(): void;
|
|
6
|
-
}
|
|
7
|
-
declare class MarkContentView extends RectNode {
|
|
8
|
-
static extendKey: string;
|
|
9
|
-
getLabelShape(): import("preact").VNode<any>;
|
|
10
|
-
getShape(): import("preact").VNode<any>;
|
|
11
|
-
}
|
|
12
|
-
declare const MarkContent: {
|
|
13
|
-
type: string;
|
|
14
|
-
view: typeof MarkContentView;
|
|
15
|
-
model: typeof MarkContentModel;
|
|
16
|
-
};
|
|
17
|
-
export default MarkContent;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { RectNode, RectNodeModel } from '@logicflow/core';
|
|
2
|
-
declare class MarkContentOptionModel extends RectNodeModel {
|
|
3
|
-
static extendKey: string;
|
|
4
|
-
constructor(data: any, graphModel: any);
|
|
5
|
-
setAttributes(): void;
|
|
6
|
-
}
|
|
7
|
-
declare class MarkContentOptionView extends RectNode {
|
|
8
|
-
static extendKey: string;
|
|
9
|
-
getLabelShape(): import("preact").VNode<any>;
|
|
10
|
-
getShape(): import("preact").VNode<any>;
|
|
11
|
-
}
|
|
12
|
-
declare const MarkContentOption: {
|
|
13
|
-
type: string;
|
|
14
|
-
view: typeof MarkContentOptionView;
|
|
15
|
-
model: typeof MarkContentOptionModel;
|
|
16
|
-
};
|
|
17
|
-
export default MarkContentOption;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { RectNode, RectNodeModel } from '@logicflow/core';
|
|
2
|
-
declare class MarkEntityModel extends RectNodeModel {
|
|
3
|
-
static extendKey: string;
|
|
4
|
-
constructor(data: any, graphModel: any);
|
|
5
|
-
setAttributes(): void;
|
|
6
|
-
}
|
|
7
|
-
declare class MarkEntityView extends RectNode {
|
|
8
|
-
static extendKey: string;
|
|
9
|
-
getLabelShape(): import("preact").VNode<any>;
|
|
10
|
-
getShape(): import("preact").VNode<any>;
|
|
11
|
-
}
|
|
12
|
-
declare const MarkEntity: {
|
|
13
|
-
type: string;
|
|
14
|
-
view: typeof MarkEntityView;
|
|
15
|
-
model: typeof MarkEntityModel;
|
|
16
|
-
};
|
|
17
|
-
export default MarkEntity;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { RectNode, RectNodeModel } from '@logicflow/core';
|
|
2
|
-
declare class MarkRootModel extends RectNodeModel {
|
|
3
|
-
static extendKey: string;
|
|
4
|
-
constructor(data: any, graphModel: any);
|
|
5
|
-
setAttributes(): void;
|
|
6
|
-
}
|
|
7
|
-
declare class MarkRootView extends RectNode {
|
|
8
|
-
static extendKey: string;
|
|
9
|
-
getLabelShape(): import("preact").VNode<any>;
|
|
10
|
-
getShape(): import("preact").VNode<any>;
|
|
11
|
-
}
|
|
12
|
-
declare const MarkRoot: {
|
|
13
|
-
type: string;
|
|
14
|
-
view: typeof MarkRootView;
|
|
15
|
-
model: typeof MarkRootModel;
|
|
16
|
-
};
|
|
17
|
-
export default MarkRoot;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { RectNode, RectNodeModel } from '@logicflow/core';
|
|
2
|
-
declare class MindNodeModel extends RectNodeModel {
|
|
3
|
-
static extendKey: string;
|
|
4
|
-
setAttributes(): void;
|
|
5
|
-
}
|
|
6
|
-
declare class MindNodeView extends RectNode {
|
|
7
|
-
static extendKey: string;
|
|
8
|
-
getLabelShape(): import("preact").VNode<any>;
|
|
9
|
-
getShape(): import("preact").VNode<any>;
|
|
10
|
-
}
|
|
11
|
-
declare const UserTask: {
|
|
12
|
-
type: string;
|
|
13
|
-
view: typeof MindNodeView;
|
|
14
|
-
model: typeof MindNodeModel;
|
|
15
|
-
};
|
|
16
|
-
export default UserTask;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { RectNode, RectNodeModel } from '@logicflow/core';
|
|
2
|
-
declare class RootNodeModel extends RectNodeModel {
|
|
3
|
-
static extendKey: string;
|
|
4
|
-
constructor(data: any, graphModel: any);
|
|
5
|
-
setAttributes(): void;
|
|
6
|
-
}
|
|
7
|
-
declare class RootNodeView extends RectNode {
|
|
8
|
-
static extendKey: string;
|
|
9
|
-
getLabelShape(): import("preact").VNode<any>;
|
|
10
|
-
getShape(): import("preact").VNode<any>;
|
|
11
|
-
}
|
|
12
|
-
declare const RootNode: {
|
|
13
|
-
type: string;
|
|
14
|
-
view: typeof RootNodeView;
|
|
15
|
-
model: typeof RootNodeModel;
|
|
16
|
-
};
|
|
17
|
-
export default RootNode;
|