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

Function vector2Signal

packages/2d/src/lib/decorators/vector2Signal.ts:16–30  ·  view source on GitHub ↗
(
  prefix?: string | Record<string, string>,
)

Source from the content-addressed store, hash-verified

14};
15
16export function vector2Signal(
17 prefix?: string | Record<string, string>,
18): PropertyDecorator {
19 return (target, key) => {
20 compound(
21 typeof prefix === 'object'
22 ? prefix
23 : {
24 x: prefix ? `${prefix}X` : 'x',
25 y: prefix ? `${prefix}Y` : 'y',
26 },
27 )(target, key);
28 wrapper(Vector2)(target, key);
29 };
30}

Callers 7

LayoutClass · 0.90
QuadBezierClass · 0.90
CubicBezierClass · 0.90
NodeClass · 0.90
RayClass · 0.90
GridClass · 0.90
GradientClass · 0.90

Calls 2

compoundFunction · 0.90
wrapperFunction · 0.90

Tested by

no test coverage detected