@shopware-ag/dive 1.16.0 → 1.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +271 -40
- package/build/dive.cjs +575 -159
- package/build/dive.cjs.map +1 -1
- package/build/dive.d.cts +83 -57
- package/build/dive.d.ts +83 -57
- package/build/dive.js +614 -164
- package/build/dive.js.map +1 -1
- package/package.json +72 -60
- package/src/__test__/DIVE.test.ts +35 -31
- package/src/animation/AnimationSystem.ts +4 -4
- package/src/animation/__test__/AnimationSystem.test.ts +3 -3
- package/src/axiscamera/AxisCamera.ts +31 -11
- package/src/axiscamera/__test__/AxisCamera.test.ts +18 -10
- package/src/camera/PerspectiveCamera.ts +28 -13
- package/src/camera/__test__/PerspectiveCamera.test.ts +2 -2
- package/src/com/Communication.ts +282 -100
- package/src/com/__test__/Communication.test.ts +207 -141
- package/src/com/actions/camera/computeencompassingview.ts +8 -7
- package/src/com/actions/camera/getcameratransform.ts +8 -7
- package/src/com/actions/camera/movecamera.ts +16 -13
- package/src/com/actions/camera/resetcamera.ts +4 -3
- package/src/com/actions/camera/setcameralayer.ts +4 -3
- package/src/com/actions/camera/setcameratransform.ts +8 -7
- package/src/com/actions/camera/zoomcamera.ts +4 -3
- package/src/com/actions/index.ts +54 -54
- package/src/com/actions/media/generatemedia.ts +17 -13
- package/src/com/actions/object/addobject.ts +5 -4
- package/src/com/actions/object/deleteobject.ts +5 -4
- package/src/com/actions/object/deselectobject.ts +5 -4
- package/src/com/actions/object/getallobjects.ts +5 -4
- package/src/com/actions/object/getobjects.ts +5 -4
- package/src/com/actions/object/model/dropit.ts +4 -3
- package/src/com/actions/object/model/modelloaded.ts +4 -3
- package/src/com/actions/object/model/placeonfloor.ts +4 -3
- package/src/com/actions/object/selectobject.ts +5 -4
- package/src/com/actions/object/setparent.ts +8 -7
- package/src/com/actions/object/updateobject.ts +5 -4
- package/src/com/actions/scene/exportscene.ts +5 -4
- package/src/com/actions/scene/getallscenedata.ts +24 -18
- package/src/com/actions/scene/setbackground.ts +4 -3
- package/src/com/actions/scene/updatescene.ts +10 -9
- package/src/com/actions/toolbox/select/setgizmomode.ts +4 -3
- package/src/com/actions/toolbox/transform/setgizmovisible.ts +4 -3
- package/src/com/actions/toolbox/usetool.ts +5 -4
- package/src/com/types/COMBaseEntity.ts +2 -2
- package/src/com/types/COMEntity.ts +6 -6
- package/src/com/types/COMEntityType.ts +1 -1
- package/src/com/types/COMGeometry.ts +2 -2
- package/src/com/types/COMGroup.ts +3 -3
- package/src/com/types/COMLight.ts +3 -3
- package/src/com/types/COMMaterial.ts +2 -2
- package/src/com/types/COMModel.ts +4 -4
- package/src/com/types/COMPov.ts +3 -3
- package/src/com/types/COMPrimitive.ts +5 -5
- package/src/com/types/index.ts +10 -10
- package/src/constant/AxisHelperColors.ts +1 -1
- package/src/constant/GridColors.ts +1 -1
- package/src/controls/OrbitControls.ts +62 -29
- package/src/controls/__test__/OrbitControls.test.ts +133 -39
- package/src/dive.ts +82 -36
- package/src/gizmo/Gizmo.ts +21 -13
- package/src/gizmo/handles/AxisHandle.ts +40 -17
- package/src/gizmo/handles/RadialHandle.ts +39 -15
- package/src/gizmo/handles/ScaleHandle.ts +62 -25
- package/src/gizmo/plane/GizmoPlane.ts +5 -6
- package/src/gizmo/rotate/RotateGizmo.ts +58 -16
- package/src/gizmo/scale/ScaleGizmo.ts +37 -15
- package/src/gizmo/translate/TranslateGizmo.ts +34 -14
- package/src/grid/Grid.ts +13 -5
- package/src/grid/__test__/Grid.test.ts +5 -3
- package/src/group/Group.ts +9 -7
- package/src/group/__test__/Group.test.ts +8 -6
- package/src/helper/applyMixins/__test__/applyMixins.test.ts +9 -6
- package/src/helper/applyMixins/applyMixins.ts +6 -3
- package/src/helper/findInterface/__test__/findInterface.test.ts +28 -18
- package/src/helper/findInterface/findInterface.ts +7 -4
- package/src/helper/findSceneRecursive/__test__/findSceneRecursive.test.ts +1 -1
- package/src/helper/findSceneRecursive/findSceneRecursive.ts +1 -1
- package/src/helper/getObjectDelta/__test__/getObjectDelta.test.ts +43 -7
- package/src/helper/getObjectDelta/getObjectDelta.ts +13 -9
- package/src/helper/isInterface/__test__/implementsInterface.test.ts +1 -1
- package/src/helper/isInterface/implementsInterface.ts +6 -3
- package/src/info/Info.ts +20 -16
- package/src/info/__test__/Info.test.ts +67 -36
- package/src/interface/Draggable.ts +2 -2
- package/src/interface/Hoverable.ts +2 -2
- package/src/interface/Movable.ts +1 -1
- package/src/interface/Rotatable.ts +1 -1
- package/src/interface/Scalable.ts +1 -1
- package/src/io/IO.ts +21 -43
- package/src/io/__test__/IO.test.ts +16 -62
- package/src/io/gltf/GLTFIO.ts +34 -31
- package/src/io/gltf/__test__/GLTFIO.test.ts +88 -78
- package/src/light/PointLight.ts +42 -9
- package/src/light/SceneLight.ts +5 -5
- package/src/light/__test__/AmbientLight.test.ts +5 -4
- package/src/light/__test__/PointLight.test.ts +14 -10
- package/src/light/__test__/SceneLight.test.ts +19 -13
- package/src/loadingmanager/LoadingManager.ts +11 -6
- package/src/loadingmanager/__test__/LoadingManager.test.ts +14 -9
- package/src/math/__test__/DIVEMath.test.ts +1 -1
- package/src/math/ceil/__test__/ceilExp.test.ts +1 -1
- package/src/math/ceil/ceilExp.ts +2 -2
- package/src/math/floor/__test__/floorExp.test.ts +1 -1
- package/src/math/floor/floorExp.ts +2 -2
- package/src/math/helper/__test__/shift.test.ts +1 -1
- package/src/math/helper/shift.ts +1 -1
- package/src/math/index.ts +7 -7
- package/src/math/round/__test__/roundExp.test.ts +1 -1
- package/src/math/round/roundExp.ts +6 -3
- package/src/math/signedAngleTo/__test__/signedAngleTo.test.ts +10 -4
- package/src/math/signedAngleTo/signedAngleTo.ts +11 -4
- package/src/math/toFixed/__test__/toFixedExp.test.ts +9 -9
- package/src/math/toFixed/toFixedExp.ts +6 -3
- package/src/math/truncate/__test__/truncateExp.test.ts +1 -1
- package/src/math/truncate/truncateExp.ts +6 -3
- package/src/mediacreator/MediaCreator.ts +20 -10
- package/src/mediacreator/__test__/MediaCreator.test.ts +27 -12
- package/src/model/Model.ts +35 -7
- package/src/model/__test__/Model.test.ts +71 -44
- package/src/node/Node.ts +34 -12
- package/src/node/__test__/Node.test.ts +17 -13
- package/src/primitive/Primitive.ts +78 -13
- package/src/primitive/__test__/Primitive.test.ts +49 -38
- package/src/primitive/floor/Floor.ts +14 -3
- package/src/primitive/floor/__test__/Floor.test.ts +10 -4
- package/src/renderer/Renderer.ts +46 -15
- package/src/renderer/__test__/Renderer.test.ts +74 -24
- package/src/scene/Scene.ts +9 -3
- package/src/scene/__test__/Scene.test.ts +2 -2
- package/src/scene/root/Root.ts +142 -75
- package/src/scene/root/__test__/Root.test.ts +439 -111
- package/src/toolbox/BaseTool.ts +69 -33
- package/src/toolbox/Toolbox.ts +37 -17
- package/src/toolbox/__test__/BaseTool.test.ts +324 -160
- package/src/toolbox/__test__/Toolbox.test.ts +31 -14
- package/src/toolbox/select/SelectTool.ts +24 -19
- package/src/toolbox/select/__test__/SelectTool.test.ts +95 -59
- package/src/toolbox/transform/TransformTool.ts +40 -17
- package/src/toolbox/transform/__test__/TransformTool.test.ts +22 -15
- package/src/types/SceneObjects.ts +8 -8
- package/src/types/SceneType.ts +3 -3
- package/src/types/index.ts +3 -6
package/README.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
This file is automatically generated
|
|
5
|
+
You can find the template in ci/readme/template/TEMPLATE_README.md
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-->
|
|
1
9
|
|
|
2
10
|
<p align="center">
|
|
3
11
|
<img alt="DIVE logo" src="./assets/svg/dive.svg" style="width: 100%; height: auto; max-height: 500px;">
|
|
@@ -16,24 +24,37 @@
|
|
|
16
24
|
</p>
|
|
17
25
|
|
|
18
26
|
# About
|
|
19
|
-
DIVE is a spatial framework made by and optimized for Shopware. It can be used directly integrated in a Shopware frontend such as Storefront or in any other frontend you want to use it in, it is not tied to Shopware.
|
|
20
27
|
|
|
21
|
-
DIVE
|
|
28
|
+
DIVE is a spatial framework made by and optimized for Shopware. It can be used
|
|
29
|
+
directly integrated in a Shopware frontend such as Storefront or in any other
|
|
30
|
+
frontend you want to use it in, it is not tied to Shopware.
|
|
31
|
+
|
|
32
|
+
DIVE supplies your frontend application with all needed tooling to set up a
|
|
33
|
+
basic 3D application with event-based controls called "Actions". For further
|
|
34
|
+
information, see [Getting started](#getting-started).
|
|
22
35
|
|
|
23
36
|
# Installation
|
|
24
37
|
|
|
25
38
|
#### npm:
|
|
39
|
+
|
|
26
40
|
```
|
|
27
41
|
npm install @shopware-ag/dive
|
|
28
42
|
```
|
|
29
43
|
|
|
30
44
|
#### yarn:
|
|
45
|
+
|
|
31
46
|
```
|
|
32
47
|
yarn add @shopware-ag/dive
|
|
33
48
|
```
|
|
34
49
|
|
|
50
|
+
# Formatter
|
|
51
|
+
|
|
52
|
+
DIVE uses Prettier as a preconfigured formatter.
|
|
53
|
+
|
|
35
54
|
#### Setup in Shopware
|
|
55
|
+
|
|
36
56
|
Don't forget to include DIVE in your webpack.config.js:
|
|
57
|
+
|
|
37
58
|
```js
|
|
38
59
|
const path = require('path');
|
|
39
60
|
|
|
@@ -75,7 +96,11 @@ module.exports = () => {
|
|
|
75
96
|
```
|
|
76
97
|
|
|
77
98
|
# Quick View
|
|
78
|
-
|
|
99
|
+
|
|
100
|
+
QuickView is used to quickly display your assets with as few lines of code as
|
|
101
|
+
possible. Simply call the static `QuickView()` method (with your data-uri as a
|
|
102
|
+
parameter) to create an instance of DIVE with your asset to use in further code.
|
|
103
|
+
|
|
79
104
|
```ts
|
|
80
105
|
import { DIVE } from '@shopware-ag/dive';
|
|
81
106
|
|
|
@@ -83,23 +108,27 @@ const dive = DIVE.QuickView('your/asset/uri.glb'); // <-- call QuickView()
|
|
|
83
108
|
|
|
84
109
|
const myCanvasWrapper = document.createElement('div');
|
|
85
110
|
myCanvasWrapper.appendChild(dive.Canvas);
|
|
86
|
-
|
|
87
111
|
```
|
|
88
112
|
|
|
89
113
|
# Getting started
|
|
114
|
+
|
|
90
115
|
Import:
|
|
116
|
+
|
|
91
117
|
```ts
|
|
92
118
|
import { DIVE } from '@shopware-ag/dive'; // <-- import DIVE
|
|
93
119
|
```
|
|
94
120
|
|
|
95
121
|
Instantiate:
|
|
122
|
+
|
|
96
123
|
```ts
|
|
97
124
|
import { DIVE } from '@shopware-ag/dive';
|
|
98
125
|
|
|
99
126
|
const dive = new DIVE(); // <-- instantiate DIVE
|
|
100
127
|
```
|
|
101
128
|
|
|
102
|
-
DIVE supplies your application with a HTMLCanvasElement that it uses as a render
|
|
129
|
+
DIVE supplies your application with a HTMLCanvasElement that it uses as a render
|
|
130
|
+
target. After instantiating, you can use the supplied canvas within you frontend
|
|
131
|
+
code to attach it to your DOM.
|
|
103
132
|
|
|
104
133
|
```ts
|
|
105
134
|
const dive = new DIVE();
|
|
@@ -108,7 +137,9 @@ const myCanvasWrapper = document.createElement('div'); // <-- create wrapper ele
|
|
|
108
137
|
myCanvasWrapper.appendChild(dive.Canvas); // <-- reference DIVE canvas
|
|
109
138
|
```
|
|
110
139
|
|
|
111
|
-
To interact with your newly created DIVE instance you have to perform actions
|
|
140
|
+
To interact with your newly created DIVE instance you have to perform actions
|
|
141
|
+
via DIVECommunication. For further information, see [Actions](#actions).
|
|
142
|
+
|
|
112
143
|
```ts
|
|
113
144
|
const dive = new DIVE();
|
|
114
145
|
|
|
@@ -117,16 +148,21 @@ myCanvasWrapper.appendChild(dive.Canvas);
|
|
|
117
148
|
|
|
118
149
|
const com = dive.Communication; // <-- reference DIVECommunication
|
|
119
150
|
|
|
120
|
-
com.PerformAction('SET_CAMERA_TRANSFORM', {
|
|
151
|
+
com.PerformAction('SET_CAMERA_TRANSFORM', {
|
|
152
|
+
// <-- perform action on DIVECommunication
|
|
121
153
|
position: { x: 0, y: 2, z: 2 },
|
|
122
154
|
target: { x: 0, y: 0.5, z: 0 },
|
|
123
155
|
});
|
|
124
156
|
```
|
|
125
157
|
|
|
126
158
|
# Actions
|
|
127
|
-
Actions symbolize the communication between frontend and 3D space. All actions can be performed anywhere, no matter if you are in frontend or 3D.
|
|
128
159
|
|
|
129
|
-
|
|
160
|
+
Actions symbolize the communication between frontend and 3D space. All actions
|
|
161
|
+
can be performed anywhere, no matter if you are in frontend or 3D.
|
|
162
|
+
|
|
163
|
+
In addition to the impact that specific actions have, every action can be
|
|
164
|
+
subscribed to.
|
|
165
|
+
|
|
130
166
|
```ts
|
|
131
167
|
const myCanvasWrapper = document.createElement('div');
|
|
132
168
|
const dive = new DIVE();
|
|
@@ -135,7 +171,8 @@ myCanvasWrapper.appendChild(dive.Canvas);
|
|
|
135
171
|
|
|
136
172
|
const com = dive.Communication;
|
|
137
173
|
|
|
138
|
-
com.Subscribe('SET_CAMERA_TRANSFORM', () => {
|
|
174
|
+
com.Subscribe('SET_CAMERA_TRANSFORM', () => {
|
|
175
|
+
// <-- add subscription
|
|
139
176
|
// do something
|
|
140
177
|
});
|
|
141
178
|
|
|
@@ -145,7 +182,9 @@ com.PerformAction('SET_CAMERA_TRANSFORM', {
|
|
|
145
182
|
});
|
|
146
183
|
```
|
|
147
184
|
|
|
148
|
-
Subscribing to an action returns a `unsubscribe()`-callback that should be
|
|
185
|
+
Subscribing to an action returns a `unsubscribe()`-callback that should be
|
|
186
|
+
executed when not needed anymore.
|
|
187
|
+
|
|
149
188
|
```ts
|
|
150
189
|
const myCanvasWrapper = document.createElement('div');
|
|
151
190
|
const dive = new DIVE();
|
|
@@ -154,7 +193,8 @@ myCanvasWrapper.appendChild(dive.Canvas);
|
|
|
154
193
|
|
|
155
194
|
const com = dive.Communication;
|
|
156
195
|
|
|
157
|
-
const unsubscribe = com.Subscribe('SET_CAMERA_TRANSFORM', () => {
|
|
196
|
+
const unsubscribe = com.Subscribe('SET_CAMERA_TRANSFORM', () => {
|
|
197
|
+
// <-- save unsubscribe callback
|
|
158
198
|
// do something
|
|
159
199
|
});
|
|
160
200
|
|
|
@@ -167,31 +207,222 @@ unsubscribe(); // <-- execute unsubscribe callback when done
|
|
|
167
207
|
```
|
|
168
208
|
|
|
169
209
|
# Actions (List)
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
210
|
+
|
|
211
|
+
In the following you find a list of all available actions to perform on
|
|
212
|
+
DIVECommunication class via
|
|
213
|
+
[`com.PerformAction()`](https://github.com/shopware/dive/blob/2e193c58843939ce07a1d35bfbd5b3c9d26eeeca/src/com/Communication.ts#L85).
|
|
214
|
+
|
|
215
|
+
<table>
|
|
216
|
+
<tr>
|
|
217
|
+
<th>Actions</th>
|
|
218
|
+
<th>Description</th>
|
|
219
|
+
</tr>
|
|
220
|
+
<tr>
|
|
221
|
+
<td>
|
|
222
|
+
<a href=".undefined"> ADD_OBJECT </a>
|
|
223
|
+
</td>
|
|
224
|
+
<td>
|
|
225
|
+
Adds an object to the scene.
|
|
226
|
+
</td>
|
|
227
|
+
</tr>
|
|
228
|
+
<tr>
|
|
229
|
+
<td>
|
|
230
|
+
<a href=".undefined"> COMPUTE_ENCOMPASSING_VIEW </a>
|
|
231
|
+
</td>
|
|
232
|
+
<td>
|
|
233
|
+
Calculates the camera position and target to view the whole scene. (experimental)
|
|
234
|
+
</td>
|
|
235
|
+
</tr>
|
|
236
|
+
<tr>
|
|
237
|
+
<td>
|
|
238
|
+
<a href=".undefined"> DELETE_OBJECT </a>
|
|
239
|
+
</td>
|
|
240
|
+
<td>
|
|
241
|
+
Deletes an object from the scene.
|
|
242
|
+
</td>
|
|
243
|
+
</tr>
|
|
244
|
+
<tr>
|
|
245
|
+
<td>
|
|
246
|
+
<a href=".undefined"> DESELECT_OBJECT </a>
|
|
247
|
+
</td>
|
|
248
|
+
<td>
|
|
249
|
+
Deselects an existing object.
|
|
250
|
+
</td>
|
|
251
|
+
</tr>
|
|
252
|
+
<tr>
|
|
253
|
+
<td>
|
|
254
|
+
<a href=".undefined"> DROP_IT </a>
|
|
255
|
+
</td>
|
|
256
|
+
<td>
|
|
257
|
+
Places an object on top of an underlying object or the floor.
|
|
258
|
+
</td>
|
|
259
|
+
</tr>
|
|
260
|
+
<tr>
|
|
261
|
+
<td>
|
|
262
|
+
<a href=".undefined"> EXPORT_SCENE </a>
|
|
263
|
+
</td>
|
|
264
|
+
<td>
|
|
265
|
+
Exports the current scene to a blob and returns the URL.
|
|
266
|
+
</td>
|
|
267
|
+
</tr>
|
|
268
|
+
<tr>
|
|
269
|
+
<td>
|
|
270
|
+
<a href=".undefined"> GENERATE_MEDIA </a>
|
|
271
|
+
</td>
|
|
272
|
+
<td>
|
|
273
|
+
Generates a screenshot, stores it in a Blob and writes the URL into the payload.
|
|
274
|
+
</td>
|
|
275
|
+
</tr>
|
|
276
|
+
<tr>
|
|
277
|
+
<td>
|
|
278
|
+
<a href=".undefined"> GET_ALL_OBJECTS </a>
|
|
279
|
+
</td>
|
|
280
|
+
<td>
|
|
281
|
+
Retrieves all objects in the scene.
|
|
282
|
+
</td>
|
|
283
|
+
</tr>
|
|
284
|
+
<tr>
|
|
285
|
+
<td>
|
|
286
|
+
<a href=".undefined"> GET_ALL_SCENE_DATA </a>
|
|
287
|
+
</td>
|
|
288
|
+
<td>
|
|
289
|
+
Retrieves all current scene data.
|
|
290
|
+
</td>
|
|
291
|
+
</tr>
|
|
292
|
+
<tr>
|
|
293
|
+
<td>
|
|
294
|
+
<a href=".undefined"> GET_CAMERA_TRANSFORM </a>
|
|
295
|
+
</td>
|
|
296
|
+
<td>
|
|
297
|
+
Returns the current camera position and target.
|
|
298
|
+
</td>
|
|
299
|
+
</tr>
|
|
300
|
+
<tr>
|
|
301
|
+
<td>
|
|
302
|
+
<a href=".undefined"> GET_OBJECTS </a>
|
|
303
|
+
</td>
|
|
304
|
+
<td>
|
|
305
|
+
Returns a list of objects of given IDs.
|
|
306
|
+
</td>
|
|
307
|
+
</tr>
|
|
308
|
+
<tr>
|
|
309
|
+
<td>
|
|
310
|
+
<a href=".undefined"> MODEL_LOADED </a>
|
|
311
|
+
</td>
|
|
312
|
+
<td>
|
|
313
|
+
Is triggered when a model is loaded.
|
|
314
|
+
</td>
|
|
315
|
+
</tr>
|
|
316
|
+
<tr>
|
|
317
|
+
<td>
|
|
318
|
+
<a href=".undefined"> MOVE_CAMERA </a>
|
|
319
|
+
</td>
|
|
320
|
+
<td>
|
|
321
|
+
Moves the camera to a new position and target.
|
|
322
|
+
</td>
|
|
323
|
+
</tr>
|
|
324
|
+
<tr>
|
|
325
|
+
<td>
|
|
326
|
+
<a href=".undefined"> PLACE_ON_FLOOR </a>
|
|
327
|
+
</td>
|
|
328
|
+
<td>
|
|
329
|
+
Places an object on the floor.
|
|
330
|
+
</td>
|
|
331
|
+
</tr>
|
|
332
|
+
<tr>
|
|
333
|
+
<td>
|
|
334
|
+
<a href=".undefined"> RESET_CAMERA </a>
|
|
335
|
+
</td>
|
|
336
|
+
<td>
|
|
337
|
+
Reset the camera to its initial position and rotation.
|
|
338
|
+
</td>
|
|
339
|
+
</tr>
|
|
340
|
+
<tr>
|
|
341
|
+
<td>
|
|
342
|
+
<a href=".undefined"> SELECT_OBJECT </a>
|
|
343
|
+
</td>
|
|
344
|
+
<td>
|
|
345
|
+
Selects an existing object.
|
|
346
|
+
</td>
|
|
347
|
+
</tr>
|
|
348
|
+
<tr>
|
|
349
|
+
<td>
|
|
350
|
+
<a href=".undefined"> SET_BACKGROUND </a>
|
|
351
|
+
</td>
|
|
352
|
+
<td>
|
|
353
|
+
Set the background color of the scene.
|
|
354
|
+
</td>
|
|
355
|
+
</tr>
|
|
356
|
+
<tr>
|
|
357
|
+
<td>
|
|
358
|
+
<a href=".undefined"> SET_CAMERA_LAYER </a>
|
|
359
|
+
</td>
|
|
360
|
+
<td>
|
|
361
|
+
Sets the camera layer to a certain layer.
|
|
362
|
+
</td>
|
|
363
|
+
</tr>
|
|
364
|
+
<tr>
|
|
365
|
+
<td>
|
|
366
|
+
<a href=".undefined"> SET_CAMERA_TRANSFORM </a>
|
|
367
|
+
</td>
|
|
368
|
+
<td>
|
|
369
|
+
Sets the camera position and target.
|
|
370
|
+
</td>
|
|
371
|
+
</tr>
|
|
372
|
+
<tr>
|
|
373
|
+
<td>
|
|
374
|
+
<a href=".undefined"> SET_GIZMO_MODE </a>
|
|
375
|
+
</td>
|
|
376
|
+
<td>
|
|
377
|
+
Sets the gizmo's mode.
|
|
378
|
+
</td>
|
|
379
|
+
</tr>
|
|
380
|
+
<tr>
|
|
381
|
+
<td>
|
|
382
|
+
<a href=".undefined"> SET_GIZMO_VISIBILITY </a>
|
|
383
|
+
</td>
|
|
384
|
+
<td>
|
|
385
|
+
Sets the gizmo's visibility.
|
|
386
|
+
</td>
|
|
387
|
+
</tr>
|
|
388
|
+
<tr>
|
|
389
|
+
<td>
|
|
390
|
+
<a href=".undefined"> SET_PARENT </a>
|
|
391
|
+
</td>
|
|
392
|
+
<td>
|
|
393
|
+
Attach an object to another object.
|
|
394
|
+
</td>
|
|
395
|
+
</tr>
|
|
396
|
+
<tr>
|
|
397
|
+
<td>
|
|
398
|
+
<a href=".undefined"> UPDATE_OBJECT </a>
|
|
399
|
+
</td>
|
|
400
|
+
<td>
|
|
401
|
+
Updates an existing object.
|
|
402
|
+
</td>
|
|
403
|
+
</tr>
|
|
404
|
+
<tr>
|
|
405
|
+
<td>
|
|
406
|
+
<a href=".undefined"> UPDATE_SCENE </a>
|
|
407
|
+
</td>
|
|
408
|
+
<td>
|
|
409
|
+
Updates global scene data.
|
|
410
|
+
</td>
|
|
411
|
+
</tr>
|
|
412
|
+
<tr>
|
|
413
|
+
<td>
|
|
414
|
+
<a href=".undefined"> USE_TOOL </a>
|
|
415
|
+
</td>
|
|
416
|
+
<td>
|
|
417
|
+
Activates a specific tool from the toolbox.
|
|
418
|
+
</td>
|
|
419
|
+
</tr>
|
|
420
|
+
<tr>
|
|
421
|
+
<td>
|
|
422
|
+
<a href=".undefined"> ZOOM_CAMERA </a>
|
|
423
|
+
</td>
|
|
424
|
+
<td>
|
|
425
|
+
Zooms the camera in or out by a certain amount.
|
|
426
|
+
</td>
|
|
427
|
+
</tr>
|
|
428
|
+
</table>
|