MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / createRootRefValues

Function createRootRefValues

packages/core/src/constraints/resolver.ts:132–141  ·  view source on GitHub ↗
(w: number, h: number)

Source from the content-addressed store, hash-verified

130}
131
132function createRootRefValues(w: number, h: number): RefValues {
133 const safeW = sanitizeFinite(w);
134 const safeH = sanitizeFinite(h);
135 return {
136 w: safeW,
137 h: safeH,
138 min_w: safeW,
139 min_h: safeH,
140 };
141}
142
143function readRefValue(values: RefValues, prop: RefProp): number {
144 switch (prop) {

Callers 1

resolveConstraintsFunction · 0.85

Calls 1

sanitizeFiniteFunction · 0.85

Tested by

no test coverage detected