@react-spring/zdog
Version:
> [!WARNING] > This package uses react-zdog which does not support React 19 yet.
34 lines (30 loc) • 835 B
JavaScript
import * as Zdog from "react-zdog";
import { applyProps } from "react-zdog";
import { Globals } from "@react-spring/core";
import { colors, createStringInterpolator } from "@react-spring/shared";
import { createHost } from "@react-spring/animated";
export * from "@react-spring/core"
//#region src/primitives.ts
const primitives = {
Anchor: Zdog.Anchor,
Shape: Zdog.Shape,
Group: Zdog.Group,
Rect: Zdog.Rect,
RoundedRect: Zdog.RoundedRect,
Ellipse: Zdog.Ellipse,
Polygon: Zdog.Polygon,
Hemisphere: Zdog.Hemisphere,
Cylinder: Zdog.Cylinder,
Cone: Zdog.Cone,
Box: Zdog.Box
};
//#endregion
//#region src/index.ts
Globals.assign({
createStringInterpolator,
colors
});
const host = createHost(primitives, { applyAnimatedValues: applyProps });
const animated = host.animated;
//#endregion
export { animated as a, animated };