This sample demonstrates customization of the Link Shape's Geometry.

The TaperedLink class in this sample inherits from Link and overrides the makeGeometry method. For Bezier-curve Links, this computes a Geometry that is thick at the "from" end and thin at the "to" end. The implementation is very simple and does not account for links that are coming out from a node at angles that are not a multiple of 90 degrees.

The Link class is used to implement a visual relationship between nodes. Links are normally created by the presence of link data objects in the GraphLinksModel.linkDataArray or by a parent key reference as the value of the TreeModel.nodeParentKeyProperty of a node data object in a TreeModel. More information can be found in the GoJS Intro.

This predefined layout treats the graph as if it were a system of physical bodies with forces acting on and between them. The layout iteratively moves nodes and links to minimize the total sum of forces on each node. The resulting layout will normally not contain overlapping Nodes, excluding cases where the graph is densely interconnected. More information can be found in the GoJS Intro.

The **GoJS** Geometry class controls the "shape" of a Shape,
whereas the Shape.fill and Shape.stroke and other shape properties control the colors and appearance of the shape.
For common shape figures, there are predefined geometries that can be used by setting Shape.figure.
However one can also define custom geometries.

One can construct any Geometry by allocating and initializing a Geometry of at least one PathFigure holding some PathSegments. But you may find that using the string representation of a Geometry is easier to write and save in a database. Use the static method Geometry.parse or the Shape.geometryString property to transform a geometry path string into a Geometry object.

More information can be found in the GoJS Intro.