Skip to content

teach310/xda_exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

2019-02-11 21 22 56

You can install plugin from the XD plugin manager.

xda_exporter

export AdobeXd artboard as xda file

Unity

you can use xda on unity. https://github.com/teach310/Xd2uGUI

SampleScreen.xda

{
	"artboard": {
		"guid": "7f3c0811-2209-466b-a600-cff1b2b48a32",
		"component": "Artboard",
		"name": "SampleScreen",
		"width": 667,
		"height": 375
	},
	"rectangleList": [
		{
			"guid": "3188e88d-7cd7-43c2-afb2-8ccc7b8736fb",
			"component": "Rectangle",
			"name": "長方形 10",
			"parentGuid": "7f3c0811-2209-466b-a600-cff1b2b48a32",
			"siblingIndex": 0,
			"artboardPosX": 36,
			"artboardPosY": 36,
			"width": 595,
			"height": 303,
			"color": "#fcfaf2"
		},
		{
			"guid": "99545c77-3746-4997-9a9f-2d5189485e9d",
			"component": "Rectangle",
			"name": "長方形 4",
			"parentGuid": "75182f7e-a658-4368-8a43-f66cdc69d274",
			"siblingIndex": 0,
			"artboardPosX": 0,
			"artboardPosY": 0,
			"width": 36,
			"height": 375,
			"color": "#fb32bb"
		},
		{
			"guid": "85721e33-f4f1-4755-b427-7ea8fe871259",
			"component": "Rectangle",
			"name": "長方形 5",
			"parentGuid": "75182f7e-a658-4368-8a43-f66cdc69d274",
			"siblingIndex": 1,
			"artboardPosX": 36,
			"artboardPosY": 0,
			"width": 290,
			"height": 36,
			"color": "#fb32bb"
		},
		{
			"guid": "de43011f-5315-4813-9f3e-507022b1d8b7",
			"component": "Rectangle",
			"name": "長方形 6",
			"parentGuid": "75182f7e-a658-4368-8a43-f66cdc69d274",
			"siblingIndex": 2,
			"artboardPosX": 631,
			"artboardPosY": 0,
			"width": 36,
			"height": 375,
			"color": "#262525"
		},
		{
			"guid": "dac96a62-9cce-4ce4-b9fc-5f9328edce56",
			"component": "Rectangle",
			"name": "長方形 7",
			"parentGuid": "75182f7e-a658-4368-8a43-f66cdc69d274",
			"siblingIndex": 3,
			"artboardPosX": 28,
			"artboardPosY": 339,
			"width": 306,
			"height": 36,
			"color": "#fb32bb"
		},
		{
			"guid": "67262ccb-66f1-4624-959a-c79b3d5b24c2",
			"component": "Rectangle",
			"name": "長方形 8",
			"parentGuid": "75182f7e-a658-4368-8a43-f66cdc69d274",
			"siblingIndex": 4,
			"artboardPosX": 326,
			"artboardPosY": 0,
			"width": 305,
			"height": 36,
			"color": "#262525"
		},
		{
			"guid": "398ddfa1-88c3-4121-9867-909b426fdf91",
			"component": "Rectangle",
			"name": "長方形 9",
			"parentGuid": "75182f7e-a658-4368-8a43-f66cdc69d274",
			"siblingIndex": 5,
			"artboardPosX": 326,
			"artboardPosY": 339,
			"width": 312,
			"height": 36,
			"color": "#262525"
		},
		{
			"guid": "b4a670c3-f8f5-4614-93b0-bc19e87a6252",
			"component": "Rectangle",
			"name": "butachan",
			"parentGuid": "7f3c0811-2209-466b-a600-cff1b2b48a32",
			"siblingIndex": 4,
			"artboardPosX": 10,
			"artboardPosY": 160,
			"width": 207,
			"height": 179,
			"color": "#FFF"
		}
	],
	"groupList": [
		{
			"guid": "75182f7e-a658-4368-8a43-f66cdc69d274",
			"component": "Group",
			"name": "frame",
			"parentGuid": "7f3c0811-2209-466b-a600-cff1b2b48a32",
			"siblingIndex": 1,
			"artboardPosX": 0,
			"artboardPosY": 0
		},
		{
			"guid": "59a7bb44-cb91-48b5-a26f-a168f8cc2570",
			"component": "Group",
			"name": "title",
			"parentGuid": "7f3c0811-2209-466b-a600-cff1b2b48a32",
			"siblingIndex": 3,
			"artboardPosX": 113,
			"artboardPosY": 132
		}
	],
	"textList": [
		{
			"guid": "b1d2be85-2069-4a63-8178-4afff019bbed",
			"component": "Text",
			"name": "2",
			"parentGuid": "7f3c0811-2209-466b-a600-cff1b2b48a32",
			"siblingIndex": 2,
			"artboardPosX": 298,
			"artboardPosY": 132,
			"text": "2",
			"fontSize": 100,
			"color": "#fb32bb",
			"charSpacing": 1,
			"lineSpacing": 18,
			"align": "center"
		},
		{
			"guid": "1ac69d04-4974-4284-bd89-f642ee6bb75e",
			"component": "Text",
			"name": "Xd",
			"parentGuid": "59a7bb44-cb91-48b5-a26f-a168f8cc2570",
			"siblingIndex": 0,
			"artboardPosX": 113,
			"artboardPosY": 132,
			"text": "Xd",
			"fontSize": 100,
			"color": "#fb32bb",
			"charSpacing": 1,
			"lineSpacing": 18,
			"align": "center"
		},
		{
			"guid": "329a6f10-e016-4010-a732-888ad8adcd14",
			"component": "Text",
			"name": "uGUI",
			"parentGuid": "59a7bb44-cb91-48b5-a26f-a168f8cc2570",
			"siblingIndex": 1,
			"artboardPosX": 379,
			"artboardPosY": 132,
			"text": "uGUI",
			"fontSize": 100,
			"color": "#262525",
			"charSpacing": 1,
			"lineSpacing": 18,
			"align": "center"
		},
		{
			"guid": "b6277826-5cb3-453d-a111-b36625159373",
			"component": "Text",
			"name": "2_1",
			"parentGuid": "59a7bb44-cb91-48b5-a26f-a168f8cc2570",
			"siblingIndex": 2,
			"artboardPosX": 298,
			"artboardPosY": 132,
			"text": "2",
			"fontSize": 100,
			"color": "#fb32bb",
			"charSpacing": 1,
			"lineSpacing": 18,
			"align": "center"
		},
		{
			"guid": "dc974149-fb98-4393-b574-1847f4b2a4cb",
			"component": "Text",
			"name": "2",
			"parentGuid": "59a7bb44-cb91-48b5-a26f-a168f8cc2570",
			"siblingIndex": 3,
			"artboardPosX": 306,
			"artboardPosY": 132,
			"text": "2",
			"fontSize": 100,
			"color": "#262525",
			"charSpacing": 1,
			"lineSpacing": 18,
			"align": "center"
		}
	]
}

Reference

2019-02-12 23 01 36

Artboard

Prop Description
guid guid of self
component "Artboard"
name name of artboard
width artboard width
height artboard height

Rectangle

Prop Description
guid guid of self
component "Rectangle"
name name of node
parentGuid guid of parent node
siblingIndex the sibling index of the
artboardPosX left-top pos x
artboardPosY left-top pos y
width artboard width
height artboard height
color hex color like "#FFF"

Text

Prop Description
guid guid of self
component "Text"
name name of node
parentGuid guid of parent node
siblingIndex the sibling index of the
artboardPosX left-top pos x
artboardPosY left-top pos y
text text content
fontSize fontSize
color hex color like "#FFF"
charSpacing charSpacing h
lineSpacing lineSpacing v
"align" align "center"

Group

Prop Description
guid guid of self
component "Group"
name name of node
parentGuid guid of parent node
siblingIndex the sibling index of the
artboardPosX left-top pos x
artboardPosY left-top pos y

Ellipse

Prop Description
guid guid of self
component "Ellipse"
name name of node
parentGuid guid of parent node
siblingIndex the sibling index of the
artboardPosX left-top pos x
artboardPosY left-top pos y
width artboard width
height artboard height
color hex color like "#FFF"
radiusX radius x of ellipse
radiusY radius y of ellipse

Line

Prop Description
guid guid of self
component "Ellipse"
name name of node
parentGuid guid of parent node
siblingIndex the sibling index of the
artboardPosX left-top pos x
artboardPosY left-top pos y
width artboard width
height artboard height
color hex color like "#FFF"
startPosX line startpos x
startPosY line startpos y
endPosX line endpos x
endPosY line endpos y

Path

Prop Description
guid guid of self
component "Path"
name name of node
parentGuid guid of parent node
siblingIndex the sibling index of the
artboardPosX left-top pos x
artboardPosY left-top pos y
width artboard width
height artboard height
color hex color like "#FFF"
pathData pathData

SymbolInstance

Prop Description
guid guid of self
component "SymbolInstance"
name name of node
parentGuid guid of parent node
siblingIndex the sibling index of the
artboardPosX left-top pos x
artboardPosY left-top pos y

LinkedGraphic

Prop Description
guid guid of self
component "LinkedGraphic"
name name of node
parentGuid guid of parent node
siblingIndex the sibling index of the
artboardPosX left-top pos x
artboardPosY left-top pos y
width artboard width
height artboard height
color hex color like "#FFF"

ReleaseNotes

1.0.1

Map all node type. Export artboards

1.0.0

Export artboard as xda. Map Rectangle, Artboard, Text, Group

License

This library is under the MIT License.

About

export AdobeXd artboard as xda file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors