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