@defold-typescript/types 0.52.0 → 0.53.0
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/api-signatures.json +2074 -1964
- package/examples/translations.json +15 -15
- package/generated/b2d.d.ts +39 -39
- package/generated/b2d_body.d.ts +11 -11
- package/generated/b2d_chain.d.ts +3 -3
- package/generated/b2d_fixture.d.ts +5 -5
- package/generated/b2d_joint.d.ts +29 -29
- package/generated/b2d_shape.d.ts +13 -13
- package/generated/b2d_world.d.ts +15 -15
- package/generated/buffer.d.ts +5 -6
- package/generated/bullet3d.d.ts +6 -6
- package/generated/bullet3d_collision_object.d.ts +9 -9
- package/generated/bullet3d_constraint.d.ts +78 -78
- package/generated/bullet3d_rigid_body.d.ts +3 -3
- package/generated/bullet3d_shape.d.ts +11 -11
- package/generated/bullet3d_world.d.ts +20 -20
- package/generated/camera.d.ts +4 -4
- package/generated/collectionfactory.d.ts +2 -3
- package/generated/collectionproxy.d.ts +5 -5
- package/generated/compute.d.ts +5 -5
- package/generated/crash.d.ts +7 -7
- package/generated/editor-vm/http.d.ts +13 -13
- package/generated/editor-vm/image.d.ts +4 -4
- package/generated/editor-vm/json.d.ts +1 -1
- package/generated/editor-vm/tilemap_tiles.d.ts +9 -9
- package/generated/editor-vm/zip.d.ts +4 -4
- package/generated/editor.d.ts +183 -183
- package/generated/factory.d.ts +2 -3
- package/generated/font.d.ts +4 -4
- package/generated/go.d.ts +10 -12
- package/generated/graphics.d.ts +23 -26
- package/generated/gui.d.ts +44 -58
- package/generated/http.d.ts +2 -2
- package/generated/image.d.ts +12 -12
- package/generated/json.d.ts +4 -4
- package/generated/label.d.ts +5 -5
- package/generated/liveupdate.d.ts +3 -3
- package/generated/material.d.ts +48 -48
- package/generated/model.d.ts +46 -14
- package/generated/particlefx.d.ts +5 -5
- package/generated/physics.d.ts +19 -19
- package/generated/profiler.d.ts +3 -5
- package/generated/render-script-modules/b2d.d.ts +39 -39
- package/generated/render-script-modules/bullet3d.d.ts +5 -5
- package/generated/render-script-modules/collectionfactory.d.ts +1 -2
- package/generated/render-script-modules/collectionproxy.d.ts +3 -3
- package/generated/render-script-modules/factory.d.ts +1 -2
- package/generated/render-script-modules/go.d.ts +8 -10
- package/generated/render-script-modules/label.d.ts +2 -2
- package/generated/render-script-modules/model.d.ts +43 -11
- package/generated/render-script-modules/particlefx.d.ts +3 -3
- package/generated/render-script-modules/physics.d.ts +12 -12
- package/generated/render-script-modules/resource.d.ts +52 -53
- package/generated/render-script-modules/sound.d.ts +4 -4
- package/generated/render-script-modules/sprite.d.ts +2 -2
- package/generated/render-script-modules/tilemap.d.ts +2 -2
- package/generated/render.d.ts +44 -45
- package/generated/resource.d.ts +58 -59
- package/generated/socket.d.ts +18 -23
- package/generated/sound.d.ts +6 -6
- package/generated/sprite.d.ts +3 -3
- package/generated/sys.d.ts +20 -21
- package/generated/tilemap.d.ts +3 -3
- package/generated/timer.d.ts +3 -3
- package/generated/versions/defold-1.12.4/b2d.d.ts +2 -2
- package/generated/versions/defold-1.12.4/b2d_body.d.ts +2 -2
- package/generated/versions/defold-1.12.4/go.d.ts +2 -2
- package/generated/versions/defold-1.12.4/graphics.d.ts +1 -1
- package/generated/versions/defold-1.12.4/gui.d.ts +18 -19
- package/generated/versions/defold-1.12.4/label.d.ts +1 -1
- package/generated/versions/defold-1.12.4/model.d.ts +42 -10
- package/generated/versions/defold-1.12.4/particlefx.d.ts +1 -1
- package/generated/versions/defold-1.12.4/physics.d.ts +1 -1
- package/generated/versions/defold-1.12.4/render.d.ts +5 -5
- package/generated/versions/defold-1.12.4/resource.d.ts +8 -8
- package/generated/versions/defold-1.12.4/socket.d.ts +12 -12
- package/generated/versions/defold-1.12.4/sound.d.ts +1 -1
- package/generated/versions/defold-1.12.4/sprite.d.ts +1 -1
- package/generated/versions/defold-1.12.4/sys.d.ts +2 -2
- package/generated/versions/defold-1.12.4/tilemap.d.ts +1 -1
- package/generated/versions/defold-1.12.4/window.d.ts +3 -4
- package/generated/versions/defold-1.13.0/b2d.d.ts +2 -2
- package/generated/versions/defold-1.13.0/b2d_body.d.ts +2 -2
- package/generated/versions/defold-1.13.0/b2d_chain.d.ts +1 -1
- package/generated/versions/defold-1.13.0/b2d_joint.d.ts +1 -1
- package/generated/versions/defold-1.13.0/b2d_shape.d.ts +1 -1
- package/generated/versions/defold-1.13.0/camera.d.ts +1 -1
- package/generated/versions/defold-1.13.0/go.d.ts +2 -2
- package/generated/versions/defold-1.13.0/graphics.d.ts +1 -1
- package/generated/versions/defold-1.13.0/gui.d.ts +18 -19
- package/generated/versions/defold-1.13.0/label.d.ts +1 -1
- package/generated/versions/defold-1.13.0/model.d.ts +42 -10
- package/generated/versions/defold-1.13.0/particlefx.d.ts +1 -1
- package/generated/versions/defold-1.13.0/physics.d.ts +1 -1
- package/generated/versions/defold-1.13.0/render.d.ts +5 -5
- package/generated/versions/defold-1.13.0/resource.d.ts +8 -8
- package/generated/versions/defold-1.13.0/socket.d.ts +12 -12
- package/generated/versions/defold-1.13.0/sound.d.ts +1 -1
- package/generated/versions/defold-1.13.0/sprite.d.ts +1 -1
- package/generated/versions/defold-1.13.0/sys.d.ts +2 -2
- package/generated/versions/defold-1.13.0/tilemap.d.ts +1 -1
- package/generated/versions/defold-1.13.0/window.d.ts +3 -4
- package/generated/versions/defold-1.13.1/b2d.d.ts +2 -2
- package/generated/versions/defold-1.13.1/b2d_body.d.ts +2 -2
- package/generated/versions/defold-1.13.1/b2d_chain.d.ts +1 -1
- package/generated/versions/defold-1.13.1/b2d_joint.d.ts +1 -1
- package/generated/versions/defold-1.13.1/b2d_shape.d.ts +1 -1
- package/generated/versions/defold-1.13.1/camera.d.ts +1 -1
- package/generated/versions/defold-1.13.1/go.d.ts +2 -2
- package/generated/versions/defold-1.13.1/graphics.d.ts +1 -1
- package/generated/versions/defold-1.13.1/gui.d.ts +18 -19
- package/generated/versions/defold-1.13.1/label.d.ts +1 -1
- package/generated/versions/defold-1.13.1/model.d.ts +42 -10
- package/generated/versions/defold-1.13.1/particlefx.d.ts +1 -1
- package/generated/versions/defold-1.13.1/physics.d.ts +1 -1
- package/generated/versions/defold-1.13.1/render.d.ts +5 -5
- package/generated/versions/defold-1.13.1/resource.d.ts +8 -8
- package/generated/versions/defold-1.13.1/socket.d.ts +12 -12
- package/generated/versions/defold-1.13.1/sound.d.ts +1 -1
- package/generated/versions/defold-1.13.1/sprite.d.ts +1 -1
- package/generated/versions/defold-1.13.1/sys.d.ts +2 -2
- package/generated/versions/defold-1.13.1/tilemap.d.ts +1 -1
- package/generated/versions/defold-1.13.1/window.d.ts +3 -4
- package/generated/versions/defold-1.13.2/b2d.d.ts +39 -39
- package/generated/versions/defold-1.13.2/b2d_body.d.ts +11 -11
- package/generated/versions/defold-1.13.2/b2d_chain.d.ts +3 -3
- package/generated/versions/defold-1.13.2/b2d_fixture.d.ts +5 -5
- package/generated/versions/defold-1.13.2/b2d_joint.d.ts +29 -29
- package/generated/versions/defold-1.13.2/b2d_shape.d.ts +13 -13
- package/generated/versions/defold-1.13.2/b2d_world.d.ts +15 -15
- package/generated/versions/defold-1.13.2/buffer.d.ts +5 -6
- package/generated/versions/defold-1.13.2/bullet3d.d.ts +6 -6
- package/generated/versions/defold-1.13.2/bullet3d_collision_object.d.ts +9 -9
- package/generated/versions/defold-1.13.2/bullet3d_constraint.d.ts +78 -78
- package/generated/versions/defold-1.13.2/bullet3d_rigid_body.d.ts +3 -3
- package/generated/versions/defold-1.13.2/bullet3d_shape.d.ts +11 -11
- package/generated/versions/defold-1.13.2/bullet3d_world.d.ts +20 -20
- package/generated/versions/defold-1.13.2/camera.d.ts +4 -4
- package/generated/versions/defold-1.13.2/collectionfactory.d.ts +2 -3
- package/generated/versions/defold-1.13.2/collectionproxy.d.ts +5 -5
- package/generated/versions/defold-1.13.2/compute.d.ts +5 -5
- package/generated/versions/defold-1.13.2/crash.d.ts +7 -7
- package/generated/versions/defold-1.13.2/editor-vm/http.d.ts +13 -13
- package/generated/versions/defold-1.13.2/editor-vm/image.d.ts +4 -4
- package/generated/versions/defold-1.13.2/editor-vm/json.d.ts +1 -1
- package/generated/versions/defold-1.13.2/editor-vm/tilemap_tiles.d.ts +9 -9
- package/generated/versions/defold-1.13.2/editor-vm/zip.d.ts +4 -4
- package/generated/versions/defold-1.13.2/editor.d.ts +183 -183
- package/generated/versions/defold-1.13.2/factory.d.ts +2 -3
- package/generated/versions/defold-1.13.2/font.d.ts +4 -4
- package/generated/versions/defold-1.13.2/go.d.ts +10 -12
- package/generated/versions/defold-1.13.2/graphics.d.ts +22 -25
- package/generated/versions/defold-1.13.2/gui.d.ts +44 -58
- package/generated/versions/defold-1.13.2/http.d.ts +2 -2
- package/generated/versions/defold-1.13.2/image.d.ts +12 -12
- package/generated/versions/defold-1.13.2/json.d.ts +4 -4
- package/generated/versions/defold-1.13.2/label.d.ts +5 -5
- package/generated/versions/defold-1.13.2/liveupdate.d.ts +3 -3
- package/generated/versions/defold-1.13.2/material.d.ts +48 -48
- package/generated/versions/defold-1.13.2/model.d.ts +46 -14
- package/generated/versions/defold-1.13.2/particlefx.d.ts +5 -5
- package/generated/versions/defold-1.13.2/physics.d.ts +19 -19
- package/generated/versions/defold-1.13.2/profiler.d.ts +3 -5
- package/generated/versions/defold-1.13.2/render.d.ts +43 -44
- package/generated/versions/defold-1.13.2/resource.d.ts +58 -59
- package/generated/versions/defold-1.13.2/socket.d.ts +18 -23
- package/generated/versions/defold-1.13.2/sound.d.ts +6 -6
- package/generated/versions/defold-1.13.2/sprite.d.ts +3 -3
- package/generated/versions/defold-1.13.2/sys.d.ts +20 -21
- package/generated/versions/defold-1.13.2/tilemap.d.ts +3 -3
- package/generated/versions/defold-1.13.2/timer.d.ts +3 -3
- package/generated/versions/defold-1.13.2/vmath.d.ts +0 -1
- package/generated/versions/defold-1.13.2/window.d.ts +8 -10
- package/generated/vmath.d.ts +0 -1
- package/generated/window.d.ts +8 -10
- package/identity-vocabulary.json +41 -34
- package/package.json +2 -1
- package/scripts/generate-api-availability.ts +9 -3
- package/scripts/shared-handle-methods.ts +3 -2
- package/src/api-doc.ts +8 -0
- package/src/api-identity.ts +32 -1
- package/src/component-properties.d.ts +8 -8
- package/src/core-types.ts +29 -13
- package/src/doc-corrections.ts +9 -0
- package/src/emit-dts.ts +664 -202
- package/src/engine-type-name.ts +33 -0
- package/src/go-overloads.d.ts +10 -10
- package/src/gui-overloads.d.ts +11 -11
- package/src/index.ts +1 -0
- package/src/lifecycle.ts +2 -2
- package/src/socket-types.d.ts +3 -3
package/generated/physics.d.ts
CHANGED
|
@@ -6,11 +6,11 @@ declare global {
|
|
|
6
6
|
* Collision object physics API documentation
|
|
7
7
|
*/
|
|
8
8
|
namespace physics {
|
|
9
|
-
type
|
|
9
|
+
type Event = BuiltinMessages["contact_point_event"] & { type: Hash<"contact_point_event"> } | BuiltinMessages["collision_event"] & { type: Hash<"collision_event"> } | BuiltinMessages["trigger_event"] & { type: Hash<"trigger_event"> } | BuiltinMessages["ray_cast_response"] & { type: Hash<"ray_cast_response"> } | BuiltinMessages["ray_cast_missed"] & { type: Hash<"ray_cast_missed"> };
|
|
10
10
|
/**
|
|
11
11
|
* The available fields depend on the joint type.
|
|
12
12
|
*/
|
|
13
|
-
interface
|
|
13
|
+
interface JointProperties {
|
|
14
14
|
/**
|
|
15
15
|
* whether the connected objects should collide
|
|
16
16
|
*/
|
|
@@ -79,7 +79,7 @@ declare global {
|
|
|
79
79
|
/**
|
|
80
80
|
* The available optional fields depend on the joint type.
|
|
81
81
|
*/
|
|
82
|
-
interface
|
|
82
|
+
interface JointPropertiesInfo {
|
|
83
83
|
/**
|
|
84
84
|
* whether the connected objects collide
|
|
85
85
|
*/
|
|
@@ -160,7 +160,7 @@ declare global {
|
|
|
160
160
|
/**
|
|
161
161
|
* Ray-cast options
|
|
162
162
|
*/
|
|
163
|
-
interface
|
|
163
|
+
interface RaycastOptions {
|
|
164
164
|
/**
|
|
165
165
|
* Return every hit instead of only the closest hit.
|
|
166
166
|
*/
|
|
@@ -169,11 +169,11 @@ declare global {
|
|
|
169
169
|
/**
|
|
170
170
|
* The available geometry fields depend on `type`.
|
|
171
171
|
*/
|
|
172
|
-
interface
|
|
172
|
+
interface ShapeData {
|
|
173
173
|
/**
|
|
174
174
|
* shape type
|
|
175
175
|
*/
|
|
176
|
-
type: physics.
|
|
176
|
+
type: physics.ShapeType;
|
|
177
177
|
/**
|
|
178
178
|
* sphere diameter or capsule pole diameter
|
|
179
179
|
*/
|
|
@@ -187,8 +187,8 @@ declare global {
|
|
|
187
187
|
*/
|
|
188
188
|
height?: number;
|
|
189
189
|
}
|
|
190
|
-
type
|
|
191
|
-
type
|
|
190
|
+
type JointType = typeof physics.JOINT_TYPE_FIXED | typeof physics.JOINT_TYPE_HINGE | typeof physics.JOINT_TYPE_SLIDER | typeof physics.JOINT_TYPE_SPRING | typeof physics.JOINT_TYPE_WELD | typeof physics.JOINT_TYPE_WHEEL;
|
|
191
|
+
type ShapeType = typeof physics.SHAPE_TYPE_BOX | typeof physics.SHAPE_TYPE_CAPSULE | typeof physics.SHAPE_TYPE_HULL | typeof physics.SHAPE_TYPE_MESH | typeof physics.SHAPE_TYPE_SPHERE;
|
|
192
192
|
/**
|
|
193
193
|
* Fixed joint; uses `max_length` from physics.joint_properties.
|
|
194
194
|
*/
|
|
@@ -245,7 +245,7 @@ declare global {
|
|
|
245
245
|
* @param position_b - local position where to attach the joint on the second collision object
|
|
246
246
|
* @param properties - optional joint-specific properties
|
|
247
247
|
*/
|
|
248
|
-
function create_joint(joint_type: physics.
|
|
248
|
+
function create_joint(joint_type: physics.JointType, collisionobject_a: string | Hash | Url, joint_id: string | Hash, position_a: Vector3, collisionobject_b: string | Hash | Url, position_b: Vector3, properties?: physics.JointProperties): void;
|
|
249
249
|
/**
|
|
250
250
|
* Destroy an already physics joint. The joint has to be created before a
|
|
251
251
|
* destroy can be issued.
|
|
@@ -297,7 +297,7 @@ declare global {
|
|
|
297
297
|
* @param joint_id - id of the joint
|
|
298
298
|
* @returns joint properties
|
|
299
299
|
*/
|
|
300
|
-
function get_joint_properties(collisionobject: string | Hash | Url, joint_id: string | Hash): physics.
|
|
300
|
+
function get_joint_properties(collisionobject: string | Hash | Url, joint_id: string | Hash): physics.JointPropertiesInfo;
|
|
301
301
|
/**
|
|
302
302
|
* Get the reaction force for a joint. The joint has to be created before
|
|
303
303
|
* the reaction force can be calculated.
|
|
@@ -350,7 +350,7 @@ declare global {
|
|
|
350
350
|
* }
|
|
351
351
|
* ```
|
|
352
352
|
*/
|
|
353
|
-
function get_shape(url: string | Hash | Url, shape: string | Hash): physics.
|
|
353
|
+
function get_shape(url: string | Hash | Url, shape: string | Hash): physics.ShapeData;
|
|
354
354
|
/**
|
|
355
355
|
* Ray casts are used to test for intersections against collision objects in the physics world.
|
|
356
356
|
* Collision objects of types kinematic, dynamic and static are tested against. Trigger objects
|
|
@@ -391,7 +391,7 @@ declare global {
|
|
|
391
391
|
* });
|
|
392
392
|
* ```
|
|
393
393
|
*/
|
|
394
|
-
function raycast(from: Vector3, to: Vector3, groups: Hash[], options?: physics.
|
|
394
|
+
function raycast(from: Vector3, to: Vector3, groups: Hash[], options?: physics.RaycastOptions): Omit<BuiltinMessages["ray_cast_response"], "request_id">[] | Omit<BuiltinMessages["ray_cast_response"], "request_id"> | undefined;
|
|
395
395
|
/**
|
|
396
396
|
* Ray casts are used to test for intersections against collision objects in the physics world.
|
|
397
397
|
* Collision objects of types kinematic, dynamic and static are tested against. Trigger objects
|
|
@@ -577,7 +577,7 @@ declare global {
|
|
|
577
577
|
* });
|
|
578
578
|
* ```
|
|
579
579
|
*/
|
|
580
|
-
function set_event_listener(callback?: (self: unknown, events: physics.
|
|
580
|
+
function set_event_listener(callback?: (self: unknown, events: physics.Event[]) => void): void;
|
|
581
581
|
/**
|
|
582
582
|
* Set the gravity in runtime. The gravity change is not global, it will only affect
|
|
583
583
|
* the collection that the function is called from.
|
|
@@ -637,7 +637,7 @@ declare global {
|
|
|
637
637
|
* @param properties - joint specific properties table
|
|
638
638
|
* Note: The `collide_connected` field cannot be updated/changed after a connection has been made.
|
|
639
639
|
*/
|
|
640
|
-
function set_joint_properties(collisionobject: string | Hash | Url, joint_id: string | Hash, properties: physics.
|
|
640
|
+
function set_joint_properties(collisionobject: string | Hash | Url, joint_id: string | Hash, properties: physics.JointProperties): void;
|
|
641
641
|
/**
|
|
642
642
|
* Sets or clears the masking of a group (maskbit) in a collision object.
|
|
643
643
|
*
|
|
@@ -686,7 +686,7 @@ declare global {
|
|
|
686
686
|
* }
|
|
687
687
|
* ```
|
|
688
688
|
*/
|
|
689
|
-
function set_shape(url: string | Hash | Url, shape: string | Hash, table: physics.
|
|
689
|
+
function set_shape(url: string | Hash | Url, shape: string | Hash, table: physics.ShapeData): void;
|
|
690
690
|
/**
|
|
691
691
|
* Flips the collision shapes vertically for a collision object
|
|
692
692
|
*
|
|
@@ -738,7 +738,7 @@ declare global {
|
|
|
738
738
|
/**
|
|
739
739
|
* collision object information
|
|
740
740
|
*/
|
|
741
|
-
interface
|
|
741
|
+
interface CollisionInfo {
|
|
742
742
|
/**
|
|
743
743
|
* object position in world space
|
|
744
744
|
*/
|
|
@@ -755,7 +755,7 @@ declare global {
|
|
|
755
755
|
/**
|
|
756
756
|
* contact-point object information
|
|
757
757
|
*/
|
|
758
|
-
interface
|
|
758
|
+
interface ContactPointInfo {
|
|
759
759
|
/**
|
|
760
760
|
* contact point position in world space
|
|
761
761
|
*/
|
|
@@ -788,7 +788,7 @@ declare global {
|
|
|
788
788
|
/**
|
|
789
789
|
* trigger interaction object information
|
|
790
790
|
*/
|
|
791
|
-
interface
|
|
791
|
+
interface TriggerInfo {
|
|
792
792
|
/**
|
|
793
793
|
* object identifier
|
|
794
794
|
*/
|
|
@@ -800,7 +800,7 @@ declare global {
|
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
802
|
}
|
|
803
|
-
interface
|
|
803
|
+
interface Properties {
|
|
804
804
|
/**
|
|
805
805
|
* The angular damping value for the collision object. Setting this value alters the damping of
|
|
806
806
|
* angular motion of the object (rotation). Valid values are between 0 (no damping) and 1 (full damping).
|
package/generated/profiler.d.ts
CHANGED
|
@@ -5,10 +5,8 @@ declare global {
|
|
|
5
5
|
* More detailed [profiling](https://www.defold.com/manuals/profiling/) and [debugging](http://www.defold.com/manuals/debugging/) information available in the manuals.
|
|
6
6
|
*/
|
|
7
7
|
namespace profiler {
|
|
8
|
-
type Mode = typeof profiler.
|
|
8
|
+
type Mode = typeof profiler.MODE_PAUSE | typeof profiler.MODE_RECORD | typeof profiler.MODE_RUN | typeof profiler.MODE_SHOW_PEAK_FRAME;
|
|
9
9
|
type ViewMode = typeof profiler.VIEW_MODE_FULL | typeof profiler.VIEW_MODE_MINIMIZED;
|
|
10
|
-
type MODE = typeof profiler.MODE_PAUSE | typeof profiler.MODE_RECORD | typeof profiler.MODE_RUN | typeof profiler.MODE_SHOW_PEAK_FRAME;
|
|
11
|
-
type VIEW_MODE = typeof profiler.VIEW_MODE_FULL | typeof profiler.VIEW_MODE_MINIMIZED;
|
|
12
10
|
/**
|
|
13
11
|
* pause on the currently displayed frame
|
|
14
12
|
*/
|
|
@@ -173,7 +171,7 @@ declare global {
|
|
|
173
171
|
* }
|
|
174
172
|
* ```
|
|
175
173
|
*/
|
|
176
|
-
function set_ui_mode(mode: profiler.
|
|
174
|
+
function set_ui_mode(mode: profiler.Mode): void;
|
|
177
175
|
/**
|
|
178
176
|
* Set the on-screen profile view mode - minimized or expanded
|
|
179
177
|
*
|
|
@@ -184,7 +182,7 @@ declare global {
|
|
|
184
182
|
* profiler.set_ui_view_mode(profiler.VIEW_MODE_MINIMIZED);
|
|
185
183
|
* ```
|
|
186
184
|
*/
|
|
187
|
-
function set_ui_view_mode(mode: profiler.
|
|
185
|
+
function set_ui_view_mode(mode: profiler.ViewMode): void;
|
|
188
186
|
/**
|
|
189
187
|
* Shows or hides the time the engine waits for vsync in the on-screen profiler
|
|
190
188
|
* Each frame the engine waits for vsync and depending on your vsync settings and how much time
|
|
@@ -9,7 +9,7 @@ declare global {
|
|
|
9
9
|
/**
|
|
10
10
|
* Box2D axis-aligned bounding box
|
|
11
11
|
*/
|
|
12
|
-
interface
|
|
12
|
+
interface Aabb {
|
|
13
13
|
/**
|
|
14
14
|
* Lower bound.
|
|
15
15
|
*/
|
|
@@ -19,12 +19,12 @@ declare global {
|
|
|
19
19
|
*/
|
|
20
20
|
upper: Vector3;
|
|
21
21
|
}
|
|
22
|
-
type
|
|
23
|
-
type
|
|
22
|
+
type B2Body = Opaque<"b2Body">;
|
|
23
|
+
type B2World = Opaque<"b2World">;
|
|
24
24
|
/**
|
|
25
25
|
* Box2D 3.x chain definition
|
|
26
26
|
*/
|
|
27
|
-
interface
|
|
27
|
+
interface ChainDefinition {
|
|
28
28
|
/**
|
|
29
29
|
* Chain vertices.
|
|
30
30
|
*/
|
|
@@ -56,7 +56,7 @@ declare global {
|
|
|
56
56
|
/**
|
|
57
57
|
* Collision filter fields to override.
|
|
58
58
|
*/
|
|
59
|
-
filter?: b2d.
|
|
59
|
+
filter?: b2d.FilterOptions;
|
|
60
60
|
/**
|
|
61
61
|
* Whether to enable sensor events.
|
|
62
62
|
*/
|
|
@@ -65,7 +65,7 @@ declare global {
|
|
|
65
65
|
/**
|
|
66
66
|
* Box2D chain geometry
|
|
67
67
|
*/
|
|
68
|
-
interface
|
|
68
|
+
interface ChainGeometry {
|
|
69
69
|
/**
|
|
70
70
|
* Whether the chain is closed.
|
|
71
71
|
*/
|
|
@@ -90,15 +90,15 @@ declare global {
|
|
|
90
90
|
/**
|
|
91
91
|
* Box2D contact data
|
|
92
92
|
*/
|
|
93
|
-
interface
|
|
93
|
+
interface ContactData {
|
|
94
94
|
/**
|
|
95
95
|
* First contact shape.
|
|
96
96
|
*/
|
|
97
|
-
shape_a: b2d.
|
|
97
|
+
shape_a: b2d.ShapeInfo;
|
|
98
98
|
/**
|
|
99
99
|
* Second contact shape.
|
|
100
100
|
*/
|
|
101
|
-
shape_b: b2d.
|
|
101
|
+
shape_b: b2d.ShapeInfo;
|
|
102
102
|
/**
|
|
103
103
|
* Contact normal.
|
|
104
104
|
*/
|
|
@@ -114,12 +114,12 @@ declare global {
|
|
|
114
114
|
/**
|
|
115
115
|
* Contact manifold points.
|
|
116
116
|
*/
|
|
117
|
-
points: b2d.
|
|
117
|
+
points: b2d.ContactPoint[];
|
|
118
118
|
}
|
|
119
119
|
/**
|
|
120
120
|
* Box2D contact manifold point
|
|
121
121
|
*/
|
|
122
|
-
interface
|
|
122
|
+
interface ContactPoint {
|
|
123
123
|
/**
|
|
124
124
|
* World contact point.
|
|
125
125
|
*/
|
|
@@ -164,7 +164,7 @@ declare global {
|
|
|
164
164
|
/**
|
|
165
165
|
* Box2D explosion definition
|
|
166
166
|
*/
|
|
167
|
-
interface
|
|
167
|
+
interface ExplosionDefinition {
|
|
168
168
|
/**
|
|
169
169
|
* Explosion center.
|
|
170
170
|
*/
|
|
@@ -189,7 +189,7 @@ declare global {
|
|
|
189
189
|
/**
|
|
190
190
|
* Box2D collision filter
|
|
191
191
|
*/
|
|
192
|
-
interface
|
|
192
|
+
interface Filter {
|
|
193
193
|
/**
|
|
194
194
|
* Collision category bits.
|
|
195
195
|
*/
|
|
@@ -206,7 +206,7 @@ declare global {
|
|
|
206
206
|
/**
|
|
207
207
|
* Partial Box2D collision filter
|
|
208
208
|
*/
|
|
209
|
-
interface
|
|
209
|
+
interface FilterOptions {
|
|
210
210
|
/**
|
|
211
211
|
* Collision category bits.
|
|
212
212
|
*/
|
|
@@ -223,15 +223,15 @@ declare global {
|
|
|
223
223
|
/**
|
|
224
224
|
* Box2D 2.x cast hit
|
|
225
225
|
*/
|
|
226
|
-
interface
|
|
226
|
+
interface FixtureCastHit {
|
|
227
227
|
/**
|
|
228
228
|
* Hit fixture.
|
|
229
229
|
*/
|
|
230
|
-
fixture: b2d.
|
|
230
|
+
fixture: b2d.FixtureInfo;
|
|
231
231
|
/**
|
|
232
232
|
* Hit fixture child shape.
|
|
233
233
|
*/
|
|
234
|
-
shape: b2d.
|
|
234
|
+
shape: b2d.FixtureInfo;
|
|
235
235
|
/**
|
|
236
236
|
* Hit point.
|
|
237
237
|
*/
|
|
@@ -256,11 +256,11 @@ declare global {
|
|
|
256
256
|
/**
|
|
257
257
|
* Box2D 2.x fixture definition
|
|
258
258
|
*/
|
|
259
|
-
interface
|
|
259
|
+
interface FixtureDefinition {
|
|
260
260
|
/**
|
|
261
261
|
* Shape definition.
|
|
262
262
|
*/
|
|
263
|
-
shape: b2d.shape.
|
|
263
|
+
shape: b2d.shape.Definition;
|
|
264
264
|
/**
|
|
265
265
|
* Fixture friction.
|
|
266
266
|
*/
|
|
@@ -284,12 +284,12 @@ declare global {
|
|
|
284
284
|
/**
|
|
285
285
|
* Collision filter.
|
|
286
286
|
*/
|
|
287
|
-
filter?: b2d.
|
|
287
|
+
filter?: b2d.Filter;
|
|
288
288
|
}
|
|
289
289
|
/**
|
|
290
290
|
* Box2D 2.x fixture information
|
|
291
291
|
*/
|
|
292
|
-
interface
|
|
292
|
+
interface FixtureInfo {
|
|
293
293
|
/**
|
|
294
294
|
* Owning body, when returned from a world query.
|
|
295
295
|
*/
|
|
@@ -305,7 +305,7 @@ declare global {
|
|
|
305
305
|
/**
|
|
306
306
|
* Shape type.
|
|
307
307
|
*/
|
|
308
|
-
type: b2d.shape.
|
|
308
|
+
type: b2d.shape.ShapeType;
|
|
309
309
|
/**
|
|
310
310
|
* Whether the fixture is a sensor.
|
|
311
311
|
*/
|
|
@@ -330,7 +330,7 @@ declare global {
|
|
|
330
330
|
/**
|
|
331
331
|
* Mass properties for a Box2D body or shape.
|
|
332
332
|
*/
|
|
333
|
-
interface
|
|
333
|
+
interface MassData {
|
|
334
334
|
/**
|
|
335
335
|
* Body mass, usually in kilograms.
|
|
336
336
|
*/
|
|
@@ -347,7 +347,7 @@ declare global {
|
|
|
347
347
|
/**
|
|
348
348
|
* Box2D mover capsule
|
|
349
349
|
*/
|
|
350
|
-
interface
|
|
350
|
+
interface MoverCapsule {
|
|
351
351
|
/**
|
|
352
352
|
* First capsule center.
|
|
353
353
|
*/
|
|
@@ -364,11 +364,11 @@ declare global {
|
|
|
364
364
|
/**
|
|
365
365
|
* Box2D mover collision plane
|
|
366
366
|
*/
|
|
367
|
-
interface
|
|
367
|
+
interface MoverPlane {
|
|
368
368
|
/**
|
|
369
369
|
* Colliding shape.
|
|
370
370
|
*/
|
|
371
|
-
shape: b2d.
|
|
371
|
+
shape: b2d.ShapeInfo;
|
|
372
372
|
/**
|
|
373
373
|
* Plane normal.
|
|
374
374
|
*/
|
|
@@ -385,7 +385,7 @@ declare global {
|
|
|
385
385
|
/**
|
|
386
386
|
* Box2D world-query filter
|
|
387
387
|
*/
|
|
388
|
-
interface
|
|
388
|
+
interface QueryFilter {
|
|
389
389
|
/**
|
|
390
390
|
* Optional collision category bits.
|
|
391
391
|
*/
|
|
@@ -402,11 +402,11 @@ declare global {
|
|
|
402
402
|
/**
|
|
403
403
|
* Box2D 3.x cast hit
|
|
404
404
|
*/
|
|
405
|
-
interface
|
|
405
|
+
interface ShapeCastHit {
|
|
406
406
|
/**
|
|
407
407
|
* Hit shape.
|
|
408
408
|
*/
|
|
409
|
-
shape: b2d.
|
|
409
|
+
shape: b2d.ShapeInfo;
|
|
410
410
|
/**
|
|
411
411
|
* Hit point.
|
|
412
412
|
*/
|
|
@@ -431,7 +431,7 @@ declare global {
|
|
|
431
431
|
/**
|
|
432
432
|
* Direct Box2D shape cast result
|
|
433
433
|
*/
|
|
434
|
-
interface
|
|
434
|
+
interface ShapeCastOutput {
|
|
435
435
|
/**
|
|
436
436
|
* Hit point.
|
|
437
437
|
*/
|
|
@@ -449,11 +449,11 @@ declare global {
|
|
|
449
449
|
*/
|
|
450
450
|
iterations: number;
|
|
451
451
|
}
|
|
452
|
-
type
|
|
452
|
+
type ShapeCreateDefinition = { shape: b2d.shape.Definition; density?: number; friction?: number; restitution?: number; material?: number; sensor?: boolean; is_sensor?: boolean; filter?: b2d.Filter } | { type: b2d.shape.ShapeType; radius?: number; center?: Vector3; center1?: Vector3; center2?: Vector3; v0?: Vector3; v1?: Vector3; v2?: Vector3; v3?: Vector3; hx?: number; hy?: number; angle?: number; vertices?: Vector3[]; density?: number; friction?: number; restitution?: number; material?: number; sensor?: boolean; is_sensor?: boolean; filter?: b2d.Filter };
|
|
453
453
|
/**
|
|
454
454
|
* Box2D 3.x shape information
|
|
455
455
|
*/
|
|
456
|
-
interface
|
|
456
|
+
interface ShapeInfo {
|
|
457
457
|
/**
|
|
458
458
|
* Shape index on the body.
|
|
459
459
|
*/
|
|
@@ -465,7 +465,7 @@ declare global {
|
|
|
465
465
|
/**
|
|
466
466
|
* Shape type.
|
|
467
467
|
*/
|
|
468
|
-
type: b2d.shape.
|
|
468
|
+
type: b2d.shape.ShapeType;
|
|
469
469
|
/**
|
|
470
470
|
* Whether the shape is a sensor.
|
|
471
471
|
*/
|
|
@@ -498,7 +498,7 @@ declare global {
|
|
|
498
498
|
/**
|
|
499
499
|
* World transform for a Box2D body.
|
|
500
500
|
*/
|
|
501
|
-
interface
|
|
501
|
+
interface Transform {
|
|
502
502
|
/**
|
|
503
503
|
* World position of the body origin.
|
|
504
504
|
*/
|
|
@@ -511,7 +511,7 @@ declare global {
|
|
|
511
511
|
/**
|
|
512
512
|
* Box2D broad-phase query statistics
|
|
513
513
|
*/
|
|
514
|
-
interface
|
|
514
|
+
interface TreeStats {
|
|
515
515
|
/**
|
|
516
516
|
* Number of tree nodes visited.
|
|
517
517
|
*/
|
|
@@ -524,7 +524,7 @@ declare global {
|
|
|
524
524
|
/**
|
|
525
525
|
* Box2D version information
|
|
526
526
|
*/
|
|
527
|
-
interface
|
|
527
|
+
interface VersionInfo {
|
|
528
528
|
/**
|
|
529
529
|
* Full Box2D version string.
|
|
530
530
|
*/
|
|
@@ -545,7 +545,7 @@ declare global {
|
|
|
545
545
|
/**
|
|
546
546
|
* Box2D world counters
|
|
547
547
|
*/
|
|
548
|
-
interface
|
|
548
|
+
interface WorldCounters {
|
|
549
549
|
/**
|
|
550
550
|
* Number of bodies.
|
|
551
551
|
*/
|
|
@@ -594,7 +594,7 @@ declare global {
|
|
|
594
594
|
/**
|
|
595
595
|
* Box2D world profiling data
|
|
596
596
|
*/
|
|
597
|
-
interface
|
|
597
|
+
interface WorldProfile {
|
|
598
598
|
/**
|
|
599
599
|
* Total step time.
|
|
600
600
|
*/
|
|
@@ -704,7 +704,7 @@ declare global {
|
|
|
704
704
|
*
|
|
705
705
|
* @returns version information
|
|
706
706
|
*/
|
|
707
|
-
function get_version(): b2d.
|
|
707
|
+
function get_version(): b2d.VersionInfo;
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
710
|
|
|
@@ -21,13 +21,13 @@ declare global {
|
|
|
21
21
|
* checking a retained handle; every other operation rejects an invalid handle.
|
|
22
22
|
*/
|
|
23
23
|
namespace bullet3d {
|
|
24
|
-
type
|
|
25
|
-
type
|
|
26
|
-
type
|
|
24
|
+
type BtCollisionObject = Opaque<"btCollisionObject" | "btRigidBody">;
|
|
25
|
+
type BtDiscreteDynamicsWorld = Opaque<"btDiscreteDynamicsWorld">;
|
|
26
|
+
type BtRigidBody = Opaque<"btRigidBody">;
|
|
27
27
|
/**
|
|
28
28
|
* Bullet version information
|
|
29
29
|
*/
|
|
30
|
-
interface
|
|
30
|
+
interface VersionInfo {
|
|
31
31
|
/**
|
|
32
32
|
* full Bullet version string
|
|
33
33
|
*/
|
|
@@ -66,7 +66,7 @@ declare global {
|
|
|
66
66
|
*
|
|
67
67
|
* @returns version information
|
|
68
68
|
*/
|
|
69
|
-
function get_version(): bullet3d.
|
|
69
|
+
function get_version(): bullet3d.VersionInfo;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -5,8 +5,7 @@ declare global {
|
|
|
5
5
|
* used to dynamically spawn collections into the runtime.
|
|
6
6
|
*/
|
|
7
7
|
namespace collectionfactory {
|
|
8
|
-
type Status = typeof collectionfactory.
|
|
9
|
-
type STATUS = typeof collectionfactory.STATUS_LOADED | typeof collectionfactory.STATUS_LOADING | typeof collectionfactory.STATUS_UNLOADED;
|
|
8
|
+
type Status = typeof collectionfactory.STATUS_LOADED | typeof collectionfactory.STATUS_LOADING | typeof collectionfactory.STATUS_UNLOADED;
|
|
10
9
|
/**
|
|
11
10
|
* The collection factory resources are loaded.
|
|
12
11
|
*/
|
|
@@ -9,7 +9,7 @@ declare global {
|
|
|
9
9
|
* Data delivered to a collectionproxy.load callback. The available
|
|
10
10
|
* field depends on the callback message identifier.
|
|
11
11
|
*/
|
|
12
|
-
interface
|
|
12
|
+
interface LoadData {
|
|
13
13
|
/**
|
|
14
14
|
* Loading progress from 0 to 1 for `proxy_loading`.
|
|
15
15
|
*/
|
|
@@ -19,8 +19,8 @@ declare global {
|
|
|
19
19
|
*/
|
|
20
20
|
code?: number;
|
|
21
21
|
}
|
|
22
|
-
type
|
|
23
|
-
type
|
|
22
|
+
type TimeStepMode = 0 | 1;
|
|
23
|
+
type Result = typeof collectionproxy.RESULT_ALREADY_LOADED | typeof collectionproxy.RESULT_LOADING | typeof collectionproxy.RESULT_NOT_EXCLUDED;
|
|
24
24
|
/**
|
|
25
25
|
* The collection proxy is already loaded, so its collection cannot be changed.
|
|
26
26
|
*/
|
|
@@ -5,8 +5,7 @@ declare global {
|
|
|
5
5
|
* dynamically spawn game objects into the runtime.
|
|
6
6
|
*/
|
|
7
7
|
namespace factory {
|
|
8
|
-
type Status = typeof factory.
|
|
9
|
-
type STATUS = typeof factory.STATUS_LOADED | typeof factory.STATUS_LOADING | typeof factory.STATUS_UNLOADED;
|
|
8
|
+
type Status = typeof factory.STATUS_LOADED | typeof factory.STATUS_LOADING | typeof factory.STATUS_UNLOADED;
|
|
10
9
|
/**
|
|
11
10
|
* The factory resources are loaded.
|
|
12
11
|
*/
|
|
@@ -9,7 +9,7 @@ declare global {
|
|
|
9
9
|
/**
|
|
10
10
|
* Options for accessing indexed or internal component properties with go.get and go.set.
|
|
11
11
|
*/
|
|
12
|
-
interface
|
|
12
|
+
interface PropertyOptions {
|
|
13
13
|
/**
|
|
14
14
|
* Index into an array property, starting at one.
|
|
15
15
|
*/
|
|
@@ -24,9 +24,7 @@ declare global {
|
|
|
24
24
|
keys?: Hash[];
|
|
25
25
|
}
|
|
26
26
|
type Easing = typeof go.EASING_INBACK | typeof go.EASING_INBOUNCE | typeof go.EASING_INCIRC | typeof go.EASING_INCUBIC | typeof go.EASING_INELASTIC | typeof go.EASING_INEXPO | typeof go.EASING_INOUTBACK | typeof go.EASING_INOUTBOUNCE | typeof go.EASING_INOUTCIRC | typeof go.EASING_INOUTCUBIC | typeof go.EASING_INOUTELASTIC | typeof go.EASING_INOUTEXPO | typeof go.EASING_INOUTQUAD | typeof go.EASING_INOUTQUART | typeof go.EASING_INOUTQUINT | typeof go.EASING_INOUTSINE | typeof go.EASING_INQUAD | typeof go.EASING_INQUART | typeof go.EASING_INQUINT | typeof go.EASING_INSINE | typeof go.EASING_LINEAR | typeof go.EASING_OUTBACK | typeof go.EASING_OUTBOUNCE | typeof go.EASING_OUTCIRC | typeof go.EASING_OUTCUBIC | typeof go.EASING_OUTELASTIC | typeof go.EASING_OUTEXPO | typeof go.EASING_OUTINBACK | typeof go.EASING_OUTINBOUNCE | typeof go.EASING_OUTINCIRC | typeof go.EASING_OUTINCUBIC | typeof go.EASING_OUTINELASTIC | typeof go.EASING_OUTINEXPO | typeof go.EASING_OUTINQUAD | typeof go.EASING_OUTINQUART | typeof go.EASING_OUTINQUINT | typeof go.EASING_OUTINSINE | typeof go.EASING_OUTQUAD | typeof go.EASING_OUTQUART | typeof go.EASING_OUTQUINT | typeof go.EASING_OUTSINE;
|
|
27
|
-
type Playback = typeof go.
|
|
28
|
-
type EASING = typeof go.EASING_INBACK | typeof go.EASING_INBOUNCE | typeof go.EASING_INCIRC | typeof go.EASING_INCUBIC | typeof go.EASING_INELASTIC | typeof go.EASING_INEXPO | typeof go.EASING_INOUTBACK | typeof go.EASING_INOUTBOUNCE | typeof go.EASING_INOUTCIRC | typeof go.EASING_INOUTCUBIC | typeof go.EASING_INOUTELASTIC | typeof go.EASING_INOUTEXPO | typeof go.EASING_INOUTQUAD | typeof go.EASING_INOUTQUART | typeof go.EASING_INOUTQUINT | typeof go.EASING_INOUTSINE | typeof go.EASING_INQUAD | typeof go.EASING_INQUART | typeof go.EASING_INQUINT | typeof go.EASING_INSINE | typeof go.EASING_LINEAR | typeof go.EASING_OUTBACK | typeof go.EASING_OUTBOUNCE | typeof go.EASING_OUTCIRC | typeof go.EASING_OUTCUBIC | typeof go.EASING_OUTELASTIC | typeof go.EASING_OUTEXPO | typeof go.EASING_OUTINBACK | typeof go.EASING_OUTINBOUNCE | typeof go.EASING_OUTINCIRC | typeof go.EASING_OUTINCUBIC | typeof go.EASING_OUTINELASTIC | typeof go.EASING_OUTINEXPO | typeof go.EASING_OUTINQUAD | typeof go.EASING_OUTINQUART | typeof go.EASING_OUTINQUINT | typeof go.EASING_OUTINSINE | typeof go.EASING_OUTQUAD | typeof go.EASING_OUTQUART | typeof go.EASING_OUTQUINT | typeof go.EASING_OUTSINE;
|
|
29
|
-
type PLAYBACK = typeof go.PLAYBACK_LOOP_BACKWARD | typeof go.PLAYBACK_LOOP_FORWARD | typeof go.PLAYBACK_LOOP_PINGPONG | typeof go.PLAYBACK_NONE | typeof go.PLAYBACK_ONCE_BACKWARD | typeof go.PLAYBACK_ONCE_FORWARD | typeof go.PLAYBACK_ONCE_PINGPONG;
|
|
27
|
+
type Playback = typeof go.PLAYBACK_LOOP_BACKWARD | typeof go.PLAYBACK_LOOP_FORWARD | typeof go.PLAYBACK_LOOP_PINGPONG | typeof go.PLAYBACK_NONE | typeof go.PLAYBACK_ONCE_BACKWARD | typeof go.PLAYBACK_ONCE_FORWARD | typeof go.PLAYBACK_ONCE_PINGPONG;
|
|
30
28
|
/**
|
|
31
29
|
* in-back
|
|
32
30
|
*/
|
|
@@ -223,7 +221,7 @@ declare global {
|
|
|
223
221
|
/**
|
|
224
222
|
* Data supplied to the global `on_input` lifecycle function.
|
|
225
223
|
*/
|
|
226
|
-
interface
|
|
224
|
+
interface Action {
|
|
227
225
|
/**
|
|
228
226
|
* Amount of input, usually 1 for buttons or between 0 and 1 for analogue input; absent for pointer movement and text input.
|
|
229
227
|
*/
|
|
@@ -299,7 +297,7 @@ declare global {
|
|
|
299
297
|
/**
|
|
300
298
|
* Parsed guid information, supplied with a gamepad-connected action.
|
|
301
299
|
*/
|
|
302
|
-
gamepad_guid_info?: go.on_input.
|
|
300
|
+
gamepad_guid_info?: go.on_input.GamepadGuidInfo;
|
|
303
301
|
/**
|
|
304
302
|
* Whether the input originated from an unknown or unmapped gamepad.
|
|
305
303
|
*/
|
|
@@ -323,7 +321,7 @@ declare global {
|
|
|
323
321
|
/**
|
|
324
322
|
* Touch inputs, one entry per finger.
|
|
325
323
|
*/
|
|
326
|
-
touch?: go.on_input.
|
|
324
|
+
touch?: go.on_input.Touch[];
|
|
327
325
|
/**
|
|
328
326
|
* Text entered by a text action, or the current sequence for marked-text composition such as Japanese Kana.
|
|
329
327
|
*/
|
|
@@ -332,7 +330,7 @@ declare global {
|
|
|
332
330
|
/**
|
|
333
331
|
* Parsed fields from a connected gamepad guid.
|
|
334
332
|
*/
|
|
335
|
-
interface
|
|
333
|
+
interface GamepadGuidInfo {
|
|
336
334
|
/**
|
|
337
335
|
* USB vendor id.
|
|
338
336
|
*/
|
|
@@ -357,7 +355,7 @@ declare global {
|
|
|
357
355
|
/**
|
|
358
356
|
* One touch entry in on_input.action.
|
|
359
357
|
*/
|
|
360
|
-
interface
|
|
358
|
+
interface Touch {
|
|
361
359
|
/**
|
|
362
360
|
* Identifier for the touch during its lifetime.
|
|
363
361
|
*/
|
|
@@ -408,7 +406,7 @@ declare global {
|
|
|
408
406
|
screen_dy: number;
|
|
409
407
|
}
|
|
410
408
|
}
|
|
411
|
-
interface
|
|
409
|
+
interface Properties {
|
|
412
410
|
/**
|
|
413
411
|
* The rotation of the game object expressed in Euler angles.
|
|
414
412
|
* Euler angles are specified in degrees in the interval (-360, 360).
|
|
@@ -9,7 +9,7 @@ declare global {
|
|
|
9
9
|
/**
|
|
10
10
|
* Rich-text layout object
|
|
11
11
|
*/
|
|
12
|
-
interface
|
|
12
|
+
interface LayoutObject {
|
|
13
13
|
/**
|
|
14
14
|
* object type, currently `link` or `sprite`
|
|
15
15
|
*/
|
|
@@ -47,7 +47,7 @@ declare global {
|
|
|
47
47
|
*/
|
|
48
48
|
attributes: LuaTable<string, string>;
|
|
49
49
|
}
|
|
50
|
-
interface
|
|
50
|
+
interface Properties {
|
|
51
51
|
/**
|
|
52
52
|
* The color of the label. The type of the property is vector4.
|
|
53
53
|
*/
|