--- a/src/pyams_content/shared/imagemap/__init__.py Wed Oct 16 18:52:12 2019 +0200
+++ b/src/pyams_content/shared/imagemap/__init__.py Fri Oct 18 12:46:26 2019 +0200
@@ -48,6 +48,13 @@
link = FieldProperty(IImageMapArea['link'])
area = FieldProperty(IImageMapArea['area'])
+ @property
+ def svg_points(self):
+ points = self.area.split(',')
+ x = points[::2]
+ y = points[1::2]
+ return ' '.join(','.join(xy) for xy in zip(x, y))
+
@implementer(IWfImageMap, IExtFileContainerTarget, ILinkContainerTarget,
IPreviewTarget, IReviewTarget)