@defold-typescript/library-types 0.18.1

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 (101) hide show
  1. package/NOTICE +52 -0
  2. package/README.md +78 -0
  3. package/api-doc/boom.boom.json +26 -0
  4. package/api-doc/bridge.bridge.json +1653 -0
  5. package/api-doc/bzAnim.bzLibrary.json +156 -0
  6. package/api-doc/defcon.console.json +109 -0
  7. package/api-doc/defmath.defmath.json +1381 -0
  8. package/api-doc/defsave.defsave.json +175 -0
  9. package/api-doc/deftest.deftest.json +71 -0
  10. package/api-doc/dicebag.dicebag.json +323 -0
  11. package/api-doc/event.event.json +238 -0
  12. package/api-doc/gooey.gooey.json +963 -0
  13. package/api-doc/immutable.immutable.json +63 -0
  14. package/api-doc/in.accelerometer.json +281 -0
  15. package/api-doc/in.button.json +148 -0
  16. package/api-doc/in.cursor.json +203 -0
  17. package/api-doc/in.gesture.json +206 -0
  18. package/api-doc/in.keyboard.json +45 -0
  19. package/api-doc/in.mapper.json +141 -0
  20. package/api-doc/in.onscreen.json +265 -0
  21. package/api-doc/in.state.json +195 -0
  22. package/api-doc/in.textbox.json +213 -0
  23. package/api-doc/in.triggers.json +1260 -0
  24. package/api-doc/lang.lang.json +411 -0
  25. package/api-doc/log.log.json +50 -0
  26. package/api-doc/metrics.fps.json +88 -0
  27. package/api-doc/metrics.mem.json +80 -0
  28. package/api-doc/monarch.monarch.json +1065 -0
  29. package/api-doc/monarch.transitions.easings.json +206 -0
  30. package/api-doc/monarch.transitions.gui.json +445 -0
  31. package/api-doc/nakama.engine.defold.json +165 -0
  32. package/api-doc/nakama.nakama.json +6574 -0
  33. package/api-doc/nakama.util.log.json +25 -0
  34. package/api-doc/narrator.narrator.json +150 -0
  35. package/api-doc/orthographic.camera.json +1019 -0
  36. package/api-doc/persist.persist.json +142 -0
  37. package/api-doc/platypus.platypus.json +631 -0
  38. package/api-doc/proto.proto.json +355 -0
  39. package/api-doc/rendy.rendy.json +408 -0
  40. package/api-doc/richtext.color.json +219 -0
  41. package/api-doc/richtext.richtext.json +382 -0
  42. package/api-doc/richtext.tags.json +67 -0
  43. package/api-doc/saver.saver.json +553 -0
  44. package/api-doc/saver.storage.json +174 -0
  45. package/api-doc/squid.squid.json +660 -0
  46. package/api-doc/starly.starly.json +488 -0
  47. package/api-doc/tweener.tweener.json +419 -0
  48. package/api-doc/yagames.yagames.json +1465 -0
  49. package/api-doc/zzfx.api.json +85 -0
  50. package/generated/boom.boom.d.ts +1585 -0
  51. package/generated/bridge.bridge.d.ts +533 -0
  52. package/generated/bzAnim.bzLibrary.d.ts +93 -0
  53. package/generated/defcon.console.d.ts +24 -0
  54. package/generated/defmath.defmath.d.ts +194 -0
  55. package/generated/defsave.defsave.d.ts +31 -0
  56. package/generated/deftest.deftest.d.ts +47 -0
  57. package/generated/dicebag.dicebag.d.ts +90 -0
  58. package/generated/event.event.d.ts +54 -0
  59. package/generated/gooey.gooey.d.ts +261 -0
  60. package/generated/immutable.immutable.d.ts +13 -0
  61. package/generated/in.accelerometer.d.ts +37 -0
  62. package/generated/in.button.d.ts +20 -0
  63. package/generated/in.cursor.d.ts +33 -0
  64. package/generated/in.gesture.d.ts +64 -0
  65. package/generated/in.keyboard.d.ts +18 -0
  66. package/generated/in.mapper.d.ts +23 -0
  67. package/generated/in.onscreen.d.ts +58 -0
  68. package/generated/in.state.d.ts +34 -0
  69. package/generated/in.textbox.d.ts +26 -0
  70. package/generated/in.triggers.d.ts +180 -0
  71. package/generated/lang.lang.d.ts +33 -0
  72. package/generated/log.log.d.ts +40 -0
  73. package/generated/metrics.fps.d.ts +16 -0
  74. package/generated/metrics.mem.d.ts +16 -0
  75. package/generated/monarch.monarch.d.ts +412 -0
  76. package/generated/monarch.transitions.easings.d.ts +65 -0
  77. package/generated/monarch.transitions.gui.d.ts +197 -0
  78. package/generated/nakama.engine.defold.d.ts +24 -0
  79. package/generated/nakama.nakama.d.ts +594 -0
  80. package/generated/nakama.util.log.d.ts +10 -0
  81. package/generated/narrator.narrator.d.ts +66 -0
  82. package/generated/orthographic.camera.d.ts +308 -0
  83. package/generated/persist.persist.d.ts +34 -0
  84. package/generated/platypus.platypus.d.ts +76 -0
  85. package/generated/proto.proto.d.ts +36 -0
  86. package/generated/rendy.rendy.d.ts +184 -0
  87. package/generated/richtext.color.d.ts +33 -0
  88. package/generated/richtext.richtext.d.ts +126 -0
  89. package/generated/richtext.tags.d.ts +12 -0
  90. package/generated/saver.saver.d.ts +44 -0
  91. package/generated/saver.storage.d.ts +16 -0
  92. package/generated/squid.squid.d.ts +106 -0
  93. package/generated/starly.starly.d.ts +148 -0
  94. package/generated/tweener.tweener.d.ts +151 -0
  95. package/generated/yagames.yagames.d.ts +279 -0
  96. package/generated/zzfx.api.d.ts +20 -0
  97. package/library-classification.json +726 -0
  98. package/library-targets.json +291 -0
  99. package/package.json +180 -0
  100. package/scripts/extract-api-doc.ts +418 -0
  101. package/scripts/sync-library-types.ts +542 -0
@@ -0,0 +1,382 @@
1
+ {
2
+ "info": {
3
+ "namespace": "richtext.richtext",
4
+ "brief": "",
5
+ "description": ""
6
+ },
7
+ "elements": [
8
+ {
9
+ "type": "TYPEDEF",
10
+ "name": "FontSettings"
11
+ },
12
+ {
13
+ "type": "TYPEDEF",
14
+ "name": "FontsTable"
15
+ },
16
+ {
17
+ "type": "TYPEDEF",
18
+ "name": "LayersTable"
19
+ },
20
+ {
21
+ "type": "TYPEDEF",
22
+ "name": "Settings"
23
+ },
24
+ {
25
+ "type": "TYPEDEF",
26
+ "name": "Word"
27
+ },
28
+ {
29
+ "type": "TYPEDEF",
30
+ "name": "TextMetrics"
31
+ },
32
+ {
33
+ "type": "FUNCTION",
34
+ "name": "create",
35
+ "brief": "Creates rich text gui nodes from a text containing markup.",
36
+ "description": "Creates rich text gui nodes from a text containing markup.",
37
+ "parameters": [
38
+ {
39
+ "name": "text",
40
+ "doc": "",
41
+ "types": [
42
+ "string"
43
+ ],
44
+ "is_optional": "False"
45
+ },
46
+ {
47
+ "name": "font",
48
+ "doc": "",
49
+ "types": [
50
+ "string"
51
+ ],
52
+ "is_optional": "False"
53
+ },
54
+ {
55
+ "name": "settings",
56
+ "doc": "",
57
+ "types": [
58
+ "Settings"
59
+ ],
60
+ "is_optional": "True"
61
+ }
62
+ ],
63
+ "returnvalues": [
64
+ {
65
+ "name": "",
66
+ "doc": "",
67
+ "types": [
68
+ "LuaMultiReturn<[ Word[], TextMetrics ]>"
69
+ ]
70
+ }
71
+ ]
72
+ },
73
+ {
74
+ "type": "FUNCTION",
75
+ "name": "tagged",
76
+ "brief": "Get all words with a specific tag.",
77
+ "description": "Get all words with a specific tag.",
78
+ "parameters": [
79
+ {
80
+ "name": "words",
81
+ "doc": "",
82
+ "types": [
83
+ "Word[]"
84
+ ],
85
+ "is_optional": "False"
86
+ },
87
+ {
88
+ "name": "tag",
89
+ "doc": "",
90
+ "types": [
91
+ "string"
92
+ ],
93
+ "is_optional": "False"
94
+ }
95
+ ],
96
+ "returnvalues": [
97
+ {
98
+ "name": "",
99
+ "doc": "",
100
+ "types": [
101
+ "Word[]"
102
+ ]
103
+ }
104
+ ]
105
+ },
106
+ {
107
+ "type": "FUNCTION",
108
+ "name": "truncate",
109
+ "brief": "Truncate a text down to a specific length. This function has two modes of operation:",
110
+ "description": "Truncate a text down to a specific length. This function has two modes of operation:\n1) It can truncate the text on a per word basis or\n2) on a per character/image basis.\nThe function will disable nodes that shouldn't be visible and in the case of truncating\non a per character basis also update the text in nodes that should be partially visible.\nThe text metrics of a truncated word will be updated.",
111
+ "parameters": [
112
+ {
113
+ "name": "words",
114
+ "doc": "",
115
+ "types": [
116
+ "Word[]"
117
+ ],
118
+ "is_optional": "False"
119
+ },
120
+ {
121
+ "name": "length",
122
+ "doc": "",
123
+ "types": [
124
+ "number"
125
+ ],
126
+ "is_optional": "False"
127
+ },
128
+ {
129
+ "name": "options",
130
+ "doc": "",
131
+ "types": [
132
+ "{ words: boolean; }"
133
+ ],
134
+ "is_optional": "True",
135
+ "fields": [
136
+ {
137
+ "name": "words",
138
+ "doc": "",
139
+ "types": [
140
+ "boolean"
141
+ ],
142
+ "is_optional": "False"
143
+ }
144
+ ]
145
+ }
146
+ ],
147
+ "returnvalues": [
148
+ {
149
+ "name": "",
150
+ "doc": "",
151
+ "types": [
152
+ "Word"
153
+ ]
154
+ }
155
+ ]
156
+ },
157
+ {
158
+ "type": "FUNCTION",
159
+ "name": "length",
160
+ "brief": "Get the length of a text ignoring any tags except image and spine tags which are treated as having a length of 1.",
161
+ "description": "Get the length of a text ignoring any tags except image and spine tags which are treated as having a length of 1.",
162
+ "parameters": [
163
+ {
164
+ "name": "text",
165
+ "doc": "",
166
+ "types": [
167
+ "Word[] | string"
168
+ ],
169
+ "is_optional": "False"
170
+ }
171
+ ],
172
+ "returnvalues": [
173
+ {
174
+ "name": "",
175
+ "doc": "",
176
+ "types": [
177
+ "number"
178
+ ]
179
+ }
180
+ ]
181
+ },
182
+ {
183
+ "type": "FUNCTION",
184
+ "name": "characters",
185
+ "brief": "Split a word into it's characters, including the creation of the gui nodes. Each of the characters will be given the same attributes as the word, and they will be positioned correctly within the word.",
186
+ "description": "Split a word into it's characters, including the creation of the gui nodes. Each of the characters will be given the same attributes as the word, and they will be positioned correctly within the word.",
187
+ "parameters": [
188
+ {
189
+ "name": "word",
190
+ "doc": "",
191
+ "types": [
192
+ "Word"
193
+ ],
194
+ "is_optional": "False"
195
+ }
196
+ ],
197
+ "returnvalues": [
198
+ {
199
+ "name": "",
200
+ "doc": "",
201
+ "types": [
202
+ "Word[]"
203
+ ]
204
+ }
205
+ ]
206
+ },
207
+ {
208
+ "type": "FUNCTION",
209
+ "name": "on_click",
210
+ "brief": "Call this function when a click/touch has been detected and your text contains words with an a tag. These words act as \"hyperlinks\" and will generate a message when clicked.",
211
+ "description": "Call this function when a click/touch has been detected and your text contains words with an a tag. These words act as \"hyperlinks\" and will generate a message when clicked.",
212
+ "parameters": [
213
+ {
214
+ "name": "words",
215
+ "doc": "",
216
+ "types": [
217
+ "Word[]"
218
+ ],
219
+ "is_optional": "False"
220
+ },
221
+ {
222
+ "name": "action",
223
+ "doc": "",
224
+ "types": [
225
+ "{ node_id: Hash; text: string; screen_x: number; screen_y: number; tags: string[]; }"
226
+ ],
227
+ "is_optional": "False",
228
+ "fields": [
229
+ {
230
+ "name": "node_id",
231
+ "doc": "",
232
+ "types": [
233
+ "Hash"
234
+ ],
235
+ "is_optional": "False"
236
+ },
237
+ {
238
+ "name": "text",
239
+ "doc": "",
240
+ "types": [
241
+ "string"
242
+ ],
243
+ "is_optional": "False"
244
+ },
245
+ {
246
+ "name": "screen_x",
247
+ "doc": "",
248
+ "types": [
249
+ "number"
250
+ ],
251
+ "is_optional": "False"
252
+ },
253
+ {
254
+ "name": "screen_y",
255
+ "doc": "",
256
+ "types": [
257
+ "number"
258
+ ],
259
+ "is_optional": "False"
260
+ },
261
+ {
262
+ "name": "tags",
263
+ "doc": "",
264
+ "types": [
265
+ "string[]"
266
+ ],
267
+ "is_optional": "False"
268
+ }
269
+ ]
270
+ }
271
+ ],
272
+ "returnvalues": [
273
+ {
274
+ "name": "",
275
+ "doc": "",
276
+ "types": [
277
+ "boolean"
278
+ ]
279
+ }
280
+ ]
281
+ },
282
+ {
283
+ "type": "FUNCTION",
284
+ "name": "remove",
285
+ "brief": "Removes all gui text nodes created by richtext.create().",
286
+ "description": "Removes all gui text nodes created by richtext.create().",
287
+ "parameters": [
288
+ {
289
+ "name": "words",
290
+ "doc": "",
291
+ "types": [
292
+ "Word[]"
293
+ ],
294
+ "is_optional": "False"
295
+ }
296
+ ],
297
+ "returnvalues": []
298
+ },
299
+ {
300
+ "type": "FUNCTION",
301
+ "name": "plaintext",
302
+ "brief": "Returns the words created by richtext.create() as a plain text string without any formatting or tags. Linebreaks are included in the returned string.",
303
+ "description": "Returns the words created by richtext.create() as a plain text string without any formatting or tags. Linebreaks are included in the returned string.",
304
+ "parameters": [
305
+ {
306
+ "name": "words",
307
+ "doc": "",
308
+ "types": [
309
+ "Word[]"
310
+ ],
311
+ "is_optional": "False"
312
+ }
313
+ ],
314
+ "returnvalues": [
315
+ {
316
+ "name": "",
317
+ "doc": "",
318
+ "types": [
319
+ "string"
320
+ ]
321
+ }
322
+ ]
323
+ },
324
+ {
325
+ "type": "TYPEDEF",
326
+ "name": "Alignment"
327
+ },
328
+ {
329
+ "type": "TYPEDEF",
330
+ "name": "VAlignment"
331
+ },
332
+ {
333
+ "type": "VARIABLE",
334
+ "name": "ALIGN_LEFT",
335
+ "types": [
336
+ "Alignment"
337
+ ]
338
+ },
339
+ {
340
+ "type": "VARIABLE",
341
+ "name": "ALIGN_CENTER",
342
+ "types": [
343
+ "Alignment"
344
+ ]
345
+ },
346
+ {
347
+ "type": "VARIABLE",
348
+ "name": "ALIGN_RIGHT",
349
+ "types": [
350
+ "Alignment"
351
+ ]
352
+ },
353
+ {
354
+ "type": "VARIABLE",
355
+ "name": "ALIGN_JUSTIFY",
356
+ "types": [
357
+ "Alignment"
358
+ ]
359
+ },
360
+ {
361
+ "type": "VARIABLE",
362
+ "name": "VALIGN_TOP",
363
+ "types": [
364
+ "VAlignment"
365
+ ]
366
+ },
367
+ {
368
+ "type": "VARIABLE",
369
+ "name": "VALIGN_MIDDLE",
370
+ "types": [
371
+ "VAlignment"
372
+ ]
373
+ },
374
+ {
375
+ "type": "VARIABLE",
376
+ "name": "VALIGN_BOTTOM",
377
+ "types": [
378
+ "VAlignment"
379
+ ]
380
+ }
381
+ ]
382
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "info": {
3
+ "namespace": "richtext.tags",
4
+ "brief": "",
5
+ "description": ""
6
+ },
7
+ "elements": [
8
+ {
9
+ "type": "FUNCTION",
10
+ "name": "register",
11
+ "brief": "",
12
+ "description": "",
13
+ "parameters": [
14
+ {
15
+ "name": "tag",
16
+ "doc": "",
17
+ "types": [
18
+ "string"
19
+ ],
20
+ "is_optional": "False"
21
+ },
22
+ {
23
+ "name": "fn",
24
+ "doc": "",
25
+ "types": [
26
+ "(params?: string, settings?: {}) => void"
27
+ ],
28
+ "is_optional": "False"
29
+ }
30
+ ],
31
+ "returnvalues": []
32
+ },
33
+ {
34
+ "type": "FUNCTION",
35
+ "name": "apply",
36
+ "brief": "",
37
+ "description": "",
38
+ "parameters": [
39
+ {
40
+ "name": "tag",
41
+ "doc": "",
42
+ "types": [
43
+ "string"
44
+ ],
45
+ "is_optional": "False"
46
+ },
47
+ {
48
+ "name": "params",
49
+ "doc": "",
50
+ "types": [
51
+ "string"
52
+ ],
53
+ "is_optional": "True"
54
+ },
55
+ {
56
+ "name": "settings",
57
+ "doc": "",
58
+ "types": [
59
+ "{}"
60
+ ],
61
+ "is_optional": "True"
62
+ }
63
+ ],
64
+ "returnvalues": []
65
+ }
66
+ ]
67
+ }