Recalculation of canvas #6521
Unanswered
iamkeiryan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hi @artf
I have a function that retrieves values based on certain rules:
Whenever I update a certain component inside the canvas, It works as expected since I have the selected element id which I can use to identify which style to get. The problem is, for those elements that are not selected, whenever I update the selected device, their css is not getting recalculated. Is there a way to work on this?
I used setRule to update their model. Here's the sample code of the function.
The device:select listener:
Additionally, I tried adding the
editor.refresh
but it's crashing and I can't debug what's causing for it to crash.Beta Was this translation helpful? Give feedback.
All reactions