A a mutable size in 2D coordinate space with double precision values.
Remarks
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.geometry.MutableSize
See Also
Constructors
Creates an instance using the values provided by the size instance.
Remarks
size
immediately and no reference is held to that instance thereafter.Parameters
A map of options to pass to the method.
- size - ISize
- A size to retrieve the initial values from.
Properties
Gets or sets the height.
Gets or sets the width.
Methods
Create a clone of this object.
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
Sets the coordinates of the size to the given values.
Parameters
A map of options to pass to the method.
- newWidth - number
- The new x coordinate
- newHeight - number
- The new y coordinate
Defined in
Sets the coordinates of the size to the given values.
Parameters
A map of options to pass to the method.
- newSize - ISize
- The new location.