@coldtea/pr-lens-renderer 0.3.0 → 0.3.1

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.
@@ -8,7 +8,6 @@ import { travellingPulses } from "./pulse.js";
8
8
  import type { ScopedGraph } from "../scope.js";
9
9
  import { canvasFor, union } from "../bounds.js";
10
10
  import { coord, type Box } from "../geometry.js";
11
- import { placeLabelPills } from "../layout/labels.js";
12
11
  import { relieveCongestion } from "../layout/congestion.js";
13
12
  import { lines, tag, textNode, wrap } from "./primitives.js";
14
13
  import { curveBounds, type RoutedEdge } from "../layout/edges.js";
@@ -28,6 +27,7 @@ import {
28
27
  cardTextWidth,
29
28
  deltaBadgeText,
30
29
  laneHeaderText,
30
+ occupiedBoxes,
31
31
  type PlacedNode,
32
32
  } from "../layout/architecture.js";
33
33
  import {
@@ -267,14 +267,10 @@ export const paintArchitecture = (
267
267
  hints: LayoutHints | undefined,
268
268
  palette: Palette,
269
269
  ): ArchitecturePainting => {
270
- const { layout, routed } = relieveCongestion(graph, hints);
270
+ const { layout, routed, pills } = relieveCongestion(graph, hints);
271
271
  const styles = stylesFor(palette);
272
- const pills = placeLabelPills(routed);
272
+ const drawn: Box[] = occupiedBoxes(layout.nodes);
273
273
 
274
- const drawn: Box[] = layout.nodes.flatMap((node) => {
275
- const row = badgeRow(node);
276
- return row === undefined ? [node.box] : [node.box, row.box];
277
- });
278
274
  const edgeMarkup: string[] = [];
279
275
  const pillMarkup: string[] = [];
280
276
  for (const edge of routed) {
package/src/version.ts CHANGED
@@ -6,4 +6,4 @@
6
6
  */
7
7
  export const RENDERER_NAME = "@coldtea/pr-lens-renderer";
8
8
 
9
- export const RENDERER_VERSION = "0.3.0";
9
+ export const RENDERER_VERSION = "0.3.1";