Preparing search index...
The search index is not available
ara3d-webgl
ara3d-webgl
viw-webgl-viewer/gizmos
GizmoAxes
Class GizmoAxes
Axes gizmo with user interaction. It draws on its own canvas.
Hierarchy
GizmoAxes
Index
Constructors
constructor
Properties
axes
camera
canvas
center
context
drag
Last
drag
Start
inv
Rot
Mat
is
Drag
Significant
is
Dragging
options
pointer
rect
selected
Axis
Methods
animate
create
Axes
create
Canvas
dispose
draw
Circle
draw
Layers
draw
Line
end
Drag
init
Drag
on
Mouse
Click
on
Pointer
Down
on
Pointer
Drag
on
Pointer
Enter
on
Pointer
Move
on
Pointer
Up
on
Touch
End
on
Touch
Move
on
Touch
Start
set
Axis
Position
to
Mouse
Vector
update
update
Drag
Constructors
constructor
new
Gizmo
Axes
(
camera
:
Camera
, options
?:
Partial
<
GizmoOptions
>
)
:
GizmoAxes
Parameters
camera:
Camera
Optional
options:
Partial
<
GizmoOptions
>
Returns
GizmoAxes
Properties
axes
axes
:
Axis
[]
camera
camera
:
Camera
canvas
canvas
:
HTMLCanvasElement
center
center
:
THREE
.
Vector3
context
context
:
CanvasRenderingContext2D
drag
Last
drag
Last
:
THREE
.
Vector2
drag
Start
drag
Start
:
THREE
.
Vector2
inv
Rot
Mat
inv
Rot
Mat
:
Matrix4
= ...
is
Drag
Significant
is
Drag
Significant
:
boolean
is
Dragging
is
Dragging
:
boolean
options
options
:
GizmoOptions
pointer
pointer
:
THREE
.
Vector3
rect
rect
:
DOMRect
selected
Axis
selected
Axis
:
Axis
Methods
animate
animate
(
)
:
void
Returns
void
create
Axes
create
Axes
(
)
:
Axis
[]
Returns
Axis
[]
create
Canvas
create
Canvas
(
)
:
HTMLCanvasElement
Returns
HTMLCanvasElement
dispose
dispose
(
)
:
void
Returns
void
draw
Circle
draw
Circle
(
pos
:
THREE
.
Vector3
, radius
?:
number
, color
?:
string
)
:
void
Parameters
pos:
THREE
.
Vector3
radius:
number
= 10
color:
string
= '#FF0000'
Returns
void
draw
Layers
draw
Layers
(
clear
:
boolean
)
:
void
Parameters
clear:
boolean
Returns
void
draw
Line
draw
Line
(
p1
:
THREE
.
Vector2
, p2
:
THREE
.
Vector2
, width
?:
number
, color
?:
string
)
:
void
Parameters
p1:
THREE
.
Vector2
p2:
THREE
.
Vector2
width:
number
= 1
color:
string
= '#FF0000'
Returns
void
end
Drag
end
Drag
(
)
:
void
Returns
void
init
Drag
init
Drag
(
x
:
number
, y
:
number
)
:
void
Parameters
x:
number
y:
number
Returns
void
on
Mouse
Click
on
Mouse
Click
(
)
:
void
Returns
void
on
Pointer
Down
on
Pointer
Down
(
e
:
MouseEvent
)
:
void
Parameters
e:
MouseEvent
Returns
void
on
Pointer
Drag
on
Pointer
Drag
(
e
:
MouseEvent
)
:
void
Parameters
e:
MouseEvent
Returns
void
on
Pointer
Enter
on
Pointer
Enter
(
)
:
void
Returns
void
on
Pointer
Move
on
Pointer
Move
(
e
:
MouseEvent
)
:
void
Parameters
e:
MouseEvent
Returns
void
on
Pointer
Up
on
Pointer
Up
(
event
:
PointerEvent
)
:
void
Parameters
event:
PointerEvent
Returns
void
on
Touch
End
on
Touch
End
(
e
:
TouchEvent
)
:
void
Parameters
e:
TouchEvent
Returns
void
on
Touch
Move
on
Touch
Move
(
e
:
TouchEvent
)
:
void
Parameters
e:
TouchEvent
Returns
void
on
Touch
Start
on
Touch
Start
(
e
:
TouchEvent
)
:
void
Parameters
e:
TouchEvent
Returns
void
set
Axis
Position
set
Axis
Position
(
axis
:
Axis
)
:
void
Parameters
axis:
Axis
Returns
void
to
Mouse
Vector
to
Mouse
Vector
(
e
:
MouseEvent
, target
:
THREE
.
Vector3
)
:
THREE
.
Vector3
Parameters
e:
MouseEvent
target:
THREE
.
Vector3
Returns
THREE
.
Vector3
update
update
(
)
:
void
Returns
void
update
Drag
update
Drag
(
x
:
number
, y
:
number
)
:
void
Parameters
x:
number
y:
number
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Modules
ara3d-
webgl
images
index
Format
Vim
Helpers
THREE
Animation
Utils
Audio
Context
Buffer
Geometry
Utils
Cache
Curve
Utils
Earcut
Geometry
Utils
Image
Utils
Math
Utils
Property
Binding
Shape
Utils
Uniforms
Utils
scene/mesh
scene/scene
scene/sub
Mesh
utils/ILogger
viewer/input
Action
viewer/inputs/touch
viewer/raycaster
viewer/rendering/render
Scene
viewer/rendering/renderer
viewer/selection
viewer/viewer
vim-
loader
Geometry
Utils
Transparency
vim-
loader/gltf
Loader
vim-
loader/materials
vim-
loader/mesh
Factory
vim-
loader/object
Attributes
vim-
loader/scene
Factory
vim-
loader/vim
vim-
loader/vim
Loader
vim-
loader/vim
Object
viw-
webgl-
viewer
viw-
webgl-
viewer/camera
viw-
webgl-
viewer/gizmos
viw-
webgl-
viewer/gizmos/measure
viw-
webgl-
viewer/gizmos/section
Box
viw-
webgl-
viewer/inputs
viw-
webgl-
viewer/rendering
Gizmo
Axes
constructor
axes
camera
canvas
center
context
drag
Last
drag
Start
inv
Rot
Mat
is
Drag
Significant
is
Dragging
options
pointer
rect
selected
Axis
animate
create
Axes
create
Canvas
dispose
draw
Circle
draw
Layers
draw
Line
end
Drag
init
Drag
on
Mouse
Click
on
Pointer
Down
on
Pointer
Drag
on
Pointer
Enter
on
Pointer
Move
on
Pointer
Up
on
Touch
End
on
Touch
Move
on
Touch
Start
set
Axis
Position
to
Mouse
Vector
update
update
Drag
Generated using
TypeDoc
Axes gizmo with user interaction. It draws on its own canvas.