Created
June 7, 2018 13:36
-
-
Save emalgholzad/e50a9d05a93870eb10cbe0c5eed81abd to your computer and use it in GitHub Desktop.
Sketch API layer class type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Old way | |
export const LAYERTYPES = { | |
symbol: { | |
master: 'MSSymbolMaster', | |
instance: 'MSSymbolInstance', | |
}, | |
artboard: 'MSArtboardGroup', | |
text: 'MSTextLayer', | |
group: 'MSLayerGroup', | |
shape: 'MSShapeGroup', | |
path: 'MSPath', | |
bitmap: 'MSBitmapLayer', | |
page: 'MSPage', | |
}; | |
// New way | |
export const LAYERTYPES = { | |
symbol: { | |
master: 'SymbolMaster', | |
instance: 'SymbolInstance', | |
}, | |
artboard: 'Artboard', | |
text: 'Text', | |
group: 'Group', | |
shape: 'Shape', | |
path: 'Path', | |
bitmap: 'Image', | |
page: 'Page', | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment