Describes an elliptic perimeter. See RectanglePerimeter for a description of the parameters.
Describes a hexagon perimeter. See RectanglePerimeter for a description of the parameters.
Describes a rectangular perimeter for the given bounds.
mxRectangle that represents the absolute bounds of the vertex.
mxCellState that represents the vertex.
mxPoint that represents the nearest neighbour point on the given edge.
Boolean that specifies if the orthogonal projection onto the perimeter should be returned. If this is false then the intersection of the perimeter and the line between the next and the center point is returned.
Describes a rhombus (aka diamond) perimeter. See RectanglePerimeter for a description of the parameters.
Describes a triangle perimeter. See RectanglePerimeter for a description of the parameters.
Generated using TypeDoc
Or programmatically
When adding new perimeter functions, it is recommended to use the mxPerimeter-namespace as follows:
The new perimeter should then be registered in the mxStyleRegistry as follows
The custom perimeter above can now be used in a specific vertex as follows:
Note that the key of the mxStyleRegistry entry for the function should be used in string values, unless mxGraphView.allowEval is true, in which case you can also use mxPerimeter.CustomPerimeter for the value in the cell style above.
Or it can be used for all vertices in the graph as follows:
Note that the object can be used directly when programmatically setting the value, but the key in the mxStyleRegistry should be used when setting the value via a key, value pair in a cell style.
The parameters are explained in RectanglePerimeter.