- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Layers of canvas fabric.js
FabricJS has the following API methods that change the z-index of objects:
canvas.sendBackwards(myObject) canvas.sendToBack(myObject) canvas.bringForward(myObject) canvas.bringToFront(myObject)
You can also use:
fabric.Canvas.prototype.orderObjects = function(compare) { this._objects.sort(compare); this.renderAll(); }
- Related Articles
- HTML5 Canvas layer disappears on mouse click in Fabric.js and Firefox stops responding when creating a canvas for the image?
- How to keep the image at the back of the HTML5 canvas when moving elements with fabric.js?
- Computer Networks – Layers of OSI Model
- What are the layers of soil?
- Working of Different layers in Computer Network
- Create layers using CSS
- The Bluetooth Link Layers
- Design Issues for the Layers of Computer Networks
- Describe the layers of the Earth with diagram.
- What are the three layers of the earth?
- Fabric.js – How to draw a hexagonal grid (honey comb) with Polygon class
- Fabric.js – How to check if an Image object is fully contained within the area of another object?
- What are ISDN Layers in computer networks?
- Differentiate between SSL and TSL secure layers
- What are the atmosphere and its layers?

Advertisements