在线咨询
QQ交流群
微信公众号

Namespace: THING

THING

Classes

ActionComposer
App
AxisTransformControl
BaseObject
BaseStyle
BooleanController
Box
Building
CameraController
Campus
Circle
Controller
Cylinder
DefaultStyle
FilteredArray
Floor
Frustum
Grid
Heatmap
IDWMap
IframeController
ImageController
ImageProxy
LightBase
Line
LineBase
LookAtControl
Marker
Mathics
NavigationControl
NumberController
NumberControllerBox
NumberControllerSlider
PanoManager
PanoPoint
PanoRelation
ParticleSystem
Picker
Plane
PointsBase
PolygonLine
PolygonRegion
PolygonRegionStyle
ProgressController
RadioController
RectangleSelectControl
Room
RouteLine
SceneLevel
SceneRoot
Selection
Selector
SelectorStyle
Sphere
SpotLight
StringController
TabController
TableController
Tetrahedron
TextRegion
TextRegionStyle
Thing
ThingGeometry
UIAnchor
Utils
Version
Water
WaterStyle
WebView

Members


<static, constant> CameraProjectionType :String

摄像机投影类型

Type:
  • String
Properties:
Name Type Default Description
Perspective String perspective

投影方式

Orthographic String orthographic

正交方式


<static, constant> CameraView :String

摄像机视角方式

Type:
  • String
Properties:
Name Type Default Description
Normal String normal

正常视角

TopView String topview

顶部视角


<static, constant> DragState :String

拖拽状态

Type:
  • String
Properties:
Name Type Default Description
No String no

非拖拽模式

Dragging String dragging

拖拽中

DragEnd String dragend

拖拽结束


<static, constant> EventTag :string

内核事件 Tag 名称

Type:
  • string
Properties:
Name Type Default Description
LevelSetBackground string __level_set_background__

场景层级切换更换默认背景

LevelSceneOperations string __level_scene_operations__

场景层级切换的默认操作

LevelPickedResultFunc string __level_picked_result_func__

场景层级切换后设置默认拾取结果

LevelFly string __level_fly__

场景层级切换时的默认飞行行为

LevelEnterOperation string __level_enter_operation__

进入下一层级的默认操作

LevelBackOperation string __level_back_operation__

退出当前层级的默认操作


<static, constant> EventType :string

内核事件

Type:
  • string
Properties:
Name Type Default Description
Complete string complete

通知系统初始化完成 或 物体完成加载

Resize string resize

通知窗口大小变化(width, height)

Update string update

通知每帧更新

Progress string progress

通知场景资源加载进度

Load string load

通知 App 初始化完成 或 场景、物体加载完成

Unload string unload

通知物体卸载

Click string click

通知鼠标点击,鼠标单击、双击均会触发 Click 事件(双击时候会触发两次)

DBLClick string dblclick

通知鼠标双击

SingleClick string singleclick

通知鼠标单击(会有些许的延时,鼠标双击不会触发 SingleClick 单击事件)

MouseUp string mouseup

通知鼠标键抬起

MouseDown string mousedown

通知鼠标键按下

MouseMove string mousemove

通知鼠标移动

MouseWheel string mousewheel

通知鼠标滚轮滚动

MouseEnter string mouseenter

通知鼠标首次移入物体

MouseOver string mouseover

通知鼠标首次移入物体, 会一直传递到父物体

MouseLeave string mouseleave

通知鼠标首次移出物体

DragStart string dragstart

通知物体拖拽开始

Drag string drag

通知物体拖拽进行中

DragEnd string dragend

通知物体拖拽结束

KeyDown string keydown

通知键盘按键按下

KeyPress string keypress

通知键盘按键一直被按下

KeyUp string keyup

通知键盘按键抬起

CameraChangeStart string camerachangestart

通知摄像机位置变动开始

CameraChangeEnd string camerachangeend

通知摄像机位置变动结束

CameraChange string camerachange

通知摄像机位置变动中

CameraZoom string camerazoom

摄像机向前/后滚动

CameraViewChange string cameraviewchange

通知摄像机观察模式改动

Create string create

通知物体创建完成

Destroy string destroy

通知物体删除完成

Expand string expand

通知建筑楼层被展开

Unexpand string unexpand

通知建筑楼层被合并

Select string select

通知物体被选择

Deselect string deselect

通知物体被取消选择

SelectionChange string selectionchange

通知物体选择集合更新

LevelChange string levelchange

通知场景层级发生改变

EnterLevel string enterLevel

通知进入下一层级

LeaveLevel string leaveLevel

通知退出当前层级

LevelFlyEnd string levelflyend

通知摄像机飞入下一层级结束


<static, constant> KeyType :number

按键键值

Type:
  • number
Properties:
Name Type Default Description
Backspace number 8

Backspace

Tab number 9

Tab

Enter number 13

Enter

Shift number 16

Shift

Ctrl number 17

Ctrl

Alt number 18

Alt

Pause number 19

Pause

Capslock number 20

Capslock

Escape number 27

Escape

Space number 32

Space

PageUp number 33

PageUp

PageDown number 34

PageDown

End number 35

End

Home number 36

Home

Left number 37

Left

Up number 38

Up

Right number 39

Right

Down number 40

Down

Insert number 45

Insert

Delete number 46

Delete

Key0 number 48

Key0

Key1 number 49

Key1

Key2 number 50

Key2

Key3 number 51

Key3

Key4 number 52

Key4

Key5 number 53

Key5

Key6 number 54

Key6

Key7 number 55

Key7

Key8 number 56

Key8

Key9 number 57

Key9

A number 65

A

B number 66

B

C number 67

C

D number 68

D

E number 69

E

F number 70

F

G number 71

G

H number 72

H

I number 73

I

J number 74

J

K number 75

K

L number 76

L

M number 77

M

N number 78

N

O number 79

O

P number 80

P

Q number 81

Q

R number 82

R

S number 83

S

T number 84

T

U number 85

U

V number 86

V

W number 87

W

X number 88

X

Y number 89

Y

Z number 90

Z

Select number 93

Select

Numpad0 number 96

Numpad0

Numpad1 number 97

Numpad1

Numpad2 number 98

Numpad2

Numpad3 number 99

Numpad3

Numpad4 number 100

Numpad4

Numpad5 number 101

Numpad5

Numpad6 number 102

Numpad6

Numpad7 number 103

Numpad7

Numpad8 number 104

Numpad8

Numpad9 number 105

Numpad9

Multiply number 106

Multiply

Add number 107

Add

Subtract number 109

Subtract

Decimal number 110

Decimal

Divide number 111

Divide

F1 number 112

F1

F2 number 113

F2

F3 number 114

F3

F4 number 115

F4

F5 number 116

F5

F6 number 117

F6

F7 number 118

F7

F8 number 119

F8

F9 number 120

F9

F10 number 121

F10

F11 number 122

F11

F12 number 123

F12

Numlock number 144

Numlock

Scrolllock number 145

Scrolllock

Semicolon number 186

Semicolon

EqualSign number 187

EqualSign

Comma number 188

Comma

Dash number 189

Dash

Period number 190

Period

ForwardSlash number 191

ForwardSlash

GraveAccent number 192

GraveAccent

OpenBracket number 219

OpenBracket

BackSlash number 220

BackSlash

CloseBraket number 221

CloseBraket

SingleQuote number 222

SingleQuote


<static, constant> LoopType :String

循环类型

Type:
  • String
Properties:
Name Type Default Description
No String no

不循环,只执行一次

Repeat String repeat

不断循环

PingPong String pingpong

来回不断循环


<static> Math :THING.Mathics

数学库

Type:

<static, constant> MouseButtonType :number

鼠标按键键值

Type:
  • number
Properties:
Name Type Default Description
LEFT number left
MIDDLE number middle
RIGHT number right

<static, readonly> PanoEvent :string

全景图事件

Type:
  • string
Properties:
Name Type Default Description
PanoPlayerReady string panoplayerready

全景图播放器准备就绪事件

PanoChange string panochange

全景图播放器中全景图切换事件 param:panoID, x, y, pano

PanoPlayerClose string panoplayerclose

全景图播放器关闭事件

PanoHotspotClick string panohotspotclick

全景图热点点击事件


<static, constant> SelectionMark :Number

选择器标记

Type:
  • Number
Properties:
Name Type Default Description
None Number 0

不做操作

Stop Number 1

停止

Jump Number 2

跳过


<static, constant> SkyBox :string

天空盒资源

Type:
  • string
Properties:
Name Type Default Description
BlueSky string BlueSky

BlueSky

MilkyWay string MilkyWay

MilkyWay

Night string Night

Night

SunCloud string SunCloud

SunCloud

Type Definitions


LerpType

插值类型

Type:
  • Object
Properties:
Name Type Description
Linear Object

线性插值

Properties
Name Type Description
None function

线性插值

Quadratic Object

二次插值

Properties
Name Type Description
In function

二次插值(In)

Out function

二次插值(In)

InOut function

二次插值(InOut)

Cubic Object

三次曲线插值

Properties
Name Type Description
In function

三次插值(In)

Out function

三次插值(In)

InOut function

三次插值(InOut)

Quartic Object

四次插值

Properties
Name Type Description
In function

四次插值(In)

Out function

四次插值(In)

InOut function

四次插值(InOut)

Quintic Object

五次插值

Properties
Name Type Description
In function

五次插值(In)

Out function

五次插值(In)

InOut function

五次插值(InOut)

Sinusoidal Object

正弦曲线插值

Properties
Name Type Description
In function

正弦曲线插值(In)

Out function

正弦曲线插值(In)

InOut function

正弦曲线插值(InOut)

Exponential Object

指数插值

Properties
Name Type Description
In function

指数插值(In)

Out function

指数插值(In)

InOut function

指数插值(InOut)

Circular Object

迂回插值

Properties
Name Type Description
In function

迂回插值(In)

Out function

迂回插值(In)

InOut function

迂回插值(InOut)

Elastic Object

弹性插值

Properties
Name Type Description
In function

弹性插值(In)

Out function

弹性插值(In)

InOut function

弹性插值(InOut)

Back Object

Back 插值

Properties
Name Type Description
In function

Back 插值(In)

Out function

Back 插值(In)

InOut function

Back 插值(InOut)

Bounce Object

弹跳插值

Properties
Name Type Description
In function

弹跳插值(In)

Out function

弹跳插值(In)

InOut function

弹跳插值(InOut)

See: