node-opcua-modeler 2.65.1 → 2.66.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/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/distNodeJS/index.js +5 -1
- package/distNodeJS/index.js.map +1 -1
- package/package.json +20 -20
- package/dist/dump_state_machine_to_graphviz.d.ts +0 -6
- package/dist/dump_state_machine_to_graphviz.js +0 -120
- package/dist/dump_state_machine_to_graphviz.js.map +0 -1
- package/dist/to_graphivz.d.ts +0 -14
- package/dist/to_graphivz.js +0 -295
- package/dist/to_graphivz.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,uDAAqC;AACrC,uDAAqC;AACrC,yDAAuC;AACvC,sDAAoC;AACpC,+DAA6C;AAC7C,2CAAyB;AACzB,2CAAyB;AACzB,0DAAwC;AACxC,gDAA8B;AAE9B,EAAE;AACF,2DAAyC;AACzC,sDAAoC;AACpC,qDAAmC;AACnC,oDAAkC;AAClC,wDAAsC;AACtC,oDAAkC;AAClC,2DAAyC;AACzC,yDAAuC;AACvC,yDAAuC;AACvC,uDAAqC;AACrC,oDAAkC;AAClC,2EAAyD;AAEzD,6DAAwI;AAA/H,iHAAA,SAAS,OAAA;AAAE,mHAAA,WAAW,OAAA;AAAE,wHAAA,gBAAgB,OAAA;AAAE,mHAAA,WAAW,OAAA;AAAE,uHAAA,eAAe,OAAA;AAAE,qHAAA,aAAa,OAAA;AAAE,iHAAA,SAAS,OAAA;AAEzG,qDAM0B;AALtB,sHAAA,kBAAkB,OAAA;AAClB,kHAAA,cAAc,OAAA;AAEd,uHAAA,mBAAmB,OAAA"}
|
package/distNodeJS/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/distNodeJS/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source_nodejs/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source_nodejs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,gDAA8B;AAC9B,gEAA8C;AAC9C,qCAAmB;AACnB,0DAAsE;AAA7D,8GAAA,oBAAoB,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-modeler",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.66.2",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module - model",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc -b",
|
|
9
|
-
"clean": "
|
|
9
|
+
"clean": "npx rimraf dist *.tsbuildinfo",
|
|
10
10
|
"test": "mocha"
|
|
11
11
|
},
|
|
12
12
|
"author": "Etienne Rossignon",
|
|
@@ -15,25 +15,25 @@
|
|
|
15
15
|
"chalk": "4.1.2",
|
|
16
16
|
"cli-table3": "^0.6.1",
|
|
17
17
|
"csv-parse": "5.0.4",
|
|
18
|
-
"node-opcua-address-space": "2.
|
|
19
|
-
"node-opcua-assert": "2.
|
|
20
|
-
"node-opcua-basic-types": "2.
|
|
21
|
-
"node-opcua-client-dynamic-extension-object": "2.
|
|
22
|
-
"node-opcua-constants": "2.
|
|
23
|
-
"node-opcua-data-model": "2.
|
|
24
|
-
"node-opcua-factory": "2.
|
|
25
|
-
"node-opcua-nodeid": "2.
|
|
26
|
-
"node-opcua-nodesets": "2.
|
|
27
|
-
"node-opcua-numeric-range": "2.
|
|
28
|
-
"node-opcua-schemas": "2.
|
|
29
|
-
"node-opcua-service-translate-browse-path": "2.
|
|
30
|
-
"node-opcua-status-code": "2.
|
|
31
|
-
"node-opcua-types": "2.
|
|
32
|
-
"node-opcua-variant": "2.
|
|
33
|
-
"node-opcua-xml2json": "2.
|
|
18
|
+
"node-opcua-address-space": "2.66.2",
|
|
19
|
+
"node-opcua-assert": "2.66.0",
|
|
20
|
+
"node-opcua-basic-types": "2.66.0",
|
|
21
|
+
"node-opcua-client-dynamic-extension-object": "2.66.2",
|
|
22
|
+
"node-opcua-constants": "2.66.0",
|
|
23
|
+
"node-opcua-data-model": "2.66.0",
|
|
24
|
+
"node-opcua-factory": "2.66.0",
|
|
25
|
+
"node-opcua-nodeid": "2.66.0",
|
|
26
|
+
"node-opcua-nodesets": "2.66.0",
|
|
27
|
+
"node-opcua-numeric-range": "2.66.0",
|
|
28
|
+
"node-opcua-schemas": "2.66.0",
|
|
29
|
+
"node-opcua-service-translate-browse-path": "2.66.0",
|
|
30
|
+
"node-opcua-status-code": "2.66.0",
|
|
31
|
+
"node-opcua-types": "2.66.0",
|
|
32
|
+
"node-opcua-variant": "2.66.0",
|
|
33
|
+
"node-opcua-xml2json": "2.66.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"node-opcua-leak-detector": "2.
|
|
36
|
+
"node-opcua-leak-detector": "2.66.0",
|
|
37
37
|
"should": "^13.2.3"
|
|
38
38
|
},
|
|
39
39
|
"repository": {
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"internet of things"
|
|
50
50
|
],
|
|
51
51
|
"homepage": "http://node-opcua.github.io/",
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "2ece6987ee945db089ec98800646e95ccbac9e1f"
|
|
53
53
|
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module node-opcua-address-space
|
|
3
|
-
*/
|
|
4
|
-
import { UAStateMachineEx } from "node-opcua-address-space";
|
|
5
|
-
export declare function dumpStateMachineToPlantUML(stateMachineType: UAStateMachineEx): string;
|
|
6
|
-
export declare function dumpStateMachineToGraphViz(stateMachineType: UAStateMachineEx): string;
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dumpStateMachineToGraphViz = exports.dumpStateMachineToPlantUML = void 0;
|
|
4
|
-
function dumpStateMachineToPlantUML(stateMachineType) {
|
|
5
|
-
const lines = [];
|
|
6
|
-
function w(str) {
|
|
7
|
-
lines.push(str);
|
|
8
|
-
}
|
|
9
|
-
function s(state) {
|
|
10
|
-
return state ? state.nodeId.value.toString() : "";
|
|
11
|
-
}
|
|
12
|
-
function n(state) {
|
|
13
|
-
return state ? state.browseName.name.toString() : "";
|
|
14
|
-
}
|
|
15
|
-
//w("@startuml "); // + stateMachineType.browseName.toString() + ".png");
|
|
16
|
-
// initial state if any
|
|
17
|
-
if (stateMachineType.initialState) {
|
|
18
|
-
w(" [*] --> " + s(stateMachineType.initialState));
|
|
19
|
-
w(" " + s(stateMachineType.initialState) + ":" + n(stateMachineType.initialState));
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
w("[*] --> [*]");
|
|
23
|
-
}
|
|
24
|
-
function t(transition) {
|
|
25
|
-
let name = n(transition);
|
|
26
|
-
name = name.replace(":", "");
|
|
27
|
-
name = name.replace("To", "\\nTo\\n");
|
|
28
|
-
name = name.replace("Transition", "\\nTransition");
|
|
29
|
-
return name;
|
|
30
|
-
}
|
|
31
|
-
stateMachineType.states && stateMachineType.states.forEach((state) => w(" " + s(state) + ": " + n(state)));
|
|
32
|
-
stateMachineType.transitions && stateMachineType.transitions.forEach((transition) => w(" " + s(transition.fromStateNode) + " --> " + s(transition.toStateNode) + " : " + t(transition)));
|
|
33
|
-
// w("@enduml");
|
|
34
|
-
return lines.join("\n");
|
|
35
|
-
}
|
|
36
|
-
exports.dumpStateMachineToPlantUML = dumpStateMachineToPlantUML;
|
|
37
|
-
/*
|
|
38
|
-
@startuml
|
|
39
|
-
|
|
40
|
-
2930: Unshelved
|
|
41
|
-
|
|
42
|
-
2932: TimedShelved
|
|
43
|
-
|
|
44
|
-
2933: OneShotShelved
|
|
45
|
-
|
|
46
|
-
2930 --> 2932 : "2935\nUnshelvedToTimedShelved"
|
|
47
|
-
|
|
48
|
-
2930 --> 2933 : "2936\nUnshelvedToOneShotShelved"
|
|
49
|
-
|
|
50
|
-
2932 --> 2930 : "2940\nTimedShelvedToUnshelved"
|
|
51
|
-
|
|
52
|
-
2932 --> 2933 : "2942\nTimedShelvedToOneShotShelved"
|
|
53
|
-
|
|
54
|
-
2933 --> 2930 : "2943\nOneShotShelvedToUnshelved"
|
|
55
|
-
|
|
56
|
-
2933 --> 2932 : "2945\nOneShotShelvedToTimedShelved"
|
|
57
|
-
|
|
58
|
-
@enduml
|
|
59
|
-
|
|
60
|
-
*/
|
|
61
|
-
/*
|
|
62
|
-
digraph finite_state_machine {
|
|
63
|
-
rankdir=LR;
|
|
64
|
-
size="8,5"
|
|
65
|
-
node [shape = doublecircle]; LR_0 LR_3 LR_4 LR_8;
|
|
66
|
-
node [shape = circle];
|
|
67
|
-
LR_0 -> LR_2 [ label = "SS(B)" ];
|
|
68
|
-
LR_0 -> LR_1 [ label = "SS(S)" ];
|
|
69
|
-
LR_1 -> LR_3 [ label = "S($end)" ];
|
|
70
|
-
LR_2 -> LR_6 [ label = "SS(b)" ];
|
|
71
|
-
LR_2 -> LR_5 [ label = "SS(a)" ];
|
|
72
|
-
LR_2 -> LR_4 [ label = "S(A)" ];
|
|
73
|
-
LR_5 -> LR_7 [ label = "S(b)" ];
|
|
74
|
-
LR_5 -> LR_5 [ label = "S(a)" ];
|
|
75
|
-
LR_6 -> LR_6 [ label = "S(b)" ];
|
|
76
|
-
LR_6 -> LR_5 [ label = "S(a)" ];
|
|
77
|
-
LR_7 -> LR_8 [ label = "S(b)" ];
|
|
78
|
-
LR_7 -> LR_5 [ label = "S(a)" ];
|
|
79
|
-
LR_8 -> LR_6 [ label = "S(b)" ];
|
|
80
|
-
LR_8 -> LR_5 [ label = "S(a)" ];
|
|
81
|
-
}
|
|
82
|
-
*/
|
|
83
|
-
function dumpStateMachineToGraphViz(
|
|
84
|
-
/*StateMachineProxy*/
|
|
85
|
-
stateMachineType) {
|
|
86
|
-
const lines = [];
|
|
87
|
-
function w(str) {
|
|
88
|
-
lines.push(str);
|
|
89
|
-
}
|
|
90
|
-
function s(state) {
|
|
91
|
-
return state.nodeId.value.toString();
|
|
92
|
-
}
|
|
93
|
-
function n(state) {
|
|
94
|
-
return state.browseName.name.toString();
|
|
95
|
-
}
|
|
96
|
-
function s_full(state) {
|
|
97
|
-
return s(state) + ' [ label = "' + n(state) + '" ]';
|
|
98
|
-
}
|
|
99
|
-
w("digraph finite_state_machine {");
|
|
100
|
-
// initial state if any
|
|
101
|
-
if (stateMachineType.initialState) {
|
|
102
|
-
w("node [ shape = doublecircle];");
|
|
103
|
-
w(" _" + s_full(stateMachineType.initialState) + " ;");
|
|
104
|
-
}
|
|
105
|
-
w("node [ shape = circle];");
|
|
106
|
-
stateMachineType.states.forEach((state) => w(" _" + s_full(state)));
|
|
107
|
-
stateMachineType.transitions.forEach((transition) => w(" _" +
|
|
108
|
-
s(transition.fromStateNode) +
|
|
109
|
-
" -> _" +
|
|
110
|
-
s(transition.toStateNode) +
|
|
111
|
-
" [ " +
|
|
112
|
-
// " labeltooltip = \"" + i(transition) + "\" " +
|
|
113
|
-
', label = "' +
|
|
114
|
-
n(transition) +
|
|
115
|
-
'" ];'));
|
|
116
|
-
w("}");
|
|
117
|
-
return lines.join("\n");
|
|
118
|
-
}
|
|
119
|
-
exports.dumpStateMachineToGraphViz = dumpStateMachineToGraphViz;
|
|
120
|
-
//# sourceMappingURL=dump_state_machine_to_graphviz.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dump_state_machine_to_graphviz.js","sourceRoot":"","sources":["../source/dump_state_machine_to_graphviz.ts"],"names":[],"mappings":";;;AAuBA,SAAgB,0BAA0B,CAAC,gBAAkC;IAEzE,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,SAAS,CAAC,CAAC,GAAW;QAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACpB,CAAC;IAED,SAAS,CAAC,CAAC,KAAe;QACtB,OAAO,KAAK,CAAA,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACrD,CAAC;IAED,SAAS,CAAC,CAAC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AC,UAAU,EAAE,EAAE,CAChD,CAAC,CACG,KAAK;QACD,CAAC,CAAC,UAAU,CAAC,aAAc,CAAC;QAC5B,OAAO;QACP,CAAC,CAAC,UAAU,CAAC,WAAY,CAAC;QAC1B,KAAK;QACL,mDAAmD;QACnD,aAAa;QACb,CAAC,CAAC,UAAU,CAAC;QACb,MAAM,CACb,CACJ,CAAC;IAEF,CAAC,CAAC,GAAG,CAAC,CAAC;IAEP,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAE5B,CAAC;AAjDD,gEAiDC"}
|
package/dist/to_graphivz.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { UAReferenceType, UADataType, UAObjectType, UAVariableType } from "node-opcua-address-space";
|
|
2
|
-
interface Options {
|
|
3
|
-
naked: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare function opcuaToDot(node: UAObjectType | UAVariableType, options?: Options): string;
|
|
6
|
-
export declare function dumpClassHierachry(typeNode: UAObjectType | UAVariableType | UADataType | UAReferenceType, options?: {
|
|
7
|
-
naked?: boolean;
|
|
8
|
-
depth?: number;
|
|
9
|
-
showBaseType?: boolean;
|
|
10
|
-
showSubType?: boolean;
|
|
11
|
-
}): string;
|
|
12
|
-
export declare function graphVizToPlantUml(str: string): string;
|
|
13
|
-
export declare function dumpTypeDiagram(namespace: any): string;
|
|
14
|
-
export {};
|
package/dist/to_graphivz.js
DELETED
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dumpTypeDiagram = exports.graphVizToPlantUml = exports.dumpClassHierachry = exports.opcuaToDot = void 0;
|
|
4
|
-
const node_opcua_address_space_1 = require("node-opcua-address-space");
|
|
5
|
-
const node_opcua_constants_1 = require("node-opcua-constants");
|
|
6
|
-
const node_opcua_data_model_1 = require("node-opcua-data-model");
|
|
7
|
-
function e(str) {
|
|
8
|
-
return str.replace(/</g, "<").replace(/>/g, ">");
|
|
9
|
-
}
|
|
10
|
-
function innerText(node) {
|
|
11
|
-
var _a, _b;
|
|
12
|
-
const browseName = node.browseName.name;
|
|
13
|
-
const typeDefinition = (_b = (_a = node.typeDefinitionObj) === null || _a === void 0 ? void 0 : _a.browseName) === null || _b === void 0 ? void 0 : _b.name;
|
|
14
|
-
if (typeDefinition) {
|
|
15
|
-
return `[ label =< <FONT point-size="8" ><I>${typeDefinition}</I></FONT><BR/>${e(browseName)} >]`;
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
return `[label =< ${e(browseName)} >]`;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
function arrowHeadAttribute(reference) {
|
|
22
|
-
switch (reference.referenceType.value) {
|
|
23
|
-
case node_opcua_constants_1.ReferenceTypeIds.HasTypeDefinition:
|
|
24
|
-
return "normalnormal";
|
|
25
|
-
case node_opcua_constants_1.ReferenceTypeIds.HasComponent:
|
|
26
|
-
return "noneteetee";
|
|
27
|
-
case node_opcua_constants_1.ReferenceTypeIds.HasProperty:
|
|
28
|
-
return "nonetee";
|
|
29
|
-
case node_opcua_constants_1.ReferenceTypeIds.HasSubtype:
|
|
30
|
-
return "onormalonormal";
|
|
31
|
-
case node_opcua_constants_1.ReferenceTypeIds.HasModellingRule:
|
|
32
|
-
return "none";
|
|
33
|
-
default:
|
|
34
|
-
return "normal";
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function arrowHead(reference) {
|
|
38
|
-
return `[arrowhead = ${arrowHeadAttribute(reference)}]`;
|
|
39
|
-
}
|
|
40
|
-
const regularShapes = {
|
|
41
|
-
ObjectType: '[shape=rectangle, style="filled" fillcolor="#e8edf7;0.75:#d2def0" gradientangle=275]',
|
|
42
|
-
VariableType: '[shape=rectangle, style="rounded,filled" fillcolor="#e8edf7;0.75:#d2def0" gradientangle=275]',
|
|
43
|
-
Object: ' [shape=rectangle, style="filled" fillcolor="#e8edf7"]',
|
|
44
|
-
Variable: '[shape=rectangle, style="filled,rounded" fillcolor="#e8edf7"]',
|
|
45
|
-
Method: '[shape=oval, style="filled" fillcolor="#e8edf7"]'
|
|
46
|
-
};
|
|
47
|
-
const regularShapesOptionals = {
|
|
48
|
-
ObjectType: '[shape=rectangle, style="filled,dashed" fillcolor="#e8edf7;0.75:#d2def0" gradientangle=275]',
|
|
49
|
-
VariableType: '[shape=rectangle, style="rounded,filled,dashed" fillcolor="#e8edf7;0.75:#d2def0" gradientangle=275]',
|
|
50
|
-
Object: ' [shape=rectangle, style="filled,dashed" fillcolor="#e8edf7"]',
|
|
51
|
-
Variable: '[shape=rectangle, style="filled,rounded,dashed" fillcolor="#e8edf7"]',
|
|
52
|
-
Method: '[shape=oval, style="filled,dashed" fillcolor="#e8edf7"]'
|
|
53
|
-
};
|
|
54
|
-
class NodeRegistry {
|
|
55
|
-
constructor() {
|
|
56
|
-
this.m = {};
|
|
57
|
-
this.invisibleNodes = [];
|
|
58
|
-
this.duplicated = {};
|
|
59
|
-
}
|
|
60
|
-
add(name, node) {
|
|
61
|
-
if (this.duplicated[name]) {
|
|
62
|
-
return; //throw new Error("Already included");
|
|
63
|
-
}
|
|
64
|
-
this.duplicated[name] = name;
|
|
65
|
-
const nodeClass = node_opcua_data_model_1.NodeClass[node.nodeClass];
|
|
66
|
-
this.m[nodeClass] = this.m[nodeClass] || [];
|
|
67
|
-
this.m[nodeClass].push({ name, node });
|
|
68
|
-
}
|
|
69
|
-
addInvisibleNode(name) {
|
|
70
|
-
this.invisibleNodes.push(name);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
function dumpNodeByNodeClass(str, nodeRegistry) {
|
|
74
|
-
for (const [className, listNode] of Object.entries(nodeRegistry.m)) {
|
|
75
|
-
if (listNode.length === 0) {
|
|
76
|
-
continue;
|
|
77
|
-
}
|
|
78
|
-
str.push(` ## -> ${className}`);
|
|
79
|
-
const mandatoryNodes = listNode.filter(({ name, node }) => !node.modellingRule || node.modellingRule.match(/Mandatory/));
|
|
80
|
-
const optionalNodes = listNode.filter(({ name, node }) => node.modellingRule && node.modellingRule.match(/Optional/));
|
|
81
|
-
if (mandatoryNodes.length > 0) {
|
|
82
|
-
str.push(` node [];`);
|
|
83
|
-
const decoration = regularShapes[className];
|
|
84
|
-
str.push(` node ${decoration};`);
|
|
85
|
-
for (const { name, node } of mandatoryNodes) {
|
|
86
|
-
str.push(` ${name} ${innerText(node)}`);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
if (optionalNodes.length > 0) {
|
|
90
|
-
const decoration2 = regularShapesOptionals[className];
|
|
91
|
-
str.push(` node [];`);
|
|
92
|
-
str.push(` node ${decoration2};`);
|
|
93
|
-
for (const { name, node } of listNode) {
|
|
94
|
-
str.push(` ${name} ${innerText(node)}`);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
if (nodeRegistry.invisibleNodes.length) {
|
|
99
|
-
str.push(" # invisible nodes");
|
|
100
|
-
str.push(" node []");
|
|
101
|
-
str.push(" node [width=0,height=0,shape=point,style=invis];");
|
|
102
|
-
str.push(` ${nodeRegistry.invisibleNodes.join("\n ")};`);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
const dump_state_machine_to_graphviz_1 = require("./dump_state_machine_to_graphviz");
|
|
106
|
-
function opcuaToDot(node, options) {
|
|
107
|
-
if (node.nodeClass === node_opcua_data_model_1.NodeClass.ObjectType) {
|
|
108
|
-
const finitieStateMachineType = node.addressSpace.findObjectType("FiniteStateMachineType");
|
|
109
|
-
if (finitieStateMachineType) {
|
|
110
|
-
if (node.isSupertypeOf(finitieStateMachineType)) {
|
|
111
|
-
const stateMachine = node.instantiate({ browseName: "StateMachine" });
|
|
112
|
-
(0, node_opcua_address_space_1.promoteToStateMachine)(stateMachine);
|
|
113
|
-
return (0, dump_state_machine_to_graphviz_1.dumpStateMachineToPlantUML)(stateMachine);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
options = options || { naked: false };
|
|
118
|
-
const nodeRegistry = new NodeRegistry();
|
|
119
|
-
const str = [];
|
|
120
|
-
const str2 = [];
|
|
121
|
-
str.push("digraph G {");
|
|
122
|
-
if (!options.naked) {
|
|
123
|
-
str.push(" rankdir=TB;");
|
|
124
|
-
str.push(" nodesep=0.5;");
|
|
125
|
-
str.push(" node [];");
|
|
126
|
-
}
|
|
127
|
-
function makeId(p, c) {
|
|
128
|
-
return `${p}_${c}`.replace(" ", "_").replace(/<|>/g, "_");
|
|
129
|
-
}
|
|
130
|
-
// eslint-disable-next-line max-params
|
|
131
|
-
// eslint-disable-next-line max-statements
|
|
132
|
-
function typeMemberAndSubTypeMember(str, parentNode, node, parent, offset, prefix, joinWithCaller, visitorMap) {
|
|
133
|
-
let innerDepth = 0;
|
|
134
|
-
const browseName = (parent || node).browseName.name.toString();
|
|
135
|
-
const r = [];
|
|
136
|
-
const r2 = [];
|
|
137
|
-
const references = (parent || node).findReferencesEx("Aggregates", node_opcua_data_model_1.BrowseDirection.Forward);
|
|
138
|
-
const folderElements = (parent || node).findReferencesEx("Organizes", node_opcua_data_model_1.BrowseDirection.Forward);
|
|
139
|
-
const childReferences = [...references, ...folderElements];
|
|
140
|
-
const id = makeId(parentNode, browseName);
|
|
141
|
-
nodeRegistry.add(id, node);
|
|
142
|
-
function addInvisibleNode(prefix, index) {
|
|
143
|
-
const breakNode = `${prefix}${index}`;
|
|
144
|
-
r2.push(breakNode);
|
|
145
|
-
nodeRegistry.addInvisibleNode(breakNode);
|
|
146
|
-
return breakNode;
|
|
147
|
-
}
|
|
148
|
-
for (let i = 0; i < childReferences.length; i++) {
|
|
149
|
-
const isLast = i === childReferences.length - 1;
|
|
150
|
-
const reference = childReferences[i];
|
|
151
|
-
const childNode = reference.node;
|
|
152
|
-
const childName = childNode.browseName.name.toString();
|
|
153
|
-
const fullChildName = makeId(id, childName);
|
|
154
|
-
// avoid member duplication
|
|
155
|
-
if (visitorMap[fullChildName]) {
|
|
156
|
-
continue;
|
|
157
|
-
}
|
|
158
|
-
else {
|
|
159
|
-
visitorMap[fullChildName] = 1;
|
|
160
|
-
}
|
|
161
|
-
innerDepth++;
|
|
162
|
-
nodeRegistry.add(fullChildName, childNode);
|
|
163
|
-
const edgeAttributes = arrowHead(reference);
|
|
164
|
-
const breakNode = addInvisibleNode(prefix, i + offset);
|
|
165
|
-
const horizontalPart = `{ rank=same ${breakNode} -> ${fullChildName} ${edgeAttributes} }`;
|
|
166
|
-
r.push(horizontalPart);
|
|
167
|
-
// push children on same level
|
|
168
|
-
const [depth] = typeMemberAndSubTypeMember(str, id, childNode, null, 0, `${prefix}${i + offset}_`, false, visitorMap);
|
|
169
|
-
// add invisible nodes
|
|
170
|
-
{
|
|
171
|
-
for (let d = 0; d < depth; d++) {
|
|
172
|
-
offset++;
|
|
173
|
-
if (!isLast) {
|
|
174
|
-
addInvisibleNode(prefix, i + offset);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
innerDepth += depth;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
if (node.nodeClass == node_opcua_data_model_1.NodeClass.ObjectType || node.nodeClass === node_opcua_data_model_1.NodeClass.VariableType) {
|
|
181
|
-
if (node.subtypeOfObj && node.subtypeOfObj.nodeId.namespace === node.nodeId.namespace) {
|
|
182
|
-
const [depth, rr2] = typeMemberAndSubTypeMember(str, parentNode, node.subtypeOfObj, node, r.length + offset + 1, prefix, true, visitorMap);
|
|
183
|
-
innerDepth += depth + 1;
|
|
184
|
-
r2.push(...rr2);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
if (r.length) {
|
|
188
|
-
str.push(...r.map((x) => " " + x));
|
|
189
|
-
}
|
|
190
|
-
if (!joinWithCaller) {
|
|
191
|
-
if (r2.length) {
|
|
192
|
-
str.push(` ${id} -> ${r2.join(" -> ")} [arrowhead=none];`);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
return [innerDepth, r2];
|
|
196
|
-
}
|
|
197
|
-
const visitorMap = {};
|
|
198
|
-
typeMemberAndSubTypeMember(str2, "", node, null, 0, "r", false, visitorMap);
|
|
199
|
-
if (!options.naked) {
|
|
200
|
-
dumpNodeByNodeClass(str, nodeRegistry);
|
|
201
|
-
}
|
|
202
|
-
str.push(...str2);
|
|
203
|
-
str.push("}");
|
|
204
|
-
//
|
|
205
|
-
const dot = str.join("\n");
|
|
206
|
-
return dot;
|
|
207
|
-
}
|
|
208
|
-
exports.opcuaToDot = opcuaToDot;
|
|
209
|
-
function dumpClassHierachry(typeNode, options) {
|
|
210
|
-
options = options || { naked: false, showBaseType: true, showSubType: true };
|
|
211
|
-
const level = options.depth || 50;
|
|
212
|
-
const str = [];
|
|
213
|
-
const nodeRegistry = new NodeRegistry();
|
|
214
|
-
nodeRegistry.add(typeNode.browseName.name, typeNode);
|
|
215
|
-
str.push("digraph G {");
|
|
216
|
-
if (!options.naked) {
|
|
217
|
-
// str.push(" splines=ortho;");
|
|
218
|
-
str.push(" rankdir=BT;");
|
|
219
|
-
str.push(" nodesep=0.5;");
|
|
220
|
-
str.push(" node [];");
|
|
221
|
-
}
|
|
222
|
-
function dumpSubtypes(str, typeNode, level) {
|
|
223
|
-
const parentName = typeNode.browseName.name.toString();
|
|
224
|
-
const references = typeNode.findReferencesEx("HasSubtype", node_opcua_data_model_1.BrowseDirection.Forward);
|
|
225
|
-
for (let i = 0; i < references.length; i++) {
|
|
226
|
-
const reference = references[i];
|
|
227
|
-
const childNode = reference.node;
|
|
228
|
-
const nodeClass = node_opcua_data_model_1.NodeClass[childNode.nodeClass];
|
|
229
|
-
const childName = childNode.browseName.name.toString();
|
|
230
|
-
nodeRegistry.add(childName, childNode);
|
|
231
|
-
const edgeAttributes = arrowHead(reference);
|
|
232
|
-
str.push(` ${childName} -> ${parentName} ${edgeAttributes};`);
|
|
233
|
-
if (level > 0) {
|
|
234
|
-
dumpSubtypes(str, childNode, level - 1);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
function dumpBaseTypes(str, typeNode, level) {
|
|
239
|
-
const parentName = typeNode.browseName.name.toString();
|
|
240
|
-
const references = typeNode.findReferencesEx("HasSubtype", node_opcua_data_model_1.BrowseDirection.Inverse);
|
|
241
|
-
for (let i = 0; i < references.length; i++) {
|
|
242
|
-
const reference = references[i];
|
|
243
|
-
const childNode = reference.node;
|
|
244
|
-
const nodeClass = node_opcua_data_model_1.NodeClass[childNode.nodeClass];
|
|
245
|
-
const childName = childNode.browseName.name.toString();
|
|
246
|
-
nodeRegistry.add(childName, childNode);
|
|
247
|
-
const edgeAttributes = arrowHead(reference);
|
|
248
|
-
str.push(` ${parentName} -> ${childName} ${edgeAttributes};`);
|
|
249
|
-
if (level > 0) {
|
|
250
|
-
dumpBaseTypes(str, childNode, level - 1);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
const str2 = [];
|
|
255
|
-
if (options.showBaseType) {
|
|
256
|
-
dumpBaseTypes(str2, typeNode, level);
|
|
257
|
-
}
|
|
258
|
-
/** */
|
|
259
|
-
if (options.showSubType) {
|
|
260
|
-
dumpSubtypes(str2, typeNode, level);
|
|
261
|
-
}
|
|
262
|
-
if (!options.naked) {
|
|
263
|
-
dumpNodeByNodeClass(str, nodeRegistry);
|
|
264
|
-
}
|
|
265
|
-
str.push(...str2);
|
|
266
|
-
str.push("}");
|
|
267
|
-
return str.join("\n");
|
|
268
|
-
}
|
|
269
|
-
exports.dumpClassHierachry = dumpClassHierachry;
|
|
270
|
-
function graphVizToPlantUml(str) {
|
|
271
|
-
const ttt = "```";
|
|
272
|
-
return `${ttt}plantuml\n@startuml\n${str}\n@enduml\n${ttt}`;
|
|
273
|
-
}
|
|
274
|
-
exports.graphVizToPlantUml = graphVizToPlantUml;
|
|
275
|
-
function dumpTypeDiagram(namespace) {
|
|
276
|
-
const objectTypes = [...namespace._objectTypeIterator()];
|
|
277
|
-
const variableTypes = [...namespace._variableTypeIterator()];
|
|
278
|
-
const dataTypes = [...namespace._dataTypeIterator()];
|
|
279
|
-
const referenceTypes = [...namespace._referenceTypeIterator()];
|
|
280
|
-
const addressSpace = namespace.addressSpace;
|
|
281
|
-
const str = [];
|
|
282
|
-
for (const type of [...objectTypes, ...variableTypes]) {
|
|
283
|
-
const d = opcuaToDot(type);
|
|
284
|
-
str.push(graphVizToPlantUml(d));
|
|
285
|
-
const d2 = dumpClassHierachry(type);
|
|
286
|
-
str.push(graphVizToPlantUml(d2));
|
|
287
|
-
}
|
|
288
|
-
for (const dataType of dataTypes) {
|
|
289
|
-
const d = opcuaToDot(dataType);
|
|
290
|
-
str.push(graphVizToPlantUml(d));
|
|
291
|
-
}
|
|
292
|
-
return str.join("\n");
|
|
293
|
-
}
|
|
294
|
-
exports.dumpTypeDiagram = dumpTypeDiagram;
|
|
295
|
-
//# sourceMappingURL=to_graphivz.js.map
|
package/dist/to_graphivz.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"to_graphivz.js","sourceRoot":"","sources":["../source/to_graphivz.ts"],"names":[],"mappings":";;;AAAA,uEAYkC;AAElC,+DAAwD;AACxD,iEAAmE;AAGnE,SAAS,CAAC,CAAC,GAAW;IAClB,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AAC3D,CAAC;AACD,SAAS,SAAS,CAAC,IAA2B;;IAC1C,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IACxC,MAAM,cAAc,GAAG,MAAA,MAAA,IAAI,CAAC,iBAAiB,0CAAE,UAAU,0CAAE,IAAI,CAAC;IAEhE,IAAI,cAAc,EAAE;QAChB,OAAO,uCAAuC,cAAc,mBAAmB,CAAC,CAAC,UAAW,CAAC,KAAK,CAAC;KACtG;SAAM;QACH,OAAO,aAAa,CAAC,CAAC,UAAW,CAAC,KAAK,CAAC;KAC3C;AACL,CAAC;AACD,SAAS,k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