MCPcopy Create free account
hub / github.com/facebook/Rapid / isLayerEnabled

Method isLayerEnabled

modules/core/PhotoSystem.js:651–656  ·  view source on GitHub ↗

* isLayerEnabled * Is the given layerID enabled? * @param {string} layerID - the layerID to check * @return {boolean} `true` if enabled, `false` if not

(layerID)

Source from the content-addressed store, hash-verified

649 * @return {boolean} `true` if enabled, `false` if not
650 */
651 isLayerEnabled(layerID) {
652 const context = this.context;
653 const scene = context.systems.gfx.scene;
654 const layer = scene.layers.get(layerID);
655 return layer?.enabled;
656 }
657
658
659 /**

Callers 5

selectPhotoMethod · 0.95
selectDetectionMethod · 0.95
shouldFilterByDateMethod · 0.95

Calls 1

getMethod · 0.80

Tested by

no test coverage detected