curvenote / sidenotes

Position floating sidenotes/comments next to a document with inline references.
https://curvenote.com
MIT License
49 stars 10 forks source link

add sidenotes library to angular app #11

Open guypeled1 opened 2 years ago

guypeled1 commented 2 years ago

Hi, is there a way to add this library to an angular app?

rowanc1 commented 2 years ago

I am sure that this would be possible, although you may need to rewrite some of the components yourself, but not the positioning logic.

Let me know how you get on with this if you attempt it, and if there are any updates to the documentation that could make this easier for future users.

guypeled1 commented 2 years ago

ok. where do you recommended me to start?

rowanc1 commented 2 years ago

I am not too familiar with angular. The components you would need to rewrite are in here: https://github.com/curvenote/sidenotes/tree/main/src/components

There are also some libraries that connect angular and redux I think? This app uses redux to calculate the positions of the sidenotes.