Permalink
Browse files

Add Google Pixel to DeviceComponents

  • Loading branch information...
nvh committed Oct 17, 2016
1 parent 7638378 commit 578bb812776d34da28c139a7b521cf27ba093e2d
Showing with 24 additions and 0 deletions.
  1. +24 −0 framer/Components/DeviceComponent.coffee
@@ -613,6 +613,7 @@ class exports.DeviceComponent extends BaseClass
###########################################################################
# DEVICE CONFIGURATIONS
googlePixelReleaseVersion = 75
desktopReleaseVersion = 70
newDeviceMinVersion = 53
oldDeviceMaxVersion = 52
@@ -798,6 +799,24 @@ Nexus6BaseDevice =
height: 6707
offset: 8
PixelBaseDevice =
deviceImageWidth: 1224
deviceImageHeight: 2492
deviceImageCompression: true
screenWidth: 1080
screenHeight: 1920
deviceType: "phone"
minStudioVersion: googlePixelReleaseVersion
hands:
"iphone-hands-2":
width: 3344
height: 5211
offset: 23
"iphone-hands-1":
width: 3344
height: 5211
offset: 23
Nexus9BaseDevice =
deviceImageWidth: 1896
deviceImageHeight: 2648
@@ -1266,6 +1285,11 @@ Devices =
"google-nexus-6p": _.clone(Nexus6BaseDevice)
"google-nexus-9": _.clone(Nexus9BaseDevice)
# Pixel
"google-pixel-quite-black": _.clone(PixelBaseDevice)
"google-pixel-really-blue": _.clone(PixelBaseDevice)
"google-pixel-very-silver": _.clone(PixelBaseDevice)
# HTC ONE A9
"htc-one-a9-black": _.clone(HTCa9BaseDevice)
"htc-one-a9-white": _.clone(HTCa9BaseDevice)

0 comments on commit 578bb81

Please sign in to comment.