Namespace: THING
THING
Classes
- ActionComposer
- App
- AxisTransformControl
- BaseObject
- BaseStyle
- BooleanController
- Box
- Building
- CameraController
- Campus
- Circle
- Controller
- Cylinder
- DefaultStyle
- EventTrigger
- FilteredArray
- Flags
- Floor
- Frustum
- Grid
- GroupState
- Heatmap
- IDWMap
- IframeController
- ImageController
- ImageProxy
- InheritNode
- LightBase
- Line
- LineBase
- LookAtControl
- Marker
- Mathics
- NumberController
- NumberControllerBox
- NumberControllerSlider
- PanoManager
- PanoPoint
- PanoRelation
- ParticleSystem
- Picker
- PivotNode
- 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__ 场景层级切换时的默认飞行行为
LevelCustomFly
String __level_custom_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
- See:
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)