wadi-mcp 0.1.6 → 0.1.7

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 (2) hide show
  1. package/dist/server.mjs +5 -1
  2. package/package.json +1 -1
package/dist/server.mjs CHANGED
@@ -415542,7 +415542,11 @@ function generateElevationView(houseConfig, viewType, scale = 2, flipX = false,
415542
415542
  const ph = obj.height ?? floorHeight;
415543
415543
  const pTopY = zToY(slabZ + ph);
415544
415544
  const pBotY = zToY(slabZ);
415545
- svg += `<rect x="0" y="${fFloat(pTopY)}" width="${f(width)}" height="${fFloat(pBotY - pTopY)}" fill="#A0826D" stroke="#000" stroke-width="1"/>
415545
+ const isSideView = viewType === "left" || viewType === "right";
415546
+ const pObjXWorld = isSideView ? obj.y : obj.x;
415547
+ const pObjW = isSideView ? obj.length : obj.width;
415548
+ const pSvgX = worldToSvgX(pObjXWorld, pObjW);
415549
+ svg += `<rect x="${fFloat(pSvgX)}" y="${fFloat(pTopY)}" width="${fFloat(pObjW)}" height="${fFloat(pBotY - pTopY)}" fill="#A0826D" stroke="#000" stroke-width="1"/>
415546
415550
  `;
415547
415551
  }
415548
415552
  const floorName = floorConfig.name ?? `Floor ${floorNum}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wadi-mcp",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "MCP server for the Wadi house designer — check, preview, and reference the Wadi DSL (.wdl) without the repo.",
5
5
  "type": "module",
6
6
  "license": "MIT",