Closed OlliL closed 4 years ago
by the way - is there a API reference guide somewhere?
It does auto-focus the selected startIndi - no idea what is wrong with the sample code.
Thanks for taking interest in the library.
The library does not scroll by itself. If you look at the code in demo/upload.html, the render()
function does the scrolling.
The demo on stackblitz does not have the scrolling code.
No API reference yet. I know it would be useful.
Looks good now...
http://www.familie-vollus.de/graph.php?id=156
What would be cool...
Both is probably not directly related to topola though.....
I meant topola to be just a library for doing the rendering, so that it can be reused in various contexts. Things like scrolling and zooming start to involve more of the surrounding web framework such as React and I didn't want to have a dependency on a specific framework.
topola-viewer does implement dragging but not zooming.
If you're interested in integration, have a look at the discussions here:
Awsome library! I want to utilize it for my own gen page (homebrew).
On a Big Tree, supplying startIndi, the viewport of the rendered image is always on the top left corner of the image. Is there an option to automatically move the viewport to the person which was selected at startIndi after rendering is done?
for example: https://stackblitz.com/edit/topola-animations-9ttzm5 starts in the upper left corner. startIndi is Alfred Rudolf Wilhelm (I1217822065)