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.
- package/dist/server.mjs +5 -1
- 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
|
-
|
|
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}`;
|