react-native-filament
Version:
A real-time physically based 3D rendering engine for React Native
31 lines • 1.08 kB
TypeScript
import { Float3 } from '.';
import { ISharedValue } from 'react-native-worklets-core';
/**
* Transformations are applied in the order of scale -> rotate -> translate.
*/
export type TransformationProps = {
/**
* Position in meters. Unit is in meters.
* @default [0, 0, 0]
*/
translate?: Float3 | ISharedValue<Float3>;
/**
* Scale for each axis. Unit is in meters.
*/
scale?: Float3 | ISharedValue<Float3>;
/**
* Rotation for each axis in radians.
*/
rotate?: Float3 | ISharedValue<Float3>;
/**
* If true, the current transformation of the entity will be multiplied with the new transformation.
* @default true
*/
multiplyWithCurrentTransform?: boolean;
/**
* Transforms the given entity to fit into a unit cube (1,1,1) at the origin (0,0,0).
*/
transformToUnitCube?: boolean;
};
export declare function extractTransformationProps<T extends TransformationProps>(props: T): [TransformationProps, Omit<T, keyof TransformationProps>];
//# sourceMappingURL=TransformProps.d.ts.map