@aj-shadow/z-abs-complayer-visualizationsequencediagram-client 0.0.0-aj-beta.227 → 0.0.0-aj-beta.237

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.
Files changed (125) hide show
  1. package/npm-shrinkwrap.json +3 -3
  2. package/package.json +2 -2
  3. package/project/client/_build/Bundle-CompLayer-VisualizationSequenceDiagram-client.bld +13 -26
  4. package/project/client/content-decoders/content-decoder.js +4 -5
  5. package/project/client/content-decoders/image-decoder.js +12 -14
  6. package/project/client/content-decoders/text-decoder.js +12 -15
  7. package/project/client/data/data-seq-dia-client-connected-not.js +17 -20
  8. package/project/client/data/data-seq-dia-client-connected.js +16 -19
  9. package/project/client/data/data-seq-dia-client-connecting.js +17 -20
  10. package/project/client/data/data-seq-dia-client-dns-failure.js +2 -7
  11. package/project/client/data/data-seq-dia-connection-closed.js +16 -19
  12. package/project/client/data/data-seq-dia-connection-closing.js +17 -20
  13. package/project/client/data/data-seq-dia-connection-half-closed.js +16 -19
  14. package/project/client/data/data-seq-dia-connection-half-closing.js +17 -20
  15. package/project/client/data/data-seq-dia-connection-upgrading.js +2 -7
  16. package/project/client/data/data-seq-dia-gui-result.js +6 -9
  17. package/project/client/data/data-seq-dia-gui.js +14 -18
  18. package/project/client/data/data-seq-dia-phase-end-result.js +5 -8
  19. package/project/client/data/data-seq-dia-phase-end.js +14 -17
  20. package/project/client/data/data-seq-dia-phase-start-result.js +5 -8
  21. package/project/client/data/data-seq-dia-phase-start.js +14 -17
  22. package/project/client/data/data-seq-dia-protocol-single-node-result.js +5 -8
  23. package/project/client/data/data-seq-dia-protocol-single-node.js +6 -9
  24. package/project/client/data/data-seq-dia-protocol-two-nodes-result.js +5 -8
  25. package/project/client/data/data-seq-dia-protocol-two-nodes.js +9 -12
  26. package/project/client/data/data-seq-dia-receive.js +20 -24
  27. package/project/client/data/data-seq-dia-send.js +20 -24
  28. package/project/client/data/data-seq-dia-server-accepted.js +16 -19
  29. package/project/client/data/data-seq-dia-server-accepting.js +16 -19
  30. package/project/client/data/data-seq-dia-server-attached.js +16 -19
  31. package/project/client/data/data-seq-dia-server-detached.js +16 -19
  32. package/project/client/data/data-seq-dia-server-not-started.js +16 -19
  33. package/project/client/data/data-seq-dia-server-started.js +16 -19
  34. package/project/client/data/data-seq-dia-server-starting.js +16 -19
  35. package/project/client/data/data-seq-dia-server-stopped.js +16 -19
  36. package/project/client/data/data-seq-dia-server-stopping.js +16 -19
  37. package/project/client/data/data-seq-dia-stack-result.js +6 -9
  38. package/project/client/data/data-seq-dia-stack.js +13 -17
  39. package/project/client/data/data-seq-dia-state-result.js +5 -8
  40. package/project/client/data/data-seq-dia-state.js +14 -17
  41. package/project/client/data/data-seq-dia-test-case-end-result.js +5 -8
  42. package/project/client/data/data-seq-dia-test-case-end.js +14 -17
  43. package/project/client/data/data-seq-dia-test-case-header-result.js +5 -8
  44. package/project/client/data/data-seq-dia-test-case-header.js +12 -15
  45. package/project/client/data/data-seq-dia-test-case-start-result.js +5 -7
  46. package/project/client/data/data-seq-dia-test-case-start.js +15 -18
  47. package/project/client/logic/analyze.js +10 -13
  48. package/project/client/logic/cache-array.js +2 -5
  49. package/project/client/logic/cache-map-double.js +2 -5
  50. package/project/client/logic/cache-map-shared.js +4 -7
  51. package/project/client/logic/cache-map.js +2 -5
  52. package/project/client/logic/cache-type-connection-closed.js +4 -7
  53. package/project/client/logic/cache-type-connection-closing.js +4 -7
  54. package/project/client/logic/cache-type-connection-connected.js +4 -7
  55. package/project/client/logic/cache-type-connection-connecting.js +4 -7
  56. package/project/client/logic/cache-type-connection-half-closed.js +4 -7
  57. package/project/client/logic/cache-type-connection-half-closing.js +4 -7
  58. package/project/client/logic/cache-type-connection-not-connected.js +4 -7
  59. package/project/client/logic/cache-type-phase-end.js +4 -7
  60. package/project/client/logic/cache-type-phase-start.js +4 -7
  61. package/project/client/logic/cache-type-receive.js +4 -7
  62. package/project/client/logic/cache-type-send.js +4 -7
  63. package/project/client/logic/cache-type-server-accepted.js +4 -7
  64. package/project/client/logic/cache-type-server-accepting.js +4 -7
  65. package/project/client/logic/cache-type-server-attached.js +4 -7
  66. package/project/client/logic/cache-type-server-detached.js +4 -9
  67. package/project/client/logic/cache-type-server-not-started.js +4 -7
  68. package/project/client/logic/cache-type-server-started.js +4 -7
  69. package/project/client/logic/cache-type-server-starting.js +4 -7
  70. package/project/client/logic/cache-type-server-stopped.js +4 -7
  71. package/project/client/logic/cache-type-server-stopping.js +4 -7
  72. package/project/client/logic/cache-type-stack.js +4 -7
  73. package/project/client/logic/cache-type-state.js +4 -7
  74. package/project/client/logic/cache-type-test-case-end.js +3 -6
  75. package/project/client/logic/cache-type-test-case-header.js +3 -6
  76. package/project/client/logic/cache-type-test-case-start.js +3 -5
  77. package/project/client/logic/cache.js +31 -34
  78. package/project/client/logic/connection-data.js +3 -5
  79. package/project/client/logic/const.js +43 -76
  80. package/project/client/logic/content-cache.js +7 -12
  81. package/project/client/logic/data-log-row.js +2 -5
  82. package/project/client/logic/filter-size.js +43 -47
  83. package/project/client/logic/seq-dia-filter.js +33 -40
  84. package/project/client/logic/shared-template-data.js +6 -10
  85. package/project/client/react-component/sequence-diagram.jsx +82 -82
  86. package/project/client/templates/components/component-seq-dia-arrow.js +3 -6
  87. package/project/client/templates/components/component-seq-dia-caption.js +3 -6
  88. package/project/client/templates/components/component-seq-dia-envelope.js +12 -16
  89. package/project/client/templates/components/component-seq-dia-event-info.js +3 -6
  90. package/project/client/templates/components/component-seq-dia-event-row.js +12 -15
  91. package/project/client/templates/components/component-seq-dia-protocol.js +11 -14
  92. package/project/client/templates/components/component-seq-dia-shared.js +4 -7
  93. package/project/client/templates/template-seq-dia-client-connected-not.js +12 -15
  94. package/project/client/templates/template-seq-dia-client-connected.js +10 -13
  95. package/project/client/templates/template-seq-dia-client-connecting.js +10 -13
  96. package/project/client/templates/template-seq-dia-client-dns-failure.js +14 -17
  97. package/project/client/templates/template-seq-dia-connection-closed.js +11 -14
  98. package/project/client/templates/template-seq-dia-connection-closing.js +12 -15
  99. package/project/client/templates/template-seq-dia-connection-half-closed.js +11 -14
  100. package/project/client/templates/template-seq-dia-connection-half-closing.js +12 -15
  101. package/project/client/templates/template-seq-dia-connection-upgraded-not.js +15 -18
  102. package/project/client/templates/template-seq-dia-connection-upgraded.js +12 -15
  103. package/project/client/templates/template-seq-dia-connection-upgrading.js +12 -15
  104. package/project/client/templates/template-seq-dia-gui.js +46 -51
  105. package/project/client/templates/template-seq-dia-msg.js +15 -18
  106. package/project/client/templates/template-seq-dia-phase-end.js +6 -9
  107. package/project/client/templates/template-seq-dia-phase-start.js +6 -9
  108. package/project/client/templates/template-seq-dia-protocol-base.js +4 -7
  109. package/project/client/templates/template-seq-dia-receive.js +14 -18
  110. package/project/client/templates/template-seq-dia-send.js +14 -18
  111. package/project/client/templates/template-seq-dia-server-accepted.js +10 -13
  112. package/project/client/templates/template-seq-dia-server-accepting.js +9 -12
  113. package/project/client/templates/template-seq-dia-server-attached.js +12 -15
  114. package/project/client/templates/template-seq-dia-server-detached.js +11 -14
  115. package/project/client/templates/template-seq-dia-server-not-started.js +12 -15
  116. package/project/client/templates/template-seq-dia-server-started.js +9 -12
  117. package/project/client/templates/template-seq-dia-server-starting.js +9 -12
  118. package/project/client/templates/template-seq-dia-server-stopped.js +9 -12
  119. package/project/client/templates/template-seq-dia-server-stopping.js +9 -12
  120. package/project/client/templates/template-seq-dia-stack.js +24 -27
  121. package/project/client/templates/template-seq-dia-state.js +24 -27
  122. package/project/client/templates/template-seq-dia-test-case-end.js +7 -10
  123. package/project/client/templates/template-seq-dia-test-case-header.js +6 -9
  124. package/project/client/templates/template-seq-dia-test-case-start.js +4 -7
  125. package/LICENSE.txt +0 -96
@@ -1,11 +1,11 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- import CacheMapDouble from './cache-map-double';
5
- import Const from './const';
4
+ import { CacheMapDouble } from './cache-map-double';
5
+ import { Const } from './const';
6
6
 
7
7
 
8
- class CacheTypeServerStopping {
8
+ export class CacheTypeServerStopping {
9
9
  constructor() {
10
10
  #BUILD_RELEASE_START
11
11
  this.elementCache = new CacheMapDouble();
@@ -59,6 +59,3 @@ class CacheTypeServerStopping {
59
59
 
60
60
  }
61
61
  }
62
-
63
-
64
- module.exports = CacheTypeServerStopping;
@@ -1,11 +1,11 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- import CacheMapDouble from './cache-map-double';
5
- import Const from './const';
4
+ import { CacheMapDouble } from './cache-map-double';
5
+ import { Const } from './const';
6
6
 
7
7
 
8
- class CacheTypeStack {
8
+ export class CacheTypeStack {
9
9
  constructor() {
10
10
  #BUILD_RELEASE_START
11
11
  this.elementCache = new CacheMapDouble();
@@ -59,6 +59,3 @@ class CacheTypeStack {
59
59
 
60
60
  }
61
61
  }
62
-
63
-
64
- module.exports = CacheTypeStack;
@@ -1,11 +1,11 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- import CacheMapDouble from './cache-map-double';
5
- import Const from './const';
4
+ import { CacheMapDouble } from './cache-map-double';
5
+ import { Const } from './const';
6
6
 
7
7
 
8
- class CacheTypeState {
8
+ export class CacheTypeState {
9
9
  constructor() {
10
10
  #BUILD_RELEASE_START
11
11
  this.elementCache = new CacheMapDouble();
@@ -48,6 +48,3 @@ class CacheTypeState {
48
48
  #BUILD_DEBUG_STOP
49
49
  }
50
50
  }
51
-
52
-
53
- module.exports = CacheTypeState;
@@ -1,10 +1,10 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- import CacheMap from './cache-map';
4
+ import { CacheMap } from './cache-map';
5
5
 
6
6
 
7
- class CacheTypeTestCaseEnd {
7
+ export class CacheTypeTestCaseEnd {
8
8
  constructor() {
9
9
  this.elementCache = new CacheMap();
10
10
  }
@@ -25,6 +25,3 @@ class CacheTypeTestCaseEnd {
25
25
 
26
26
  }
27
27
  }
28
-
29
-
30
- module.exports = CacheTypeTestCaseEnd;
@@ -1,10 +1,10 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- import CacheMap from './cache-map';
4
+ import { CacheMap } from './cache-map';
5
5
 
6
6
 
7
- class CacheTypeTestCaseHeader {
7
+ export class CacheTypeTestCaseHeader {
8
8
  constructor() {
9
9
  this.elementCache = new CacheMap();
10
10
  }
@@ -25,6 +25,3 @@ class CacheTypeTestCaseHeader {
25
25
 
26
26
  }
27
27
  }
28
-
29
-
30
- module.exports = CacheTypeTestCaseHeader;
@@ -1,10 +1,10 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- import CacheArray from './cache-array';
4
+ import { CacheArray } from './cache-array';
5
5
 
6
6
 
7
- class CacheTypeTestCaseStart {
7
+ export class CacheTypeTestCaseStart {
8
8
  constructor() {
9
9
  this.elementCache = new CacheArray();
10
10
  }
@@ -26,5 +26,3 @@ class CacheTypeTestCaseStart {
26
26
  }
27
27
  }
28
28
 
29
-
30
- module.exports = CacheTypeTestCaseStart;
@@ -1,37 +1,37 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- import CacheArray from './cache-array';
5
- import CacheMapDouble from './cache-map-double';
6
- import CacheMap from './cache-map';
7
- import CacheTypeConnectionConnecting from './cache-type-connection-connecting';
8
- import CacheTypeConnectionConnected from './cache-type-connection-connected';
9
- import CacheTypeConnectionNotConnected from './cache-type-connection-not-connected';
10
- import CacheTypeConnectionHalfClosing from './cache-type-connection-half-closing';
11
- import CacheTypeConnectionHalfClosed from './cache-type-connection-half-closed';
12
- import CacheTypeConnectionClosing from './cache-type-connection-closing';
13
- import CacheTypeConnectionClosed from './cache-type-connection-closed';
14
- import CacheTypePhaseEnd from './cache-type-phase-end';
15
- import CacheTypePhaseStart from './cache-type-phase-start';
16
- import CacheTypeReceive from './cache-type-receive';
17
- import CacheTypeSend from './cache-type-send';
18
- import CacheTypeServerStarting from './cache-type-server-starting';
19
- import CacheTypeServerStarted from './cache-type-server-started';
20
- import CacheTypeServerNotStarted from './cache-type-server-not-started';
21
- import CacheTypeServerSAttached from './cache-type-server-attached';
22
- import CacheTypeServerStopping from './cache-type-server-stopping';
23
- import CacheTypeServerStopped from './cache-type-server-stopped';
24
- import CacheTypeServerDetached from './cache-type-server-detached';
25
- import CacheTypeServerAccepting from './cache-type-server-accepting';
26
- import CacheTypeServerAccepted from './cache-type-server-accepted';
27
- import CacheTypeStack from './cache-type-stack';
28
- import CacheTypeState from './cache-type-state';
29
- import CacheTypeTestCaseHeader from './cache-type-test-case-header';
30
- import CacheTypeTestCaseStart from './cache-type-test-case-start';
31
- import CacheTypeTestCaseEnd from './cache-type-test-case-end';
4
+ import { CacheArray } from './cache-array';
5
+ import { CacheMapDouble } from './cache-map-double';
6
+ import { CacheMap } from './cache-map';
7
+ import { CacheTypeConnectionConnecting } from './cache-type-connection-connecting';
8
+ import { CacheTypeConnectionConnected } from './cache-type-connection-connected';
9
+ import { CacheTypeConnectionNotConnected } from './cache-type-connection-not-connected';
10
+ import { CacheTypeConnectionHalfClosing } from './cache-type-connection-half-closing';
11
+ import { CacheTypeConnectionHalfClosed } from './cache-type-connection-half-closed';
12
+ import { CacheTypeConnectionClosing } from './cache-type-connection-closing';
13
+ import { CacheTypeConnectionClosed } from './cache-type-connection-closed';
14
+ import { CacheTypePhaseEnd } from './cache-type-phase-end';
15
+ import { CacheTypePhaseStart } from './cache-type-phase-start';
16
+ import { CacheTypeReceive } from './cache-type-receive';
17
+ import { CacheTypeSend } from './cache-type-send';
18
+ import { CacheTypeServerStarting } from './cache-type-server-starting';
19
+ import { CacheTypeServerStarted } from './cache-type-server-started';
20
+ import { CacheTypeServerNotStarted } from './cache-type-server-not-started';
21
+ import { CacheTypeServerAttached } from './cache-type-server-attached';
22
+ import { CacheTypeServerStopping } from './cache-type-server-stopping';
23
+ import { CacheTypeServerStopped } from './cache-type-server-stopped';
24
+ import { CacheTypeServerDetached } from './cache-type-server-detached';
25
+ import { CacheTypeServerAccepting } from './cache-type-server-accepting';
26
+ import { CacheTypeServerAccepted } from './cache-type-server-accepted';
27
+ import { CacheTypeStack } from './cache-type-stack';
28
+ import { CacheTypeState } from './cache-type-state';
29
+ import { CacheTypeTestCaseHeader } from './cache-type-test-case-header';
30
+ import { CacheTypeTestCaseStart } from './cache-type-test-case-start';
31
+ import { CacheTypeTestCaseEnd } from './cache-type-test-case-end';
32
32
 
33
33
 
34
- class Cache {
34
+ export class Cache {
35
35
  static SIZE_PHASE_ID = 3;
36
36
  static SIZE_STATE_INDEX = 3;
37
37
  static SIZE_STATE_RESULT_INDEX = 4;
@@ -47,7 +47,7 @@ class Cache {
47
47
  constructor() {
48
48
  this.elementServerStartingCache = new CacheTypeServerStarting();
49
49
  this.elementServerStartedCache = new CacheTypeServerStarted();
50
- this.elementServerAttachedCache = new CacheTypeServerSAttached();
50
+ this.elementServerAttachedCache = new CacheTypeServerAttached();
51
51
  this.elementServerStoppingCache = new CacheTypeServerStopping();
52
52
  this.elementServerStoppedCache = new CacheTypeServerStopped();
53
53
  this.elementServerDetachedCache = new CacheTypeServerDetached();
@@ -197,6 +197,3 @@ class Cache {
197
197
  this.elementStateCache.clear();
198
198
  }
199
199
  }
200
-
201
-
202
- module.exports = Cache;
@@ -1,10 +1,10 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- import Const from './const';
4
+ import { Const } from './const';
5
5
 
6
6
 
7
- class ConnectionData {
7
+ export class ConnectionData {
8
8
  static NOT_CONNECTED = 0;
9
9
  static CONNECTED = 1;
10
10
  static DISCONNECTED = 2;
@@ -56,5 +56,3 @@ class ConnectionData {
56
56
  }
57
57
  }
58
58
 
59
-
60
- module.exports = ConnectionData;
@@ -1,16 +1,16 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- import LogDataAction from 'z-abs-funclayer-engine-cs/clientServer/log/log-data-action';
4
+ import * as FuncLayerEngineCs from 'z-abs-funclayer-engine-cs/client/log/log-data-action';
5
5
 
6
6
 
7
- class Const {
8
- static DATA_TEST_CASE_START = LogDataAction.LOG.length;
9
- static DATA_TEST_CASE_HEADER = LogDataAction.LOG.length + 1;
10
- static DATA_TEST_CASE_END = LogDataAction.LOG.length + 2;
11
- static DATA_PHASE_START = LogDataAction.LOG.length + 3;
12
- static DATA_PHASE_END = LogDataAction.LOG.length + 4;
13
- static DATA_STATE = LogDataAction.LOG.length + 5;
7
+ export class Const {
8
+ static DATA_TEST_CASE_START = FuncLayerEngineCs.LogDataAction.LOG.length;
9
+ static DATA_TEST_CASE_HEADER = FuncLayerEngineCs.LogDataAction.LOG.length + 1;
10
+ static DATA_TEST_CASE_END = FuncLayerEngineCs.LogDataAction.LOG.length + 2;
11
+ static DATA_PHASE_START = FuncLayerEngineCs.LogDataAction.LOG.length + 3;
12
+ static DATA_PHASE_END = FuncLayerEngineCs.LogDataAction.LOG.length + 4;
13
+ static DATA_STATE = FuncLayerEngineCs.LogDataAction.LOG.length + 5;
14
14
 
15
15
  static SIZE_PHASE_ID = 3;
16
16
  static SIZE_STATE_INDEX = 3;
@@ -129,84 +129,51 @@ class Const {
129
129
  }], [3, {
130
130
  lineEventId: Const.EVENT_TLS
131
131
  }]]);
132
- }
133
-
134
-
135
-
136
-
137
- Const.REVERS_DIRECTION_FALSE = 0;
138
- Const.REVERS_DIRECTION_TRUE = 1;
139
-
140
- Const.HIDE = 0;
141
- Const.SHOW = 1;
142
-
143
-
144
- Const.CLOSED = 0;
145
- Const.OPEN = 1;
146
-
147
- Const.TEST_CASE_Y_BIAS = 10;
148
-
149
- Const.ACTOR_X_MARGIN = 30;
150
- Const.ACTOR_X_PADDING = 100;
151
- Const.ACTOR_STATIC_ACTORS = 10;
152
-
153
- Const.ACTOR_Y_BIAS = 10;
154
-
155
-
156
- Const.ACTOR_EVENT_HEIGHT = 10;
157
- Const.ACTOR_EVENT_HALF_HEIGHT = Const.ACTOR_EVENT_HEIGHT / 2;
158
- Const.ACTOR_EVENT_Y_BIAS = Const.TEST_CASE_Y_BIAS + Const.ACTOR_Y_BIAS + Const.ACTOR_EVENT_HEIGHT;
132
+
133
+ static REVERS_DIRECTION_FALSE = 0;
134
+ static REVERS_DIRECTION_TRUE = 1;
159
135
 
160
- Const.STATE_EVENT_HEIGHT = 10;
161
- Const.STATE_EVENT_HALF_HEIGHT = Const.STATE_EVENT_HEIGHT / 2;
136
+ static HIDE = 0;
137
+ static SHOW = 1;
162
138
 
163
- Const.MESSAGE_EVENT_HEIGHT = 10;
164
- Const.MESSAGE_EVENT_HEIGHT_HALF = Const.MESSAGE_EVENT_HEIGHT / 2;
165
- Const.MESSAGE_EVENT_HEIGHT_DOUBLE = 2 * Const.MESSAGE_EVENT_HEIGHT;
166
- Const.MESSAGE_EVENT_HEIGHT_ONE_AND_HALF = Const.MESSAGE_EVENT_HEIGHT + Const.MESSAGE_EVENT_HEIGHT_HALF;
139
+ static CLOSED = 0;
140
+ static OPEN = 1;
167
141
 
142
+ static TEST_CASE_Y_BIAS = 10;
168
143
 
169
- Const.PHASE_X_BIAS = 10;
170
- Const.PHASE_HEIGHT = 5;
171
- Const.PHASE_HEIGHT_DOUBLE = 2 * Const.PHASE_HEIGHT;
144
+ static ACTOR_X_MARGIN = 30;
145
+ static ACTOR_X_PADDING = 100;
146
+ static ACTOR_STATIC_ACTORS = 10;
172
147
 
173
- Const.PHASE_Y_BIAS = 0.5;
174
- Const.PHASE_WIDTH = 40;
175
- Const.PHASE_WIDTH_DOUBLE = 2 * Const.PHASE_WIDTH;
148
+ static ACTOR_Y_BIAS = 10;
176
149
 
177
- Const.PHASE_BIAS_WIDTH = Const.PHASE_X_BIAS + Const.PHASE_WIDTH;
178
- Const.PHASE_BIAS_WIDTH_DOUBLE = 2 * Const.PHASE_BIAS_WIDTH;
150
+ static ACTOR_EVENT_HEIGHT = 10;
151
+ static ACTOR_EVENT_HALF_HEIGHT = Const.ACTOR_EVENT_HEIGHT / 2;
152
+ static ACTOR_EVENT_Y_BIAS = Const.TEST_CASE_Y_BIAS + Const.ACTOR_Y_BIAS + Const.ACTOR_EVENT_HEIGHT;
179
153
 
180
- Const.HEADER_Y_HEIGHT = 30;
154
+ static STATE_EVENT_HEIGHT = 10;
155
+ static STATE_EVENT_HALF_HEIGHT = Const.STATE_EVENT_HEIGHT / 2;
181
156
 
182
- Const.LINE_WIDTH = 2.0;
183
- Const.LINE_WIDTH_HALF = Const.LINE_WIDTH / 2;
157
+ static MESSAGE_EVENT_HEIGHT = 10;
158
+ static MESSAGE_EVENT_HEIGHT_HALF = Const.MESSAGE_EVENT_HEIGHT / 2;
159
+ static MESSAGE_EVENT_HEIGHT_DOUBLE = 2 * Const.MESSAGE_EVENT_HEIGHT;
160
+ static MESSAGE_EVENT_HEIGHT_ONE_AND_HALF = Const.MESSAGE_EVENT_HEIGHT + Const.MESSAGE_EVENT_HEIGHT_HALF;
184
161
 
185
- Const.TEXT_BIAS = 17;
162
+ static PHASE_X_BIAS = 10;
163
+ static PHASE_HEIGHT = 5;
164
+ static PHASE_HEIGHT_DOUBLE = 2 * Const.PHASE_HEIGHT;
186
165
 
187
- /*Const.phaseClasses = [
188
- 'seq_dia_phase_data',
189
- 'seq_dia_phase_pre',
190
- 'seq_dia_phase_exec',
191
- 'seq_dia_phase_post',
192
- 'seq_dia_phase_none'
193
- ];
166
+ static PHASE_Y_BIAS = 0.5;
167
+ static PHASE_WIDTH = 40;
168
+ static PHASE_WIDTH_DOUBLE = 2 * Const.PHASE_WIDTH;
194
169
 
195
- Const.phaseDarkClasses = [
196
- 'seq_dia_dark_phase_data',
197
- 'seq_dia_dark_phase_pre',
198
- 'seq_dia_dark_phase_exec',
199
- 'seq_dia_dark_phase_post',
200
- 'seq_dia_dark_phase_none'
201
- ];
170
+ static PHASE_BIAS_WIDTH = Const.PHASE_X_BIAS + Const.PHASE_WIDTH;
171
+ static PHASE_BIAS_WIDTH_DOUBLE = 2 * Const.PHASE_BIAS_WIDTH;
202
172
 
203
- Const.phaseNames = [
204
- 'Data',
205
- 'Precondition',
206
- 'Execution',
207
- 'Postcondition',
208
- 'None'
209
- ];*/
173
+ static HEADER_Y_HEIGHT = 30;
210
174
 
175
+ static LINE_WIDTH = 2.0;
176
+ static LINE_WIDTH_HALF = Const.LINE_WIDTH / 2;
211
177
 
212
- module.exports = Const;
178
+ static TEXT_BIAS = 17;
179
+ }
@@ -1,23 +1,18 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
4
 
5
- class ContentCache {
6
- constructor() {
7
- this.cache = new Map();
8
- }
5
+ export class ContentCache {
6
+ static cache = new Map();
9
7
 
10
- add(name, content) {
11
- this.cache.set(name, {
8
+ static add(name, content) {
9
+ ContentCache.cache.set(name, {
12
10
  raw: true,
13
11
  content: content
14
12
  });
15
13
  }
16
14
 
17
- clear() {
18
- this.cache.clear();
15
+ static clear() {
16
+ ContentCache.cache.clear();
19
17
  }
20
18
  }
21
-
22
-
23
- module.exports = new ContentCache();
@@ -1,8 +1,8 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
4
 
5
- class DataLogRow {
5
+ export class DataLogRow {
6
6
  static create(logRow, protocolIndex, phaseId) {
7
7
  return {
8
8
  logRow: logRow,
@@ -19,6 +19,3 @@ class DataLogRow {
19
19
  }
20
20
  }
21
21
  }
22
-
23
-
24
- module.exports = DataLogRow;
@@ -1,60 +1,58 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- import Const from './const';
4
+ import { Const } from './const';
5
5
 
6
6
 
7
- class FilterSize {
7
+ export class FilterSize {
8
8
  static MAX_COLUMNS = 20;
9
9
 
10
- constructor() {
11
- this.filterRules = new Map();
12
-
13
- this.eventMargin = 10;
14
- this.eventPadding = 80;
15
- this.eventWidth = 200;
16
- this.eventWidthHalf = this.eventWidth / 2;
17
- this.eventWidthQuarter = this.eventWidth / 4;
18
- this.eventWidthEighth = this.eventWidth / 8;
19
- this.eventWidthAndHalf = this.eventWidth + this.eventWidthHalf;
20
- this.event2Width = this.eventWidth + this.eventWidth;
21
- this.event2WidthAndHalf = this.eventWidth + this.event2Width;
22
-
23
- this.filterCss = document.createElement('style');
24
- document.head.appendChild(this.filterCss);
25
- this.styleSheet = this.filterCss.sheet;
10
+ static filterRules = new Map();
11
+ static eventMargin = 10;
12
+ static eventPadding = 80;
13
+ static eventWidth = 200;
14
+ static eventWidthHalf = FilterSize.eventWidth / 2;
15
+ static eventWidthQuarter = FilterSize.eventWidth / 4;
16
+ static eventWidthEighth = FilterSize.eventWidth / 8;
17
+ static eventWidthAndHalf = FilterSize.eventWidth + FilterSize.eventWidthHalf;
18
+ static event2Width = FilterSize.eventWidth + FilterSize.eventWidth;
19
+ static event2WidthAndHalf = FilterSize.eventWidth + FilterSize.event2Width;
20
+ static filterCss = document.createElement('style');
21
+ static styleSheet = FilterSize.filterCss.sheet;
22
+ static {
23
+ document.head.appendChild(FilterSize.filterCss);
26
24
  }
27
25
 
28
- update(eventMargin, eventPadding, eventWidth) {
29
- if(this.eventMargin !== eventMargin || this.eventPadding !== eventPadding || this.eventWidth !== eventWidth) {
30
- this.eventMargin = eventMargin;
31
- this.eventPadding = eventPadding;
32
- this.eventWidth = eventWidth;
33
- this.eventWidthHalf = this.eventWidth / 2;
34
- this.eventWidthQuarter = this.eventWidth / 4;
35
- this.eventWidthEighth = this.eventWidth / 8;
36
- this.event2Width = this.eventWidth + this.eventWidth;
37
- this.event2WidthAndHalf = this.eventWidthHalf + this.event2Width;
26
+ static update(eventMargin, eventPadding, eventWidth) {
27
+ if(FilterSize.eventMargin !== eventMargin || FilterSize.eventPadding !== eventPadding || FilterSize.eventWidth !== eventWidth) {
28
+ FilterSize.eventMargin = eventMargin;
29
+ FilterSize.eventPadding = eventPadding;
30
+ FilterSize.eventWidth = eventWidth;
31
+ FilterSize.eventWidthHalf = FilterSize.eventWidth / 2;
32
+ FilterSize.eventWidthQuarter = FilterSize.eventWidth / 4;
33
+ FilterSize.eventWidthEighth = FilterSize.eventWidth / 8;
34
+ FilterSize.event2Width = FilterSize.eventWidth + FilterSize.eventWidth;
35
+ FilterSize.event2WidthAndHalf = FilterSize.eventWidthHalf + FilterSize.event2Width;
38
36
 
39
- this._createFilter('seq_dia__event_column_left', 'div', `left:${eventMargin}px;width:${eventPadding}px`, -1);
40
- this._createFilter('seq__dia_event_actor_line', 'div', `margin:0px ${this.eventWidthHalf - 1}px;`, -1);
37
+ FilterSize._createFilter('seq_dia__event_column_left', 'div', `left:${eventMargin}px;width:${eventPadding}px`, -1);
38
+ FilterSize._createFilter('seq__dia_event_actor_line', 'div', `margin:0px ${FilterSize.eventWidthHalf - 1}px;`, -1);
41
39
  let left = eventMargin + eventPadding;
42
40
  for(let i = 0; i < FilterSize.MAX_COLUMNS; ++i) {
43
- this._createFilter(`seq_dia__event_column_middle_${i}`, 'div', `left:${left}px;width:${eventWidth}px`, -1);
44
- this._createFilter(`seq_dia__event_column_right_${i}`, 'div', `left:${left}px;width:${eventPadding}px`, -1);
41
+ FilterSize._createFilter(`seq_dia__event_column_middle_${i}`, 'div', `left:${left}px;width:${eventWidth}px`, -1);
42
+ FilterSize._createFilter(`seq_dia__event_column_right_${i}`, 'div', `left:${left}px;width:${eventPadding}px`, -1);
45
43
  left += eventWidth;
46
44
  }
47
- this.seq_dia__event_lrBorder = this._createFilter('seq_dia__event_lrBorder', 'div', `display:grid!important;width:${eventMargin + eventPadding}px`, -1);
48
- this.seq_dia__event_Width = this._createFilter('seq_dia__event_Width', 'div', `display:grid!important;width:${eventWidth}px`, -1);
45
+ FilterSize.seq_dia__event_lrBorder = FilterSize._createFilter('seq_dia__event_lrBorder', 'div', `display:grid!important;width:${eventMargin + eventPadding}px`, -1);
46
+ FilterSize.seq_dia__event_Width = FilterSize._createFilter('seq_dia__event_Width', 'div', `display:grid!important;width:${eventWidth}px`, -1);
49
47
 
50
48
  const newFilterCss = document.createElement('style');
51
- document.head.replaceChild(newFilterCss, this.filterCss);
52
- this.filterCss = newFilterCss;
53
- this.styleSheet = this.filterCss.sheet;
49
+ document.head.replaceChild(newFilterCss, FilterSize.filterCss);
50
+ FilterSize.filterCss = newFilterCss;
51
+ FilterSize.styleSheet = FilterSize.filterCss.sheet;
54
52
 
55
- const cssRules = this.styleSheet.cssRules;
56
- this.filterRules.forEach((filterRule) => {
57
- const index = this.styleSheet.insertRule(`${filterRule.type}.${filterRule.name} { ${filterRule.rule} }`, cssRules.length);
53
+ const cssRules = FilterSize.styleSheet.cssRules;
54
+ FilterSize.filterRules.forEach((filterRule) => {
55
+ const index = FilterSize.styleSheet.insertRule(`${filterRule.type}.${filterRule.name} { ${filterRule.rule} }`, cssRules.length);
58
56
  filterRule.index = index;
59
57
  });
60
58
  return true;
@@ -64,18 +62,16 @@ class FilterSize {
64
62
  }
65
63
  }
66
64
 
67
- getClassEventBorder() {
65
+ static getClassEventBorder() {
68
66
  return 'seq_dia__event_lrBorder';
69
67
  }
70
68
 
71
- getClassEventWidth() {
69
+ static getClassEventWidth() {
72
70
  return 'seq_dia__event_Width';
73
71
  }
74
72
 
75
- _createFilter(name, type, rule, index) {
76
- this.filterRules.set(name, {name: name, type: type, rule: rule, index: index});
73
+ static _createFilter(name, type, rule, index) {
74
+ FilterSize.filterRules.set(name, {name: name, type: type, rule: rule, index: index});
77
75
  return name;
78
76
  }
79
77
  }
80
-
81
- module.exports = new FilterSize();