@zenfg/inspector 0.1.0-beta.2 → 0.1.0-beta.4

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 (172) hide show
  1. package/GUIDE.md +182 -0
  2. package/README.md +60 -26
  3. package/THEMING.md +124 -0
  4. package/dist/FrameGraphInspector.d.ts +24 -8
  5. package/dist/FrameGraphInspector.d.ts.map +1 -1
  6. package/dist/FrameGraphInspector.js +151 -65
  7. package/dist/FrameGraphInspector.js.map +1 -1
  8. package/dist/capture.d.ts +5 -0
  9. package/dist/capture.d.ts.map +1 -0
  10. package/dist/capture.js +2 -0
  11. package/dist/capture.js.map +1 -0
  12. package/dist/debugCaptureModel.d.ts +28 -4
  13. package/dist/debugCaptureModel.d.ts.map +1 -1
  14. package/dist/debugCaptureModel.js +72 -16
  15. package/dist/debugCaptureModel.js.map +1 -1
  16. package/dist/index.d.ts +2 -0
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js.map +1 -1
  19. package/dist/panelAliasAnalysis.d.ts +1 -0
  20. package/dist/panelAliasAnalysis.d.ts.map +1 -1
  21. package/dist/panelAliasAnalysis.js +23 -54
  22. package/dist/panelAliasAnalysis.js.map +1 -1
  23. package/dist/panelCytoscapeGraphRenderer.d.ts +18 -3
  24. package/dist/panelCytoscapeGraphRenderer.d.ts.map +1 -1
  25. package/dist/panelCytoscapeGraphRenderer.js +183 -41
  26. package/dist/panelCytoscapeGraphRenderer.js.map +1 -1
  27. package/dist/panelDetailLayout.d.ts +27 -0
  28. package/dist/panelDetailLayout.d.ts.map +1 -0
  29. package/dist/panelDetailLayout.js +174 -0
  30. package/dist/panelDetailLayout.js.map +1 -0
  31. package/dist/panelDetailStyles.d.ts +2 -0
  32. package/dist/panelDetailStyles.d.ts.map +1 -0
  33. package/dist/panelDetailStyles.js +57 -0
  34. package/dist/panelDetailStyles.js.map +1 -0
  35. package/dist/panelDiagnosticsView.d.ts +10 -1
  36. package/dist/panelDiagnosticsView.d.ts.map +1 -1
  37. package/dist/panelDiagnosticsView.js +167 -58
  38. package/dist/panelDiagnosticsView.js.map +1 -1
  39. package/dist/panelDomHelpers.d.ts.map +1 -1
  40. package/dist/panelDomHelpers.js +6 -5
  41. package/dist/panelDomHelpers.js.map +1 -1
  42. package/dist/panelGraphLayout.d.ts +3 -2
  43. package/dist/panelGraphLayout.d.ts.map +1 -1
  44. package/dist/panelGraphLayout.js +20 -5
  45. package/dist/panelGraphLayout.js.map +1 -1
  46. package/dist/panelGraphRenderer.d.ts +10 -0
  47. package/dist/panelGraphRenderer.d.ts.map +1 -1
  48. package/dist/panelGraphRenderer.js.map +1 -1
  49. package/dist/panelGraphScene.d.ts +15 -26
  50. package/dist/panelGraphScene.d.ts.map +1 -1
  51. package/dist/panelGraphScene.js +191 -208
  52. package/dist/panelGraphScene.js.map +1 -1
  53. package/dist/panelGraphSearch.d.ts +16 -0
  54. package/dist/panelGraphSearch.d.ts.map +1 -0
  55. package/dist/panelGraphSearch.js +93 -0
  56. package/dist/panelGraphSearch.js.map +1 -0
  57. package/dist/panelGraphView.d.ts +82 -0
  58. package/dist/panelGraphView.d.ts.map +1 -1
  59. package/dist/panelGraphView.js +42 -9
  60. package/dist/panelGraphView.js.map +1 -1
  61. package/dist/panelGraphVisuals.d.ts +18 -6
  62. package/dist/panelGraphVisuals.d.ts.map +1 -1
  63. package/dist/panelGraphVisuals.js +156 -116
  64. package/dist/panelGraphVisuals.js.map +1 -1
  65. package/dist/panelInspectorView.d.ts +13 -0
  66. package/dist/panelInspectorView.d.ts.map +1 -1
  67. package/dist/panelInspectorView.js +326 -46
  68. package/dist/panelInspectorView.js.map +1 -1
  69. package/dist/panelListStyles.d.ts +3 -0
  70. package/dist/panelListStyles.d.ts.map +1 -0
  71. package/dist/panelListStyles.js +155 -0
  72. package/dist/panelListStyles.js.map +1 -0
  73. package/dist/panelMemoryStyles.d.ts +3 -0
  74. package/dist/panelMemoryStyles.d.ts.map +1 -0
  75. package/dist/panelMemoryStyles.js +42 -0
  76. package/dist/panelMemoryStyles.js.map +1 -0
  77. package/dist/panelMemoryView.d.ts +13 -1
  78. package/dist/panelMemoryView.d.ts.map +1 -1
  79. package/dist/panelMemoryView.js +161 -41
  80. package/dist/panelMemoryView.js.map +1 -1
  81. package/dist/panelPassesView.d.ts +15 -0
  82. package/dist/panelPassesView.d.ts.map +1 -1
  83. package/dist/panelPassesView.js +202 -72
  84. package/dist/panelPassesView.js.map +1 -1
  85. package/dist/panelRawView.d.ts +15 -0
  86. package/dist/panelRawView.d.ts.map +1 -0
  87. package/dist/panelRawView.js +105 -0
  88. package/dist/panelRawView.js.map +1 -0
  89. package/dist/panelResourcesView.d.ts +8 -0
  90. package/dist/panelResourcesView.d.ts.map +1 -1
  91. package/dist/panelResourcesView.js +62 -31
  92. package/dist/panelResourcesView.js.map +1 -1
  93. package/dist/panelSelection.d.ts +9 -1
  94. package/dist/panelSelection.d.ts.map +1 -1
  95. package/dist/panelSelection.js +36 -6
  96. package/dist/panelSelection.js.map +1 -1
  97. package/dist/panelTheme.d.ts +13 -0
  98. package/dist/panelTheme.d.ts.map +1 -0
  99. package/dist/panelTheme.js +104 -0
  100. package/dist/panelTheme.js.map +1 -0
  101. package/dist/panelTypes.d.ts +18 -4
  102. package/dist/panelTypes.d.ts.map +1 -1
  103. package/dist/panelTypes.js.map +1 -1
  104. package/dist/panelVisualTheme.d.ts +176 -71
  105. package/dist/panelVisualTheme.d.ts.map +1 -1
  106. package/dist/panelVisualTheme.js +34 -36
  107. package/dist/panelVisualTheme.js.map +1 -1
  108. package/dist/panelWorkbenchHelpers.d.ts +12 -1
  109. package/dist/panelWorkbenchHelpers.d.ts.map +1 -1
  110. package/dist/panelWorkbenchHelpers.js +63 -2
  111. package/dist/panelWorkbenchHelpers.js.map +1 -1
  112. package/dist/panelWorkbenchStyles.d.ts +2 -0
  113. package/dist/panelWorkbenchStyles.d.ts.map +1 -0
  114. package/dist/panelWorkbenchStyles.js +101 -0
  115. package/dist/panelWorkbenchStyles.js.map +1 -0
  116. package/dist/panelWorkbenchView.d.ts +16 -0
  117. package/dist/panelWorkbenchView.d.ts.map +1 -1
  118. package/dist/panelWorkbenchView.js +228 -50
  119. package/dist/panelWorkbenchView.js.map +1 -1
  120. package/dist/query.js.map +1 -1
  121. package/dist/styles.d.ts.map +1 -1
  122. package/dist/styles.js +161 -205
  123. package/dist/styles.js.map +1 -1
  124. package/dist/theme.d.ts +22 -0
  125. package/dist/theme.d.ts.map +1 -0
  126. package/dist/theme.js +10 -0
  127. package/dist/theme.js.map +1 -0
  128. package/dist/themeDefinitions.d.ts +251 -0
  129. package/dist/themeDefinitions.d.ts.map +1 -0
  130. package/dist/themeDefinitions.js +96 -0
  131. package/dist/themeDefinitions.js.map +1 -0
  132. package/dist/themePalette.d.ts +66 -0
  133. package/dist/themePalette.d.ts.map +1 -0
  134. package/dist/themePalette.js +37 -0
  135. package/dist/themePalette.js.map +1 -0
  136. package/dist/themes.css +165 -0
  137. package/package.json +44 -10
  138. package/src/FrameGraphInspector.ts +145 -68
  139. package/src/capture.ts +4 -0
  140. package/src/debugCaptureModel.ts +97 -21
  141. package/src/index.ts +6 -2
  142. package/src/panelAliasAnalysis.ts +24 -70
  143. package/src/panelCytoscapeGraphRenderer.ts +177 -40
  144. package/src/panelDetailLayout.ts +155 -0
  145. package/src/panelDetailStyles.ts +56 -0
  146. package/src/panelDiagnosticsView.ts +167 -86
  147. package/src/panelDomHelpers.ts +4 -5
  148. package/src/panelGraphLayout.ts +20 -5
  149. package/src/panelGraphRenderer.ts +7 -0
  150. package/src/panelGraphScene.ts +204 -292
  151. package/src/panelGraphSearch.ts +96 -0
  152. package/src/panelGraphView.ts +41 -9
  153. package/src/panelGraphVisuals.ts +152 -118
  154. package/src/panelInspectorView.ts +315 -48
  155. package/src/panelListStyles.ts +154 -0
  156. package/src/panelMemoryStyles.ts +41 -0
  157. package/src/panelMemoryView.ts +178 -53
  158. package/src/panelPassesView.ts +190 -137
  159. package/src/panelRawView.ts +99 -0
  160. package/src/panelResourcesView.ts +69 -56
  161. package/src/panelSelection.ts +39 -7
  162. package/src/panelTheme.ts +85 -0
  163. package/src/panelTypes.ts +16 -4
  164. package/src/panelVisualTheme.ts +38 -38
  165. package/src/panelWorkbenchHelpers.ts +62 -4
  166. package/src/panelWorkbenchStyles.ts +100 -0
  167. package/src/panelWorkbenchView.ts +201 -52
  168. package/src/query.ts +11 -11
  169. package/src/styles.ts +162 -205
  170. package/src/theme.ts +24 -0
  171. package/src/themeDefinitions.ts +103 -0
  172. package/src/themePalette.ts +44 -0
@@ -1,4 +1,5 @@
1
1
  import { GRAPH_VISUAL_THEME } from "./panelVisualTheme.js";
2
+ import { declarationEntrances } from "./debugCaptureModel.js";
2
3
  export { GRAPH_VISUAL_THEME } from "./panelVisualTheme.js";
3
4
  export const GRAPH_GEOMETRY = {
4
5
  fitPadding: 28,
@@ -10,64 +11,64 @@ export const GRAPH_GEOMETRY = {
10
11
  groupPadding: 32,
11
12
  elkGroupPadding: { top: 46, right: 24, bottom: 24, left: 24 },
12
13
  edgeCornerRadius: 6,
14
+ outputWidth: 208,
15
+ outputTipWidth: 24,
16
+ outputLabelWidth: 160,
13
17
  };
14
18
  const ENDPOINT_EDGE_DISTANCES = 'endpoints';
15
19
  const EDGE_SEGMENT_RADII = `${GRAPH_GEOMETRY.edgeCornerRadius}px`;
16
- const NODE_LEGEND_ENTRIES = {
17
- render: nodeLegend('render', 'Render', GRAPH_VISUAL_THEME.render.stroke),
18
- compute: nodeLegend('compute', 'Compute', GRAPH_VISUAL_THEME.compute.stroke),
19
- copy: nodeLegend('copy', 'Copy', GRAPH_VISUAL_THEME.copy.stroke),
20
- 'clear-buffer': nodeLegend('clear', 'Clear', GRAPH_VISUAL_THEME.clear.stroke),
21
- command: nodeLegend('command', 'Command', GRAPH_VISUAL_THEME.command.stroke),
22
- 'external-submission': nodeLegend('external', 'External', GRAPH_VISUAL_THEME.external.stroke),
23
- };
24
- export function createGraphLegend(scene) {
20
+ export function createGraphLegend(snapshot, theme = GRAPH_VISUAL_THEME, showResourceDeclarations = true) {
21
+ const nodeEntries = {
22
+ render: nodeLegend('render', 'Render', theme.render.stroke),
23
+ compute: nodeLegend('compute', 'Compute', theme.compute.stroke),
24
+ copy: nodeLegend('copy', 'Copy', theme.copy.stroke),
25
+ 'clear-buffer': nodeLegend('clear', 'Clear', theme.clear.stroke),
26
+ command: nodeLegend('command', 'Command', theme.command.stroke),
27
+ 'external-submission': { ...nodeLegend('external', 'External', theme.external.stroke), shape: 'cut-rectangle' },
28
+ };
25
29
  const entries = [];
26
- const passKinds = new Set(scene.nodes.flatMap((node) => node.kind === 'pass' || node.kind === 'culled-pass'
27
- ? [node.passKind]
28
- : []));
30
+ const passKinds = new Set(snapshot.nodes.map((node) => node.kind));
29
31
  for (const kind of ['render', 'compute', 'copy', 'clear-buffer', 'command', 'external-submission']) {
30
32
  if (passKinds.has(kind))
31
- entries.push(NODE_LEGEND_ENTRIES[kind]);
32
- }
33
- if (scene.nodes.some((node) => node.kind === 'group')) {
34
- entries.push({ key: 'group', label: 'Group', color: GRAPH_VISUAL_THEME.group.stroke, shape: 'group' });
33
+ entries.push(nodeEntries[kind]);
35
34
  }
36
- if (scene.nodes.some((node) => node.kind === 'resource' && node.resourceKind === 'texture')) {
37
- entries.push({ key: 'texture', label: 'Texture', color: GRAPH_VISUAL_THEME.texture.stroke, shape: 'ellipse' });
35
+ const retained = new Set(snapshot.nodes.map((node) => node.id));
36
+ const used = new Set([
37
+ ...snapshot.accessEdges.filter((access) => retained.has(access.nodeId)).map((access) => access.resource.id),
38
+ ...snapshot.roots.flatMap((root) => root.resource ? [root.resource.id] : []),
39
+ ]);
40
+ const resources = showResourceDeclarations ? snapshot.resources.filter((resource) => used.has(resource.id)) : [];
41
+ if (resources.length)
42
+ entries.push({ group: 'Resources', key: 'declaration', label: 'Declaration', color: theme.declaration.stroke, shape: 'ellipse' });
43
+ if (snapshot.roots.some((root) => root.resource))
44
+ entries.push({ group: 'Resources', key: 'output', label: 'Output', color: theme.output.stroke, shape: 'tag' });
45
+ if ([...snapshot.nodes, ...resources].some((item) => item.debugGroupId !== undefined)) {
46
+ entries.push({ group: 'Relationships', key: 'group', label: 'Group', color: theme.group.stroke, shape: 'group' });
38
47
  }
39
- if (scene.nodes.some((node) => node.kind === 'resource' && node.resourceKind === 'buffer')) {
40
- entries.push({ key: 'buffer', label: 'Buffer', color: GRAPH_VISUAL_THEME.buffer.stroke, shape: 'ellipse' });
48
+ if (snapshot.edges.some((edge) => edge.kind === 'value')
49
+ || (showResourceDeclarations && declarationEntrances(snapshot.nodes, snapshot.accessEdges, snapshot.edges).length)
50
+ || snapshot.roots.some((root) => root.resource && root.resolution && ((showResourceDeclarations && root.resolution.usesInitialContents) || root.resolution.producerNodeIds.length))) {
51
+ entries.push(edgeLegend('flow', 'Resource Flow', theme.dependency.value, 'solid'));
41
52
  }
42
- if (scene.nodes.some((node) => node.kind === 'culled-pass')) {
53
+ if (snapshot.edges.some((edge) => edge.kind === 'ordering')) {
43
54
  entries.push({
44
- key: 'culled',
45
- label: 'Culled',
46
- color: GRAPH_VISUAL_THEME.culled.stroke,
47
- shape: 'box',
48
- lineStyle: 'dashed',
49
- });
50
- }
51
- if (scene.edges.some((edge) => edge.kind === 'dependency' && edge.dependencyKind === 'value')) {
52
- entries.push(edgeLegend('value', 'Value', GRAPH_VISUAL_THEME.dependency.value, 'solid'));
53
- }
54
- if (scene.edges.some((edge) => edge.kind === 'dependency' && edge.dependencyKind === 'ordering')) {
55
- entries.push({
56
- ...edgeLegend('ordering', 'Order', GRAPH_VISUAL_THEME.dependency.ordering, 'dotted'),
55
+ ...edgeLegend('ordering', 'Order', theme.dependency.ordering, 'dotted'),
57
56
  hollowArrow: true,
58
57
  });
59
58
  }
60
- if (scene.edges.some((edge) => edge.kind === 'access' && edge.accessMode === 'read')) {
61
- entries.push(edgeLegend('read', 'Read', GRAPH_VISUAL_THEME.access.read, 'solid'));
62
- }
63
- if (scene.edges.some((edge) => edge.kind === 'access' && edge.accessMode === 'write')) {
64
- entries.push(edgeLegend('write', 'Write', GRAPH_VISUAL_THEME.access.write, 'solid'));
65
- }
66
59
  return entries;
67
60
  }
68
- export function createGraphStyles() {
69
- const theme = GRAPH_VISUAL_THEME;
61
+ export function createGraphStyles(theme = GRAPH_VISUAL_THEME) {
70
62
  return [
63
+ {
64
+ selector: 'core',
65
+ style: {
66
+ 'active-bg-color': theme.activeBackground.color,
67
+ 'active-bg-opacity': theme.activeBackground.opacity,
68
+ 'active-bg-size': theme.activeBackground.size,
69
+ // Cytoscape accepts partial core styles; its Core type marks every property required.
70
+ },
71
+ },
71
72
  {
72
73
  selector: 'node',
73
74
  style: {
@@ -76,14 +77,16 @@ export function createGraphStyles() {
76
77
  'height': 'data(height)',
77
78
  'label': 'data(displayLabel)',
78
79
  'text-wrap': 'wrap',
79
- 'text-max-width': '160px',
80
- 'font-family': 'ui-monospace, SFMono-Regular, Consolas, Liberation Mono, monospace',
81
- 'font-size': GRAPH_GEOMETRY.baseFontSize,
80
+ 'text-max-width': 'data(labelMaxWidth)',
81
+ 'font-family': theme.fontFamily,
82
+ 'font-size': (element) => element.data('labelFontSize') ?? theme.fontSize,
83
+ 'line-height': 1.2,
82
84
  'min-zoomed-font-size': GRAPH_GEOMETRY.minimumZoomedFontSize,
83
85
  'color': theme.text,
84
86
  'background-color': theme.surfaceRaised,
85
87
  'border-color': theme.group.stroke,
86
- 'border-width': 1.25,
88
+ 'border-width': theme.nodeBorderWidth,
89
+ 'border-style': 'solid',
87
90
  'text-valign': 'center',
88
91
  'text-halign': 'center',
89
92
  'overlay-opacity': 0,
@@ -100,34 +103,28 @@ export function createGraphStyles() {
100
103
  style: {
101
104
  'background-color': theme.external.fill,
102
105
  'border-color': theme.external.stroke,
103
- 'border-style': 'double',
104
- 'border-width': 3,
105
- },
106
- },
107
- {
108
- selector: 'node[kind = "culled-pass"]',
109
- style: {
110
- 'background-color': theme.culled.fill,
111
- 'border-color': theme.culled.stroke,
112
- 'color': theme.muted,
113
- 'border-style': 'dashed',
114
- 'opacity': 0.72,
106
+ 'shape': 'cut-rectangle',
107
+ 'corner-radius': '10px',
115
108
  },
116
109
  },
117
110
  {
118
- selector: 'node[kind = "resource"][resourceKind = "texture"]',
111
+ selector: 'node[kind = "resource"]',
119
112
  style: {
120
113
  'shape': 'ellipse',
121
- 'background-color': theme.texture.fill,
122
- 'border-color': theme.texture.stroke,
114
+ 'background-color': theme.declaration.fill,
115
+ 'border-color': theme.declaration.stroke,
123
116
  },
124
117
  },
125
118
  {
126
- selector: 'node[kind = "resource"][resourceKind = "buffer"]',
119
+ selector: 'node[kind = "root"]',
127
120
  style: {
128
- 'shape': 'ellipse',
129
- 'background-color': theme.buffer.fill,
130
- 'border-color': theme.buffer.stroke,
121
+ 'shape': 'polygon',
122
+ 'shape-polygon-points': `-1 -1 ${1 - 2 * GRAPH_GEOMETRY.outputTipWidth / GRAPH_GEOMETRY.outputWidth} -1 1 0 ${1 - 2 * GRAPH_GEOMETRY.outputTipWidth / GRAPH_GEOMETRY.outputWidth} 1 -1 1`,
123
+ 'background-color': theme.output.fill,
124
+ 'border-color': theme.output.stroke,
125
+ 'text-max-width': 'data(labelMaxWidth)',
126
+ // Keep a short tip and center the label in the rectangular body.
127
+ 'text-margin-x': -GRAPH_GEOMETRY.outputTipWidth / 2 * theme.fontSize / GRAPH_GEOMETRY.baseFontSize,
131
128
  },
132
129
  },
133
130
  {
@@ -141,13 +138,13 @@ export function createGraphStyles() {
141
138
  style: {
142
139
  'background-color': theme.group.fill,
143
140
  'border-color': theme.group.stroke,
144
- 'border-width': 2,
141
+ 'border-width': theme.groupBorderWidth,
145
142
  'color': theme.text,
146
143
  },
147
144
  },
148
145
  {
149
146
  selector: 'node[kind = "group"][collapsed = 0]',
150
- style: expandedGroupStyle(theme.group.fill),
147
+ style: expandedGroupStyle(theme.group.fill, theme),
151
148
  },
152
149
  {
153
150
  selector: 'node[kind = "group"][collapsed = 0][depthBand = 1]',
@@ -156,16 +153,16 @@ export function createGraphStyles() {
156
153
  {
157
154
  selector: 'edge',
158
155
  style: {
159
- 'width': 1.5,
156
+ 'width': theme.edgeWidth,
160
157
  'line-color': theme.dependency.value,
161
- 'line-opacity': 0.82,
158
+ 'line-opacity': theme.edgeOpacity,
162
159
  'target-arrow-color': theme.dependency.value,
163
160
  'target-arrow-shape': 'triangle',
164
161
  'target-arrow-fill': 'filled',
165
- 'arrow-scale': 0.8,
162
+ 'arrow-scale': theme.arrowScale,
166
163
  'curve-style': 'straight',
167
164
  'label': 'data(displayLabel)',
168
- 'font-family': 'ui-monospace, SFMono-Regular, Consolas, Liberation Mono, monospace',
165
+ 'font-family': theme.fontFamily,
169
166
  'font-size': 10,
170
167
  'min-zoomed-font-size': GRAPH_GEOMETRY.minimumZoomedFontSize,
171
168
  'color': theme.text,
@@ -178,33 +175,15 @@ export function createGraphStyles() {
178
175
  },
179
176
  },
180
177
  {
181
- selector: 'edge[dependencyKind = "ordering"]',
178
+ selector: 'edge[kind = "ordering"]',
182
179
  style: {
183
180
  'line-color': theme.dependency.ordering,
184
181
  'target-arrow-color': theme.dependency.ordering,
185
182
  'line-style': 'dotted',
186
183
  'target-arrow-fill': 'hollow',
187
- 'line-opacity': 0.72,
188
- },
189
- },
190
- {
191
- selector: 'edge[accessMode = "read"]',
192
- style: {
193
- 'line-color': theme.access.read,
194
- 'target-arrow-color': theme.access.read,
195
- },
196
- },
197
- {
198
- selector: 'edge[accessMode = "write"]',
199
- style: {
200
- 'line-color': theme.access.write,
201
- 'target-arrow-color': theme.access.write,
184
+ 'line-opacity': theme.orderingOpacity,
202
185
  },
203
186
  },
204
- {
205
- selector: 'edge[dashed = 1]',
206
- style: { 'line-style': 'dashed', 'line-opacity': 0.46, 'opacity': 0.58 },
207
- },
208
187
  {
209
188
  selector: 'edge.elk-route',
210
189
  style: {
@@ -226,7 +205,7 @@ export function createGraphStyles() {
226
205
  selector: 'node.semantic-hover',
227
206
  style: {
228
207
  'border-color': theme.hover,
229
- 'border-width': 2,
208
+ 'border-width': theme.hoverWidth,
230
209
  'z-index': 15,
231
210
  },
232
211
  },
@@ -236,7 +215,7 @@ export function createGraphStyles() {
236
215
  'line-color': theme.hover,
237
216
  'target-arrow-color': theme.hover,
238
217
  'line-opacity': 1,
239
- 'width': 2.5,
218
+ 'width': theme.hoverWidth,
240
219
  'z-index': 15,
241
220
  },
242
221
  },
@@ -244,10 +223,7 @@ export function createGraphStyles() {
244
223
  selector: 'node.semantic-selected',
245
224
  style: {
246
225
  'border-color': theme.selected,
247
- 'border-width': 3,
248
- 'underlay-color': theme.selected,
249
- 'underlay-padding': 5,
250
- 'underlay-opacity': 0.18,
226
+ 'border-width': theme.selectedWidth,
251
227
  'opacity': 1,
252
228
  'z-index': 20,
253
229
  },
@@ -258,47 +234,110 @@ export function createGraphStyles() {
258
234
  'line-color': theme.selected,
259
235
  'target-arrow-color': theme.selected,
260
236
  'line-opacity': 1,
261
- 'width': 3,
237
+ 'width': theme.selectedWidth,
262
238
  'z-index': 20,
263
239
  },
264
240
  },
265
241
  ];
266
242
  }
267
- export function nodeDimensions(node) {
243
+ function baseNodeDimensions(node) {
268
244
  switch (node.kind) {
269
245
  case 'pass':
270
246
  return { width: 184, height: node.label.includes('\n') ? 62 : 48 };
271
- case 'culled-pass':
272
- return { width: 184, height: 64 };
247
+ case 'root':
248
+ return { width: GRAPH_GEOMETRY.outputWidth, height: Math.max(58, node.label.split('\n').length * 17 + 24) };
273
249
  case 'resource':
274
- return { width: 166, height: node.label.includes('\n') ? 58 : 46 };
250
+ return { width: 184, height: Math.max(58, node.label.split('\n').length * 17 + 24) };
275
251
  case 'group':
276
- return node.collapsed ? { width: 224, height: 68 } : { width: 120, height: 80 };
252
+ return node.collapsed ? { width: 240, height: 80 } : { width: 120, height: 80 };
277
253
  }
278
254
  }
255
+ export function nodeDimensions(node, theme = GRAPH_VISUAL_THEME) {
256
+ const base = baseNodeDimensions(node);
257
+ const scale = theme.fontSize / GRAPH_GEOMETRY.baseFontSize;
258
+ return { width: base.width * scale, height: base.height * scale };
259
+ }
260
+ /** Enlarge short labels within the existing box; retain the theme size for dense text. */
261
+ export function graphLabelFontSize(label, width, height, theme) {
262
+ const context = graphTextContext();
263
+ if (context)
264
+ context.font = theme.fontSize + 'px ' + theme.fontFamily;
265
+ const lines = label.split('\n');
266
+ const widest = Math.max(1, ...lines.map(line => context?.measureText(line).width ?? [...line].length * theme.fontSize * .62));
267
+ const widthScale = width / widest;
268
+ const heightScale = height / (lines.length * theme.fontSize * 1.2);
269
+ return Math.max(theme.fontSize, Math.floor(theme.fontSize * Math.min(1.25, widthScale, heightScale) * 4) / 4);
270
+ }
271
+ /** Wrap only the group name (up to two lines); keep the node-count row distinct. */
272
+ export function fitCollapsedGroupLabel(label, width, theme) {
273
+ const [name = '', ...summary] = label.split('\n');
274
+ const context = graphTextContext();
275
+ if (context)
276
+ context.font = theme.fontSize + 'px ' + theme.fontFamily;
277
+ const measure = (text) => context?.measureText(text).width ?? [...text].length * theme.fontSize * .62;
278
+ const chars = [...name];
279
+ let split = 0;
280
+ while (split < chars.length && measure(chars.slice(0, split + 1).join('')) <= width)
281
+ split++;
282
+ if (split === chars.length)
283
+ return fitGraphLabel(label, width, theme);
284
+ // Prefer a word/path boundary without losing characters, including Unicode.
285
+ const prefix = chars.slice(0, split).join('');
286
+ const boundary = Math.max(prefix.lastIndexOf(' '), prefix.lastIndexOf('.'), prefix.lastIndexOf('/'));
287
+ if (boundary > prefix.length / 2)
288
+ split = [...prefix.slice(0, boundary + 1)].length;
289
+ return fitGraphLabel([
290
+ chars.slice(0, split).join('').trimEnd(),
291
+ chars.slice(split).join('').trimStart(),
292
+ ...summary,
293
+ ].join('\n'), width, theme);
294
+ }
295
+ /** Fit the already semantic label to its available width after font changes. */
296
+ export function fitGraphLabel(label, width, theme) {
297
+ const context = graphTextContext();
298
+ if (context)
299
+ context.font = theme.fontSize + 'px ' + theme.fontFamily;
300
+ const measure = (text) => context?.measureText(text).width ?? [...text].length * theme.fontSize * .62;
301
+ return label.split('\n').map(line => {
302
+ if (measure(line) <= width)
303
+ return line;
304
+ const chars = [...line];
305
+ while (chars.length && measure(chars.join('') + '…') > width)
306
+ chars.pop();
307
+ return chars.join('') + '…';
308
+ }).join('\n');
309
+ }
310
+ let textContext;
311
+ function graphTextContext() {
312
+ if (typeof document === 'undefined')
313
+ return null;
314
+ if (textContext === undefined)
315
+ textContext = document.createElement('canvas').getContext('2d');
316
+ return textContext;
317
+ }
279
318
  export function graphLayoutGeometryKey(scene) {
280
319
  return JSON.stringify({
281
320
  topology: scene.topologyKey,
282
321
  dimensions: scene.nodes.map((node) => {
283
322
  const dimensions = nodeDimensions(node);
284
- return [node.id, dimensions.width, dimensions.height];
323
+ return [node.id, dimensions.width, dimensions.height, node.kind === 'pass' && node.passKind === 'external-submission'];
285
324
  }),
286
325
  });
287
326
  }
288
- export function graphEdgeDisplayLabel(edge) {
289
- return edge.kind === 'access' ? '' : edge.label ?? '';
327
+ export function graphEdgeDisplayLabel(_edge) {
328
+ return '';
290
329
  }
291
330
  export function expandedGroupLabelMaxWidth(outerWidth) {
292
331
  return Math.max(80, Math.floor(outerWidth - GRAPH_GEOMETRY.groupTitleInset * 2));
293
332
  }
294
- export function isOverviewGraphScale(zoom) {
295
- return GRAPH_GEOMETRY.baseFontSize * zoom < GRAPH_GEOMETRY.overviewFontThreshold;
333
+ export function isOverviewGraphScale(zoom, theme = GRAPH_VISUAL_THEME) {
334
+ return theme.fontSize * zoom < GRAPH_GEOMETRY.overviewFontThreshold;
296
335
  }
297
336
  function nodeLegend(key, label, color) {
298
- return { key, label, color, shape: 'box' };
337
+ return { group: 'Execution', key, label, color, shape: 'box' };
299
338
  }
300
339
  function edgeLegend(key, label, color, lineStyle) {
301
- return { key, label, color, shape: 'line', lineStyle };
340
+ return { group: 'Relationships', key, label, color, shape: 'line', lineStyle };
302
341
  }
303
342
  function passStyle(kind, colors) {
304
343
  return {
@@ -306,15 +345,16 @@ function passStyle(kind, colors) {
306
345
  style: { 'background-color': colors.fill, 'border-color': colors.stroke },
307
346
  };
308
347
  }
309
- function expandedGroupStyle(backgroundColor) {
348
+ function expandedGroupStyle(backgroundColor, theme) {
310
349
  const geometry = GRAPH_GEOMETRY;
311
350
  return {
312
351
  'background-color': backgroundColor,
313
- 'background-opacity': 0.34,
314
- 'border-color': GRAPH_VISUAL_THEME.group.stroke,
315
- 'border-width': 1.5,
352
+ 'background-opacity': theme.groupOpacity,
353
+ 'border-color': theme.group.stroke,
354
+ 'border-width': theme.groupBorderWidth,
316
355
  'padding': `${geometry.groupPadding}px`,
317
- 'compound-sizing-wrt-labels': 'include',
356
+ 'compound-sizing-wrt-labels': 'exclude',
357
+ 'text-wrap': 'ellipsis',
318
358
  'min-width': '120px',
319
359
  'min-height': '80px',
320
360
  'text-valign': 'top-inside',
@@ -323,7 +363,7 @@ function expandedGroupStyle(backgroundColor) {
323
363
  'text-margin-x': geometry.groupTitleInset - geometry.groupPadding * 2,
324
364
  'text-margin-y': geometry.groupTitleInset - geometry.groupPadding * 2,
325
365
  'line-height': geometry.groupTitleLineHeight,
326
- 'color': GRAPH_VISUAL_THEME.text,
366
+ 'color': theme.text,
327
367
  'font-weight': 600,
328
368
  };
329
369
  }
@@ -1 +1 @@
1
- {"version":3,"file":"panelGraphVisuals.js","sourceRoot":"","sources":["../src/panelGraphVisuals.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG3D,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,UAAU,EAAE,EAAE;IACd,YAAY,EAAE,EAAE;IAChB,qBAAqB,EAAE,CAAC;IACxB,qBAAqB,EAAE,CAAC;IACxB,eAAe,EAAE,CAAC;IAClB,oBAAoB,EAAE,GAAG;IACzB,YAAY,EAAE,EAAE;IAChB,eAAe,EAAE,EAAE,GAAG,EAAE,EAAE,E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AAM,CAAC,IAAI,EAAE,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE;KAC5E,CAAC;AACN,CAAC;AAED,SAAS,kBAAkB,CAAC,eAAuB;IAC/C,MAAM,QAAQ,GAAG,cAAc,CAAC;IAChC,OAAO;QACH,kBAAkB,EAAE,eAAe;QACnC,oBAAoB,EAAE,IAAI;QAC1B,cAAc,EAAE,kBAAkB,CAAC,KAAK,CAAC,MAAM;QAC/C,cAAc,EAAE,GAAG;QACnB,SAAS,EAAE,GAAG,QAAQ,CAAC,YAAY,IAAI;QACvC,4BAA4B,EAAE,SAAS;QACvC,WAAW,EAAE,OAAO;QACpB,YAAY,EAAE,MAAM;QACpB,aAAa,EAAE,YAAY;QAC3B,aAAa,EAAE,aAAa;QAC5B,oBAAoB,EAAE,MAAM;QAC5B,eAAe,EAAE,QAAQ,CAAC,eAAe,GAAG,QAAQ,CAAC,YAAY,GAAG,CAAC;QACrE,eAAe,EAAE,QAAQ,CAAC,eAAe,GAAG,QAAQ,CAAC,YAAY,GAAG,CAAC;QACrE,aAAa,EAAE,QAAQ,CAAC,oBAAoB;QAC5C,OAAO,EAAE,kBAAkB,CAAC,IAAI;QAChC,aAAa,EAAE,GAAG;KACrB,CAAC;AACN,CAAC","sourcesContent":["import type cytoscape from 'cytoscape';\n\nimport type { GraphScene, GraphSceneEdge, GraphSceneNode } from './panelGraphScene.ts';\nimport { GRAPH_VISUAL_THEME } from './panelVisualTheme.ts';\n\nexport { GRAPH_VISUAL_THEME } from './panelVisualTheme.ts';\n\n\nexport const GRAPH_GEOMETRY = {\n fitPadding: 28,\n baseFontSize: 13,\n overviewFontThreshold: 9,\n minimumZoomedFontSize: 5,\n groupTitleInset: 8,\n groupTitleLineHeight: 1.2,\n groupPadding: 32,\n elkGroupPadding: { top: 46, right: 24, bottom: 24, left: 24 },\n edgeCornerRadius: 6,\n} as const;\n\nconst ENDPOINT_EDGE_DISTANCES = 'endpoints' as unknown as cytoscape.Css.Edge['edge-distances'];\nconst EDGE_SEGMENT_RADII = `${GRAPH_GEOMETRY.edgeCornerRadius}px` as unknown as cytoscape.Css.Edge['segment-radii'];\n\nexport type GraphLegendEntry = {\n readonly key: string;\n readonly label: string;\n readonly color: string;\n readonly shape: 'box' | 'ellipse' | 'group' | 'line';\n readonly lineStyle?: 'solid' | 'dotted' | 'dashed';\n readonly hollowArrow?: boolean;\n};\n\nconst NODE_LEGEND_ENTRIES = {\n render: nodeLegend('render', 'Render', GRAPH_VISUAL_THEME.render.stroke),\n compute: nodeLegend('compute', 'Compute', GRAPH_VISUAL_THEME.compute.stroke),\n copy: nodeLegend('copy', 'Copy', GRAPH_VISUAL_THEME.copy.stroke),\n 'clear-buffer': nodeLegend('clear', 'Clear', GRAPH_VISUAL_THEME.clear.stroke),\n command: nodeLegend('command', 'Command', GRAPH_VISUAL_THEME.command.stroke),\n 'external-submission': nodeLegend('external', 'External', GRAPH_VISUAL_THEME.external.stroke),\n} as const;\n\nexport function createGraphLegend(scene: GraphScene): readonly GraphLegendEntry[] {\n const entries: GraphLegendEntry[] = [];\n const passKinds = new Set(scene.nodes.flatMap((node) => node.kind === 'pass' || node.kind === 'culled-pass'\n ? [node.passKind]\n : []));\n for (const kind of ['render', 'compute', 'copy', 'clear-buffer', 'command', 'external-submission'] as const) {\n if (passKinds.has(kind)) entries.push(NODE_LEGEND_ENTRIES[kind]);\n }\n if (scene.nodes.some((node) => node.kind === 'group')) {\n entries.push({ key: 'group', label: 'Group', color: GRAPH_VISUAL_THEME.group.stroke, shape: 'group' });\n }\n if (scene.nodes.some((node) => node.kind === 'resource' && node.resourceKind === 'texture')) {\n entries.push({ key: 'texture', label: 'Texture', color: GRAPH_VISUAL_THEME.texture.stroke, shape: 'ellipse' });\n }\n if (scene.nodes.some((node) => node.kind === 'resource' && node.resourceKind === 'buffer')) {\n entries.push({ key: 'buffer', label: 'Buffer', color: GRAPH_VISUAL_THEME.buffer.stroke, shape: 'ellipse' });\n }\n if (scene.nodes.some((node) => node.kind === 'culled-pass')) {\n entries.push({\n key: 'culled',\n label: 'Culled',\n color: GRAPH_VISUAL_THEME.culled.stroke,\n shape: 'box',\n lineStyle: 'dashed',\n });\n }\n if (scene.edges.some((edge) => edge.kind === 'dependency' && edge.dependencyKind === 'value')) {\n entries.push(edgeLegend('value', 'Value', GRAPH_VISUAL_THEME.dependency.value, 'solid'));\n }\n if (scene.edges.some((edge) => edge.kind === 'dependency' && edge.dependencyKind === 'ordering')) {\n entries.push({\n ...edgeLegend('ordering', 'Order', GRAPH_VISUAL_THEME.dependency.ordering, 'dotted'),\n hollowArrow: true,\n });\n }\n if (scene.edges.some((edge) => edge.kind === 'access' && edge.accessMode === 'read')) {\n entries.push(edgeLegend('read', 'Read', GRAPH_VISUAL_THEME.access.read, 'solid'));\n }\n if (scene.edges.some((edge) => edge.kind === 'access' && edge.accessMode === 'write')) {\n entries.push(edgeLegend('write', 'Write', GRAPH_VISUAL_THEME.access.write, 'solid'));\n }\n return entries;\n}\n\nexport function createGraphStyles(): cytoscape.StylesheetJson {\n const theme = GRAPH_VISUAL_THEME;\n return [\n {\n selector: 'node',\n style: {\n 'shape': 'round-rectangle',\n 'width': 'data(width)',\n 'height': 'data(height)',\n 'label': 'data(displayLabel)',\n 'text-wrap': 'wrap',\n 'text-max-width': '160px',\n 'font-family': 'ui-monospace, SFMono-Regular, Consolas, Liberation Mono, monospace',\n 'font-size': GRAPH_GEOMETRY.baseFontSize,\n 'min-zoomed-font-size': GRAPH_GEOMETRY.minimumZoomedFontSize,\n 'color': theme.text,\n 'background-color': theme.surfaceRaised,\n 'border-color': theme.group.stroke,\n 'border-width': 1.25,\n 'text-valign': 'center',\n 'text-halign': 'center',\n 'overlay-opacity': 0,\n 'underlay-opacity': 0,\n },\n },\n passStyle('render', theme.render),\n passStyle('compute', theme.compute),\n passStyle('copy', theme.copy),\n passStyle('clear-buffer', theme.clear),\n passStyle('command', theme.command),\n {\n selector: 'node[passKind = \"external-submission\"]',\n style: {\n 'background-color': theme.external.fill,\n 'border-color': theme.external.stroke,\n 'border-style': 'double',\n 'border-width': 3,\n },\n },\n {\n selector: 'node[kind = \"culled-pass\"]',\n style: {\n 'background-color': theme.culled.fill,\n 'border-color': theme.culled.stroke,\n 'color': theme.muted,\n 'border-style': 'dashed',\n 'opacity': 0.72,\n },\n },\n {\n selector: 'node[kind = \"resource\"][resourceKind = \"texture\"]',\n style: {\n 'shape': 'ellipse',\n 'background-color': theme.texture.fill,\n 'border-color': theme.texture.stroke,\n },\n },\n {\n selector: 'node[kind = \"resource\"][resourceKind = \"buffer\"]',\n style: {\n 'shape': 'ellipse',\n 'background-color': theme.buffer.fill,\n 'border-color': theme.buffer.stroke,\n },\n },\n {\n selector: 'node[kind = \"group\"]',\n style: {\n 'text-max-width': (element: cytoscape.SingularElementArgument) => `${element.data('labelMaxWidth') as number}px`,\n },\n },\n {\n selector: 'node[kind = \"group\"][collapsed = 1]',\n style: {\n 'background-color': theme.group.fill,\n 'border-color': theme.group.stroke,\n 'border-width': 2,\n 'color': theme.text,\n },\n },\n {\n selector: 'node[kind = \"group\"][collapsed = 0]',\n style: expandedGroupStyle(theme.group.fill),\n },\n {\n selector: 'node[kind = \"group\"][collapsed = 0][depthBand = 1]',\n style: { 'background-color': theme.group.alternateFill },\n },\n {\n selector: 'edge',\n style: {\n 'width': 1.5,\n 'line-color': theme.dependency.value,\n 'line-opacity': 0.82,\n 'target-arrow-color': theme.dependency.value,\n 'target-arrow-shape': 'triangle',\n 'target-arrow-fill': 'filled',\n 'arrow-scale': 0.8,\n 'curve-style': 'straight',\n 'label': 'data(displayLabel)',\n 'font-family': 'ui-monospace, SFMono-Regular, Consolas, Liberation Mono, monospace',\r\n 'font-size': 10,\n 'min-zoomed-font-size': GRAPH_GEOMETRY.minimumZoomedFontSize,\n 'color': theme.text,\n 'text-background-color': theme.canvas,\n 'text-background-opacity': 0.82,\n 'text-background-padding': '2px',\n 'text-rotation': 'autorotate',\n 'overlay-opacity': 0,\n 'underlay-opacity': 0,\n },\n },\n {\n selector: 'edge[dependencyKind = \"ordering\"]',\n style: {\n 'line-color': theme.dependency.ordering,\n 'target-arrow-color': theme.dependency.ordering,\n 'line-style': 'dotted',\n 'target-arrow-fill': 'hollow',\n 'line-opacity': 0.72,\n },\n },\n {\n selector: 'edge[accessMode = \"read\"]',\n style: {\n 'line-color': theme.access.read,\n 'target-arrow-color': theme.access.read,\n },\n },\n {\n selector: 'edge[accessMode = \"write\"]',\n style: {\n 'line-color': theme.access.write,\n 'target-arrow-color': theme.access.write,\n },\n },\n {\n selector: 'edge[dashed = 1]',\n style: { 'line-style': 'dashed', 'line-opacity': 0.46, 'opacity': 0.58 },\n },\n {\n selector: 'edge.elk-route',\n style: {\n 'source-endpoint': 'data(sourceEndpoint)',\n 'target-endpoint': 'data(targetEndpoint)',\n 'edge-distances': ENDPOINT_EDGE_DISTANCES,\n },\n },\n {\n selector: 'edge.elk-segments',\n style: {\n 'curve-style': 'round-segments',\n 'segment-distances': 'data(segmentDistances)',\n 'segment-weights': 'data(segmentWeights)',\n 'segment-radii': EDGE_SEGMENT_RADII,\n },\n },\n {\n selector: 'node.semantic-hover',\n style: {\n 'border-color': theme.hover,\n 'border-width': 2,\n 'z-index': 15,\n },\n },\n {\n selector: 'edge.semantic-hover',\n style: {\n 'line-color': theme.hover,\n 'target-arrow-color': theme.hover,\n 'line-opacity': 1,\n 'width': 2.5,\n 'z-index': 15,\n },\n },\n {\n selector: 'node.semantic-selected',\n style: {\n 'border-color': theme.selected,\n 'border-width': 3,\n 'underlay-color': theme.selected,\n 'underlay-padding': 5,\n 'underlay-opacity': 0.18,\n 'opacity': 1,\n 'z-index': 20,\n },\n },\n {\n selector: 'edge.semantic-selected',\n style: {\n 'line-color': theme.selected,\n 'target-arrow-color': theme.selected,\n 'line-opacity': 1,\n 'width': 3,\n 'z-index': 20,\n },\n },\n ];\n}\n\nexport function nodeDimensions(node: GraphSceneNode): { readonly width: number; readonly height: number } {\n switch (node.kind) {\n case 'pass':\n return { width: 184, height: node.label.includes('\\n') ? 62 : 48 };\n case 'culled-pass':\n return { width: 184, height: 64 };\n case 'resource':\n return { width: 166, height: node.label.includes('\\n') ? 58 : 46 };\n case 'group':\n return node.collapsed ? { width: 224, height: 68 } : { width: 120, height: 80 };\n }\n}\n\nexport function graphLayoutGeometryKey(scene: GraphScene): string {\n return JSON.stringify({\n topology: scene.topologyKey,\n dimensions: scene.nodes.map((node) => {\n const dimensions = nodeDimensions(node);\n return [node.id, dimensions.width, dimensions.height];\n }),\n });\n}\n\nexport function graphEdgeDisplayLabel(edge: GraphSceneEdge): string {\n return edge.kind === 'access' ? '' : edge.label ?? '';\n}\n\nexport function expandedGroupLabelMaxWidth(outerWidth: number): number {\n return Math.max(80, Math.floor(outerWidth - GRAPH_GEOMETRY.groupTitleInset * 2));\n}\n\nexport function isOverviewGraphScale(zoom: number): boolean {\n return GRAPH_GEOMETRY.baseFontSize * zoom < GRAPH_GEOMETRY.overviewFontThreshold;\n}\n\nfunction nodeLegend(key: string, label: string, color: string): GraphLegendEntry {\n return { key, label, color, shape: 'box' };\n}\n\nfunction edgeLegend(\n key: string,\n label: string,\n color: string,\n lineStyle: NonNullable<GraphLegendEntry['lineStyle']>,\n): GraphLegendEntry {\n return { key, label, color, shape: 'line', lineStyle };\n}\n\nfunction passStyle(\n kind: string,\n colors: { readonly stroke: string; readonly fill: string },\n): cytoscape.StylesheetStyle {\n return {\n selector: `node[passKind = \"${kind}\"]`,\n style: { 'background-color': colors.fill, 'border-color': colors.stroke },\n };\n}\n\nfunction expandedGroupStyle(backgroundColor: string): cytoscape.Css.Node {\n const geometry = GRAPH_GEOMETRY;\n return {\n 'background-color': backgroundColor,\n 'background-opacity': 0.34,\n 'border-color': GRAPH_VISUAL_THEME.group.stroke,\n 'border-width': 1.5,\n 'padding': `${geometry.groupPadding}px`,\n 'compound-sizing-wrt-labels': 'include',\n 'min-width': '120px',\n 'min-height': '80px',\n 'text-valign': 'top-inside',\n 'text-halign': 'left-inside',\n 'text-justification': 'left',\n 'text-margin-x': geometry.groupTitleInset - geometry.groupPadding * 2,\n 'text-margin-y': geometry.groupTitleInset - geometry.groupPadding * 2,\n 'line-height': geometry.groupTitleLineHeight,\n 'color': GRAPH_VISUAL_THEME.text,\n 'font-weight': 600,\n };\n}\n"]}
1
+ {"version":3,"file":"panelGraphVisuals.js","sourceRoot":"","sources":["../src/panelGraphVisuals.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAyB,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAiC,MAAM,wBAAwB,CAAC;AAE7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG3D,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,UAAU,EAAE,EAAE;IACd,YAAY,EAAE,EAAE;IAChB,qBAAqB,EAAE,CAAC;IACxB,qBAAqB,EAAE,CAAC;IACxB,eAAe,EAAE,CAAC;IAClB,oBAAoB,EAAE,GAAG;IACzB,YAAY,EAAE,EAAE;IAChB,eAAe,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IAC7D,gBAAgB,EAAE,CAAC;IACnB,WAAW,EAAE,GAAG;IAChB,cAAc,EAAE,EAAE;IAClB,gBAAgB,EAAE,GAAG;CACf,CAAC;AAEX,MAAM,uBAAuB,GAAG,WAA8D,CAAC;AAC/F,MAAM,kBAAkB,GAAG,GAAG,cAAc,CAAC,gBAAgB,IAAsD,CAAC;AAYpH,MAAM,UAAU,iBAAiB,CAAC,QAAkC,EAAE,QAA0B,kBAAkB,EAAE,wBAAwB,GAAG,IAAI;IAC/I,MAAM,WAAW,GAAG;QAChB,MAAM,EAAE,UAAU,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;QAC3D,OAAO,EAAE,UAAU,CAAC,SAAS,EAAE,SAAS,EAAE,KA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AK,EAAE,eAAe,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AACnF,CAAC;AAED,SAAS,SAAS,CACd,IAAY,EACZ,MAA0D;IAE1D,OAAO;QACH,QAAQ,EAAE,oBAAoB,IAAI,IAAI;QACtC,KAAK,EAAE,EAAE,kBAAkB,EAAE,MAAM,CAAC,IAAI,EAAE,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE;KAC5E,CAAC;AACN,CAAC;AAED,SAAS,kBAAkB,CAAC,eAAuB,EAAE,KAAuB;IACxE,MAAM,QAAQ,GAAG,cAAc,CAAC;IAChC,OAAO;QACH,kBAAkB,EAAE,eAAe;QACnC,oBAAoB,EAAE,KAAK,CAAC,YAAY;QACxC,cAAc,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM;QAClC,cAAc,EAAE,KAAK,CAAC,gBAAgB;QACtC,SAAS,EAAE,GAAG,QAAQ,CAAC,YAAY,IAAI;QACvC,4BAA4B,EAAE,SAAS;QACvC,WAAW,EAAE,UAAU;QACvB,WAAW,EAAE,OAAO;QACpB,YAAY,EAAE,MAAM;QACpB,aAAa,EAAE,YAAY;QAC3B,aAAa,EAAE,aAAa;QAC5B,oBAAoB,EAAE,MAAM;QAC5B,eAAe,EAAE,QAAQ,CAAC,eAAe,GAAG,QAAQ,CAAC,YAAY,GAAG,CAAC;QACrE,eAAe,EAAE,QAAQ,CAAC,eAAe,GAAG,QAAQ,CAAC,YAAY,GAAG,CAAC;QACrE,aAAa,EAAE,QAAQ,CAAC,oBAAoB;QAC5C,OAAO,EAAE,KAAK,CAAC,IAAI;QACnB,aAAa,EAAE,GAAG;KACrB,CAAC;AACN,CAAC","sourcesContent":["import type cytoscape from 'cytoscape';\n\nimport type { GraphScene, GraphSceneEdge, GraphSceneNode } from './panelGraphScene.ts';\nimport { GRAPH_VISUAL_THEME, type GraphVisualTheme } from './panelVisualTheme.ts';\nimport { declarationEntrances, type FrameGraphDebugViewModel } from './debugCaptureModel.ts';\n\nexport { GRAPH_VISUAL_THEME } from './panelVisualTheme.ts';\n\n\nexport const GRAPH_GEOMETRY = {\n fitPadding: 28,\n baseFontSize: 13,\n overviewFontThreshold: 9,\n minimumZoomedFontSize: 5,\n groupTitleInset: 8,\n groupTitleLineHeight: 1.2,\n groupPadding: 32,\n elkGroupPadding: { top: 46, right: 24, bottom: 24, left: 24 },\n edgeCornerRadius: 6,\n outputWidth: 208,\n outputTipWidth: 24,\n outputLabelWidth: 160,\n} as const;\n\nconst ENDPOINT_EDGE_DISTANCES = 'endpoints' as unknown as cytoscape.Css.Edge['edge-distances'];\nconst EDGE_SEGMENT_RADII = `${GRAPH_GEOMETRY.edgeCornerRadius}px` as unknown as cytoscape.Css.Edge['segment-radii'];\n\nexport type GraphLegendEntry = {\n readonly group: 'Execution' | 'Resources' | 'Relationships';\n readonly key: string;\n readonly label: string;\n readonly color: string;\n readonly shape: 'box' | 'cut-rectangle' | 'tag' | 'ellipse' | 'group' | 'line';\n readonly lineStyle?: 'solid' | 'dotted' | 'dashed';\n readonly hollowArrow?: boolean;\n};\n\nexport function createGraphLegend(snapshot: FrameGraphDebugViewModel, theme: GraphVisualTheme = GRAPH_VISUAL_THEME, showResourceDeclarations = true): readonly GraphLegendEntry[] {\n const nodeEntries = {\n render: nodeLegend('render', 'Render', theme.render.stroke),\n compute: nodeLegend('compute', 'Compute', theme.compute.stroke),\n copy: nodeLegend('copy', 'Copy', theme.copy.stroke),\n 'clear-buffer': nodeLegend('clear', 'Clear', theme.clear.stroke),\n command: nodeLegend('command', 'Command', theme.command.stroke),\n 'external-submission': { ...nodeLegend('external', 'External', theme.external.stroke), shape: 'cut-rectangle' as const },\n } as const;\n\n const entries: GraphLegendEntry[] = [];\n const passKinds = new Set(snapshot.nodes.map((node) => node.kind));\n for (const kind of ['render', 'compute', 'copy', 'clear-buffer', 'command', 'external-submission'] as const) {\n if (passKinds.has(kind)) entries.push(nodeEntries[kind]);\n }\n const retained = new Set(snapshot.nodes.map((node) => node.id));\n const used = new Set([\n ...snapshot.accessEdges.filter((access) => retained.has(access.nodeId)).map((access) => access.resource.id),\n ...snapshot.roots.flatMap((root) => root.resource ? [root.resource.id] : []),\n ]);\n const resources = showResourceDeclarations ? snapshot.resources.filter((resource) => used.has(resource.id)) : [];\n if (resources.length) entries.push({ group: 'Resources', key: 'declaration', label: 'Declaration', color: theme.declaration.stroke, shape: 'ellipse' });\n if (snapshot.roots.some((root) => root.resource)) entries.push({ group: 'Resources', key: 'output', label: 'Output', color: theme.output.stroke, shape: 'tag' });\n if ([...snapshot.nodes, ...resources].some((item) => item.debugGroupId !== undefined)) {\n entries.push({ group: 'Relationships', key: 'group', label: 'Group', color: theme.group.stroke, shape: 'group' });\n }\n if (snapshot.edges.some((edge) => edge.kind === 'value')\n || (showResourceDeclarations && declarationEntrances(snapshot.nodes, snapshot.accessEdges, snapshot.edges).length)\n || snapshot.roots.some((root) => root.resource && root.resolution && ((showResourceDeclarations && root.resolution.usesInitialContents) || root.resolution.producerNodeIds.length))) {\n entries.push(edgeLegend('flow', 'Resource Flow', theme.dependency.value, 'solid'));\n }\n if (snapshot.edges.some((edge) => edge.kind === 'ordering')) {\n entries.push({\n ...edgeLegend('ordering', 'Order', theme.dependency.ordering, 'dotted'),\n hollowArrow: true,\n });\n }\n return entries;\n}\n\nexport function createGraphStyles(theme: GraphVisualTheme = GRAPH_VISUAL_THEME): cytoscape.StylesheetJson {\n return [\n {\n selector: 'core',\n style: {\n 'active-bg-color': theme.activeBackground.color,\n 'active-bg-opacity': theme.activeBackground.opacity,\n 'active-bg-size': theme.activeBackground.size,\n // Cytoscape accepts partial core styles; its Core type marks every property required.\n } satisfies Partial<cytoscape.Css.Core> as cytoscape.Css.Core,\n },\n {\n selector: 'node',\n style: {\n 'shape': 'round-rectangle',\n 'width': 'data(width)',\n 'height': 'data(height)',\n 'label': 'data(displayLabel)',\n 'text-wrap': 'wrap',\n 'text-max-width': 'data(labelMaxWidth)',\n 'font-family': theme.fontFamily,\n 'font-size': (element: cytoscape.SingularElementArgument) => (element.data('labelFontSize') as number | undefined) ?? theme.fontSize,\n 'line-height': 1.2,\n 'min-zoomed-font-size': GRAPH_GEOMETRY.minimumZoomedFontSize,\n 'color': theme.text,\n 'background-color': theme.surfaceRaised,\n 'border-color': theme.group.stroke,\n 'border-width': theme.nodeBorderWidth,\n 'border-style': 'solid',\n 'text-valign': 'center',\n 'text-halign': 'center',\n 'overlay-opacity': 0,\n 'underlay-opacity': 0,\n },\n },\n passStyle('render', theme.render),\n passStyle('compute', theme.compute),\n passStyle('copy', theme.copy),\n passStyle('clear-buffer', theme.clear),\n passStyle('command', theme.command),\n {\n selector: 'node[passKind = \"external-submission\"]',\n style: {\n 'background-color': theme.external.fill,\n 'border-color': theme.external.stroke,\n 'shape': 'cut-rectangle',\n 'corner-radius': '10px',\n },\n },\n {\n selector: 'node[kind = \"resource\"]',\n style: {\n 'shape': 'ellipse',\n 'background-color': theme.declaration.fill,\n 'border-color': theme.declaration.stroke,\n },\n },\n {\n selector: 'node[kind = \"root\"]',\n style: {\n 'shape': 'polygon',\n 'shape-polygon-points': `-1 -1 ${1 - 2 * GRAPH_GEOMETRY.outputTipWidth / GRAPH_GEOMETRY.outputWidth} -1 1 0 ${1 - 2 * GRAPH_GEOMETRY.outputTipWidth / GRAPH_GEOMETRY.outputWidth} 1 -1 1`,\n 'background-color': theme.output.fill,\n 'border-color': theme.output.stroke,\n 'text-max-width': 'data(labelMaxWidth)',\n // Keep a short tip and center the label in the rectangular body.\n 'text-margin-x': -GRAPH_GEOMETRY.outputTipWidth / 2 * theme.fontSize / GRAPH_GEOMETRY.baseFontSize,\n },\n },\n {\n selector: 'node[kind = \"group\"]',\n style: {\n 'text-max-width': (element: cytoscape.SingularElementArgument) => `${element.data('labelMaxWidth') as number}px`,\n },\n },\n {\n selector: 'node[kind = \"group\"][collapsed = 1]',\n style: {\n 'background-color': theme.group.fill,\n 'border-color': theme.group.stroke,\n 'border-width': theme.groupBorderWidth,\n 'color': theme.text,\n },\n },\n {\n selector: 'node[kind = \"group\"][collapsed = 0]',\n style: expandedGroupStyle(theme.group.fill, theme),\n },\n {\n selector: 'node[kind = \"group\"][collapsed = 0][depthBand = 1]',\n style: { 'background-color': theme.group.alternateFill },\n },\n {\n selector: 'edge',\n style: {\n 'width': theme.edgeWidth,\n 'line-color': theme.dependency.value,\n 'line-opacity': theme.edgeOpacity,\n 'target-arrow-color': theme.dependency.value,\n 'target-arrow-shape': 'triangle',\n 'target-arrow-fill': 'filled',\n 'arrow-scale': theme.arrowScale,\n 'curve-style': 'straight',\n 'label': 'data(displayLabel)',\n 'font-family': theme.fontFamily,\n 'font-size': 10,\n 'min-zoomed-font-size': GRAPH_GEOMETRY.minimumZoomedFontSize,\n 'color': theme.text,\n 'text-background-color': theme.canvas,\n 'text-background-opacity': 0.82,\n 'text-background-padding': '2px',\n 'text-rotation': 'autorotate',\n 'overlay-opacity': 0,\n 'underlay-opacity': 0,\n },\n },\n {\n selector: 'edge[kind = \"ordering\"]',\n style: {\n 'line-color': theme.dependency.ordering,\n 'target-arrow-color': theme.dependency.ordering,\n 'line-style': 'dotted',\n 'target-arrow-fill': 'hollow',\n 'line-opacity': theme.orderingOpacity,\n },\n },\n {\n selector: 'edge.elk-route',\n style: {\n 'source-endpoint': 'data(sourceEndpoint)',\n 'target-endpoint': 'data(targetEndpoint)',\n 'edge-distances': ENDPOINT_EDGE_DISTANCES,\n },\n },\n {\n selector: 'edge.elk-segments',\n style: {\n 'curve-style': 'round-segments',\n 'segment-distances': 'data(segmentDistances)',\n 'segment-weights': 'data(segmentWeights)',\n 'segment-radii': EDGE_SEGMENT_RADII,\n },\n },\n {\n selector: 'node.semantic-hover',\n style: {\n 'border-color': theme.hover,\n 'border-width': theme.hoverWidth,\n 'z-index': 15,\n },\n },\n {\n selector: 'edge.semantic-hover',\n style: {\n 'line-color': theme.hover,\n 'target-arrow-color': theme.hover,\n 'line-opacity': 1,\n 'width': theme.hoverWidth,\n 'z-index': 15,\n },\n },\n {\n selector: 'node.semantic-selected',\n style: {\n 'border-color': theme.selected,\n 'border-width': theme.selectedWidth,\n 'opacity': 1,\n 'z-index': 20,\n },\n },\n {\n selector: 'edge.semantic-selected',\n style: {\n 'line-color': theme.selected,\n 'target-arrow-color': theme.selected,\n 'line-opacity': 1,\n 'width': theme.selectedWidth,\n 'z-index': 20,\n },\n },\n ];\n}\n\nfunction baseNodeDimensions(node: GraphSceneNode): { readonly width: number; readonly height: number } {\n switch (node.kind) {\n case 'pass':\n return { width: 184, height: node.label.includes('\\n') ? 62 : 48 };\n case 'root':\n return { width: GRAPH_GEOMETRY.outputWidth, height: Math.max(58, node.label.split('\\n').length * 17 + 24) };\n case 'resource':\n return { width: 184, height: Math.max(58, node.label.split('\\n').length * 17 + 24) };\n case 'group':\n return node.collapsed ? { width: 240, height: 80 } : { width: 120, height: 80 };\n }\n}\n\nexport function nodeDimensions(node: GraphSceneNode, theme: GraphVisualTheme = GRAPH_VISUAL_THEME): { readonly width: number; readonly height: number } {\n const base = baseNodeDimensions(node);\n const scale = theme.fontSize / GRAPH_GEOMETRY.baseFontSize;\n return { width: base.width * scale, height: base.height * scale };\n}\n\n/** Enlarge short labels within the existing box; retain the theme size for dense text. */\nexport function graphLabelFontSize(label: string, width: number, height: number, theme: GraphVisualTheme): number {\n const context = graphTextContext();\n if (context) context.font = theme.fontSize + 'px ' + theme.fontFamily;\n const lines = label.split('\\n');\n const widest = Math.max(1, ...lines.map(line => context?.measureText(line).width ?? [...line].length * theme.fontSize * .62));\n const widthScale = width / widest;\n const heightScale = height / (lines.length * theme.fontSize * 1.2);\n return Math.max(theme.fontSize, Math.floor(theme.fontSize * Math.min(1.25, widthScale, heightScale) * 4) / 4);\n}\n\n/** Wrap only the group name (up to two lines); keep the node-count row distinct. */\nexport function fitCollapsedGroupLabel(label: string, width: number, theme: GraphVisualTheme): string {\n const [name = '', ...summary] = label.split('\\n');\n const context = graphTextContext();\n if (context) context.font = theme.fontSize + 'px ' + theme.fontFamily;\n const measure = (text: string) => context?.measureText(text).width ?? [...text].length * theme.fontSize * .62;\n const chars = [...name];\n let split = 0;\n while (split < chars.length && measure(chars.slice(0, split + 1).join('')) <= width) split++;\n if (split === chars.length) return fitGraphLabel(label, width, theme);\n // Prefer a word/path boundary without losing characters, including Unicode.\n const prefix = chars.slice(0, split).join('');\n const boundary = Math.max(prefix.lastIndexOf(' '), prefix.lastIndexOf('.'), prefix.lastIndexOf('/'));\n if (boundary > prefix.length / 2) split = [...prefix.slice(0, boundary + 1)].length;\n return fitGraphLabel([\n chars.slice(0, split).join('').trimEnd(),\n chars.slice(split).join('').trimStart(),\n ...summary,\n ].join('\\n'), width, theme);\n}\n\n/** Fit the already semantic label to its available width after font changes. */\nexport function fitGraphLabel(label: string, width: number, theme: GraphVisualTheme): string {\n const context = graphTextContext();\n if (context) context.font = theme.fontSize + 'px ' + theme.fontFamily;\n const measure = (text: string) => context?.measureText(text).width ?? [...text].length * theme.fontSize * .62;\n return label.split('\\n').map(line => {\n if (measure(line) <= width) return line;\n const chars = [...line];\n while (chars.length && measure(chars.join('') + '…') > width) chars.pop();\n return chars.join('') + '…';\n }).join('\\n');\n}\n\nlet textContext: CanvasRenderingContext2D | null | undefined;\nfunction graphTextContext(): CanvasRenderingContext2D | null {\n if (typeof document === 'undefined') return null;\n if (textContext === undefined) textContext = document.createElement('canvas').getContext('2d');\n return textContext;\n}\n\nexport function graphLayoutGeometryKey(scene: GraphScene): string {\n return JSON.stringify({\n topology: scene.topologyKey,\n dimensions: scene.nodes.map((node) => {\n const dimensions = nodeDimensions(node);\n return [node.id, dimensions.width, dimensions.height, node.kind === 'pass' && node.passKind === 'external-submission'];\n }),\n });\n}\n\nexport function graphEdgeDisplayLabel(_edge: GraphSceneEdge): string {\n return '';\n}\n\nexport function expandedGroupLabelMaxWidth(outerWidth: number): number {\n return Math.max(80, Math.floor(outerWidth - GRAPH_GEOMETRY.groupTitleInset * 2));\n}\n\nexport function isOverviewGraphScale(zoom: number, theme: GraphVisualTheme = GRAPH_VISUAL_THEME): boolean {\n return theme.fontSize * zoom < GRAPH_GEOMETRY.overviewFontThreshold;\n}\n\nfunction nodeLegend(key: string, label: string, color: string): GraphLegendEntry {\n return { group: 'Execution', key, label, color, shape: 'box' };\n}\n\nfunction edgeLegend(\n key: string,\n label: string,\n color: string,\n lineStyle: NonNullable<GraphLegendEntry['lineStyle']>,\n): GraphLegendEntry {\n return { group: 'Relationships', key, label, color, shape: 'line', lineStyle };\n}\n\nfunction passStyle(\n kind: string,\n colors: { readonly stroke: string; readonly fill: string },\n): cytoscape.StylesheetStyle {\n return {\n selector: `node[passKind = \"${kind}\"]`,\n style: { 'background-color': colors.fill, 'border-color': colors.stroke },\n };\n}\n\nfunction expandedGroupStyle(backgroundColor: string, theme: GraphVisualTheme): cytoscape.Css.Node {\n const geometry = GRAPH_GEOMETRY;\n return {\n 'background-color': backgroundColor,\n 'background-opacity': theme.groupOpacity,\n 'border-color': theme.group.stroke,\n 'border-width': theme.groupBorderWidth,\n 'padding': `${geometry.groupPadding}px`,\n 'compound-sizing-wrt-labels': 'exclude',\n 'text-wrap': 'ellipsis',\n 'min-width': '120px',\n 'min-height': '80px',\n 'text-valign': 'top-inside',\n 'text-halign': 'left-inside',\n 'text-justification': 'left',\n 'text-margin-x': geometry.groupTitleInset - geometry.groupPadding * 2,\n 'text-margin-y': geometry.groupTitleInset - geometry.groupPadding * 2,\n 'line-height': geometry.groupTitleLineHeight,\n 'color': theme.text,\n 'font-weight': 600,\n };\n}\n"]}
@@ -13,6 +13,8 @@ export declare class InspectorView {
13
13
  private selected;
14
14
  private activeTab;
15
15
  private open;
16
+ private hoveredLink;
17
+ private rawCache;
16
18
  constructor(callbacks: WorkbenchCallbacks, onOpenChange: (open: boolean) => void, idPrefix: string);
17
19
  setSnapshot(snapshot: FrameGraphDebugViewModel): void;
18
20
  setSelection(selected: Selection | undefined, reveal?: boolean): void;
@@ -26,8 +28,19 @@ export declare class InspectorView {
26
28
  private accessRelations;
27
29
  private resourceRelations;
28
30
  private relationGroup;
31
+ private selectRelated;
32
+ private viewResourceButton;
33
+ private createDetailLink;
34
+ private clearLinkHover;
29
35
  private summary;
30
36
  private accessNodeLabel;
31
37
  private accessNodeSelection;
38
+ private nodeLink;
39
+ private primaryPage;
40
+ private revealButton;
41
+ private createLocationActions;
42
+ private selectionId;
43
+ private copyId;
44
+ private createDiagnostics;
32
45
  }
33
46
  //# sourceMappingURL=panelInspectorView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"panelInspectorView.d.ts","sourceRoot":"","sources":["../src/panelInspectorView.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGX,wBAAwB,EACxB,MAAM,wBAAwB,CAAC;AAIhC,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAMN,KAAK,kBAAkB,EACvB,MAAM,4BAA4B,CAAC;AAEpC,qBAAa,aAAa;IAYxB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAZ9B,QAAQ,CAAC,IAAI,cAAmC;IAChD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAoC;IAC1D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAiC;IACzD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAiC;IACzD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA8C;IACnE,OAAO,CAAC,QAAQ,CAAuC;IACvD,OAAO,CAAC,QAAQ,CAAwB;IACxC,OAAO,CAAC,SAAS,CAA2B;IAC5C,OAAO,CAAC,IAAI,CAAQ;gBAGF,SAAS,EAAE,kBAAkB,EAC7B,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,EACtD,QAAQ,EAAE,MAAM;IAwCjB,WAAW,CAAC,QAAQ,EAAE,wBAAwB,GAAG,IAAI;IAKrD,YAAY,CAAC,QAAQ,EAAE,SAAS,GA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