This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "My first XD plugin", | |
| "id": "00000000", | |
| "version":"1.0.0", | |
| "Description":"my first plugin for Adobe XD", | |
| "host":{ | |
| "app":"XD", | |
| "minVersion":"21.0" | |
| }, | |
| "uiEntryPoints":[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { Rectangle, selection, Color } = require("scenegraph"); | |
| function myFunction(){ | |
| } | |
| module.exports = { | |
| commands: { | |
| myFunction | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async function getDropboxProfile() { | |
| return createUI(); | |
| } | |
| async function createUI() { | |
| if (!dialog) { | |
| dialog = document.createElement("dialog"); | |
| const html = ` | |
| <style> | |
| title { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| commands: { | |
| myFunction | |
| } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function myFunction(){ | |
| const { Rectangle, selection, Color } = require("scenegraph"); | |
| const newRectangle = new Rectangle(); | |
| newRectangle.width = 100; | |
| newRectangle.height = 50; | |
| newRectangle.fill = new Color("red"); | |
| selection.insertionParent.addChild(newRectangle); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| selection.insertionParent.addChild(newRectangle); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| newRectangle.width = 100; | |
| newRectangle.height = 50; | |
| newRectangle.fill = new Color("red"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const newRectangle = new Rectangle(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "My first XD plugin", | |
| "id": "00000000", | |
| "version":"1.0.0", | |
| "Description":"my first plugin for Adobe XD", | |
| "host":{ | |
| "app":"XD", | |
| "minVersion":"13.0" | |
| }, | |
| "uiEntryPoints":[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { Rectangle, selection, Color } = require("scenegraph"); | |
| const newRectangle = new Rectangle(); | |
| newRectangle.width = 100; | |
| newRectangle.height = 50; | |
| newRectangle.fill = new Color("red"); | |
| selection.insertionParent.addChild(newRectangle); |
NewerOlder