walter
December 19, 2012, 3:28pm
1
Added samples: IVR Tree , Genogram , Comments . Added Diagram.computePartsBounds method. Added support for Panel.itemArray elements in Panel.Spot and Panel.Auto type Panel s. Added DraggingTool.doDragOver , DraggingTool.doDropOnto , and DraggingTool.moveParts overridable methods, for easier customization. Fixed Diagram.zoomToFit not updating the document bounds first.
ClickCreatingTool , when ClickCreatingTool.isDoubleClick , now checks that both click points are close to each other. Extended Tool.isBeyondDragSize to take two optional Point arguments, defaulting to the first and the last input points in view coordinates. Improved tools to select a selectable containing Group when a Part is not selectable. Fixed Layer.findObjectsIn not always returning the results of the navigation function. Fixed Geometry 's containing Bezier curves failing to scale correctly.
Added Diagram.copyParts , Diagram.removeParts , Diagram.moveParts methods.
Added Link.isLabeledLink property, equivalent to link.labelNodes.count > 0
, but more convenient.
Added Panel.TableRow and Panel.TableColumn Panel types, for use as elements of a Panel of type Panel.Table .
Added PathSegment.SvgArc Enum type to allow the creation of SVG-like arcs. Additionally, Geometry.parse now parses SVG "a" commands.
Added Geometry.scale , Geometry.rotate , Geometry.offset , Geometry.normalize , Geometry.computeBoundsWithoutOrigin methods.
Added Shape.geometryString property.
Added TreeModel to allow creating tree-structured graphs without the use of separate link data objects. Many (but not all) samples involving trees have been updated to make use of a TreeModel.
Added Node.findTreeParentLink , Node.findTreeParentNode , Node.findTreeChildrenLinks , Node.findTreeChildrenNodes for your convenience. For example, see the updated Local View sample.
Changed TreeLayout.path to default to new value TreeLayout.PathDefault , which chooses logical tree direction based on Diagram.isTreePathToChildren .
Added GraphLinksModel.archetypeNodeData for automatically adding a node data to a GraphLinksModel when there is an unresolved reference in a link data. For example, see the updated Beat Paths sample.
Added Iterator.first method for your convenience.
New features for Diagram.makeImage and Diagram.makeImageData can now specify position, size, scale, and maxSize of the resulting Diagram image.
Added introduction pages for Diagram Images , Local Printing , and Server-side Image Creation .
Added CommandHandler.zoomToFit command, invoked by Shift-Z
Modified TextBlock greeking (drawing lines instead of text at very small sizes) to be more accurately placed.
Fixed alignment of vertexes in layouts that use networks to be based on center of Part.locationObject , except for Group s which align to the center of the whole Group.
Fixed an issue with Shape object picking, where partial containment was incorrect.