recently I implemented two new features on branch 1.4.x and cherry-picked them to branch 1.3.x .
Now user can format node as centered so that node content appears centered. To save this information
I introduced a new attribute TEXT_ALIGN of XML element node with possible values LEFT, CENTER, RIGHT
and DEFAULT (DEFAULT means CENTER for root nodes and LEFT for other nodes).
Because centered nodes only make sense if node width is bigger than node content width, this feature
is likely to be used with setting minimum node width. Old solution saved in attribute MIN_WIDTH
allowed only to set node width in pixels, and it means that depending on the monitor resolution the
node width measured in inches would be different. So I extended existing functionality so that
length unit can be selected between px, in, cm and mm.
So I have to decide how to save the new information.
To offer the most possible backwards compatibility I now save two attributes named MIN_WIDTH and
MIN_WIDTH_QUANTITY . The first attribute always contains length in pixels which is calculated for
the current setting. The second attribute has a format <NUMBER> <SPACE> <UNIT> like "1.5 cm" .
When the map is loaded the attribute with unit information has priority over the compatibility
attribute so that maps created with newer Freeplane versions can still be properly displayed in
older Freeplane versions.
Do you agree with this solution?
Should Freeplane map version be increased because of this change?
Do you have any other feedback?