How to use the @sketch-hq/sketch-file-format-ts.FileFormat1.TextVerticalAlignment function in @sketch-hq/sketch-file-format-ts

To help you get started, we’ve selected a few @sketch-hq/sketch-file-format-ts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github airbnb / react-sketchapp / src / jsonUtils / textLayers.ts View on Github external
export const makeTextStyle = (style: TextStyle, shadows?: Array): FileFormat.Style => {
  const json = makeStyle(style, undefined, shadows);
  json.textStyle = {
    _class: 'textStyle',
    encodedAttributes: makeTextStyleAttributes(style),
    verticalAlignment: FileFormat.TextVerticalAlignment.Top,
  };
  return json;
};