Profectus / data/common / isRendered
Function: isRendered() ​
Call Signature ​
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.
Parameters ​
layer ​
The layer the feature appears within
id ​
string
The ID of the feature
Returns ​
ComputedRef
<boolean
>
Defined in ​
profectus/src/data/common.tsx:491
Call Signature ​
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.
Parameters ​
layer ​
The layer the feature appears within
feature ​
The feature that may be rendered
id ​
string
Returns ​
ComputedRef
<boolean
>