Skip to content

2D floor-map: kawasan view (All + per-factory focus & dim) #1

Description

@digtaalfathir

Bring the 2D floor-map to parity with the 3D kawasan (All + per-factory focus/dim). 2D is SVG, so simpler than 3D (opacity on <g>, viewBox for zoom — no material/async issues).

Tasks

  • Merge per-factory 2D layouts into one kawasan layout: offset each factory's coords, tag rooms/walls/pins with factory (+ optional floor), add a factories manifest with per-factory viewBox bounds
  • floormap.js: factory selector (All + each factory)
  • All = viewBox = whole kawasan; Focus = viewBox = factory bounds + dim other factory <g> groups
  • Reuse the same ?factory= deep-link as 3D (stays on the same factory when toggling 3D↔2D)
  • Multi-floor in 2D = floor selector swaps the plan (2D is flat; no stacking)

Acceptance: pick Factory N → 2D zooms to it + others dimmed; back to All → everything visible. Depends on the "Builder 2D: tag factory" issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions