open-design-sdk
open-design-sdk copied to clipboard
Programmatically get data from Figma, Sketch, Adobe XD, Adobe Photoshop, and Adobe Illustrator. All in an open-source Node.js SDK.
In Figma, content should be masked by the closest mask shape below them within a mask group. However, when importing a Figma design with the OpenDesign SDK and then rendering...
When running the following, where `./font/` has all the required custom fonts, ```typescript sdk.setGlobalFontDirectory('./font/'); // Import a Figma design const design = await sdk.importFigmaDesign({ figmaToken: FIGMA_TOKEN, figmaFileKey: FIGMA_FILE_KEY }) design.setFontDirectory('./font/');...
This doesn't appear to be documented anywhere in the [Getting Started](https://opendesign.dev/docs/getting-started) guide, but LibGif is required to install this package. On ubuntu, it's installable via: ```bash sudo apt install libgif-dev...
Hi guys, seems like fallback fonts are not being recognized. Systems fonts are working fine. "@opendesign/sdk": "^0.4.5" node: v14.19.3 ### Error message: ``` (node:105008) UnhandledPromiseRejectionWarning: Error: Unknown font format at...
Is there a way we can get parsing progress ? ```ts const res = await fetch(`https://api.opendesign.dev/designs/${id}/summary`, { method: "get", headers: { Authorization: `Bearer ${config.openDesignToken}`, }, }); ``` Currently, we get:...
The avocode/fontkit library is in plain JS and does not provide types. This should fix the "Cannot find type definition file for 'avocode-fontkit'" error popping up in TS project builds...
A single vector from Figma with 2 paths each having its own fill color (a different color) only has 1 fill in the shapeLayer in the octopus.
A shape imported from Figma that has its fill set on a color with an alpha of 0% does not have either of the shape and borderShape property in the...
Hey guys, it seems that sometimes the bounds of the textLayers and Bitmaps are not detected, so their values remain at 0. ``` const bounds = await rootLayer.getBounds(); console.log({bounds}); ```...