caelus-wheel 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -55,4 +55,4 @@ counterclockwise.
55
55
  - [caelus](https://www.npmjs.com/package/caelus) — the engine
56
56
  - [caelus-birth](https://www.npmjs.com/package/caelus-birth) — local birth time + place → UT
57
57
  - caelus-wheel — this package
58
- - [caelus-mcp](https://www.npmjs.com/package/caelus-mcp) — MCP server, six chart tools over stdio
58
+ - [caelus-mcp](https://www.npmjs.com/package/caelus-mcp) — MCP server, seven chart tools over stdio
package/dist/src/index.js CHANGED
@@ -105,6 +105,9 @@ export function ChartWheel({ chart, size = 520, showAspects = true, aspectTypes
105
105
  const asc = chart.angles.asc;
106
106
  const c = size / 2;
107
107
  const R = (size / 2) * 0.96;
108
+ // AC/MC/DC/IC labels sit at r=1.05 outside the outer ring; pad the viewBox
109
+ // so they are not clipped when the SVG is rendered at exactly `size` px.
110
+ const pad = size * 0.07;
108
111
  // ASC at 9 o'clock, longitudes counterclockwise
109
112
  const pt = (lon, r) => {
110
113
  const a = ((lon - asc + 180) * Math.PI) / 180;
@@ -185,5 +188,5 @@ export function ChartWheel({ chart, size = 520, showAspects = true, aspectTypes
185
188
  const min = String(Math.floor(mod(signDeg, 1) * 60)).padStart(2, "0");
186
189
  el.push(text(disp, 0.585, `${deg}°${min}'${retro ? "℞" : ""}`, size * 0.024, T.labelText, `pl-${b}`));
187
190
  });
188
- return (_jsx("svg", { width: size, height: size, viewBox: `0 0 ${size} ${size}`, role: "img", "aria-label": "astrological chart wheel", style: { background: T.background }, children: el }));
191
+ return (_jsx("svg", { width: size, height: size, viewBox: `${-pad} ${-pad} ${size + 2 * pad} ${size + 2 * pad}`, role: "img", "aria-label": "astrological chart wheel", style: { background: T.background, display: "block" }, children: el }));
189
192
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "caelus-wheel",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "React SVG chart wheel for caelus: zodiac, houses, planets with collision avoidance, aspect lines. SSR-safe, zero runtime dependencies.",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",