Files
ETB/ETB-FrontEnd/node_modules/@react-spring/three/dist/react-spring_three.modern.mjs
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

32 lines
802 B
JavaScript

// src/index.ts
import { applyProps, addEffect } from "@react-three/fiber";
import { Globals } from "@react-spring/core";
import { createStringInterpolator, colors, raf } from "@react-spring/shared";
import { createHost } from "@react-spring/animated";
// src/primitives.ts
import * as THREE from "three";
import "@react-three/fiber";
var primitives = ["primitive"].concat(
Object.keys(THREE).filter((key) => /^[A-Z]/.test(key)).map((key) => key[0].toLowerCase() + key.slice(1))
);
// src/index.ts
export * from "@react-spring/core";
Globals.assign({
createStringInterpolator,
colors,
frameLoop: "demand"
});
addEffect(() => {
raf.advance();
});
var host = createHost(primitives, {
applyAnimatedValues: applyProps
});
var animated = host.animated;
export {
animated as a,
animated
};