Parses the relative offset value, returning a positive or negative number.
name | type | description |
---|---|---|
value | string |
The relative offset, in the format of '-=500', for example. The first character determines whether it will be a positive or negative number. Spacing matters here. |
base | number |
The value to use as the offset. |
The parsed offset value.