Search
Preparing search index...
The search index is not available
canvg
Options
All
Public
Public/Protected
All
Inherited
Menu
canvg
Scale
Class Scale
Hierarchy
Scale
Index
Constructors
constructor
Properties
originX
originY
scale
type
Methods
apply
apply
To
Point
unapply
Constructors
constructor
new
Scale
(
_
:
Document
, scale
:
string
, transformOrigin
:
readonly
[
Property
<
string
>
,
Property
<
string
>
]
)
:
Scale
Parameters
_:
Document
scale:
string
transformOrigin:
readonly
[
Property
<
string
>
,
Property
<
string
>
]
Returns
Scale
Properties
Private
Readonly
originX
originX
:
Property
<
unknown
>
Private
Readonly
originY
originY
:
Property
<
unknown
>
Private
Readonly
scale
scale
:
Point
type
type
:
string
= 'scale'
Methods
apply
apply
(
ctx
:
RenderingContext2D
)
:
void
Parameters
ctx:
RenderingContext2D
Returns
void
apply
To
Point
apply
To
Point
(
point
:
Point
)
:
void
Parameters
point:
Point
Returns
void
unapply
unapply
(
ctx
:
RenderingContext2D
)
:
void
Parameters
ctx:
RenderingContext2D
Returns
void
Exports
presets
Scale
constructor
originX
originY
scale
type
apply
apply
To
Point
unapply
Generated using
TypeDoc