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