Layering canvas objects in Fabric.js
问题 Is there a way to layer objects on a Fabric.js canvas via the official API? Right now the only way I have found to do it is to manually iterate through the canvas._objects and reorder them so that they get drawn in a specific order. Is there a better way to do this that doesn't (potentially) break the object? 回答1: [Edit] I've corrected my info below (my bad, I was originally thinking of the KineticJs api). FabricJS has these API methods that change the z-index of objects: canvas.sendBackwards