dcim-topology2d 2.2.3 → 3.0.2
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/activity-diagram/src/final/final.d.ts +1 -1
- package/activity-diagram/src/final/final.rect.d.ts +1 -1
- package/activity-diagram/src/final/final.rect.js +1 -1
- package/activity-diagram/src/fork/fork.anchor.d.ts +1 -1
- package/activity-diagram/src/fork/fork.anchor.js +1 -1
- package/activity-diagram/src/fork/fork.d.ts +1 -1
- package/activity-diagram/src/fork/fork.rect.d.ts +1 -1
- package/activity-diagram/src/fork/fork.rect.js +1 -1
- package/activity-diagram/src/register.js +1 -1
- package/activity-diagram/src/swimlaneH/swimlaneH.d.ts +1 -1
- package/activity-diagram/src/swimlaneH/swimlaneH.rect.d.ts +1 -1
- package/activity-diagram/src/swimlaneH/swimlaneH.rect.js +1 -1
- package/activity-diagram/src/swimlaneV/swimlaneV.d.ts +1 -1
- package/activity-diagram/src/swimlaneV/swimlaneV.rect.d.ts +1 -1
- package/activity-diagram/src/swimlaneV/swimlaneV.rect.js +1 -1
- package/chart-diagram/index.d.ts +1 -3
- package/chart-diagram/index.js +1 -2
- package/chart-diagram/src/echarts/index.d.ts +2 -1
- package/chart-diagram/src/echarts/index.js +78 -86
- package/chart-diagram/src/register.js +8 -9
- package/class-diagram/src/class/class.d.ts +1 -1
- package/class-diagram/src/class/class.rect.d.ts +1 -1
- package/class-diagram/src/class/class.rect.js +1 -1
- package/class-diagram/src/register.js +1 -1
- package/core/index.d.ts +0 -2
- package/core/index.js +18 -2
- package/core/src/activeLayer.d.ts +10 -2
- package/core/src/activeLayer.js +62 -57
- package/core/src/animateLayer.d.ts +7 -3
- package/core/src/animateLayer.js +12 -10
- package/core/src/calling.d.ts +4 -1
- package/core/src/calling.js +68 -69
- package/core/src/canvas.d.ts +6 -1
- package/core/src/canvas.js +21 -22
- package/core/src/common.d.ts +7 -7
- package/core/src/common.js +698 -397
- package/core/src/core.d.ts +4 -5
- package/core/src/core.js +385 -536
- package/core/src/divLayer.d.ts +36 -2
- package/core/src/divLayer.js +305 -33
- package/core/src/healps/changeData.d.ts +2 -1
- package/core/src/healps/changeData.js +100 -89
- package/core/src/hoverLayer.d.ts +9 -2
- package/core/src/hoverLayer.js +34 -31
- package/core/src/middles/default.d.ts +3 -1
- package/core/src/middles/default.js +51 -65
- package/core/src/middles/index.d.ts +2 -1
- package/core/src/middles/index.js +2 -4
- package/core/src/middles/nodes/arbitrarygraph.js +9 -11
- package/core/src/middles/nodes/pentagon.rect.js +1 -1
- package/core/src/middles/nodes/rectangle.js +15 -54
- package/core/src/middles/nodes/rectangle.rect.js +1 -1
- package/core/src/models/data.d.ts +26 -0
- package/core/src/models/data.js +77 -0
- package/core/src/models/data.js.map +1 -0
- package/core/src/models/index.d.ts +1 -0
- package/core/src/models/index.js +1 -0
- package/core/src/models/line.js +7 -7
- package/core/src/models/node.d.ts +0 -10
- package/core/src/models/node.js +101 -155
- package/core/src/models/pen.js +68 -37
- package/core/src/models/rect.js +2 -2
- package/core/src/mqtt.d.ts +14 -0
- package/core/src/mqtt.js +82 -0
- package/core/src/mqtt.js.map +1 -0
- package/core/src/offscreen.d.ts +4 -1
- package/core/src/offscreen.js +24 -26
- package/core/src/options.d.ts +1 -3
- package/core/src/options.js +0 -2
- package/core/src/poll.js +39 -0
- package/core/src/preview.d.ts +13 -2
- package/core/src/preview.js +54 -181
- package/core/src/renderLayer.d.ts +9 -11
- package/core/src/renderLayer.js +61 -60
- package/core/src/socket.d.ts +10 -0
- package/core/src/socket.js +51 -0
- package/core/src/socket.js.map +1 -0
- package/core/src/utils/canvas.js +1 -1
- package/core/src/utils/construction.d.ts +3 -36
- package/core/src/utils/construction.js +1 -29
- package/core/src/utils/conversion.d.ts +0 -15
- package/core/src/utils/conversion.js +0 -319
- package/core/src/utils/dom.d.ts +8 -0
- package/core/src/utils/dom.js +67 -0
- package/core/src/utils/dom.js.map +1 -0
- package/core/src/utils/index.d.ts +1 -2
- package/core/src/utils/index.js +1 -2
- package/core/src/utils/onmousevent.d.ts +0 -3
- package/core/src/utils/onmousevent.js +10 -42
- package/flow-diagram/src/comment/comment.anchor.d.ts +1 -1
- package/flow-diagram/src/comment/comment.anchor.js +1 -1
- package/flow-diagram/src/comment/comment.d.ts +1 -1
- package/flow-diagram/src/data/data.anchor.d.ts +1 -1
- package/flow-diagram/src/data/data.anchor.js +1 -1
- package/flow-diagram/src/data/data.d.ts +1 -1
- package/flow-diagram/src/data/data.rect.d.ts +1 -1
- package/flow-diagram/src/data/data.rect.js +1 -1
- package/flow-diagram/src/db/db.d.ts +1 -1
- package/flow-diagram/src/db/db.rect.d.ts +1 -1
- package/flow-diagram/src/db/db.rect.js +1 -1
- package/flow-diagram/src/display/display.anchor.d.ts +1 -1
- package/flow-diagram/src/display/display.anchor.js +1 -1
- package/flow-diagram/src/display/display.d.ts +1 -1
- package/flow-diagram/src/display/display.rect.d.ts +1 -1
- package/flow-diagram/src/display/display.rect.js +1 -1
- package/flow-diagram/src/document/document.anchor.d.ts +1 -1
- package/flow-diagram/src/document/document.anchor.js +1 -1
- package/flow-diagram/src/document/document.d.ts +1 -1
- package/flow-diagram/src/document/document.rect.d.ts +1 -1
- package/flow-diagram/src/document/document.rect.js +1 -1
- package/flow-diagram/src/externStorage/externStorage.anchor.d.ts +1 -1
- package/flow-diagram/src/externStorage/externStorage.anchor.js +1 -1
- package/flow-diagram/src/externStorage/externStorage.d.ts +1 -1
- package/flow-diagram/src/externStorage/externStorage.rect.d.ts +1 -1
- package/flow-diagram/src/externStorage/externStorage.rect.js +1 -1
- package/flow-diagram/src/internalStorage/internalStorage.d.ts +1 -1
- package/flow-diagram/src/internalStorage/internalStorage.rect.d.ts +1 -1
- package/flow-diagram/src/internalStorage/internalStorage.rect.js +1 -1
- package/flow-diagram/src/manually/manually.anchor.d.ts +1 -1
- package/flow-diagram/src/manually/manually.anchor.js +1 -1
- package/flow-diagram/src/manually/manually.d.ts +1 -1
- package/flow-diagram/src/manually/manually.rect.d.ts +1 -1
- package/flow-diagram/src/manually/manually.rect.js +1 -1
- package/flow-diagram/src/parallel/parallel.anchor.d.ts +1 -1
- package/flow-diagram/src/parallel/parallel.anchor.js +1 -1
- package/flow-diagram/src/parallel/parallel.d.ts +1 -1
- package/flow-diagram/src/queue/queue.d.ts +1 -1
- package/flow-diagram/src/queue/queue.rect.d.ts +1 -1
- package/flow-diagram/src/queue/queue.rect.js +1 -1
- package/flow-diagram/src/register.js +1 -1
- package/flow-diagram/src/subprocess/subprocess.d.ts +1 -1
- package/flow-diagram/src/subprocess/subprocess.rect.d.ts +1 -1
- package/flow-diagram/src/subprocess/subprocess.rect.js +1 -1
- package/layout/src/align.d.ts +1 -1
- package/layout/src/align.js +1 -1
- package/layout/src/layout.d.ts +1 -1
- package/layout/src/layout.js +1 -1
- package/myShape-diagram/{index.js → myShape.js} +1 -4
- package/package.json +1 -1
- package/sequence-diagram/src/focus/focus.anchor.d.ts +1 -1
- package/sequence-diagram/src/focus/focus.anchor.js +1 -1
- package/sequence-diagram/src/focus/focus.d.ts +1 -1
- package/sequence-diagram/src/focus/focus.rect.d.ts +1 -1
- package/sequence-diagram/src/focus/focus.rect.js +1 -1
- package/sequence-diagram/src/lifeline/lifeline.anchor.d.ts +1 -1
- package/sequence-diagram/src/lifeline/lifeline.anchor.js +1 -1
- package/sequence-diagram/src/lifeline/lifeline.d.ts +1 -1
- package/sequence-diagram/src/lifeline/lifeline.rect.d.ts +1 -1
- package/sequence-diagram/src/lifeline/lifeline.rect.js +1 -1
- package/sequence-diagram/src/register.js +1 -1
- package/chart-diagram/src/utils/changeOptions.d.ts +0 -8
- package/chart-diagram/src/utils/changeOptions.js +0 -273
- package/chart-diagram/src/utils/conversion.d.ts +0 -19
- package/chart-diagram/src/utils/conversion.js +0 -601
- package/chart-diagram/src/utils/drawGraphic.d.ts +0 -3
- package/chart-diagram/src/utils/drawGraphic.js +0 -97
- package/chart-diagram/src/utils/formatter.d.ts +0 -1
- package/chart-diagram/src/utils/formatter.js +0 -206
- package/chart-diagram/src/utils/index.d.ts +0 -5
- package/chart-diagram/src/utils/index.js +0 -5
- package/chart-diagram/src/utils/render.d.ts +0 -8
- package/chart-diagram/src/utils/render.js +0 -223
- package/chart-diagram/src/utils/surfaceParametricConversion.d.ts +0 -3
- package/chart-diagram/src/utils/surfaceParametricConversion.js +0 -252
- package/core/src/element/common.d.ts +0 -6
- package/core/src/element/common.js +0 -62
- package/core/src/element/datePicker.d.ts +0 -3
- package/core/src/element/datePicker.js +0 -44
- package/core/src/element/iframe.d.ts +0 -3
- package/core/src/element/iframe.js +0 -12
- package/core/src/element/index.d.ts +0 -5
- package/core/src/element/index.js +0 -6
- package/core/src/element/select.d.ts +0 -11
- package/core/src/element/select.js +0 -273
- package/core/src/element/tab.d.ts +0 -1
- package/core/src/element/tab.js +0 -20
- package/core/src/element/time.d.ts +0 -3
- package/core/src/element/time.js +0 -44
- package/core/src/middles/arrows/index.d.ts +0 -4
- package/core/src/middles/arrows/index.js +0 -5
- package/core/src/middles/lines/index.d.ts +0 -4
- package/core/src/middles/lines/index.js +0 -5
- package/core/src/middles/nodes/formDatePicker.d.ts +0 -2
- package/core/src/middles/nodes/formDatePicker.js +0 -108
- package/core/src/middles/nodes/formoverflow.js +0 -62
- package/core/src/middles/nodes/formselect.d.ts +0 -2
- package/core/src/middles/nodes/formselect.js +0 -111
- package/core/src/middles/nodes/iframe.d.ts +0 -2
- package/core/src/middles/nodes/iframe.js +0 -29
- package/core/src/middles/nodes/index.d.ts +0 -52
- package/core/src/middles/nodes/index.js +0 -54
- package/core/src/middles/nodes/progress.d.ts +0 -2
- package/core/src/middles/nodes/progress.js +0 -63
- package/core/src/middles/nodes/progress.js.map +0 -1
- package/core/src/middles/nodes/switchs.d.ts +0 -2
- package/core/src/middles/nodes/switchs.js +0 -46
- package/core/src/middles/nodes/time.d.ts +0 -2
- package/core/src/middles/nodes/time.js +0 -98
- package/core/src/store/common.d.ts +0 -9
- package/core/src/store/common.js +0 -5
- package/core/src/store/data.d.ts +0 -205
- package/core/src/store/data.js +0 -198
- package/core/src/store/index.d.ts +0 -2
- package/core/src/store/index.js +0 -2
- package/core/src/utils/assignment.d.ts +0 -7
- package/core/src/utils/assignment.js +0 -229
- package/core/src/utils/params.d.ts +0 -3
- package/core/src/utils/params.js +0 -136
- package/static/echartsDefaultData.js +0 -178
- package/static/element.js +0 -14
- package/static/form.js +0 -11
- package/static/index.js +0 -3
- package/store/actions.js +0 -2
- package/store/clear.js +0 -14
- package/store/default.js +0 -22
- package/store/index.js +0 -3
- package/style/common.css +0 -15
- package/style/datePicker.css +0 -44
- package/style/editor.css +0 -16
- package/style/index.css +0 -5
- package/style/select.css +0 -143
- /package/myShape-diagram/{index.d.ts → myShape.ts} +0 -0
|
@@ -1,27 +1,11 @@
|
|
|
1
1
|
import { ptInPolyXY } from './math';
|
|
2
|
-
import { moveDataType, downDataType } from './construction'
|
|
3
|
-
import { Node } from '../models';
|
|
4
|
-
import {elementType} from "../../../static";
|
|
5
|
-
import {getSelectedData} from '../element';
|
|
6
|
-
import {commonStore} from "../store";
|
|
7
|
-
// 配置鼠标事件监听 监听样式 documentDefine
|
|
8
|
-
// 凡是类名为documentDefine的Dom元素都自动注册下面的监听
|
|
9
|
-
export function setEventListener(e, TID) {
|
|
10
|
-
e.preventDefault();
|
|
11
|
-
const documentDefine = document.querySelector('.documentDefine');
|
|
12
|
-
if(!documentDefine) return;
|
|
13
|
-
const currentNode = commonStore[TID].elementInteractivePoor.node; // 当前点击的元件节点数据
|
|
14
|
-
if(currentNode && currentNode.name === elementType.select) {
|
|
15
|
-
// select 下拉 option选中操作
|
|
16
|
-
getSelectedData(e, currentNode);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
2
|
+
import { moveDataType, downDataType } from './construction'
|
|
19
3
|
// 执行window函数
|
|
20
4
|
export function omouseEventPrototDoWindowFn (eventNode, node) {
|
|
21
5
|
|
|
22
6
|
window[eventNode.value](node, eventNode.params);
|
|
23
7
|
|
|
24
|
-
}
|
|
8
|
+
};
|
|
25
9
|
export function mousMoveFun(type, pos, data) {
|
|
26
10
|
let params = {
|
|
27
11
|
order: 0,
|
|
@@ -34,20 +18,10 @@ export function mousMoveFun(type, pos, data) {
|
|
|
34
18
|
|
|
35
19
|
for (var _i = 0, _a = data; _i < _a.length; _i++) {
|
|
36
20
|
var item = _a[_i];
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
// 任意多边形通过点获取区域
|
|
42
|
-
isInPointNode = ptInPolyXY(pos, item.rotatedAnchors);
|
|
43
|
-
}else {
|
|
44
|
-
if(!(item instanceof Node)) item = new Node(item);
|
|
45
|
-
isInPointNode = item.hit(pos);
|
|
46
|
-
}
|
|
47
|
-
if(isInPointNode) {
|
|
48
|
-
params.hoverNode = item;
|
|
49
|
-
params.order = _i;
|
|
50
|
-
}
|
|
21
|
+
const isPoint = ptInPolyXY(pos, item.rotatedAnchors);
|
|
22
|
+
if(isPoint) {
|
|
23
|
+
params.hoverNode = item;
|
|
24
|
+
params.order = _i;
|
|
51
25
|
}
|
|
52
26
|
}
|
|
53
27
|
// 不在此节点上停留
|
|
@@ -65,21 +39,15 @@ export function mousMoveFun(type, pos, data) {
|
|
|
65
39
|
}
|
|
66
40
|
export function mousDownFun(type, eventNode) {
|
|
67
41
|
let params = {};
|
|
68
|
-
if(eventNode === null) return params;
|
|
69
42
|
const action = eventNode ? parseInt(eventNode.action) : 0;
|
|
70
43
|
if(action === 3) {
|
|
71
44
|
params.eventType = downDataType.Window; // 打开会话窗口
|
|
72
|
-
}else if(action === 7)
|
|
73
|
-
//
|
|
74
|
-
params.eventType = downDataType.Showhide;
|
|
45
|
+
}else if(action === 7){
|
|
46
|
+
params.eventType = downDataType.Showhide; // 链接跳转
|
|
75
47
|
params.value = eventNode.value;
|
|
76
|
-
}else if(action === 8)
|
|
48
|
+
}else if(action === 8){
|
|
77
49
|
params.eventType = downDataType.Tabswitch; // Tab切换
|
|
78
|
-
}else
|
|
79
|
-
params.eventType = downDataType.Formselect; // select下拉切换
|
|
80
|
-
// params.staticType = eventNode.dcimStaticForType; // 1: 数据统计;2:数据展示;3:显示隐藏;4:日期类型
|
|
81
|
-
}else {
|
|
82
|
-
// action === 5 远程控制比较特殊,无论是否绑定远程控制事件,只要数据中有远程控制属性且值为0都会认定为远程控制
|
|
50
|
+
} else {
|
|
83
51
|
params.eventType = downDataType.Target; // 链接跳转
|
|
84
52
|
}
|
|
85
53
|
return params;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function flowCommentAnchors(node: Node): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function flowComment(ctx: CanvasRenderingContext2D, node: Node): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function flowDataAnchors(node: Node): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Point, Direction } from '
|
|
1
|
+
import { Point, Direction } from 'dcim-topology/core';
|
|
2
2
|
export function flowDataAnchors(node) {
|
|
3
3
|
node.anchors.push(new Point(node.rect.x + node.rect.width / 14, node.rect.y + node.rect.height / 2, Direction.Left));
|
|
4
4
|
node.anchors.push(new Point(node.rect.x + (node.rect.width * 4) / 7, node.rect.y, Direction.Up));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function flowData(ctx: CanvasRenderingContext2D, node: Node): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function flowDb(ctx: CanvasRenderingContext2D, node: Node): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function flowDisplayAnchors(node: Node): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Point, Direction } from '
|
|
1
|
+
import { Point, Direction } from 'dcim-topology/core';
|
|
2
2
|
export function flowDisplayAnchors(node) {
|
|
3
3
|
node.anchors.push(new Point(node.rect.x, node.rect.y + node.rect.height / 2, Direction.Left));
|
|
4
4
|
node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.y, Direction.Up));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function flowDisplay(ctx: CanvasRenderingContext2D, node: Node): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function flowDocumentAnchors(node: Node): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Point, Direction } from '
|
|
1
|
+
import { Point, Direction } from 'dcim-topology/core';
|
|
2
2
|
export function flowDocumentAnchors(node) {
|
|
3
3
|
node.anchors.push(new Point(node.rect.x, node.rect.y + node.rect.height / 2, Direction.Left));
|
|
4
4
|
node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.y, Direction.Up));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function flowDocument(ctx: CanvasRenderingContext2D, node: Node): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function flowExternStorageAnchors(node: Node): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Point, Direction } from '
|
|
1
|
+
import { Point, Direction } from 'dcim-topology/core';
|
|
2
2
|
export function flowExternStorageAnchors(node) {
|
|
3
3
|
node.anchors.push(new Point(node.rect.x, node.rect.y + node.rect.height / 2, Direction.Left));
|
|
4
4
|
node.anchors.push(new Point(node.rect.x + (node.rect.width * 8) / 15, node.rect.y, Direction.Up));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function flowExternStorage(ctx: CanvasRenderingContext2D, node: Node): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function flowInternalStorage(ctx: CanvasRenderingContext2D, node: Node): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function flowManuallyAnchors(node: Node): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Point, Direction } from '
|
|
1
|
+
import { Point, Direction } from 'dcim-topology/core';
|
|
2
2
|
export function flowManuallyAnchors(node) {
|
|
3
3
|
node.anchors.push(new Point(node.rect.x, node.rect.y + (node.rect.height * 5) / 8, Direction.Left));
|
|
4
4
|
node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.y + node.rect.height / 8, Direction.Up));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function flowManually(ctx: CanvasRenderingContext2D, node: Node): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function flowParallelAnchors(node: Node): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Point, Direction } from '
|
|
1
|
+
import { Point, Direction } from 'dcim-topology/core';
|
|
2
2
|
export function flowParallelAnchors(node) {
|
|
3
3
|
node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.y, Direction.Up));
|
|
4
4
|
node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.y + node.rect.height, Direction.Bottom));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function flowParallel(ctx: CanvasRenderingContext2D, node: Node): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function flowQueue(ctx: CanvasRenderingContext2D, node: Node): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { registerNode } from '
|
|
1
|
+
import { registerNode } from 'dcim-topology/core';
|
|
2
2
|
import { flowData, flowDataAnchors, flowDataIconRect, flowDataTextRect } from './data';
|
|
3
3
|
import { flowSubprocess, flowSubprocessIconRect, flowSubprocessTextRect } from './subprocess';
|
|
4
4
|
import { flowDb, flowDbIconRect, flowDbTextRect } from './db';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function flowSubprocess(ctx: CanvasRenderingContext2D, node: Node): void;
|
package/layout/src/align.d.ts
CHANGED
package/layout/src/align.js
CHANGED
package/layout/src/layout.d.ts
CHANGED
package/layout/src/layout.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
// 源码版写法
|
|
2
|
-
import { registerNode } from '
|
|
3
|
-
import { formOverflow } from '../core/src/middles/nodes/formoverflow'
|
|
4
|
-
|
|
2
|
+
import { registerNode } from 'dcim-topology/core'
|
|
5
3
|
|
|
6
4
|
// 组件版写法和bundle一致
|
|
7
5
|
// window.Le5leTopology.registerNode
|
|
@@ -193,7 +191,6 @@ export function registerMyShape() {
|
|
|
193
191
|
registerNode('electricFan', electricFan);
|
|
194
192
|
registerNode('pool', pool);
|
|
195
193
|
registerNode('thermometer', thermometer);
|
|
196
|
-
registerNode('formOverflow', formOverflow);
|
|
197
194
|
}
|
|
198
195
|
|
|
199
196
|
// src\views\data.ts 里面加载到工具栏,第一个就是此自定义图形库
|
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function sequenceFocusAnchors(node: Node): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Point, Direction } from '
|
|
1
|
+
import { Point, Direction } from 'dcim-topology/core';
|
|
2
2
|
export function sequenceFocusAnchors(node) {
|
|
3
3
|
node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.y, Direction.Up));
|
|
4
4
|
node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.ey, Direction.Bottom));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function sequenceFocus(ctx: CanvasRenderingContext2D, node: Node): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function lifelineAnchors(node: Node): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Point, Direction } from '
|
|
1
|
+
import { Point, Direction } from 'dcim-topology/core';
|
|
2
2
|
export function lifelineAnchors(node) {
|
|
3
3
|
node.anchors.push(new Point(node.rect.x, node.rect.y + 25, Direction.Left));
|
|
4
4
|
node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.y, Direction.Up));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
|
2
2
|
export declare function lifeline(ctx: CanvasRenderingContext2D, node: Node): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { registerNode } from '
|
|
1
|
+
import { registerNode } from 'dcim-topology/core';
|
|
2
2
|
import { lifeline, lifelineAnchors, lifelineIconRect, lifelineTextRect } from './lifeline';
|
|
3
3
|
import { sequenceFocus, sequenceFocusAnchors, sequenceFocusIconRect, sequenceFocusTextRect } from './focus';
|
|
4
4
|
export function register() {
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare function setRingChartText<T>(textData: T): void;
|
|
2
|
-
export declare function setRingPreSeriesOptions<T>(option: T, appearance: T): void;
|
|
3
|
-
export declare function setRingProSeriesOptions<T>(option: T, appearance: T): void;
|
|
4
|
-
export declare function set3DPieOptions<T>(option: T, appearance: T, labelLineData: any, realData: any): {};
|
|
5
|
-
export declare function setChartLegendData<T>(legend: T, appearance: T): void;
|
|
6
|
-
export declare function setChartXAxisData<T>(xAxis: [], appearance: T): void;
|
|
7
|
-
export declare function setChartYAxisData<T>(yAxis: [], appearance: T): void;
|
|
8
|
-
export declare function setLineSeriesStyleData<T>(series: [], appearance: T): void;
|