UNPKG

@appshuttle.io/turing

Version:
96 lines (83 loc) 1.99 kB
class TRDeviceManagement { constructor() { /* iPhone Devices */ this.iPhoneXStoryboardDevice = { id: 'retina5_9', frame: { width: 375, height: 812 } } this.iPhone8PlusStoryboardDevice = { id: 'retina5_5', frame: { width: 414, height: 736 } } this.iPhone8StoryboardDevice = { id: 'retina4_7', frame: { width: 375, height: 667 } } this.iPhoneSEStoryboardDevice = { id: 'retina4_0', frame: { width: 320, height: 568 } } this.iPhone4SStoryboardDevice = { id: 'retina3_5', frame: { width: 375, height: 812 } } /* iPad Devices */ this.iPadPro12_9StoryboardDevice = { id: 'ipad12_9', frame: { width: 1024, height: 1366 } } this.iPadPro10_5StoryboardDevice = { id: 'ipad10_5', frame: { width: 834, height: 1112 } } this.iPadPro9_7StoryboardDevice = { id: 'ipad9_7', frame: { width: 768, height: 1024 } } /* Orientations */ this.DeviceOrientations = { Portrait: 'portrait', Landscape: 'landscape' } /* Adaptations */ this.DeviceAdaptations = { Fullscreen: 'fullscreen', Splitview2_3: 'splitview2_3', Splitview1_2: 'splitview1_2', Splitview1_3: 'splitview1_3' } } } module.exports = TRDeviceManagement