mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
BG: drawn-plan paper follows the room contours, not their bounding box
Owner: the white backing must hug the ROOMS — an L-shaped house or detached buildings grew a white square around the plan. Drawn plans now paper one opaque shape per room (paperRoomShapes in logic.ts) in exactly the room's own geometry — polygon points / rounded rect verbatim — so the union of the stack is the paper: islands paint over their parent, open (virtual) boundaries change nothing, and the scene bg_color / daynight sky reaches the exterior walls, shows in the L's pocket and between buildings. Image plans keep the backdrop-image rect (the canvas IS the paper). A live resize preview (_rszPreview) feeds _renderCfg, so the paper moves WITH a dragged wall. Static space-card follows the same contract. Paper is fill-only (stroke:none). smoke_bg_color §11–13 rewritten: L-shaped + detached test rooms, paper-per- room DOM checks, resize-preview wiring, pixel probes (acid in the pocket and between buildings, none inside rooms); §13 injects the snapshot directly — the module-level config-store cache made the old WS mock a no-op. Was 8 red on the previous build, green now. docs/SUN.md + docs/TESTING.md contract updated; unit test for paperRoomShapes.
This commit is contained in:
+14
-9
@@ -63,15 +63,20 @@ only — no entities are created, no services are called.
|
||||
without `sun.sun`) it behaves as `'static'`.
|
||||
- **The scene background never bleeds through the plan** (owner,
|
||||
2026-08-03). In BOTH modes the background — `bg_color` or the
|
||||
daynight sky — is visible only AROUND the plan: an opaque
|
||||
`rect.hp-paper` sits under everything the plan draws and hugs the
|
||||
plan's extents (the backdrop image rect, or the drawn content bounds
|
||||
the opening view fits). Its colour is the pre-bg_color canvas —
|
||||
white for hand-drawn plans, the theme card background under an
|
||||
image. The night dimming above is the `brightness` filter on the
|
||||
zoomwrap ONLY; the paper's alpha never changes. Applies to
|
||||
view/kiosk/editors and the static space-card alike
|
||||
(smoke_bg_color).
|
||||
daynight sky — is visible only AROUND the plan: opaque `.hp-paper`
|
||||
shapes sit under everything the plan draws. An image plan papers the
|
||||
backdrop image rect (the canvas IS the paper); a hand-drawn plan
|
||||
papers the ROOM CONTOURS — one shape per room in exactly the room's
|
||||
own geometry (fill only, no stroke), never their bounding box, so
|
||||
the background reaches the exterior walls of an L-shaped house and
|
||||
fills the gaps between detached buildings (an empty drawn space has
|
||||
no paper). Open (virtual) boundaries do not affect the paper; a live
|
||||
resize preview moves it together with the rooms. Its colour is the
|
||||
pre-bg_color canvas — white for hand-drawn plans, the theme card
|
||||
background under an image. The night dimming above is the
|
||||
`brightness` filter on the zoomwrap ONLY; the paper's alpha never
|
||||
changes. Applies to view/kiosk/editors and the static space-card
|
||||
alike (smoke_bg_color).
|
||||
|
||||
## Window light wedges — `settings.sun_rays`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user