Commit 78e61ad
authored
fix: align pool/AZ headers with cluster border and improve mock data (#16)
* fix: align node pool type bars with cluster border
- Defer pool header rect drawing to after final content width is calculated
- Exclude trailing column padding from overallMaxX to get true content edge
- Draw rects at exact final width instead of scaling, eliminating stroke distortion
- Add symmetric padding (10px) on both left and right sides of cluster
- Ensures pool type headers (MASTER, INFRA, WORKER) extend full cluster width
* style(cluster): align pool and AZ header borders with node stroke edges
Compensate for PIXI.js 2px node stroke extending 1px outward on each
side by offsetting header rects by -1 and widening by +2. Also use
`left` constant for unassigned pods spacing.
* feat(mock): improve mock data with realistic pool/AZ distribution
Configure mock clusters with 3 masters (1 per AZ), 3-5 infra nodes
(at least 1 per AZ), and 3-7 workers per AZ using deterministic
hash-based variation across clusters.1 parent 2213ef7 commit 78e61ad
3 files changed
Lines changed: 69 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | 147 | | |
151 | 148 | | |
152 | 149 | | |
| |||
157 | 154 | | |
158 | 155 | | |
159 | 156 | | |
160 | | - | |
| 157 | + | |
161 | 158 | | |
162 | 159 | | |
163 | 160 | | |
| |||
186 | 183 | | |
187 | 184 | | |
188 | 185 | | |
189 | | - | |
| 186 | + | |
| 187 | + | |
190 | 188 | | |
191 | 189 | | |
192 | 190 | | |
| |||
233 | 231 | | |
234 | 232 | | |
235 | 233 | | |
236 | | - | |
237 | | - | |
238 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
239 | 238 | | |
240 | 239 | | |
241 | 240 | | |
242 | 241 | | |
243 | 242 | | |
244 | 243 | | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | 244 | | |
257 | | - | |
| 245 | + | |
258 | 246 | | |
259 | 247 | | |
260 | 248 | | |
| |||
271 | 259 | | |
272 | 260 | | |
273 | 261 | | |
274 | | - | |
275 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
276 | 279 | | |
277 | 280 | | |
278 | 281 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | 95 | | |
97 | 96 | | |
98 | | - | |
99 | | - | |
100 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
101 | 135 | | |
102 | | - | |
103 | 136 | | |
104 | | - | |
105 | | - | |
106 | | - | |
| 137 | + | |
| 138 | + | |
107 | 139 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 140 | + | |
114 | 141 | | |
115 | 142 | | |
116 | 143 | | |
117 | 144 | | |
118 | 145 | | |
119 | 146 | | |
120 | 147 | | |
121 | | - | |
122 | | - | |
| 148 | + | |
123 | 149 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | 150 | | |
128 | | - | |
129 | 151 | | |
130 | 152 | | |
131 | 153 | | |
| |||
158 | 180 | | |
159 | 181 | | |
160 | 182 | | |
161 | | - | |
162 | 183 | | |
163 | 184 | | |
164 | 185 | | |
| 186 | + | |
165 | 187 | | |
166 | 188 | | |
167 | 189 | | |
| |||
Loading
0 commit comments