import{_ as a,c as r,a0 as t,o}from"./chunks/framework.P9qPzDnn.js";const p=JSON.parse('{"title":"Function: isRendered()","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/data/common/functions/isRendered.md","filePath":"api/data/common/functions/isRendered.md","lastUpdated":null}'),n={name:"api/data/common/functions/isRendered.md"};function i(d,e,l,s,c,h){return o(),r("div",null,e[0]||(e[0]=[t('
Profectus / data/common / isRendered
isRendered(
layer
,id
):ComputedRef
<boolean
>
Utility function for getting a computed boolean for whether or not a given feature is currently rendered in the DOM. Note it will have a true value even if the feature is off screen.
The layer the feature appears within
string
The ID of the feature
ComputedRef
<boolean
>
profectus/src/data/common.tsx:491
isRendered(
layer
,feature
):ComputedRef
<boolean
>
Utility function for getting a computed boolean for whether or not a given feature is currently rendered in the DOM. Note it will have a true value even if the feature is off screen.
The layer the feature appears within
The feature that may be rendered
string
ComputedRef
<boolean
>