@ts-defold/types 1.2.66 → 1.2.68

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.
Files changed (2) hide show
  1. package/index.d.ts +19 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  /// <reference types="lua-types/5.1" />
3
3
  /// <reference types="@typescript-to-lua/language-extensions" />
4
4
 
5
- // DEFOLD. stable version 1.10.0 (591eb496d52f4140bc2c7de547131f1b9408b9b4)
5
+ // DEFOLD. stable version 1.10.1 (d8e6e73a8efac6b9a72783027867e547b6a363e4)
6
6
  // =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= //
7
7
 
8
8
 
@@ -5371,7 +5371,7 @@ optional flag to determine wether or not the resource should take over ownership
5371
5371
 
5372
5372
  /**
5373
5373
  * Creates a sound data resource
5374
- * Supported formats are .oggc and .wavc
5374
+ * Supported formats are .oggc, .opusc and .wavc
5375
5375
  * @param path the path to the resource. Must not already exist.
5376
5376
  * @param options A table containing parameters for the text. Supported entries:
5377
5377
 
@@ -5894,7 +5894,7 @@ optional flag to determine wether or not the resource should take over ownership
5894
5894
  export function set_buffer(path: hash | string, buffer: buffer, table?: any): void
5895
5895
 
5896
5896
  /**
5897
- * Update internal sound resource (wavc/oggc) with new data
5897
+ * Update internal sound resource (wavc/oggc/opusc) with new data
5898
5898
  * @param path The path to the resource
5899
5899
  * @param buffer A lua string containing the binary sound data
5900
5900
  */
@@ -8220,6 +8220,14 @@ declare namespace model {
8220
8220
  */
8221
8221
  export function cancel(url: string | hash | url): void
8222
8222
 
8223
+ /**
8224
+ * Get AABB of the whole model in local coordinate space.
8225
+ * AABB information return as a table with `min` and `max` fields, where `min` and `max` has type `vmath.vector4`.
8226
+ * @param url the model
8227
+ * @return aabb A table containing AABB of the model. If model has no meshes - return vmath.vector3(0,0,0) for min and max fields.
8228
+ */
8229
+ export function get_aabb(url: string | hash | url): any
8230
+
8223
8231
  /**
8224
8232
  * Gets the id of the game object that corresponds to a model skeleton bone.
8225
8233
  * The returned game object can be used for parenting and transform queries.
@@ -8231,6 +8239,14 @@ declare namespace model {
8231
8239
  */
8232
8240
  export function get_go(url: string | hash | url, bone_id: string | hash): hash
8233
8241
 
8242
+ /**
8243
+ * Get AABB of all meshes.
8244
+ * AABB information return as a table with `min` and `max` fields, where `min` and `max` has type `vmath.vector4`.
8245
+ * @param url the model
8246
+ * @return aabb A table containing info about all AABB in the format
8247
+ */
8248
+ export function get_mesh_aabb(url: string | hash | url): any
8249
+
8234
8250
  /**
8235
8251
  * Get the enabled state of a mesh
8236
8252
  * @param url the model
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-defold/types",
3
- "version": "1.2.66",
3
+ "version": "1.2.68",
4
4
  "description": "TypeScript definitions for Defold",
5
5
  "repository": "github:ts-defold/types",
6
6
  "keywords": [