react-native-filament
Version:
A real-time physically based 3D rendering engine for React Native
24 lines (22 loc) • 464 B
JavaScript
// TODO: WithAnimatedProps ?
/**
* Transformations are applied in the order of scale -> rotate -> translate.
*/
export function extractTransformationProps(props) {
const {
translate,
scale,
rotate,
multiplyWithCurrentTransform,
transformToUnitCube,
...rest
} = props;
return [{
translate,
scale,
rotate,
multiplyWithCurrentTransform,
transformToUnitCube
}, rest];
}
//# sourceMappingURL=TransformProps.js.map