Methods
applyZoomScale(value) → {object}
- Source:
Apply zoom scale on an input value.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to scale. |
Returns:
The scaled value as {x,y}.
- Type
- object
getBaseScale() → {number}
- Source:
Get the base scale.
Returns:
The scale as {x,y}.
- Type
- number
getFontFamily() → {string}
- Source:
Get the font family.
Returns:
The font family.
- Type
- string
getFontSize() → {number}
- Source:
Get the font size.
Returns:
The font size.
- Type
- number
getFontStr() → {string}
- Source:
Get the font definition string.
Returns:
The font definition string.
- Type
- string
getLineColour() → {string}
- Source:
Get the line colour.
Returns:
The line colour.
- Type
- string
getLineHeight() → {number}
- Source:
Get the line height.
Returns:
The line height.
- Type
- number
getScaledFontSize() → {number}
- Source:
Get the font size scaled to the display.
Returns:
The scaled font size.
- Type
- number
getScaledStrokeWidth() → {number}
- Source:
Get the stroke width scaled to the display.
Returns:
The scaled stroke width.
- Type
- number
getShadowLineColour() → {string}
- Source:
Get the shadow line colour.
Returns:
The shadow line colour.
- Type
- string
getShadowOffset() → {object}
- Source:
Get the shadow offset.
Returns:
The offset as {x,y}.
- Type
- object
getStrokeWidth() → {number}
- Source:
Get the stroke width.
Returns:
The stroke width.
- Type
- number
getTagOpacity() → {number}
- Source:
Get the tag opacity.
Returns:
The opacity.
- Type
- number
getTextColour() → {string}
- Source:
Get the text colour.
Returns:
The text colour.
- Type
- string
getTextPadding() → {number}
- Source:
Get the text padding.
Returns:
The padding.
- Type
- number
getZoomScale() → {object}
- Source:
Get the zoom scale.
Returns:
The scale as {x,y}.
- Type
- object
scale(value) → {number}
- Source:
Scale an input value using the base scale.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to scale. |
Returns:
The scaled value.
- Type
- number
setBaseScale(scale)
- Source:
Set the base scale.
Parameters:
Name | Type | Description |
---|---|---|
scale |
number | The scale as {x,y}. |
setLineColour(colour)
- Source:
Set the line colour.
Parameters:
Name | Type | Description |
---|---|---|
colour |
string | The line colour. |
setZoomScale(scale)
- Source:
Set the zoom scale.
Parameters:
Name | Type | Description |
---|---|---|
scale |
object | The scale as {x,y}. |