import { loadCoreDefaults } from '../src'; export const mockCoreDefaultsData: any = { Camera: { defaultPosition: 'worldFacing', Settings: { zoomFactor: 1, zoomGestureZoomFactor: 2, zoomLevels: [1, 2], focusGestureStrategy: 'manualUntilCapture', focusRange: 'near', preferredResolution: 'auto', shouldPreferSmoothAutoFocus: false, torchLevel: 1, macroMode: 'auto', adaptiveExposure: false, manualLensPosition: -1, focusStrategy: 'auto', properties: {}, }, availablePositions: ['worldFacing', 'userFacing'], }, ZoomSwitchControl: { orientation: 'horizontal', isAlwaysExpanded: false, isExpanded: false, accessibilityLabel: 'Zoom ', accessibilityHint: 'Adjusts the camera zoom level', }, Version: '8.1.0-test', deviceID: 'test-device-id', AimerViewfinder: { dotColor: 'ffffffcc', frameColor: 'ffffffff', }, RectangularViewfinder: { defaultStyle: 'rounded', styles: { rounded: { color: 'ffffffff', size: '{"aspect":1.0,"shorterDimension":{"unit":"fraction","value":0.75}}', disabledDimming: 0, dimming: 0, animation: '{"looping":true}', style: 'rounded', disabledColor: '00000000', lineStyle: 'light', }, }, }, DataCaptureView: { zoomGesture: '{"type":"swipeToZoom"}', zoomGestures: '[{"type":"swipeToZoom"},{"type":"pinchToZoom"}]', pointOfInterest: '{"x":{"unit":"fraction","value":0.5},"y":{"unit":"fraction","value":0.5}}', focusGesture: '{"showUIIndicator":true,"type":"tapToFocus"}', logoStyle: 'extended', logoOffset: '{"x":{"unit":"fraction","value":0.0},"y":{"unit":"fraction","value":0.0}}', logoAnchor: 'bottomRight', scanAreaMargins: '{"bottom":{"unit":"fraction","value":0.0},"left":{"unit":"fraction","value":0.0},"right":{"unit":"fraction","value":0.0},"top":{"unit":"fraction","value":0.0}}', }, Brush: { fillColor: '00000000', strokeColor: '00000000', strokeWidth: 0, }, LaserlineViewfinder: { width: '{"unit":"fraction","value":0.8}', enabledColor: '#FFFFFFFF', disabledColor: '#00000000', }, }; export function loadMockDefaults() { loadCoreDefaults(mockCoreDefaultsData); } loadMockDefaults();