Replies: 1 comment
-
you create the drawingCanvas with a null element, when does it get attached to the dom? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm developing an advanced image editor component in Angular using Fabric.js, and I'm struggling to implement a specific dual-canvas structure. Here's what I'm trying to achieve:
Key components:
Critical issues:
Drawing on the top canvas is non-functional. No lines or shapes appear when attempting to draw. Events on the drawing canvas are not being logged or detected at all. Editing features (like adding shapes or applying filters) don't work on the drawing canvas.
I suspect there might be fundamental problems with my current architecture using two overlapping canvases.
Here is a link where i got this idea from: Vue Fabric Editor Demo
Here is a minimal example of my implementation: Stackblitz
Questions:
I've attempted various event binding methods and canvas configurations, but none have resolved the core issues. Any insights into why my current implementation isn't working or suggestions for a better approach would be immensely helpful.
Thank you for your assistance!
Beta Was this translation helpful? Give feedback.
All reactions