WebCAD-Lib-TS API 文档 - v1.0.0
Preparing search index...
ScaleCommand
Class ScaleCommand
缩放命令类
缩放选定实体的命令。
Index
Constructors
constructor
Properties
base
Point
World
base
Point
Ucs
second
Point
World
second
Point
Ucs
reference
Point
World
reference
Point
Ucs
target
Point
World
target
Point
Ucs
selection
Set
entities
Width
entities
Height
scale
Base
Distance
current
Distance
scale
Preview
Callback
entities
Bounds
last
Scale
Methods
main
start
P2
P3
P4
P5
scale
Entities
With
Undo
num
To
Str
calc
Scale
By
Bounds
Constructors
constructor
new
ScaleCommand
()
:
ScaleCommand
Returns
ScaleCommand
Properties
base
Point
World
basePointWorld
:
Point2D
base
Point
Ucs
basePointUcs
:
Point2D
second
Point
World
secondPointWorld
:
Point2D
second
Point
Ucs
secondPointUcs
:
Point2D
reference
Point
World
referencePointWorld
:
Point2D
reference
Point
Ucs
referencePointUcs
:
Point2D
target
Point
World
targetPointWorld
:
Point2D
target
Point
Ucs
targetPointUcs
:
Point2D
selection
Set
selectionSet
:
any
[]
entities
Width
entitiesWidth
:
number
entities
Height
entitiesHeight
:
number
scale
Base
Distance
scaleBaseDistance
:
number
current
Distance
currentDistance
:
number
scale
Preview
Callback
scalePreviewCallback
:
(
canvasPoint
:
Point2D
)
=>
void
entities
Bounds
entitiesBounds
:
any
Static
last
Scale
lastScale
:
number
= 1
Methods
main
main
()
:
Promise
<
void
>
Returns
Promise
<
void
>
start
start
()
:
Promise
<
void
>
Returns
Promise
<
void
>
P2
P2
()
:
Promise
<
void
>
Returns
Promise
<
void
>
P3
P3
()
:
Promise
<
void
>
Returns
Promise
<
void
>
P4
P4
()
:
Promise
<
void
>
Returns
Promise
<
void
>
P5
P5
()
:
Promise
<
void
>
Returns
Promise
<
void
>
scale
Entities
With
Undo
scaleEntitiesWithUndo
(
entities
:
any
[]
,
scaleRatio
:
number
)
:
void
Parameters
entities
:
any
[]
scaleRatio
:
number
Returns
void
num
To
Str
numToStr
(
number
:
number
,
decimalPlaces
:
number
)
:
string
Parameters
number
:
number
decimalPlaces
:
number
Returns
string
calc
Scale
By
Bounds
calcScaleByBounds
(
bounds
:
any
)
:
number
Parameters
bounds
:
any
Returns
number
Settings
Member Visibility
Protected
Internal
Alpha
Beta
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
base
Point
World
base
Point
Ucs
second
Point
World
second
Point
Ucs
reference
Point
World
reference
Point
Ucs
target
Point
World
target
Point
Ucs
selection
Set
entities
Width
entities
Height
scale
Base
Distance
current
Distance
scale
Preview
Callback
entities
Bounds
last
Scale
Methods
main
start
P2
P3
P4
P5
scale
Entities
With
Undo
num
To
Str
calc
Scale
By
Bounds
WebCAD-Lib-TS API 文档 - v1.0.0
Loading...
缩放命令类
缩放选定实体的命令。