Skip to Content

@revideo/2d


@revideo/2d / decorators / cloneable

Function: cloneable()

cloneable<T>(value?): PropertyDecorator

Defined in: 2d/src/lib/decorators/signal.ts:303 

Create a cloneable property decorator.

Type Parameters

T

T

Parameters

value?

boolean = true

Whether the property should be cloneable.

Returns

PropertyDecorator

Remarks

This decorator specifies whether the property should be copied over when cloning the node.

By default, any property is cloneable.

Must be specified before the signal decorator.

Example

class Example { \@clone(false) \@property() public declare length: Signal<number, this>; }
© 2026 Haven Technologies, Inc.
Function: cloneable() – Revideo