MCPcopy
hub / github.com/CapSoftware/Cap / withCornerDefaults

Function withCornerDefaults

apps/desktop/src/routes/editor/context.ts:190–201  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

188};
189
190function withCornerDefaults<
191 T extends {
192 roundingType?: CornerRoundingType;
193 rounding_type?: CornerRoundingType;
194 },
195>(value: T): T & { roundingType: CornerRoundingType } {
196 const roundingType = value.roundingType ?? value.rounding_type ?? "squircle";
197 return {
198 ...value,
199 roundingType,
200 };
201}
202
203export function normalizeProject(
204 config: ProjectConfiguration,

Callers 1

normalizeProjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected