UNPKG

@gltf-transform/extensions

Version:

Adds extension support to @gltf-transform/core

24 lines (23 loc) 905 B
import { ExtensionProperty, type IProperty, type Nullable, PropertyType } from '@gltf-transform/core'; import { KHR_NODE_VISIBILITY } from '../constants.js'; interface IVisibility extends IProperty { visible: boolean; } /** * Defines visibility of a {@link Node} and its descendants. See {@link KHRNodeVisibility}. * * @experimental KHR_node_visibility is not yet ratified by the Khronos Group. */ export declare class Visibility extends ExtensionProperty<IVisibility> { static EXTENSION_NAME: typeof KHR_NODE_VISIBILITY; extensionName: typeof KHR_NODE_VISIBILITY; propertyType: 'Visibility'; parentTypes: [PropertyType.NODE]; protected init(): void; protected getDefaults(): Nullable<IVisibility>; /** Visibility of node and descendants. */ getVisible(): boolean; /** Visibility of node and descendants. */ setVisible(visible: boolean): this; } export {};