Z-Index Manager
Finds the highest z-index value
Usage
import artifriends_z_index_manager from "browser_modules/@artifriends/z-index-manager/module.js";
const {zIndexManager} = artifriends_z_index_manager;
// get instance
const zIndexManagerInstance = new zIndexManager();
// get highest z-index value
console.log(zIndexManagerInstance.getHighestZIndex('body')); // 1
Install
Frontle
frontle install @artifriends/z-index-manager
Download files
https://github.com/Artifriends-inc/zIndexManager
API
new zIndexManager()
Creating a zIndexManager object. Single tone pattern used
const zIndexManagerInstance = new zIndexManager();
.getHighestZIndex(element)
Get the highest z-index value within the specified element
console.log(zIndexManagerInstance.getHighestZIndex('body'));
People
The original author of @artifriends/z-index-manager is MushStory