Skip to content

Instantly share code, notes, and snippets.

@emalgholzad
Created June 7, 2018 13:36
Show Gist options
  • Save emalgholzad/e50a9d05a93870eb10cbe0c5eed81abd to your computer and use it in GitHub Desktop.
Save emalgholzad/e50a9d05a93870eb10cbe0c5eed81abd to your computer and use it in GitHub Desktop.
Sketch API layer class type
// 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