GithubHelp home page GithubHelp logo

adapter.xd's Introduction

Adapter.Xd

Usage

(xd2xd)

xd ---> zip --- json2plist ---> plist ---> checker
(xd:xd2jsons (xd:xd2xd) #p"c:/Users/user-name/Desktop/")

Installation

XD

 zip/
  |
  +-- artwork
  |     |
  |     +--- artboard-${id}/
  |     |       |
  |     |       `--- graphics/
  |     |               |
  |     |               `--- graphicContent.agc (json)
  |     |
  |     +--- pasteboard/
  |             |
  |             `--- graphics/
  |                     |
  |                     `--- graphicContent.agc (json)
  |
  +-- interactions/
  |     |
  |     `--- interactions.json
  |
  +-- META-INF/
  |     |
  |     `--- metadata.xml
  |
  +-- renditions/
  |     |
  |     `--- image-${?}.png
  |
  +-- resources/
  |     |
  |     +--- graphics/
  |     |      |
  |     |      `--- graphicContent.agc (json)
  |     |
  |     `--- ${?} 画像ファイル。拡張子なし。
  |
  +-- sharing/
  |     |
  |     `--- sharing.json
  |
  +-- manifest (json)
  |
  +-- mimetype (text)
  |
  +-- preview.png
  |
  `-- thumbnail.png

resources/

resources/graphics/graphicContent.agc

JSON

'(:|artboards| :HAVE-ID ;; key is :|id|
  :|resources| (:|meta| (:|ux| (:|colorSwatches| :not-have-id
                                :|documentLibrary| (:|version| :number
                                                    :|isStickerSheet| :boolean
                                                    :|hashedMetadata| nil
                                                    :|elements| (:HAVE-ID :|assetGroupData|))
                                :|gridDefaults| (:|defaultGrid| :not-have-id
                                                 :|layoutOverrides| :not-have-id)
                                :|symbols| (:HAVE-ID :|group|)
                                :|symbolsMetadata| (:|haveNestedSymbolsBeenMigrated| :boolean
                                                    :|usingNestedSymbolSyncing| :boolean)))
                :|gradients| nil
                :|clipPaths| nil)
  :|children| nil
  :|version| :string)

artwork/

artboard-${id}/graphics/graphicContent.agc

JSON

(artwork-artboard-data "33d0e899-7255-4554-b08e-46818ff65507")

'(:|version| :string
  :|children| ((:|artboard| (:|type| :string ;; "artboard"
                             :|id| :string
                             :|meta| (:|ux| (:|hasCustomName| :boolean
                                             :|constraintsDisabled| :boolean
                                             :|gridStyle| :not-have-id))
                             :|style| :not-have-id
                             :|artboard| (:|children| :HAVE-ID
                                          :|meta| (:|ux| (:|path| :string)) ;; is :|id| ex) "33d0e899-7255-4554-b08e-46818ff65507"
                                          :|ref| :string)))) ;; is :|id| ex) "33d0e899-7255-4554-b08e-46818ff65507"
  :|resources| (:|href| :string)  ;; "/resources/graphics/graphicContent.agc"
  :|artboards| (:|href| :string)) ;; "/resources/graphics/graphicContent.agc"

pasteboard/graphics/graphicContent.agc

JSON

(artwork-pasteboard-data)

'(:|version| :string
  :|children| :HAVE-ID
  :|resources| (:|href| :string)  ;; "/resources/graphics/graphicContent.agc"
  :|artboards| (:|href| :string)) ;; "/resources/graphics/graphicContent.agc"

interactions/

interactions.json

JSON

(interactions-data)

'(:|version| :string
  :|interactions| :have-id) ;; key is :|id|

ZIP

https://github.com/bluelisp/zip

adapter.xd's People

Contributors

iwasaki-booklista avatar yanqirenshi avatar

Watchers

 avatar  avatar

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.