sketch-constants
v1.1.0
Published
A set of common Sketch constants used for plugins development.
Downloads
8,194
Readme
sketch-constants
Convenient npm package with common constants used in SketchApp plugins.
Installation
To install the latest version:
npm install --save sketch-constants
Usage
Sample usage via JavaScript ES6 syntax:
import { FillType, GradientType } from 'sketch-constants';
layer.style().fill().fillType = FillType.Gradient;
layer.style().fill().gradient().gradientType = GradientType.Radial;