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

Function transitionSpecEqual

packages/core/src/runtime/commit/equality.ts:172–183  ·  view source on GitHub ↗
(a: unknown, b: unknown)

Source from the content-addressed store, hash-verified

170}
171
172function transitionSpecEqual(a: unknown, b: unknown): boolean {
173 if (a === b) return true;
174 if (a === undefined || b === undefined) return false;
175 if (typeof a !== "object" || typeof b !== "object" || a === null || b === null) return false;
176 const ao = a as { duration?: unknown; easing?: unknown; properties?: unknown };
177 const bo = b as typeof ao;
178 return (
179 ao.duration === bo.duration &&
180 ao.easing === bo.easing &&
181 transitionPropertiesEqual(ao.properties, bo.properties)
182 );
183}
184
185function layoutConstraintsEqual(a: unknown, b: unknown): boolean {
186 if (a === b) return true;

Callers 2

boxPropsEqualFunction · 0.85
stackPropsEqualFunction · 0.85

Calls 1

Tested by

no test coverage detected