GithubHelp home page GithubHelp logo

sketch-hq / sketch-file-format-ts Goto Github PK

View Code? Open in Web Editor NEW
43.0 47.0 3.0 37.15 MB

TypeScript types for the Sketch File Format

Home Page: https://developer.sketch.com/file-format/

License: MIT License

JavaScript 0.86% TypeScript 99.14%
sketch typescript-types

sketch-file-format-ts's People

Contributors

christianklotz avatar github-actions[bot] avatar jdgo-mars avatar jedrichards avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sketch-file-format-ts's Issues

Please provide ESModule.

I'm using Deno to deal with sketch files, but it can't use require/export syntax of CommonJS.

Whether the BooleanOperation Enum is correct?

in the v3 type

/**
 * Enumeration of the boolean operations that can be applied to combine shapes
 */
export declare enum BooleanOperation {
    NA = -1,
    None = 0,
    Union = 1,
    Subtract = 2,
    Difference = 3
}

but when i view the raw sketch document, I find the booleanOperation seem not map correctly?
seem the pic below
image
I choose the Intersection Boolean but it's number is 2.

when i choose Subtract, it's number is 1 and Union is 0, None is -1.

Missing the `MSJSONOriginalDataReference` type

really useful to inline data instead of having to work with file references

Example:

{
  _class: 'MSJSONOriginalDataReference',
  _ref: `images/${generateID()}`,
  _ref_class: 'MSImageData',
  data: {
    _data: image.data,
  },
  sha1: {
    _data: image.sha1,
  },
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.