summaryrefslogtreecommitdiff
path: root/graphics/asymptote/GUI/xasyFile.py
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/GUI/xasyFile.py')
-rw-r--r--graphics/asymptote/GUI/xasyFile.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/graphics/asymptote/GUI/xasyFile.py b/graphics/asymptote/GUI/xasyFile.py
index 54c70cf5c2..e980a3c183 100644
--- a/graphics/asymptote/GUI/xasyFile.py
+++ b/graphics/asymptote/GUI/xasyFile.py
@@ -103,15 +103,27 @@ def xasyToDict(file, xasyItems, asy2psmap):
})
elif isinstance(item, xasy2asy.xasyShape):
- penData = {'color': item.pen.color, 'width': item.pen.width, 'options': item.pen.options}
+ penData = {'color': item.pen.color, 'width': item.pen.width, 'dashPattern': item.pen.dashPattern, 'options': item.pen.options}
fileItems.append({'type': 'xasyShape',
'nodes': item.path.nodeSet,
'links': item.path.linkSet,
+ 'fill': item.path.fill,
'transform': item.transfKeymap[item.transfKey][0].t,
'transfKey': item.transfKey,
'pen': penData
})
+ elif isinstance(item, xasy2asy.asyArrow): #Will this ever even be reached?
+ penData = {'color': item.pen.color, 'width': item.pen.width, 'dashPattern': item.pen.dashPattern, 'options': item.pen.options}
+ fileItems.append({'type': 'asyArrow',
+ 'pen': penData,
+ 'arrowSettings': item.arrowSettings,
+ 'transform': item.transfKeymap[item.transfKey][0].t,
+ 'transfKey': item.transfKey,
+ 'settings': item.arrowSettings,
+ 'code': item.code
+ })
+
else:
# DEBUGGING PURPOSES ONLY
print(type(item))