Members
Constants
Examples
const style = new ShapeNodeStyle({
shape: 'diamond',
})
graph.setStyle(node, style)See Also
Developer's Guide
Examples
The following example shows a ShapeNodeStyle with an ELLIPSE shape.
const style = new ShapeNodeStyle({
shape: 'ellipse',
})
graph.setStyle(node, style)If the shape should be a circle irrespective of the node layout's width-to-height ratio, set the keepIntrinsicAspectRatio property to true.
The following example shows a ShapeNodeStyle with a circle shape.
const style = new ShapeNodeStyle({
shape: 'ellipse',
keepIntrinsicAspectRatio: true,
})
graph.setStyle(node, style)See Also
Developer's Guide
Examples
const style = new ShapeNodeStyle({
shape: 'hexagon',
})
graph.setStyle(node, style)See Also
Developer's Guide
Examples
const style = new ShapeNodeStyle({
shape: 'hexagon-standing',
})
graph.setStyle(node, style)See Also
Developer's Guide
Examples
const style = new ShapeNodeStyle({
shape: 'octagon',
})
graph.setStyle(node, style)See Also
Developer's Guide
Examples
const style = new ShapeNodeStyle({ shape: 'octagon-standing' })
graph.setStyle(node, style)See Also
Developer's Guide
Examples
const style = new ShapeNodeStyle({ shape: 'pentagon' })
graph.setStyle(node, style)See Also
Developer's Guide
Examples
const style = new ShapeNodeStyle({
shape: 'pill',
})
graph.setStyle(node, style)See Also
Developer's Guide
Examples
The following example shows a ShapeNodeStyle with a RECTANGLE shape.
const style = new ShapeNodeStyle({
shape: 'rectangle',
})
graph.setStyle(node, style)If the shape should be a square irrespective of the node layout's width-to-height ratio, set the keepIntrinsicAspectRatio property to true.
The following example shows a ShapeNodeStyle with a square shape.
const style = new ShapeNodeStyle({
shape: 'rectangle',
keepIntrinsicAspectRatio: true,
})
graph.setStyle(node, style)See Also
Developer's Guide
Examples
The following example shows a ShapeNodeStyle with a ROUND_RECTANGLE shape.
const style = new ShapeNodeStyle({
shape: 'round-rectangle',
})
graph.setStyle(node, style)If the shape should be a square with rounded corners irrespective of the node layout's width-to-height ratio, set the keepIntrinsicAspectRatio property to true.
The following example shows a ShapeNodeStyle with a square with rounded corners shape.
const style = new ShapeNodeStyle({
shape: 'round-rectangle',
keepIntrinsicAspectRatio: true,
})
graph.setStyle(node, style)See Also
Developer's Guide
Examples
const style = new ShapeNodeStyle({
shape: 'star5',
})
graph.setStyle(node, style)See Also
Developer's Guide
Examples
const style = new ShapeNodeStyle({
shape: 'star6',
})
graph.setStyle(node, style)See Also
Developer's Guide
Examples
const style = new ShapeNodeStyle({
shape: 'star8',
})
graph.setStyle(node, style)See Also
Developer's Guide
Examples
const style = new ShapeNodeStyle({
shape: 'triangle',
})
graph.setStyle(node, style)See Also
Developer's Guide
Examples
const style = new ShapeNodeStyle({
shape: 'triangle-pointing-down',
})
graph.setStyle(node, style)See Also
Developer's Guide
Examples
const style = new ShapeNodeStyle({
shape: 'triangle-pointing-left',
})
graph.setStyle(node, style)See Also
Developer's Guide
Examples
const style = new ShapeNodeStyle({
shape: 'triangle-pointing-right',
})
graph.setStyle(node, style)See Also
Developer's Guide
Static Methods
Converts the given argument to an enum constant of this enum type.
Parameters
- value: ShapeNodeShape
- The value to convert to an enum constant.
Return Value
- ShapeNodeShape
- The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
Parameters
- value: ShapeNodeShape
- The numeric value of an enum constant.
Return Value
- string
- The name of the enum constant.
Throws
- Exception ({ name: 'Error' })
- If this type is a flags enums, and the provided value doesn't correspond to a single enum constant, or if this enum type contains no constant of the given numeric value.