-
Notifications
You must be signed in to change notification settings - Fork 0
Defined Objects
juliusse edited this page Apr 8, 2013
·
24 revisions
A mind map contains a RootNode, which is slightly different to a normal node.
{
"id" : String
"isReadonly" : boolean,
"revision" : integer
"name" : string
"root" : RootNode
}{
"mmIdOnServer" : String,
"mmIdInternal" : String,
"revision" : Time,
"filePath" : String,
"fileName" : String
}There are several types of map updates
{
"type" : "AddNode",
"parentNodeId" : String,
"nodeAsJson" : String,
"side" : "Left" | "Right" //only for root node!
}{
"type" : "DeleteNode",
"nodeId" : String,
}-
attribute: can be every attribute of aNode -
value: depends on attribute
{
"type" : "DeleteNode",
"nodeId" : String,
"attribute" : String,
"value" : mixed
}- hGap: horizontal distance to parent
- shiftY: used to calculate the vertical position
- icons: List with names of predefined icons
- We need the icons on the server
- Exit in freeplane project: \freeplane\bin\classes\images\icons
- prefferedChild: appears to be important
- nodeText: plain text or HTML, defined by
isHtml - isHtml: defines if
nodeTextis plain text or HTML - link: external link or link to another node
- http:// for hyperlinks
- node:// for nodes
- workspace:// for workspace files
- attributes: Table with attributes of node
- self definde table
- information from JabRef
- locked: name of user, which has lock on node
- children: list with children, when they have been loaded
- childrenIds: list with ids of children, when due to chunking they haven't been loaded
Note: children and childrenIds do not appear together!
{
"id" : string,
"hGap" : integer,
"shiftY" : integer,
"folded" : boolean,
"icons" : [string,string,...], //names of icons
"prefferedChild" : DefaultNode,
"nodeText" : string,
"isHtml" : boolean,
"isFree" : boolean,
"isSummary" : boolean,
"defaultStyle" : string,
"edgeStyle" : Edge, // edge to parent node, not specified parameters are inherited from parent
"image" : Image,
"link" : string,
"children" : [DefaultNode,DefaultNode...],
"childrenIds" : [string, string,...],
"attributes" : map<string,string> | null
"locked" : string
}Very similar to a normal node with some small changes.
At the root node it is possible to have children on the right and on the left side.
- leftChildren: sorted list with children on the left side
- rightChildren: sorted list with children on the right side For further descriptions see Normal Node
{
"id" : string,
"folded" : boolean,
"icons" : [string,string,...], //names of icons
"prefferedChild" : DefaultNode,
"nodeText" : string,
"isHtml" : boolean,
"image" : Image,
"link" : string,
"leftChildren" : [DefaultNode,DefaultNode,...],
"rightChildren" : [DefaultNode,DefaultNode,...]
}An Edge object contains style definitions. It is applied in the parent direction.
Not defined attributes are inherited from the parent.
{
"width" : integer,
"color" : integer,
"style" : {EDGESTYLE_BEZIER, EDGESTYLE_HIDDEN, EDGESTYLE_HORIZONTAL, EDGESTYLE_LINEAR, EDGESTYLE_SHARP_BEZIER, EDGESTYLE_SHARP_LINEAR, EDGESTYLE_SUMMARY}
}- zoomFactor: 100 means 100% of the image size
{
"URI" : string,
"zoomFactor" : float
}Architecture
- Architecture
- Continuous Integration
- Online View
- Frontend/API-Server
- Freeplane Remote
- Deployment
APIs
Research & Technologies
-
[Client layer - overview](wiki/Overview of used technologies for client layer)
Tutorials
Misc
Archive