mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #198] [Issue]: World Maps node placement differs between editor and RP/Game #102
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#102
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thetopham on GitHub (Aug 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/198
Originally assigned to: @thetopham on GitHub.
Summary
World Maps uses different canvas dimensions and coordinate behavior in the map editor versus the RP/Game map. Locations arranged over a background image in the editor can therefore appear in different positions when the map is viewed during chat.
Changing the browser scale or available interface width also changes the editor canvas aspect ratio and background crop, further shifting the apparent placement.
Affected package
World Maps (
hierarchical-maps)Expected behavior
The editor and RP/Game views should project the background image and location coordinates through the same canonical canvas geometry.
Resizing the browser or interface should scale the complete map uniformly without changing the relationship between locations and landmarks in the background image.
The arrangement canvas may offer manual zoom or scaling controls, but those controls should not alter the saved coordinate projection or aspect ratio.
Actual behavior
The editor's map canvas changes shape based on the available browser/interface width. RP/Game renders the map through a differently sized canvas, so
object-covercrops the background differently and saved percentage coordinates no longer line up with the same landmarks.RP/Game also applies a location safe-area clamp that the editor does not apply, causing an additional placement difference near the edges.
Steps to reproduce
Environment
Logs, screenshots, or video
No screenshot or video was provided. A recording comparing the editor and RP/Game views at two browser widths would help confirm the exact visible repro.
Additional context
Source inspection of the current
stagingpackage found:LocalMapCanvas.tsxuses a fluid-width canvas withmin-h-[22rem]and places locations directly at their saved 0–100% coordinates.GameWorldMap.tsxuses fixedh-52/h-56canvases and clamps displayed coordinates to 14–86%.object-cover, so their different aspect ratios produce different crops.Suggested acceptance criteria:
object-positionmatch across both surfaces.No live browser reproduction was performed during this triage.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@thetopham commented on GitHub (Aug 2, 2026):
Reopening after manual review of the exact package installed from Agents
staging.Owner: @thetopham
Confirmed reproduction:
2.4.1+32222f581d611.2.8, installed and ready1184 × 888725 × 3, so the artwork and map appear absentRoot cause:
LocalMapCanvasrelies on the Tailwind utilityaspect-[16/9], but package-owned source is not scanned into the host Engine stylesheet. The feature package injects explicit 16:9 CSS for the runtime canvas only, not[data-marinara-maps-editor-canvas]. Existing artifact coverage checks only the runtime rule.Repair scope:
A draft PR will be opened against
stagingfor review.@thetopham commented on GitHub (Aug 2, 2026):
completed