@ts-defold/types 1.2.11 → 1.2.14

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 +60 -21
  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.3.0 (0e77ba11ac957ee01878bbde2e6ac0c9fae6dc01)
5
+ // DEFOLD. stable version 1.3.3 (c2ab1630e34f1311d8340d81494cf5317d25fe16)
6
6
  // =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= //
7
7
 
8
8
 
@@ -720,12 +720,12 @@ The id of the animated property.
720
720
  export function animate(url: string | hash | url, property: string | hash, playback: any, to: number | vmath.vector3 | vmath.vector4 | vmath.quaternion, easing: any, duration: number, delay?: number, complete_function?: any): void
721
721
 
722
722
  /**
723
- * By calling this function, all stored animations of the given property will be canceled.
723
+ * By calling this function, all or specified stored property animations of the game object or component will be canceled.
724
724
  * See the properties guide for which properties can be animated and the animation guide for how to animate them.
725
- * @param url url of the game object or component having the property
726
- * @param property id of the property to cancel
725
+ * @param url url of the game object or component
726
+ * @param property optional id of the property to cancel
727
727
  */
728
- export function cancel_animations(url: string | hash | url, property: string | hash): void
728
+ export function cancel_animations(url: string | hash | url, property?: string | hash): void
729
729
 
730
730
  /**
731
731
  * Delete one or more game objects identified by id. Deletion is asynchronous meaning that
@@ -3139,35 +3139,55 @@ declare namespace render {
3139
3139
  */
3140
3140
  export let FORMAT_LUMINANCE: any
3141
3141
 
3142
+ /**
3143
+ * May be nil if the format isn't supported
3144
+ */
3145
+ export let FORMAT_R16F: any
3146
+
3147
+ /**
3148
+ * May be nil if the format isn't supported
3149
+ */
3150
+ export let FORMAT_R32F: any
3151
+
3152
+ /**
3153
+ * May be nil if the format isn't supported
3154
+ */
3155
+ export let FORMAT_RG16F: any
3156
+
3157
+ /**
3158
+ * May be nil if the format isn't supported
3159
+ */
3160
+ export let FORMAT_RG32F: any
3161
+
3142
3162
  /**
3143
3163
  *
3144
3164
  */
3145
3165
  export let FORMAT_RGB: any
3146
3166
 
3147
3167
  /**
3148
- *
3168
+ * May be nil if the format isn't supported
3149
3169
  */
3150
- export let FORMAT_RGBA: any
3170
+ export let FORMAT_RGB16F: any
3151
3171
 
3152
3172
  /**
3153
- *
3173
+ * May be nil if the format isn't supported
3154
3174
  */
3155
- export let FORMAT_RGBA_DXT1: any
3175
+ export let FORMAT_RGB32F: any
3156
3176
 
3157
3177
  /**
3158
3178
  *
3159
3179
  */
3160
- export let FORMAT_RGBA_DXT3: any
3180
+ export let FORMAT_RGBA: any
3161
3181
 
3162
3182
  /**
3163
- *
3183
+ * May be nil if the format isn't supported
3164
3184
  */
3165
- export let FORMAT_RGBA_DXT5: any
3185
+ export let FORMAT_RGBA16F: any
3166
3186
 
3167
3187
  /**
3168
- *
3188
+ * May be nil if the format isn't supported
3169
3189
  */
3170
- export let FORMAT_RGB_DXT1: any
3190
+ export let FORMAT_RGBA32F: any
3171
3191
 
3172
3192
  /**
3173
3193
  *
@@ -3320,14 +3340,25 @@ declare namespace render {
3320
3340
  * system constants buffer is used containing constants as defined in materials and set through
3321
3341
  * go.set (or particlefx.set_constant) on visual components.
3322
3342
  * @param predicate predicate to draw for
3323
- * @param constants optional constants to use while rendering
3343
+ * @param options optional table with properties:
3344
+
3345
+ `frustum`
3346
+ A frustum matrix used to cull renderable items. (E.g. `local frustum = proj * view`). May be nil.
3347
+ `constants`
3348
+ optional constants to use while rendering
3349
+
3324
3350
  */
3325
- export function draw(predicate: any, constants?: any): void
3351
+ export function draw(predicate: any, options?: any): void
3326
3352
 
3327
3353
  /**
3328
3354
  * Draws all 3d debug graphics such as lines drawn with "draw_line" messages and physics visualization.
3355
+ * @param options optional table with properties:
3356
+
3357
+ `frustum`
3358
+ A frustum matrix used to cull renderable items. (E.g. `local frustum = proj * view`). May be nil.
3359
+
3329
3360
  */
3330
- export function draw_debug3d(): void
3361
+ export function draw_debug3d(options?: any): void
3331
3362
 
3332
3363
  /**
3333
3364
  * If another material was already enabled, it will be automatically disabled
@@ -3452,7 +3483,7 @@ declare namespace render {
3452
3483
  *
3453
3484
  *
3454
3485
  * `format`
3455
- * `render.FORMAT_LUMINANCE``render.FORMAT_RGB``render.FORMAT_RGBA` `render.FORMAT_RGB_DXT1``render.FORMAT_RGBA_DXT1``render.FORMAT_RGBA_DXT3` `render.FORMAT_RGBA_DXT5``render.FORMAT_DEPTH``render.FORMAT_STENCIL`
3486
+ * `render.FORMAT_LUMINANCE``render.FORMAT_RGB``render.FORMAT_RGBA``render.FORMAT_DEPTH``render.FORMAT_STENCIL``render.FORMAT_RGBA32F``render.FORMAT_RGBA16F`
3456
3487
  *
3457
3488
  *
3458
3489
  * `width`
@@ -4010,8 +4041,11 @@ The texture format. Supported values:
4010
4041
  export function set_texture(path: hash | string, table: any, buffer: buffer): void
4011
4042
 
4012
4043
  /**
4013
- * Stores a zip file and uses it for live update content.
4014
- * The path is renamed and stored in the (internal) live update location
4044
+ * Stores a zip file and uses it for live update content. The contents of the
4045
+ * zip file will be verified against the manifest to ensure file integrity.
4046
+ * It is possible to opt out of the resource verification using an option passed
4047
+ * to this function.
4048
+ * The path is stored in the (internal) live update location.
4015
4049
  * @param path the path to the original file on disc
4016
4050
  * @param callback the callback function
4017
4051
  executed after the storage has completed
@@ -4021,8 +4055,12 @@ The current object.
4021
4055
  `status`
4022
4056
  the status of the store operation (See resource.store_manifest)
4023
4057
 
4058
+ * @param options optional table with extra parameters. Supported entries:
4059
+
4060
+ `verify`: if archive should be verified as well as stored (defaults to true)
4061
+
4024
4062
  */
4025
- export function store_archive(path: string, callback: any): void
4063
+ export function store_archive(path: string, callback: any, options?: any): void
4026
4064
 
4027
4065
  /**
4028
4066
  * Create a new manifest from a buffer. The created manifest is verified
@@ -4720,6 +4758,7 @@ The response data. Contains the fields:
4720
4758
  `timeout`: timeout in seconds
4721
4759
  `path`: path on disc where to download the file. Only overwrites the path if status is 200
4722
4760
  `ignore_cache`: don't return cached data if we get a 304
4761
+ `chunked_transfer`: use chunked transfer encoding for https requests larger than 16kb. Defaults to true.
4723
4762
 
4724
4763
  */
4725
4764
  export function request(url: string, method: string, callback: any, headers?: any, post_data?: string, options?: any): void
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-defold/types",
3
- "version": "1.2.11",
3
+ "version": "1.2.14",
4
4
  "description": "TypeScript definitions for Defold",
5
5
  "repository": "github:ts-defold/types",
6
6
  "keywords": [