Methods
applyFactor(value, factor)
Applies a scaling factor to the value with a capped adjustment.
The adjustment is scaled by `factor` but capped at a maximum of 1.
Parameters:
Name | Type | Description |
---|---|---|
value |
The base value to adjust. | |
factor |
The scaling factor for adjustment. |
Returns:
The adjusted value.
Type Definitions
Size
Properties:
Name | Type | Description |
---|---|---|
width |
number | Width of the element. |
height |
number | Height of the element. |