NodeSettings
Direct Subclass:
Constructor Summary
Public Constructor | ||
public |
constructor(ownerObject: object, options: object) |
Member Summary
Private Members | ||
private |
|
|
private |
_ownerObject: * |
|
private |
_sizingMode: * |
|
private |
|
Method Summary
Public Methods | ||
public |
Gets the owner object. |
|
public |
Gets the horizontal spacing value. |
|
public |
Gets the sizing mode. |
|
public |
Gets the vertical spacing value. |
|
public |
setHorizontalSpacing(newHorizontalSpacing: number): object Sets the horizontal spacing value. |
|
public |
setSizingMode(newSizingMode: 'nodeSize' | 'size'): object Sets the sizing mode. |
|
public |
setVerticalSpacing(newVerticalSpacing: number): object Sets the vertical spacing value. |
Public Constructors
public constructor(ownerObject: object, options: object) source
Params:
Name | Type | Attribute | Description |
ownerObject | object | The owner object |
|
options | object | The options for the node settings. |
|
options.sizingMode | 'nodeSize' | 'size' |
|
The sizing mode. Should be either 'nodeSize' to automatically size the SVG based on the nodes, or 'size' to use the configured width and height. |
options.horizontalSpacing | number |
|
The horizontal spacing value. |
options.verticalSpacing | number |
|
The vertical spacing value. |
Private Members
private _horizontalSpacing: * source
private _ownerObject: * source
private _sizingMode: * source
private _verticalSpacing: * source
Public Methods
public setHorizontalSpacing(newHorizontalSpacing: number): object source
Sets the horizontal spacing value.
Params:
Name | Type | Attribute | Description |
newHorizontalSpacing | number | The new horizontal spacing value. |
public setSizingMode(newSizingMode: 'nodeSize' | 'size'): object source
Sets the sizing mode.
Params:
Name | Type | Attribute | Description |
newSizingMode | 'nodeSize' | 'size' | The sizing mode. Should be either 'nodeSize' to automatically size the SVG based on the nodes, or 'size' to use the configured width and height. |