Tiddlymap vertical position

61 views
Skip to first unread message

Jan

unread,
Jul 18, 2019, 6:55:41 AM7/18/19
to TiddlyWiki
Hello Everyone,
... but I think this is a question hard to answer for anyone but Felix.
Is there an index to find out the vertical position a tiddler has in a map?
Where are those informations stored?
This would be very practical to generate an order of a tiddlerlist for me.

Ahoi (also from Hamburg) Jan

Felix Küppers

unread,
Jul 19, 2019, 7:06:50 AM7/19/19
to tiddl...@googlegroups.com

Moin,

Node positions are stored as json per view.

All views data is stored below: $:/plugins/felixhayashi/tiddlymap/graph/views/NAME OF VIEW/

node positions are stored here:

$:/plugins/felixhayashi/tiddlymap/graph/views/NAME OF VIEW/map

So you can either parse the json or use the tiddlymap javascript API

var myView = new $tm.ViewAbstraction("NAME OF VIEW");
var nodePositions = myView.getNodeData(); // returns list of node data including positions shown in screenshot

Hope this helps

Felix

Jan

unread,
Jul 19, 2019, 5:29:12 PM7/19/19
to tiddl...@googlegroups.com
Moin und Danke!
Thanks for your detailed response.
The Data is well sorted, but I feel it will be quite a task to parse it.
I am just learning java script, so I have to see when I will be able to make a widget using the API.
The result shall be a list of tiddlers in the Map sorted from highest to lowest y value.

Greetings from the Karoviertel.

P.S. A great thing you did with TiddlyMap, I am using it as a visualistation for a storyeditor if you want to take a peek: szen.io/geschichten
You find the Map after choosing a story in the topright menu.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/VI1PR0501MB251151AFB3277A9215FCA371CECB0%40VI1PR0501MB2511.eurprd05.prod.outlook.com.

Reply all
Reply to author
Forward
0 new messages