@revideo/2d / decorators / inspectable
Function: inspectable()
inspectable<
T>(value?):PropertyDecorator
Defined in: 2d/src/lib/decorators/signal.ts:336
Create an inspectable property decorator.
Type Parameters
T
T
Parameters
value?
boolean = true
Whether the property should be inspectable.
Returns
PropertyDecorator
Remarks
This decorator specifies whether the property should be visible in the inspector.
By default, any property is inspectable.
Must be specified before the signal decorator.
Example
class Example {
\@inspectable(false)
\@property()
public declare hiddenLength: Signal<number, this>;
}