Preparing search index...
The search index is not available
kokomi.js
kokomi.js
DragDetecter
Class DragDetecter
A detecter to detect
drag
event.
Hierarchy (
view full
)
Component
DragDetecter
Index
Constructors
constructor
Properties
base
container
emitter
enabled
is
Cursor
Changed
is
Dragging
Methods
add
Existing
change
Cursor
Grab
change
Cursor
Grabbing
detect
Drag
disable
emit
enable
end
Drag
off
on
reset
Cursor
update
Constructors
constructor
new
Drag
Detecter
(
base
,
config
?
)
:
DragDetecter
Parameters
base
:
Base
config
:
Partial
<
DragDetecterConfig
>
= {}
Returns
DragDetecter
Properties
base
base
:
Base
container
container
:
Scene
emitter
emitter
:
Emitter
<
any
>
enabled
enabled
:
boolean
is
Cursor
Changed
is
Cursor
Changed
:
boolean
is
Dragging
is
Dragging
:
boolean
Methods
add
Existing
add
Existing
(
)
:
void
Returns
void
change
Cursor
Grab
change
Cursor
Grab
(
)
:
void
Returns
void
change
Cursor
Grabbing
change
Cursor
Grabbing
(
)
:
void
Returns
void
detect
Drag
detect
Drag
(
)
:
void
Returns
void
disable
disable
(
)
:
void
Returns
void
emit
emit
(
type
,
event
?
)
:
void
Parameters
type
:
string
event
:
any
= {}
Returns
void
enable
enable
(
)
:
void
Returns
void
end
Drag
end
Drag
(
)
:
void
Returns
void
off
off
(
type
,
handler
)
:
void
Parameters
type
:
string
handler
:
any
Returns
void
on
on
(
type
,
handler
)
:
void
Parameters
type
:
string
handler
:
any
Returns
void
reset
Cursor
reset
Cursor
(
)
:
void
Returns
void
update
update
(
time
)
:
void
Parameters
time
:
number
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
base
container
emitter
enabled
is
Cursor
Changed
is
Dragging
Methods
add
Existing
change
Cursor
Grab
change
Cursor
Grabbing
detect
Drag
disable
emit
enable
end
Drag
off
on
reset
Cursor
update
kokomi.js
AnimationManager
Animator
AssetManager
Base
BasicPanorama
Bender
Box
CameraControls
Caustics
Center
Clock
Component
ContactShadows
CubemapQuad
CustomEffect
CustomMaterial
CustomMesh
CustomPoints
CustomShaderMaterial
DecalGeometry
DoubleFBO
DragDetecter
Environment
FBO
FBXLoader
FirstPersonCamera
Float
FullScreenQuad
GPUComputer
Gallery
GlassMaterial
Html
HyperbolicHelicoidGeometry
IMouse
ImagePanorama
InfiniteGallery
Joystick
Keyboard
LightFormer
MeshPhysicsObject
MeshReflectorMaterial
MeshReflectorMaterialImpl
MeshTransmissionMaterial
Moji
MojiGroup
OrbitControls
OrthographicCamera
PackedMipMapGenerator
PanoramaGenerator
PersistenceEffect
Physics
RayMarchingQuad
RaycastSelector
RectAreaLightHelper
Reflector
RenderQuad
RenderTexture
Resizer
SVGLoader
ScreenCamera
ScreenQuad
ShaderToyElement
Sparkles
SphubeGeometry
Stage
Stats
Text3D
TextMesh
ThinFilmFresnelMap
ThirdPersonCamera
TrailTexture
TrailTextureImpl
UniformInjector
Viewer
Voxelizer
WheelScroller
AnimatorConfig
AssetManagerConfig
BaseConfig
BasicPanoramaConfig
BoxConfig
CSMPatchMap
CausticsConfig
CenterConfig
ContactShadowsConfig
CreatePolygonShapeConfig
CustomEffectConfig
CustomMeshConfig
CustomPointsConfig
DoubleFBOConfig
DragDetecterConfig
EnvironmentConfig
FBOConfig
FirstPersonCameraConfig
FloatConfig
GPUComputerConfig
GalleryConfig
HorizontalGalleryConfig
HtmlConfig
ImagePanoramaConfig
InfospotConfig
JoystickConfig
LightFormerConfig
LoadGLTFConfig
LoadVideoOptions
Loaders
MeshPhysicsObjectParams
MeshReflectorMaterialConfig
MeshTransmissionMaterialConfig
MojiConfig
OrbitControlsConfig
OrthographicCameraConfig
PersistenceEffectConfig
PlaneConfig
PresetItem
ReflectorConfig
RenderTextureConfig
ResizerConfig
ResourceItem
SceneConfig
ScreenCameraConfig
Scroll
SparklesConfig
StageConfig
ThirdPersonCameraConfig
Vector3
ViewerConfig
Voxel
_CSMParam
iCSMShader
AllMaterialParams
CSMBaseMaterial
CanvasSize
Form
HTMLAssetElement
MeshReflectorMaterialProps
PanoramaConfig
ResoureList
ResoureType
iCSMParams
iCSMUpdateParams
DEFAULT_DRACO_DECODER_PATH
NormalScroller
adaptMobileDOM
applyViewScissor
beautifyRender
calcObjectPosition
calcPerspectiveScreenSize
calcTransformFov
cloneUniform
cloneUniforms
computeCurl
computeViewWindowScale
convertBufferAttributeToVector
convertGeometryToShape
createPolygonShape
detectDeviceType
downloadBlob
enableRealisticRender
enableSRGBColorSpace
enableShadow
epsilon
expandColor
exportGLTF
extendMaterial
fixShapeGeometryUV
flatModel
getBaryCoord
getBound
getBoundsVertices
getCSSMatrix
getCameraCSSMatrix
getEnvmapFromHDRTexture
getEnvmapFromScene
getImageData2DArrayFromCanvas
getObjectCSSMatrix
getPointsInPath
getPositionCentroids
getUniformFromAsset
getViewport
hyperbolicHelicoidFunction
isFloat32Array
isObjectBehindCamera
isObjectVisible
isVector
iterateBuffer
loadCubemapFromImgs
loadFBX
loadFont
loadGLTF
loadHDR
loadTextureFromImg
loadVideoTexture
makeBuffer
mapShader
normalizeVector
objectScale
objectZIndex
optimizeModelRender
patchShader
polySort
preloadImages
preloadSDFFont
preventDefaultAndStopBubble
printModel
range
roundedRect
sample
sampleParticlesPositionFromMesh
sampleSize
saturate
saveArrayBuffer
saveString
shuffle
sleep
smoothNormal
sphubeFunction
usePropAsIsOrAsAttribute
"
"
A detecter to detect
drag
event.