MCPcopy Index your code
hub / github.com/CapSoftware/Cap / normalizeWebcamShape

Function normalizeWebcamShape

apps/chrome-extension/src/shared/storage.ts:589–602  ·  view source on GitHub ↗
(
	value: unknown,
)

Source from the content-addressed store, hash-verified

587};
588
589const normalizeWebcamShape = (
590 value: unknown,
591): ExtensionSettings["webcam"]["shape"] => {
592 if (value === "round" || value === "full" || value === "square") {
593 return value;
594 }
595 if (value === "circle") {
596 return "round";
597 }
598 if (value === "rounded") {
599 return "square";
600 }
601 return defaultSettings.webcam.shape;
602};
603
604const normalizeWebcamSettings = (
605 value: unknown,

Callers 1

normalizeWebcamSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected