-
Hello, This issue could be my own error, I have an object that is at point A, I changed it's position by using: canvas.forEachObject(function(object) {
if (object.id === obj.id) {
object.setOptions({ top: obj[key] })
}
})
// This code shows that the top value has changed correctly
canvas.getObjects().find(obj => obj.id === 'C001') What I see on my canvas is this: I thought it was a caching issue because I saw that it has a property What fixed it is by calling Unfortunately, I am unable to reproduce this, which could mean my code has an issue. I am posting this to see if anyone can guide me to where my issue could lie. Version4.3.1 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
hi, setOptions is an internal method. Pleas use the simple set ( it takes an object or a single key, value ). What you really need to fix is described in this page here |
Beta Was this translation helpful? Give feedback.
hi, setOptions is an internal method. Pleas use the simple set ( it takes an object or a single key, value ).
What you really need to fix is described in this page here
http://fabricjs.com/fabric-gotchas