UNPKG

motion-dom

Version:
1 lines • 991 B
{"version":3,"file":"groups.mjs","sources":["../../../../../src/animation/waapi/transforms/groups.ts"],"sourcesContent":["/**\n * The independent transform (x, scale, rotate etc) animations running on\n * each element, composed into one hardware-accelerated `transform`.\n *\n * Kept apart from the group itself so renderers and projection can tell a\n * group about outside changes without importing the animation code.\n */\nexport interface TransformGroupHooks {\n /**\n * A transform value may have been set by something other than one of\n * the group's animations.\n */\n check(): void\n\n /**\n * Hand every animation in the group back to the main thread, with\n * up-to-date values, e.g. before layout is measured. Returns true if\n * this wrote the element's transform.\n */\n demote(): true | void\n}\n\nexport const transformGroups = new WeakMap<object, TransformGroupHooks>()\n"],"names":[],"mappings":"AAsBO,MAAM,eAAe,GAAG,IAAI,OAAO;;;;"}