From 8615cccdc7dbec52b8ba3bdf5f28c0ad8b09691f Mon Sep 17 00:00:00 2001 From: Kibo Date: Thu, 15 Feb 2018 09:14:20 +0100 Subject: [PATCH] v0.8.4 --- project/build/astrochart.js | 9 ++++++++- project/src/transit.js | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/project/build/astrochart.js b/project/build/astrochart.js index 7c3b2d8..0f10634 100644 --- a/project/build/astrochart.js +++ b/project/build/astrochart.js @@ -2405,7 +2405,14 @@ var line = this.paper.line( startPoint.x, startPoint.y, endPoint.x, endPoint.y); line.setAttribute("stroke", astrology.STROKE_ONLY ? astrology.LINE_COLOR : aspectsList[i].aspect.color); - line.setAttribute("stroke-width", (astrology.CUSPS_STROKE * astrology.SYMBOL_SCALE)); + line.setAttribute("stroke-width", (astrology.CUSPS_STROKE * astrology.SYMBOL_SCALE)); + + line.setAttribute("data-name", aspectsList[i].aspect.name); + line.setAttribute("data-degree", aspectsList[i].aspect.degree); + line.setAttribute("data-point", aspectsList[i].point.name); + line.setAttribute("data-toPoint", aspectsList[i].toPoint.name); + line.setAttribute("data-precision", aspectsList[i].precision); + wrapper.appendChild( line ); } diff --git a/project/src/transit.js b/project/src/transit.js index 67e2545..e3d4ed2 100644 --- a/project/src/transit.js +++ b/project/src/transit.js @@ -236,7 +236,14 @@ var line = this.paper.line( startPoint.x, startPoint.y, endPoint.x, endPoint.y); line.setAttribute("stroke", astrology.STROKE_ONLY ? astrology.LINE_COLOR : aspectsList[i].aspect.color); - line.setAttribute("stroke-width", (astrology.CUSPS_STROKE * astrology.SYMBOL_SCALE)); + line.setAttribute("stroke-width", (astrology.CUSPS_STROKE * astrology.SYMBOL_SCALE)); + + line.setAttribute("data-name", aspectsList[i].aspect.name); + line.setAttribute("data-degree", aspectsList[i].aspect.degree); + line.setAttribute("data-point", aspectsList[i].point.name); + line.setAttribute("data-toPoint", aspectsList[i].toPoint.name); + line.setAttribute("data-precision", aspectsList[i].precision); + wrapper.appendChild( line ); }