react-native-filament
Version:
A real-time physically based 3D rendering engine for React Native
19 lines (16 loc) • 567 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isWorkletSharedValue = exports.areFloat3Equal = void 0;
const areFloat3Equal = (a, b) => {
'worklet';
return a[0] === b?.[0] && a[1] === b?.[1] && a[2] === b?.[2];
};
exports.areFloat3Equal = areFloat3Equal;
const isWorkletSharedValue = value => {
'worklet';
return typeof value === 'object' && value != null && 'addListener' in value && typeof value.addListener === 'function';
};
exports.isWorkletSharedValue = isWorkletSharedValue;
//# sourceMappingURL=helper.js.map