@aj-shadow/z-abs-complayer-visualizationsequencediagram-client 0.0.0-aj-beta.221 → 0.0.0-aj-beta.224
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/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aj-shadow/z-abs-complayer-visualizationsequencediagram-client",
|
|
3
|
-
"version": "0.0.0-aj-beta.
|
|
3
|
+
"version": "0.0.0-aj-beta.224",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@aj-shadow/z-abs-complayer-visualizationsequencediagram-client",
|
|
9
|
-
"version": "0.0.0-aj-beta.
|
|
9
|
+
"version": "0.0.0-aj-beta.224",
|
|
10
10
|
"license": "SEE LICENSE IN LICENSE.txt"
|
|
11
11
|
}
|
|
12
12
|
}
|
package/package.json
CHANGED
|
@@ -38,20 +38,6 @@ class Const {
|
|
|
38
38
|
static TRANSPORT_TYPE_MC = 2;
|
|
39
39
|
static TRANSPORT_TYPE_TLS = 3;
|
|
40
40
|
|
|
41
|
-
static transportTypeNames = [
|
|
42
|
-
'tcp',
|
|
43
|
-
'udp',
|
|
44
|
-
'mc',
|
|
45
|
-
'tls'
|
|
46
|
-
];
|
|
47
|
-
|
|
48
|
-
static TRANSPORT_LINE_CSSES = [
|
|
49
|
-
'seq_dia_protocol_tcp_line',
|
|
50
|
-
'seq_dia_protocol_udp_line',
|
|
51
|
-
'seq_dia_protocol_mc_line',
|
|
52
|
-
'seq_dia_protocol_tls_line'
|
|
53
|
-
];
|
|
54
|
-
|
|
55
41
|
static PROTOCOL_LINE_NONE = -1;
|
|
56
42
|
static PROTOCOL_LINE_CONNECTION = 0;
|
|
57
43
|
static PROTOCOL_LINE_MESSAGE = 1;
|
|
@@ -70,6 +56,9 @@ class Const {
|
|
|
70
56
|
|
|
71
57
|
static LOCAL_PART = 0;
|
|
72
58
|
static REMOTE_PART = 1;
|
|
59
|
+
|
|
60
|
+
static EAST = 0;
|
|
61
|
+
static WEST = 1;
|
|
73
62
|
static EAST_START = 0;
|
|
74
63
|
static EAST_STOP = 1;
|
|
75
64
|
static WEST_START = 2;
|
|
@@ -77,56 +66,73 @@ class Const {
|
|
|
77
66
|
static UNKNOWN_START = 4;
|
|
78
67
|
static EAST_MIDDLE = 5;
|
|
79
68
|
static WEST_MIDDLE = 6;
|
|
69
|
+
|
|
70
|
+
static MESSAGE_DIRECTION_RECEIVED = 0;
|
|
71
|
+
static MESSAGE_DIRECTION_SENT = 1;
|
|
72
|
+
static MESSAGE_DIRECTION = [
|
|
73
|
+
'seq_dia_msg_nbr_received',
|
|
74
|
+
'seq_dia_msg_nbr_sent'
|
|
75
|
+
];
|
|
76
|
+
|
|
77
|
+
static MESSAGE_DIRECTION_FILTER = [
|
|
78
|
+
'seq_dia_show__message_event__received_numbers',
|
|
79
|
+
'seq_dia_show__message_event__sent_numbers'
|
|
80
|
+
];
|
|
81
|
+
|
|
82
|
+
static MESSAGE_NORMAL = 0;
|
|
83
|
+
static MESSAGE_DETAIL = 1;
|
|
84
|
+
|
|
85
|
+
static transportTypeNames = [
|
|
86
|
+
'tcp',
|
|
87
|
+
'udp',
|
|
88
|
+
'mc',
|
|
89
|
+
'tls'
|
|
90
|
+
];
|
|
91
|
+
|
|
92
|
+
static TRANSPORT_LINE_CSSES = [
|
|
93
|
+
'seq_dia_protocol_tcp_line',
|
|
94
|
+
'seq_dia_protocol_udp_line',
|
|
95
|
+
'seq_dia_protocol_mc_line',
|
|
96
|
+
'seq_dia_protocol_tls_line'
|
|
97
|
+
];
|
|
98
|
+
|
|
99
|
+
static EVENT_CONNECTING = 0;
|
|
100
|
+
static EVENT_TCP = 1;
|
|
101
|
+
static EVENT_UDP = 2;
|
|
102
|
+
static EVENT_MC = 3;
|
|
103
|
+
static EVENT_TLS = 4;
|
|
104
|
+
|
|
105
|
+
static events = new Map([['connecting', {
|
|
106
|
+
index: Const.EVENT_CONNECTING,
|
|
107
|
+
classLine: 'seq_dia_protocol_connection_line'
|
|
108
|
+
}], ['tcp', {
|
|
109
|
+
index: Const.EVENT_TCP,
|
|
110
|
+
classLine: 'event_tcp_line'
|
|
111
|
+
}], ['udp', {
|
|
112
|
+
index: Const.EVENT_UDP,
|
|
113
|
+
classLine: 'event_udp_line'
|
|
114
|
+
}], ['mc', {
|
|
115
|
+
index: Const.EVENT_MC,
|
|
116
|
+
classLine: 'event_mc_line'
|
|
117
|
+
}], ['tls', {
|
|
118
|
+
index: Const.EVENT_TLS,
|
|
119
|
+
classLine: 'event_tls_line'
|
|
120
|
+
}]]);
|
|
121
|
+
|
|
122
|
+
static transportTypes = new Map(
|
|
123
|
+
[[0, {
|
|
124
|
+
lineEventId: Const.EVENT_TCP
|
|
125
|
+
}], [1, {
|
|
126
|
+
lineEventId: Const.EVENT_UDP
|
|
127
|
+
}], [2, {
|
|
128
|
+
lineEventId: Const.EVENT_MC
|
|
129
|
+
}], [3, {
|
|
130
|
+
lineEventId: Const.EVENT_TLS
|
|
131
|
+
}]]);
|
|
80
132
|
}
|
|
81
133
|
|
|
82
134
|
|
|
83
|
-
Const.MESSAGE_DIRECTION_RECEIVED = 0;
|
|
84
|
-
Const.MESSAGE_DIRECTION_SENT = 1;
|
|
85
|
-
Const.MESSAGE_DIRECTION = [
|
|
86
|
-
'seq_dia_msg_nbr_received',
|
|
87
|
-
'seq_dia_msg_nbr_sent'
|
|
88
|
-
];
|
|
89
|
-
Const.MESSAGE_DIRECTION_FILTER = [
|
|
90
|
-
'seq_dia_show__message_event__received_numbers',
|
|
91
|
-
'seq_dia_show__message_event__sent_numbers'
|
|
92
|
-
];
|
|
93
135
|
|
|
94
|
-
Const.MESSAGE_NORMAL = 0;
|
|
95
|
-
Const.MESSAGE_DETAIL = 1;
|
|
96
|
-
|
|
97
|
-
Const.EVENT_CONNECTING = 0;
|
|
98
|
-
Const.EVENT_TCP = 1;
|
|
99
|
-
Const.EVENT_UDP = 2;
|
|
100
|
-
Const.EVENT_MC = 3;
|
|
101
|
-
Const.EVENT_TLS = 4;
|
|
102
|
-
|
|
103
|
-
Const.events = new Map([['connecting', {
|
|
104
|
-
index: Const.EVENT_CONNECTING,
|
|
105
|
-
classLine: 'seq_dia_protocol_connection_line'
|
|
106
|
-
}], ['tcp', {
|
|
107
|
-
index: Const.EVENT_TCP,
|
|
108
|
-
classLine: 'event_tcp_line'
|
|
109
|
-
}], ['udp', {
|
|
110
|
-
index: Const.EVENT_UDP,
|
|
111
|
-
classLine: 'event_udp_line'
|
|
112
|
-
}], ['mc', {
|
|
113
|
-
index: Const.EVENT_MC,
|
|
114
|
-
classLine: 'event_mc_line'
|
|
115
|
-
}], ['tls', {
|
|
116
|
-
index: Const.EVENT_TLS,
|
|
117
|
-
classLine: 'event_tls_line'
|
|
118
|
-
}]]);
|
|
119
|
-
|
|
120
|
-
Const.transportTypes = new Map(
|
|
121
|
-
[[0, {
|
|
122
|
-
lineEventId: Const.EVENT_TCP
|
|
123
|
-
}], [1, {
|
|
124
|
-
lineEventId: Const.EVENT_UDP
|
|
125
|
-
}], [2, {
|
|
126
|
-
lineEventId: Const.EVENT_MC
|
|
127
|
-
}], [3, {
|
|
128
|
-
lineEventId: Const.EVENT_TLS
|
|
129
|
-
}]]);
|
|
130
136
|
|
|
131
137
|
Const.REVERS_DIRECTION_FALSE = 0;
|
|
132
138
|
Const.REVERS_DIRECTION_TRUE = 1;
|
|
@@ -134,8 +140,7 @@ Const.REVERS_DIRECTION_TRUE = 1;
|
|
|
134
140
|
Const.HIDE = 0;
|
|
135
141
|
Const.SHOW = 1;
|
|
136
142
|
|
|
137
|
-
|
|
138
|
-
Const.WEST = 1;
|
|
143
|
+
|
|
139
144
|
Const.CLOSED = 0;
|
|
140
145
|
Const.OPEN = 1;
|
|
141
146
|
|
|
@@ -179,7 +184,7 @@ Const.LINE_WIDTH_HALF = Const.LINE_WIDTH / 2;
|
|
|
179
184
|
|
|
180
185
|
Const.TEXT_BIAS = 17;
|
|
181
186
|
|
|
182
|
-
Const.phaseClasses = [
|
|
187
|
+
/*Const.phaseClasses = [
|
|
183
188
|
'seq_dia_phase_data',
|
|
184
189
|
'seq_dia_phase_pre',
|
|
185
190
|
'seq_dia_phase_exec',
|
|
@@ -201,7 +206,7 @@ Const.phaseNames = [
|
|
|
201
206
|
'Execution',
|
|
202
207
|
'Postcondition',
|
|
203
208
|
'None'
|
|
204
|
-
]
|
|
209
|
+
];*/
|
|
205
210
|
|
|
206
211
|
|
|
207
212
|
module.exports = Const;
|
|
@@ -145,7 +145,11 @@ class SeqDiaFilter {
|
|
|
145
145
|
this.guiInstanceData = sequenceDiagramFilter.guiInstanceData;
|
|
146
146
|
this.guiProtocolData = sequenceDiagramFilter.guiProtocolData;
|
|
147
147
|
|
|
148
|
-
this.phases = sequenceDiagramFilter.
|
|
148
|
+
this.phases[ActorPhaseConst.DATA] = sequenceDiagramFilter.phaseData;
|
|
149
|
+
this.phases[ActorPhaseConst.PRE] = sequenceDiagramFilter.phasePrecondition;
|
|
150
|
+
this.phases[ActorPhaseConst.EXEC] = sequenceDiagramFilter.phaseExecution;
|
|
151
|
+
this.phases[ActorPhaseConst.POST] = sequenceDiagramFilter.phasePostcondition;
|
|
152
|
+
this.phases[ActorPhaseConst.NONE] = sequenceDiagramFilter.phaseNone;
|
|
149
153
|
|
|
150
154
|
/////////////////////
|
|
151
155
|
|
|
@@ -186,11 +190,11 @@ class SeqDiaFilter {
|
|
|
186
190
|
|
|
187
191
|
///////////////////
|
|
188
192
|
|
|
189
|
-
this.seq_dia_show__phase_data__actor_column = this._createFilter('seq_dia_show__phase_data__actor_column', 'div', sequenceDiagramFilter.
|
|
190
|
-
this.seq_dia_show__phase_pre__actor_column = this._createFilter('seq_dia_show__phase_pre__actor_column', 'div', sequenceDiagramFilter.
|
|
191
|
-
this.seq_dia_show__phase_exec__actor_column = this._createFilter('seq_dia_show__phase_exec__actor_column', 'div', sequenceDiagramFilter.
|
|
192
|
-
this.seq_dia_show__phase_post__actor_column = this._createFilter('seq_dia_show__phase_post__actor_column', 'div', sequenceDiagramFilter.
|
|
193
|
-
this.seq_dia_show__phase_pre_post__actor_column = this._createFilter('seq_dia_show__phase_pre_post__actor_column', 'div', sequenceDiagramFilter.
|
|
193
|
+
this.seq_dia_show__phase_data__actor_column = this._createFilter('seq_dia_show__phase_data__actor_column', 'div', sequenceDiagramFilter.phaseData);
|
|
194
|
+
this.seq_dia_show__phase_pre__actor_column = this._createFilter('seq_dia_show__phase_pre__actor_column', 'div', sequenceDiagramFilter.phaseData || sequenceDiagramFilter.phasePrecondition);
|
|
195
|
+
this.seq_dia_show__phase_exec__actor_column = this._createFilter('seq_dia_show__phase_exec__actor_column', 'div', sequenceDiagramFilter.phaseData || sequenceDiagramFilter.phaseExecution);
|
|
196
|
+
this.seq_dia_show__phase_post__actor_column = this._createFilter('seq_dia_show__phase_post__actor_column', 'div', sequenceDiagramFilter.phaseData || sequenceDiagramFilter.phasePostcondition);
|
|
197
|
+
this.seq_dia_show__phase_pre_post__actor_column = this._createFilter('seq_dia_show__phase_pre_post__actor_column', 'div', sequenceDiagramFilter.phaseData || sequenceDiagramFilter.phasePrecondition || sequenceDiagramFilter.phasePostcondition);
|
|
194
198
|
this.seq_dia_show__phase_all__actor_column = this._createFilter('seq_dia_show__phase_all__actor_column', 'div', true, -1);
|
|
195
199
|
|
|
196
200
|
const cssRules = this.styleSheet.cssRules;
|
|
@@ -204,13 +208,13 @@ class SeqDiaFilter {
|
|
|
204
208
|
update(sequenceDiagramFilter) {
|
|
205
209
|
// console.log('seq-dia-filter');
|
|
206
210
|
let isUpdated = false;
|
|
207
|
-
if(this.phases[ActorPhaseConst.DATA] !== sequenceDiagramFilter.
|
|
208
|
-
|| this.phases[ActorPhaseConst.PRE] !== sequenceDiagramFilter.
|
|
209
|
-
|| this.phases[ActorPhaseConst.EXEC] !== sequenceDiagramFilter.
|
|
210
|
-
|| this.phases[ActorPhaseConst.POST] !== sequenceDiagramFilter.
|
|
211
|
-
|| this.phases[ActorPhaseConst.NONE] !== sequenceDiagramFilter.
|
|
211
|
+
if(this.phases[ActorPhaseConst.DATA] !== sequenceDiagramFilter.phaseData
|
|
212
|
+
|| this.phases[ActorPhaseConst.PRE] !== sequenceDiagramFilter.phasePrecondition
|
|
213
|
+
|| this.phases[ActorPhaseConst.EXEC] !== sequenceDiagramFilter.phaseExecution
|
|
214
|
+
|| this.phases[ActorPhaseConst.POST] !== sequenceDiagramFilter.phasePostcondition
|
|
215
|
+
|| this.phases[ActorPhaseConst.NONE] !== sequenceDiagramFilter.phaseNone
|
|
212
216
|
) {
|
|
213
|
-
this.setPhases(sequenceDiagramFilter
|
|
217
|
+
this.setPhases(sequenceDiagramFilter);
|
|
214
218
|
isUpdated = true;
|
|
215
219
|
}
|
|
216
220
|
if(this.executedStateEvents !== sequenceDiagramFilter.executedStateEvents) {
|
|
@@ -287,8 +291,12 @@ class SeqDiaFilter {
|
|
|
287
291
|
return isUpdated;
|
|
288
292
|
}
|
|
289
293
|
|
|
290
|
-
setPhases(
|
|
291
|
-
this.phases =
|
|
294
|
+
setPhases(sequenceDiagramFilter) {
|
|
295
|
+
this.phases[ActorPhaseConst.DATA] = sequenceDiagramFilter.phaseData;
|
|
296
|
+
this.phases[ActorPhaseConst.PRE] = sequenceDiagramFilter.phasePrecondition;
|
|
297
|
+
this.phases[ActorPhaseConst.EXEC] = sequenceDiagramFilter.phaseExecution;
|
|
298
|
+
this.phases[ActorPhaseConst.POST] = sequenceDiagramFilter.phasePostcondition;
|
|
299
|
+
this.phases[ActorPhaseConst.NONE] = sequenceDiagramFilter.phaseNone;
|
|
292
300
|
}
|
|
293
301
|
|
|
294
302
|
getPhase(phaseId) {
|