AstroDraw / AstroChart

A free and open-source TypeScript library for generating SVG charts to display planets in astrology.
https://astrodraw.github.io
MIT License
212 stars 55 forks source link

How to access the aspect tooltip #11

Closed andandio closed 2 years ago

andandio commented 3 years ago

Hovering on an aspect line renders a default tooltip with the text "Test text". I've looked through all the possible settings in settings.js and searched the repo for the tooltip insertion point, but I don't see a way to customize this. Is there one?

afucher commented 2 years ago

Hey @andandio , I did not found this tooltip here. Were did you saw this tooltip? It shows in our examples?

andandio commented 2 years ago

@afucher , the example links in the read.me are suddenly showing up as plain text files. I thought they were live examples before?

I see where the tooltip is coming from now. I looked through every file in Chrome sources tab and finally found it:

Screen Shot 2021-11-06 at 4 15 35 PM Screen Shot 2021-11-06 at 4 16 09 PM

I installed AstoChart as this npm package: astrochart-modified, which I see now points to the old (Kibo) repo and is several minor versions behind this one. So, I guess the tooltip is coming from that older version. Sorry for the confusion. I will add this repo to my package.json instead.

andandio commented 2 years ago

@afucher Out of curiosity, do you plan on updating/maintaining that npm package or publishing a new one?

afucher commented 2 years ago

@andandio to be honest, I didn't know that there was a npm package. Probably would be good to have one, I will open an issue to have this in my radar.