Skip to content

Fix live preview sync in bitmap creator#70

Open
rom98759 wants to merge 1 commit into
pixelit-project:masterfrom
rom98759:master
Open

Fix live preview sync in bitmap creator#70
rom98759 wants to merge 1 commit into
pixelit-project:masterfrom
rom98759:master

Conversation

@rom98759
Copy link
Copy Markdown

This PR fixes the bitmap creator so the textarea and the pixel preview stay in sync.
The preview is now driven by the bitmap state instead of only reacting to pixel clicks, which allows manual edits in the textarea to update the grid correctly.

The change is intentionally kept small:

  • Pixel state is now controlled from the parent
  • Art receives per-pixel background values
  • Creator initializes and synchronizes the bitmap values with the textarea

Validation:

  • Lint passed on the touched Vue files

@rom98759
Copy link
Copy Markdown
Author

Issues : #64 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant