good demo of my problem: http://fabricjs.com/hovering If you select any item, it is displayed on top. In earlier versions (1.5.0 - 1.6.2) this problem does not exist. Sorry for bad English.
相关问题
- character width calculation wrong with some font w
- fabric.js straight line and select on click
- change text once it is added on canvas
- fabricjs delete backgroundImage
- set Min and Max resize limits for fabric object
相关文章
- How to freedraw Circle in fabricjs using mouse?
- Saving JSON in canvas with fabric.js
- FabricJS image object clipTo shape object issue
- toSVG method not working on extended class with Fa
- Issue with object while restricting it to canvas b
- Can we add putImageData to fabric canvas instead o
- Fabric js: Increase font size instead of just scal
- Fabricjs intersectsWithObject returning false when
I believe that is meant as a convenience for the user. Although the object moves to the front while selected, as soon as it is deselected, it falls back to its original z-order.
You can test this out at the hovering demo you linked. Superimpose two objects and determine which is front of the other then select and deselect the object in the back. When you hover over them, the order should still be observed to be the same.
If you dont want thie behaviour, you can set the preserveObjectStacking to true. Check the docs here: http://fabricjs.com/docs/fabric.Canvas.html
However, there is this one issue with background objects, so beware https://github.com/kangax/fabric.js/issues/3095
Hopefully, they'll push a fix soon otherwise your last resort would be going back to 1.6.2.