UNPKG

react-native-filament

Version:

A real-time physically based 3D rendering engine for React Native

30 lines (29 loc) 990 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.makeDynamicResolutionHostObject = makeDynamicResolutionHostObject; // We need to wrap our options in a host object to be able to pass them to the view function makeDynamicResolutionHostObject(view, options) { const optionsWrapper = view.createDynamicResolutionOptions(); if (options.enabled != null) { optionsWrapper.enabled = options.enabled; } if (options.homogeneousScaling != null) { optionsWrapper.homogeneousScaling = options.homogeneousScaling; } if (options.maxScale != null) { optionsWrapper.maxScale = options.maxScale; } if (options.minScale != null) { optionsWrapper.minScale = options.minScale; } if (options.quality != null) { optionsWrapper.quality = options.quality; } if (options.sharpness != null) { optionsWrapper.sharpness = options.sharpness; } return optionsWrapper; } //# sourceMappingURL=makeDynamicResolutionHostObject.js.map