@motion-script/core / validateShapeAnchorProps
Function: validateShapeAnchorProps()
validateShapeAnchorProps(
descriptor):void
Defined in: render/descriptors/shape.ts:73
Validate a shape descriptor's anchor usage — mirrors Node.validateAnchorProps,
extended to also reject x/y (a shape positioned by an anchor cannot also set
its centre). Throws if more than one anchor is set, or an anchor is combined with
pivot, x, or y. x/y/pivot may freely combine with each other.
Parameters
descriptor
Record<string, unknown>
Returns
void