Closed amitaibu closed 10 years ago
@ceoaliongroo
grunt.task
that will go over the XML file (under brain/brain.xml
) and create a JSON file that we can later use in 3d js. As first step it should include only Thought
. Disregard Attachments
for now.Update: We are now parsing the XML into a JSON that can be rendered by 3d JS
Now working on getting the data in a Tree layout
Update: Drawn the tree layout from top to down.
Found that it's necessary check for childs with dir=1 with idA:guid and dir=2 with idB:guid in links tags, working in have all the data of the exported file.
Update: Draw all the data of the two brach of the root "Torah+Basch 10.11.13"
Done. specific design issue will be opened as follow-up issues.
via
guid
we reach theLink
:<idA>
and<idB>
describe reference between 2Thought
<dir>
- direction (father, son, sibling, bastard)<linkTypeID>
via
idA
andidB
we reachEntry
<body>
- the text. Keep only<p><strong><em><a>
<attachmentType>
- link or file<objectID>
- connection to aThought
< location>
- can be a media file (e.g. image) or link (e.g. youtube)