node-opcua-modeler 2.62.6 → 2.63.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.
@@ -0,0 +1,283 @@
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_constants_1 = require("node-opcua-constants");
5
+ const node_opcua_data_model_1 = require("node-opcua-data-model");
6
+ function e(str) {
7
+ return str.replace(/</g, "&lt;").replace(/>/g, "&gt;");
8
+ }
9
+ function innerText(node) {
10
+ var _a, _b;
11
+ const browseName = node.browseName.name;
12
+ const typeDefinition = (_b = (_a = node.typeDefinitionObj) === null || _a === void 0 ? void 0 : _a.browseName) === null || _b === void 0 ? void 0 : _b.name;
13
+ if (typeDefinition) {
14
+ return `[ label =< <FONT point-size="8" ><I>${typeDefinition}</I></FONT><BR/>${e(browseName)} >]`;
15
+ }
16
+ else {
17
+ return `[label =< ${e(browseName)} >]`;
18
+ }
19
+ }
20
+ function arrowHeadAttribute(reference) {
21
+ switch (reference.referenceType.value) {
22
+ case node_opcua_constants_1.ReferenceTypeIds.HasTypeDefinition:
23
+ return "normalnormal";
24
+ case node_opcua_constants_1.ReferenceTypeIds.HasComponent:
25
+ return "noneteetree";
26
+ case node_opcua_constants_1.ReferenceTypeIds.HasProperty:
27
+ return "nonetee";
28
+ case node_opcua_constants_1.ReferenceTypeIds.HasSubtype:
29
+ return "onormalonormal";
30
+ case node_opcua_constants_1.ReferenceTypeIds.HasModellingRule:
31
+ return "none";
32
+ default:
33
+ return "normal";
34
+ }
35
+ }
36
+ function arrowHead(reference) {
37
+ return `[arrowhead = ${arrowHeadAttribute(reference)}]`;
38
+ }
39
+ const regularShapes = {
40
+ ObjectType: '[shape=rectangle, style="filled" fillcolor="#e8edf7;0.75:#d2def0" gradientangle=275]',
41
+ VariableType: '[shape=rectangle, style="rounded,filled" fillcolor="#e8edf7;0.75:#d2def0" gradientangle=275]',
42
+ Object: ' [shape=rectangle, style="rounded,filled" fillcolor="#e8edf7"]',
43
+ Variable: '[shape=rectangle, style="filled,rounded" fillcolor="#e8edf7"]',
44
+ Method: '[shape=circle, style="filled" fillcolor="#e8edf7"]'
45
+ };
46
+ const regularShapesOptionals = {
47
+ ObjectType: '[shape=rectangle, style="filled,dashed" fillcolor="#e8edf7;0.75:#d2def0" gradientangle=275]',
48
+ VariableType: '[shape=rectangle, style="rounded,filled,dashed" fillcolor="#e8edf7;0.75:#d2def0" gradientangle=275]',
49
+ Object: ' [shape=rectangle, style="rounded,filled,dashed" fillcolor="#e8edf7"]',
50
+ Variable: '[shape=rectangle, style="filled,rounded,dashed" fillcolor="#e8edf7"]',
51
+ Method: '[shape=circle, style="filled,dashed" fillcolor="#e8edf7"]'
52
+ };
53
+ class NodeRegistry {
54
+ constructor() {
55
+ this.m = {};
56
+ this.invisibleNodes = [];
57
+ this.duplicated = {};
58
+ }
59
+ add(name, node) {
60
+ if (this.duplicated[name]) {
61
+ return; //throw new Error("Already included");
62
+ }
63
+ this.duplicated[name] = name;
64
+ const nodeClass = node_opcua_data_model_1.NodeClass[node.nodeClass];
65
+ this.m[nodeClass] = this.m[nodeClass] || [];
66
+ this.m[nodeClass].push({ name, node });
67
+ }
68
+ addInvisibleNode(name) {
69
+ this.invisibleNodes.push(name);
70
+ }
71
+ }
72
+ function dumpNodeByNodeClass(str, nodeRegistry) {
73
+ for (const [className, listNode] of Object.entries(nodeRegistry.m)) {
74
+ if (listNode.length === 0) {
75
+ continue;
76
+ }
77
+ str.push(` ## -> ${className}`);
78
+ const mandatoryNodes = listNode.filter(({ name, node }) => !node.modellingRule || node.modellingRule.match(/Mandatory/));
79
+ const optionalNodes = listNode.filter(({ name, node }) => node.modellingRule && node.modellingRule.match(/Optional/));
80
+ if (mandatoryNodes.length > 0) {
81
+ str.push(` node [];`);
82
+ const decoration = regularShapes[className];
83
+ str.push(` node ${decoration};`);
84
+ for (const { name, node } of mandatoryNodes) {
85
+ str.push(` ${name} ${innerText(node)}`);
86
+ }
87
+ }
88
+ if (optionalNodes.length > 0) {
89
+ const decoration2 = regularShapesOptionals[className];
90
+ str.push(` node [];`);
91
+ str.push(` node ${decoration2};`);
92
+ for (const { name, node } of listNode) {
93
+ str.push(` ${name} ${innerText(node)}`);
94
+ }
95
+ }
96
+ }
97
+ if (nodeRegistry.invisibleNodes.length) {
98
+ str.push(" # invisible nodes");
99
+ str.push(" node []");
100
+ str.push(" node [width=0,height=0,shape=point,style=invis];");
101
+ str.push(` ${nodeRegistry.invisibleNodes.join("\n ")};`);
102
+ }
103
+ }
104
+ function opcuaToDot(node, options) {
105
+ options = options || { naked: false };
106
+ const nodeRegistry = new NodeRegistry();
107
+ const str = [];
108
+ const str2 = [];
109
+ str.push("digraph G {");
110
+ if (!options.naked) {
111
+ str.push(" rankdir=TB;");
112
+ str.push(" nodesep=0.5;");
113
+ str.push(" node [];");
114
+ }
115
+ function makeId(p, c) {
116
+ return `${p}_${c}`.replace(" ", "_").replace(/<|>/g, "_");
117
+ }
118
+ // eslint-disable-next-line max-params
119
+ // eslint-disable-next-line max-statements
120
+ function typeMemberAndSubTypeMember(str, parentNode, node, parent, offset, prefix, joinWithCaller, visitorMap) {
121
+ let innerDepth = 0;
122
+ const browseName = (parent || node).browseName.name.toString();
123
+ const r = [];
124
+ const r2 = [];
125
+ const references = node.findReferencesEx("Aggregates", node_opcua_data_model_1.BrowseDirection.Forward);
126
+ const folderElements = node.findReferencesEx("Organizes", node_opcua_data_model_1.BrowseDirection.Forward);
127
+ const childReferences = [...references, ...folderElements];
128
+ const id = makeId(parentNode, browseName);
129
+ nodeRegistry.add(id, node);
130
+ function addInvisibleNode(prefix, index) {
131
+ const breakNode = `${prefix}${index}`;
132
+ r2.push(breakNode);
133
+ nodeRegistry.addInvisibleNode(breakNode);
134
+ return breakNode;
135
+ }
136
+ for (let i = 0; i < childReferences.length; i++) {
137
+ const isLast = i === childReferences.length - 1;
138
+ const reference = childReferences[i];
139
+ const childNode = reference.node;
140
+ const childName = childNode.browseName.name.toString();
141
+ const fullChildName = makeId(id, childName);
142
+ // avoid member duplication
143
+ if (visitorMap[fullChildName]) {
144
+ continue;
145
+ }
146
+ else {
147
+ visitorMap[fullChildName] = 1;
148
+ }
149
+ innerDepth++;
150
+ nodeRegistry.add(fullChildName, childNode);
151
+ const edgeAttributes = arrowHead(reference);
152
+ const breakNode = addInvisibleNode(prefix, i + offset);
153
+ const horizontalPart = `{ rank=same ${breakNode} -> ${fullChildName} ${edgeAttributes} }`;
154
+ r.push(horizontalPart);
155
+ // push children on same level
156
+ const [depth] = typeMemberAndSubTypeMember(str, id, childNode, null, 0, `${prefix}${i + offset}_`, false, visitorMap);
157
+ // add invisible nodes
158
+ {
159
+ for (let d = 0; d < depth; d++) {
160
+ offset++;
161
+ if (!isLast) {
162
+ addInvisibleNode(prefix, i + offset);
163
+ }
164
+ }
165
+ innerDepth += depth;
166
+ }
167
+ }
168
+ if (node.nodeClass == node_opcua_data_model_1.NodeClass.ObjectType || node.nodeClass === node_opcua_data_model_1.NodeClass.VariableType) {
169
+ if (node.subtypeOfObj && node.subtypeOfObj.nodeId.namespace === node.nodeId.namespace) {
170
+ const [depth, rr2] = typeMemberAndSubTypeMember(str, parentNode, node.subtypeOfObj, node, r.length, prefix, true, visitorMap);
171
+ innerDepth += depth;
172
+ r2.push(...rr2);
173
+ }
174
+ }
175
+ if (r.length) {
176
+ str.push(...r.map((x) => " " + x));
177
+ }
178
+ if (!joinWithCaller) {
179
+ if (r2.length) {
180
+ str.push(` ${id} -> ${r2.join(" -> ")} [arrowhead=none];`);
181
+ }
182
+ }
183
+ return [innerDepth, r2];
184
+ }
185
+ const visitorMap = {};
186
+ typeMemberAndSubTypeMember(str2, "", node, null, 0, "r", false, visitorMap);
187
+ if (!options.naked) {
188
+ dumpNodeByNodeClass(str, nodeRegistry);
189
+ }
190
+ str.push(...str2);
191
+ str.push("}");
192
+ //
193
+ const dot = str.join("\n");
194
+ return dot;
195
+ }
196
+ exports.opcuaToDot = opcuaToDot;
197
+ function dumpClassHierachry(typeNode, options) {
198
+ options = options || { naked: false, showBaseType: true, showSubType: true };
199
+ const level = options.depth || 50;
200
+ const str = [];
201
+ const nodeRegistry = new NodeRegistry();
202
+ nodeRegistry.add(typeNode.browseName.name, typeNode);
203
+ str.push("digraph G {");
204
+ if (!options.naked) {
205
+ // str.push(" splines=ortho;");
206
+ str.push(" rankdir=BT;");
207
+ str.push(" nodesep=0.5;");
208
+ str.push(" node [];");
209
+ }
210
+ function dumpSubtypes(str, typeNode, level) {
211
+ const parentName = typeNode.browseName.name.toString();
212
+ const references = typeNode.findReferencesEx("HasSubtype", node_opcua_data_model_1.BrowseDirection.Forward);
213
+ for (let i = 0; i < references.length; i++) {
214
+ const reference = references[i];
215
+ const childNode = reference.node;
216
+ const nodeClass = node_opcua_data_model_1.NodeClass[childNode.nodeClass];
217
+ const childName = childNode.browseName.name.toString();
218
+ nodeRegistry.add(childName, childNode);
219
+ const edgeAttributes = arrowHead(reference);
220
+ str.push(` ${childName} -> ${parentName} ${edgeAttributes};`);
221
+ if (level > 0) {
222
+ dumpSubtypes(str, childNode, level - 1);
223
+ }
224
+ }
225
+ }
226
+ function dumpBaseTypes(str, typeNode, level) {
227
+ const parentName = typeNode.browseName.name.toString();
228
+ const references = typeNode.findReferencesEx("HasSubtype", node_opcua_data_model_1.BrowseDirection.Inverse);
229
+ for (let i = 0; i < references.length; i++) {
230
+ const reference = references[i];
231
+ const childNode = reference.node;
232
+ const nodeClass = node_opcua_data_model_1.NodeClass[childNode.nodeClass];
233
+ const childName = childNode.browseName.name.toString();
234
+ nodeRegistry.add(childName, childNode);
235
+ const edgeAttributes = arrowHead(reference);
236
+ str.push(` ${parentName} -> ${childName} ${edgeAttributes};`);
237
+ if (level > 0) {
238
+ dumpBaseTypes(str, childNode, level - 1);
239
+ }
240
+ }
241
+ }
242
+ const str2 = [];
243
+ if (options.showBaseType) {
244
+ dumpBaseTypes(str2, typeNode, level);
245
+ }
246
+ /** */
247
+ if (options.showSubType) {
248
+ dumpSubtypes(str2, typeNode, level);
249
+ }
250
+ if (!options.naked) {
251
+ dumpNodeByNodeClass(str, nodeRegistry);
252
+ }
253
+ str.push(...str2);
254
+ str.push("}");
255
+ return str.join("\n");
256
+ }
257
+ exports.dumpClassHierachry = dumpClassHierachry;
258
+ function graphVizToPlantUml(str) {
259
+ const ttt = "```";
260
+ return `${ttt}plantuml\n@startuml\n${str}\n@enduml\n${ttt}`;
261
+ }
262
+ exports.graphVizToPlantUml = graphVizToPlantUml;
263
+ function dumpTypeDiagram(namespace) {
264
+ const objectTypes = [...namespace._objectTypeIterator()];
265
+ const variableTypes = [...namespace._variableTypeIterator()];
266
+ const dataTypes = [...namespace._dataTypeIterator()];
267
+ const referenceTypes = [...namespace._referenceTypeIterator()];
268
+ const addressSpace = namespace.addressSpace;
269
+ const str = [];
270
+ for (const type of [...objectTypes, ...variableTypes]) {
271
+ const d = opcuaToDot(type);
272
+ str.push(graphVizToPlantUml(d));
273
+ const d2 = dumpClassHierachry(type);
274
+ str.push(graphVizToPlantUml(d2));
275
+ }
276
+ for (const dataType of dataTypes) {
277
+ const d = opcuaToDot(dataType);
278
+ str.push(graphVizToPlantUml(d));
279
+ }
280
+ return str.join("\n");
281
+ }
282
+ exports.dumpTypeDiagram = dumpTypeDiagram;
283
+ //# sourceMappingURL=to_graphivz.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to_graphivz.js","sourceRoot":"","sources":["../source/to_graphivz.ts"],"names":[],"mappings":";;;AAWA,+DAAwD;AACxD,iEAAmE;AAEnE,SAAS,CAAC,CAAC,GAAW;IAClB,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,EAAC,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAC,MAAM,CAAC,CAAC;AACzD,CAAC;AACD,SAAS,SAAS,CAAC,IAA2B;;IAC1C,MAAM,UAAU,GAAG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
  "name": "node-opcua-modeler",
3
- "version": "2.62.6",
3
+ "version": "2.63.2",
4
4
  "description": "pure nodejs OPCUA SDK - module - model",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,27 +13,27 @@
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
15
  "chalk": "4.1.2",
16
- "cli-table3": "^0.6.0",
17
- "csv-parse": "5.0.3",
18
- "node-opcua-address-space": "2.62.6",
19
- "node-opcua-assert": "2.55.0",
20
- "node-opcua-basic-types": "2.62.6",
21
- "node-opcua-client-dynamic-extension-object": "2.62.6",
22
- "node-opcua-constants": "2.52.0",
23
- "node-opcua-data-model": "2.62.6",
24
- "node-opcua-factory": "2.62.6",
25
- "node-opcua-nodeid": "2.62.6",
26
- "node-opcua-nodesets": "2.57.0",
27
- "node-opcua-numeric-range": "2.62.6",
28
- "node-opcua-schemas": "2.62.6",
29
- "node-opcua-service-translate-browse-path": "2.62.6",
30
- "node-opcua-status-code": "2.62.5",
31
- "node-opcua-types": "2.62.6",
32
- "node-opcua-variant": "2.62.6",
33
- "node-opcua-xml2json": "2.62.6"
16
+ "cli-table3": "^0.6.1",
17
+ "csv-parse": "5.0.4",
18
+ "node-opcua-address-space": "2.63.2",
19
+ "node-opcua-assert": "2.63.0",
20
+ "node-opcua-basic-types": "2.63.2",
21
+ "node-opcua-client-dynamic-extension-object": "2.63.2",
22
+ "node-opcua-constants": "2.62.7",
23
+ "node-opcua-data-model": "2.63.2",
24
+ "node-opcua-factory": "2.63.2",
25
+ "node-opcua-nodeid": "2.63.2",
26
+ "node-opcua-nodesets": "2.63.0",
27
+ "node-opcua-numeric-range": "2.63.2",
28
+ "node-opcua-schemas": "2.63.2",
29
+ "node-opcua-service-translate-browse-path": "2.63.2",
30
+ "node-opcua-status-code": "2.63.2",
31
+ "node-opcua-types": "2.63.2",
32
+ "node-opcua-variant": "2.63.2",
33
+ "node-opcua-xml2json": "2.63.2"
34
34
  },
35
35
  "devDependencies": {
36
- "node-opcua-leak-detector": "2.62.6",
36
+ "node-opcua-leak-detector": "2.63.2",
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": "c6a3935e0c8d1c3da6a5b4c8a32dc0fb2604fddd"
52
+ "gitHead": "cdf7a20a7f3866900bc8379d002b467eb0c3f6bb"
53
53
  }