forked from profectus/Profectus
Forgot to comment the other signature
This commit is contained in:
parent
0cccf7aecc
commit
a5204106aa
1 changed files with 6 additions and 0 deletions
|
@ -494,6 +494,12 @@ export function createFormulaPreview(
|
||||||
* @param id The ID of the feature
|
* @param id The ID of the feature
|
||||||
*/
|
*/
|
||||||
export function isRendered(layer: BaseLayer, id: string): ComputedRef<boolean>;
|
export function isRendered(layer: BaseLayer, id: string): 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.
|
||||||
|
* @param layer The layer the feature appears within
|
||||||
|
* @param feature The feature that may be rendered
|
||||||
|
*/
|
||||||
export function isRendered(layer: BaseLayer, feature: { id: string }): ComputedRef<boolean>;
|
export function isRendered(layer: BaseLayer, feature: { id: string }): ComputedRef<boolean>;
|
||||||
export function isRendered(layer: BaseLayer, idOrFeature: string | { id: string }) {
|
export function isRendered(layer: BaseLayer, idOrFeature: string | { id: string }) {
|
||||||
const id = typeof idOrFeature === "string" ? idOrFeature : idOrFeature.id;
|
const id = typeof idOrFeature === "string" ? idOrFeature : idOrFeature.id;
|
||||||
|
|
Loading…
Reference in a new issue