@ts-defold/types 1.2.10 → 1.2.11

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 +20 -118
  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.2.192 (84a9c89dfd5a2c3818c01e7c6777169272d9390b)
5
+ // DEFOLD. stable version 1.3.0 (0e77ba11ac957ee01878bbde2e6ac0c9fae6dc01)
6
6
  // =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= //
7
7
 
8
8
 
@@ -406,6 +406,7 @@ declare namespace go {
406
406
  * - Sprite
407
407
  * - Tile Grid
408
408
  * - Model
409
+ * - Mesh
409
410
  *
410
411
  */
411
412
  export type disable = "disable"
@@ -423,6 +424,7 @@ declare namespace go {
423
424
  * - Sprite
424
425
  * - Tile Grid
425
426
  * - Model
427
+ * - Mesh
426
428
  *
427
429
  */
428
430
  export type enable = "enable"
@@ -1485,12 +1487,6 @@ with a custom curve. See the animation guide for more information.
1485
1487
  */
1486
1488
  export function cancel_flipbook(node: node): void
1487
1489
 
1488
- /**
1489
- * cancel a spine animation
1490
- * @param node spine node that should cancel its animation
1491
- */
1492
- export function cancel_spine(node: node): void
1493
-
1494
1490
  /**
1495
1491
  * Make a clone instance of a node.
1496
1492
  * This function does not clone the supplied node's children nodes.
@@ -1838,7 +1834,7 @@ with a custom curve. See the animation guide for more information.
1838
1834
  * The size mode defines how the node will adjust itself in size. Automatic
1839
1835
  * size mode alters the node size based on the node's content. Automatic size
1840
1836
  * mode works for Box nodes and Pie nodes which will both adjust their size
1841
- * to match the assigned image. Spine, Particle fx and Text nodes will ignore
1837
+ * to match the assigned image. Particle fx and Text nodes will ignore
1842
1838
  * any size mode setting.
1843
1839
  * @param node node from which to get the size mode (node)
1844
1840
  * @return size_mode the current size mode
@@ -1856,52 +1852,6 @@ with a custom curve. See the animation guide for more information.
1856
1852
  */
1857
1853
  export function get_slice9(node: node): vmath.vector4
1858
1854
 
1859
- /**
1860
- * Gets the playing animation on a spine node
1861
- * @param node node to get spine skin from
1862
- * @return id spine animation id, 0 if no animation is playing
1863
- */
1864
- export function get_spine_animation(node: node): hash
1865
-
1866
- /**
1867
- * The returned node can be used for parenting and transform queries.
1868
- * This function has complexity O(n), where n is the number of bones in the spine model skeleton.
1869
- * @param node spine node to query for bone node
1870
- * @param bone_id id of the corresponding bone
1871
- * @return bone node corresponding to the spine bone
1872
- */
1873
- export function get_spine_bone(node: node, bone_id: string | hash): node
1874
-
1875
- /**
1876
- * This is only useful for spine nodes. Gets the normalized cursor of the animation on a spine node.
1877
- * @param node spine node to get the cursor for (node)
1878
- * @return cursor cursor value
1879
- */
1880
- export function get_spine_cursor(node: node): any
1881
-
1882
- /**
1883
- * This is only useful for spine nodes. Gets the playback rate of the animation on a spine node.
1884
- * @param node spine node to set the cursor for
1885
- * @return rate playback rate
1886
- */
1887
- export function get_spine_playback_rate(node: node): number
1888
-
1889
- /**
1890
- * Returns the spine scene id of the supplied node.
1891
- * This is currently only useful for spine nodes.
1892
- * The returned spine scene must be mapped to the gui scene in the gui editor.
1893
- * @param node node to get texture from
1894
- * @return spine_scene spine scene id
1895
- */
1896
- export function get_spine_scene(node: node): hash
1897
-
1898
- /**
1899
- * Gets the spine skin of a spine node
1900
- * @param node node to get spine skin from
1901
- * @return id spine skin id, 0 if no explicit skin is set
1902
- */
1903
- export function get_spine_skin(node: node): hash
1904
-
1905
1855
  /**
1906
1856
  * Returns the text value of a text node. This is only useful for text nodes.
1907
1857
  * @param node node from which to get the text
@@ -2011,14 +1961,6 @@ with a custom curve. See the animation guide for more information.
2011
1961
  */
2012
1962
  export function new_pie_node(pos: vmath.vector3 | vmath.vector4, size: vmath.vector3): node
2013
1963
 
2014
- /**
2015
- * Dynamically create a new spine node.
2016
- * @param pos node position
2017
- * @param spine_scene spine scene id
2018
- * @return node new spine node
2019
- */
2020
- export function new_spine_node(pos: vmath.vector3 | vmath.vector4, spine_scene: string | hash): node
2021
-
2022
1964
  /**
2023
1965
  * Dynamically create a new text node.
2024
1966
  * @param pos node position
@@ -2105,32 +2047,6 @@ the new state of the emitter:
2105
2047
  */
2106
2048
  export function play_particlefx(node: node, emitter_state_function?: any): void
2107
2049
 
2108
- /**
2109
- * Starts a spine animation.
2110
- * @param node spine node that should play the animation
2111
- * @param animation_id id of the animation to play
2112
- * @param playback playback mode
2113
-
2114
- - `gui.PLAYBACK_ONCE_FORWARD`
2115
- - `gui.PLAYBACK_ONCE_BACKWARD`
2116
- - `gui.PLAYBACK_ONCE_PINGPONG`
2117
- - `gui.PLAYBACK_LOOP_FORWARD`
2118
- - `gui.PLAYBACK_LOOP_BACKWARD`
2119
- - `gui.PLAYBACK_LOOP_PINGPONG`
2120
-
2121
- * @param play_properties optional table with properties
2122
-
2123
- `blend_duration`
2124
- The duration of a linear blend between the current and new animation
2125
- `offset`
2126
- The normalized initial value of the animation cursor when the animation starts playing
2127
- `playback_rate`
2128
- The rate with which the animation will be played. Must be positive
2129
-
2130
- * @param complete_function function to call when the animation has completed
2131
- */
2132
- export function play_spine_anim(node: node, animation_id: string | hash, playback: any, play_properties?: any, complete_function?: any): void
2133
-
2134
2050
  /**
2135
2051
  * Resets the input context of keyboard. This will clear marked text.
2136
2052
  */
@@ -2143,6 +2059,14 @@ The rate with which the animation will be played. Must be positive
2143
2059
  */
2144
2060
  export function reset_nodes(): void
2145
2061
 
2062
+ /**
2063
+ * Convert the screen position to the local position of supplied node
2064
+ * @param node node used for getting local transformation matrix
2065
+ * @param screen_position screen position
2066
+ * @return local_position local position
2067
+ */
2068
+ export function screen_to_local(node: node, screen_position: vmath.vector3): vmath.vector3
2069
+
2146
2070
  /**
2147
2071
  * Sets the adjust mode on a node.
2148
2072
  * The adjust mode defines how the node will adjust itself to screen
@@ -2415,6 +2339,13 @@ The rate with which the animation will be played. Must be positive
2415
2339
  */
2416
2340
  export function set_scale(node: node, scale: vmath.vector3 | vmath.vector4): void
2417
2341
 
2342
+ /**
2343
+ * Set the screen position to the supplied node
2344
+ * @param node node to set the screen position to
2345
+ * @param screen_position screen position
2346
+ */
2347
+ export function set_screen_position(node: node, screen_position: vmath.vector3): void
2348
+
2418
2349
  /**
2419
2350
  * Sets the shadow color of the supplied node.
2420
2351
  * See gui.set_color for info how vectors encode color values.
@@ -2436,7 +2367,7 @@ The rate with which the animation will be played. Must be positive
2436
2367
  * The size mode defines how the node will adjust itself in size. Automatic
2437
2368
  * size mode alters the node size based on the node's content. Automatic size
2438
2369
  * mode works for Box nodes and Pie nodes which will both adjust their size
2439
- * to match the assigned image. Spine, Particle fx and Text nodes will ignore
2370
+ * to match the assigned image. Particle fx and Text nodes will ignore
2440
2371
  * any size mode setting.
2441
2372
  * @param node node to set size mode for
2442
2373
  * @param size_mode size mode to set
@@ -2454,35 +2385,6 @@ The rate with which the animation will be played. Must be positive
2454
2385
  */
2455
2386
  export function set_slice9(node: node, values: vmath.vector4): void
2456
2387
 
2457
- /**
2458
- * This is only useful for spine nodes. The cursor is normalized.
2459
- * @param node spine node to set the cursor for
2460
- * @param cursor cursor value
2461
- */
2462
- export function set_spine_cursor(node: node, cursor: number): void
2463
-
2464
- /**
2465
- * This is only useful for spine nodes. Sets the playback rate of the animation on a spine node. Must be positive.
2466
- * @param node spine node to set the cursor for
2467
- * @param playback_rate playback rate
2468
- */
2469
- export function set_spine_playback_rate(node: node, playback_rate: number): void
2470
-
2471
- /**
2472
- * Set the spine scene on a spine node. The spine scene must be mapped to the gui scene in the gui editor.
2473
- * @param node node to set spine scene for
2474
- * @param spine_scene spine scene id
2475
- */
2476
- export function set_spine_scene(node: node, spine_scene: string | hash): void
2477
-
2478
- /**
2479
- * Sets the spine skin on a spine node.
2480
- * @param node node to set the spine skin on
2481
- * @param spine_skin spine skin id
2482
- * @param spine_slot optional slot id to only change a specific slot
2483
- */
2484
- export function set_spine_skin(node: node, spine_skin: string | hash, spine_slot?: string | hash): void
2485
-
2486
2388
  /**
2487
2389
  * Set the text value of a text node. This is only useful for text nodes.
2488
2390
  * @param node node to set text for
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-defold/types",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "description": "TypeScript definitions for Defold",
5
5
  "repository": "github:ts-defold/types",
6
6
  "keywords": [