@ts-defold/types 1.2.21 → 1.2.22
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/index.d.ts +35 -1
- 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.4.
|
|
5
|
+
// DEFOLD. stable version 1.4.8 (504de7800fa81847bfc2e26a21973899db9dd747)
|
|
6
6
|
// =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= //
|
|
7
7
|
|
|
8
8
|
|
|
@@ -1882,6 +1882,13 @@ with a custom curve. See the animation guide for more information.
|
|
|
1882
1882
|
*/
|
|
1883
1883
|
export function get_tracking(node: node): number
|
|
1884
1884
|
|
|
1885
|
+
/**
|
|
1886
|
+
* Get a node and all its children as a Lua table.
|
|
1887
|
+
* @param node root node to get node tree from
|
|
1888
|
+
* @return clones a table mapping node ids to the corresponding nodes
|
|
1889
|
+
*/
|
|
1890
|
+
export function get_tree(node: node): any
|
|
1891
|
+
|
|
1885
1892
|
/**
|
|
1886
1893
|
* Returns `true` if a node is visible and `false` if it's not.
|
|
1887
1894
|
* Invisible nodes are not rendered.
|
|
@@ -4788,6 +4795,14 @@ If the engine is a debug or release version
|
|
|
4788
4795
|
*/
|
|
4789
4796
|
export function get_engine_info(): any
|
|
4790
4797
|
|
|
4798
|
+
/**
|
|
4799
|
+
* Create a path to the host device for unit testing
|
|
4800
|
+
* Useful for saving logs etc during development
|
|
4801
|
+
* @param filename file to read from
|
|
4802
|
+
* @return host_path the path prefixed with the proper host mount
|
|
4803
|
+
*/
|
|
4804
|
+
export function get_host_path(filename: string): string
|
|
4805
|
+
|
|
4791
4806
|
/**
|
|
4792
4807
|
* Returns an array of tables with information on network interfaces.
|
|
4793
4808
|
* @return ifaddrs an array of tables. Each table entry contain the following fields:
|
|
@@ -5996,6 +6011,13 @@ declare namespace camera {
|
|
|
5996
6011
|
*/
|
|
5997
6012
|
export type acquire_camera_focus = "acquire_camera_focus"
|
|
5998
6013
|
|
|
6014
|
+
/**
|
|
6015
|
+
* The ratio between the frustum width and height. Used when calculating the
|
|
6016
|
+
* projection of a perspective camera.
|
|
6017
|
+
* The type of the property is number.
|
|
6018
|
+
*/
|
|
6019
|
+
export let aspect_ratio: any
|
|
6020
|
+
|
|
5999
6021
|
/**
|
|
6000
6022
|
* Camera frustum far plane.
|
|
6001
6023
|
* The type of the property is float.
|
|
@@ -6020,6 +6042,12 @@ declare namespace camera {
|
|
|
6020
6042
|
*/
|
|
6021
6043
|
export let orthographic_zoom: any
|
|
6022
6044
|
|
|
6045
|
+
/**
|
|
6046
|
+
* READ ONLY The calculated projection matrix of the camera.
|
|
6047
|
+
* The type of the property is matrix4.
|
|
6048
|
+
*/
|
|
6049
|
+
export let projection: any
|
|
6050
|
+
|
|
6023
6051
|
/**
|
|
6024
6052
|
*
|
|
6025
6053
|
* Post this message to a camera-component to deactivate it. The camera is then removed from the active cameras.
|
|
@@ -6035,6 +6063,12 @@ declare namespace camera {
|
|
|
6035
6063
|
*/
|
|
6036
6064
|
export type set_camera = "set_camera"
|
|
6037
6065
|
|
|
6066
|
+
/**
|
|
6067
|
+
* READ ONLY The calculated view matrix of the camera.
|
|
6068
|
+
* The type of the property is matrix4.
|
|
6069
|
+
*/
|
|
6070
|
+
export let view: any
|
|
6071
|
+
|
|
6038
6072
|
}
|
|
6039
6073
|
// =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= //
|
|
6040
6074
|
|