Double-precision immutable insets representation.
Type Details
- yfiles module
- algorithms
- yfiles-umd modules
- All layout modules, view-layout-bridge
- Legacy UMD name
- yfiles.algorithms.Insets
See Also
Constructors
Creates a new instance with the given values
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- top - number
- The new top inset value
- left - number
- The new left inset value
- bottom - number
- The new bottom inset value
- right - number
- The new right inset value
Methods
Create a clone of this object.
Returns whether this insets object and o
are equal.
Remarks
Two insets are considered equal if they have the same values for each side.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- o - Object
- The object to test for equality.
Returns
- ↪boolean
true
if both objects are equal.
Returns a hash code for this object.
Remarks
The hash code is a numeric value that can be used to treat this object as a key in a hash table or similar data structure.
Two objects that are considered equal must have the same hash code. However, the reverse does not hold and two objects having the same hash code don't have to be equal. Ideally, the hash code should be roughly uniformly-distributed to prevent hash tables from performing poorly. Calculating the hash code is also a potentially frequent operation and should therefore be fast.
Returns
- ↪number
- the hash code for this object