@motion-script/core / stripShapeAnchorKeys
Function: stripShapeAnchorKeys()
stripShapeAnchorKeys<
T>(descriptor):Omit<T, keyofShapeAnchorInput>
Defined in: render/descriptors/shape.ts:91
Drop the input-only anchor keys from a descriptor, so a { ...descriptor }
spread doesn't leak them onto the resolved *State (the resolved x/y/pivot
already carry the anchor's effect). Returns a shallow copy without those keys.
Type Parameters
T
T extends object
Parameters
descriptor
T
Returns
Omit<T, keyof ShapeAnchorInput>