MCPcopy
hub / github.com/midrender/revideo / constructor

Method constructor

packages/2d/src/lib/partials/Filter.ts:83–94  ·  view source on GitHub ↗
(props: Partial<FilterProps>)

Source from the content-addressed store, hash-verified

81 private readonly props: FilterProps;
82
83 public constructor(props: Partial<FilterProps>) {
84 this.props = {
85 name: 'invert',
86 default: 0,
87 unit: '%',
88 scale: 100,
89 transform: false,
90 ...props,
91 value: props.value ?? props.default ?? 0,
92 };
93 this.value = createSignal(this.props.value, map, this);
94 }
95
96 public isActive() {
97 return this.value() !== this.props.default;

Callers

nothing calls this directly

Calls 1

createSignalFunction · 0.90

Tested by

no test coverage detected