Layering canvas objects in Fabric.js

前端 未结 3 1805
再見小時候
再見小時候 2021-01-30 14:25

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 r

3条回答
  •  不要未来只要你来
    2021-01-30 15:03

    step 1 : You can Use preserveObjectStacking: true

    step 2 : then use sendtoback,sendtofront....fabricjs options like below

    Answered over here

提交回复
热议问题