Enlarged widget does not show canvas content #519

Closed
opened 2026-02-20 10:18:19 -05:00 by deekerman · 2 comments
Owner

Originally created by @robartsd on GitHub (May 3, 2022).

When cloning a canvas element, the image content is not cloned - it should be copied using the new canvas element's drawImage() method.

We should be able to fix this fairly easily for enlarged canvas widgets, but it would be trickier to fix it for a canvas child of an enlarged widget.

Originally created by @robartsd on GitHub (May 3, 2022). When cloning a canvas element, the image content is not cloned - it should be [copied using the new canvas element's drawImage() method](https://stackoverflow.com/questions/3318565/any-way-to-clone-html5-canvas-element-with-its-content). We should be able to fix this fairly easily for enlarged canvas widgets, but it would be trickier to fix it for a canvas child of an enlarged widget.
deekerman 2026-02-20 10:18:19 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@96LawDawg commented on GitHub (May 3, 2022):

The OCD side of me that wants everything to be the same says do the fix for canvas children. But don't listen to that. Personally, I don't even need this now since I found a workaround (although I could and would implement it in the room I'm working on). So just making an enlarged canvas widget work at all would be fine.

@96LawDawg commented on GitHub (May 3, 2022): The OCD side of me that wants everything to be the same says do the fix for canvas children. But don't listen to that. Personally, I don't even need this now since I found a workaround (although I could and would implement it in the room I'm working on). So just making an enlarged canvas widget work at all would be fine.
Author
Owner

@robartsd commented on GitHub (May 3, 2022):

I think I figured out a way to make it easy enough to deal with child canvas.

@robartsd commented on GitHub (May 3, 2022): I think I figured out a way to make it easy enough to deal with child canvas.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/virtualtabletop#519
No description provided.