Implementations of this interface yield the padding for a group node around its child nodes when calculating the group node's size.
Inheritance Hierarchy
Remarks
Implementations of this interface will be queried from an INode's lookup method and should return the padding for this node. The default implementation of a graph uses this instance to determine the padding of a group node. This happens in the calculateMinimumEnclosedArea method. A custom provider can be registered at the groupPaddingProvider property. The padding ultimately is applied for example in enlargeGroupNode when interacting with group nodes.
See Also
API
- padding
Members
No filters for this type
Methods
Returns the padding around child nodes for the group node whose lookup returned this provider.
Returns the padding around child nodes for the group node whose lookup returned this provider.
Static Methods
Creates an implementation of the interface IGroupPaddingProvider by using the given function as implementation for its getPadding method.
Creates an implementation of the interface IGroupPaddingProvider by using the given function as implementation for its getPadding method.
static
Parameters
- getPadding: function
- A function for IGroupPaddingProvider's single abstract method getPadding.
Return Value
- IGroupPaddingProvider
- An instance of the IGroupPaddingProvider interface based on the given function.