@defold-typescript/types 0.49.0 → 0.50.0
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/api-availability.json +696 -624
- package/api-signatures.json +6799 -160
- package/api-targets.json +393 -2
- package/examples/translations.json +12 -0
- package/generated/b2d.d.ts +15 -0
- package/generated/bullet3d.d.ts +16 -0
- package/generated/font.d.ts +7 -3
- package/generated/graphics.d.ts +7 -0
- package/generated/gui.d.ts +5 -4
- package/generated/label.d.ts +3 -3
- package/generated/render.d.ts +16 -1
- package/generated/versions/defold-1.13.2/b2d.d.ts +709 -0
- package/generated/versions/defold-1.13.2/b2d_body.d.ts +593 -0
- package/generated/versions/defold-1.13.2/b2d_chain.d.ts +105 -0
- package/generated/versions/defold-1.13.2/b2d_fixture.d.ts +175 -0
- package/generated/versions/defold-1.13.2/b2d_joint.d.ts +1301 -0
- package/generated/versions/defold-1.13.2/b2d_shape.d.ts +423 -0
- package/generated/versions/defold-1.13.2/b2d_world.d.ts +308 -0
- package/generated/versions/defold-1.13.2/buffer.d.ts +192 -0
- package/generated/versions/defold-1.13.2/bullet3d.d.ts +91 -0
- package/generated/versions/defold-1.13.2/bullet3d_collision_object.d.ts +433 -0
- package/generated/versions/defold-1.13.2/bullet3d_constraint.d.ts +818 -0
- package/generated/versions/defold-1.13.2/bullet3d_rigid_body.d.ts +429 -0
- package/generated/versions/defold-1.13.2/bullet3d_shape.d.ts +123 -0
- package/generated/versions/defold-1.13.2/bullet3d_world.d.ts +492 -0
- package/generated/versions/defold-1.13.2/camera.d.ts +300 -0
- package/generated/versions/defold-1.13.2/collectionfactory.d.ts +148 -0
- package/generated/versions/defold-1.13.2/collectionproxy.d.ts +109 -0
- package/generated/versions/defold-1.13.2/compute.d.ts +107 -0
- package/generated/versions/defold-1.13.2/crash.d.ts +157 -0
- package/generated/versions/defold-1.13.2/editor-vm/http.d.ts +139 -0
- package/generated/versions/defold-1.13.2/editor-vm/image.d.ts +48 -0
- package/generated/versions/defold-1.13.2/editor-vm/json.d.ts +21 -0
- package/generated/versions/defold-1.13.2/editor-vm/localization.d.ts +42 -0
- package/generated/versions/defold-1.13.2/editor-vm/tilemap_tiles.d.ts +126 -0
- package/generated/versions/defold-1.13.2/editor-vm/zip.d.ts +38 -0
- package/generated/versions/defold-1.13.2/editor-vm/zlib.d.ts +24 -0
- package/generated/versions/defold-1.13.2/editor.d.ts +2177 -0
- package/generated/versions/defold-1.13.2/factory.d.ts +121 -0
- package/generated/versions/defold-1.13.2/font.d.ts +123 -0
- package/generated/versions/defold-1.13.2/go.d.ts +1166 -0
- package/generated/versions/defold-1.13.2/graphics.d.ts +613 -0
- package/generated/versions/defold-1.13.2/gui.d.ts +2212 -0
- package/generated/versions/defold-1.13.2/html5.d.ts +55 -0
- package/generated/versions/defold-1.13.2/http.d.ts +83 -0
- package/generated/versions/defold-1.13.2/image.d.ts +181 -0
- package/generated/versions/defold-1.13.2/index.d.ts +63 -0
- package/generated/versions/defold-1.13.2/json.d.ts +94 -0
- package/generated/versions/defold-1.13.2/kinds/editor-script.d.ts +14 -0
- package/generated/versions/defold-1.13.2/label.d.ts +164 -0
- package/generated/versions/defold-1.13.2/liveupdate.d.ts +143 -0
- package/generated/versions/defold-1.13.2/material.d.ts +490 -0
- package/generated/versions/defold-1.13.2/model.d.ts +287 -0
- package/generated/versions/defold-1.13.2/msg.d.ts +10 -0
- package/generated/versions/defold-1.13.2/particlefx.d.ts +155 -0
- package/generated/versions/defold-1.13.2/physics.d.ts +789 -0
- package/generated/versions/defold-1.13.2/profiler.d.ts +228 -0
- package/generated/versions/defold-1.13.2/render.d.ts +1153 -0
- package/generated/versions/defold-1.13.2/resource.d.ts +1628 -0
- package/generated/versions/defold-1.13.2/socket.d.ts +797 -0
- package/generated/versions/defold-1.13.2/sound.d.ts +323 -0
- package/generated/versions/defold-1.13.2/sprite.d.ts +179 -0
- package/generated/versions/defold-1.13.2/sys.d.ts +754 -0
- package/generated/versions/defold-1.13.2/tilemap.d.ts +206 -0
- package/generated/versions/defold-1.13.2/timer.d.ts +136 -0
- package/generated/versions/defold-1.13.2/types.d.ts +61 -0
- package/generated/versions/defold-1.13.2/vmath.d.ts +775 -0
- package/generated/versions/defold-1.13.2/window.d.ts +196 -0
- package/generated/versions/defold-1.13.2/zlib.d.ts +41 -0
- package/identity-vocabulary.json +1 -0
- package/package.json +2 -2
- package/scripts/import-defold-release.ts +3 -31
- package/scripts/materialize-version.ts +13 -7
- package/scripts/regen.ts +63 -29
- package/scripts/sync-api-docs.ts +31 -2
- package/src/emit-dts.ts +25 -3
package/api-targets.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"targets": [
|
|
3
3
|
{
|
|
4
|
-
"id": "defold-1.
|
|
4
|
+
"id": "defold-1.14.0",
|
|
5
5
|
"default": true,
|
|
6
|
-
"fixturesDir": "fixtures/defold-1.
|
|
6
|
+
"fixturesDir": "fixtures/defold-1.14.0",
|
|
7
7
|
"generatedDir": "generated",
|
|
8
8
|
"coreTypesImport": "../src/core-types",
|
|
9
9
|
"source": null,
|
|
@@ -391,6 +391,397 @@
|
|
|
391
391
|
}
|
|
392
392
|
]
|
|
393
393
|
},
|
|
394
|
+
{
|
|
395
|
+
"id": "defold-1.13.2",
|
|
396
|
+
"default": false,
|
|
397
|
+
"fixturesDir": "fixtures/defold-1.13.2",
|
|
398
|
+
"generatedDir": "generated/versions/defold-1.13.2",
|
|
399
|
+
"coreTypesImport": "../../../src/core-types",
|
|
400
|
+
"source": null,
|
|
401
|
+
"modules": [
|
|
402
|
+
{
|
|
403
|
+
"namespace": "b2d",
|
|
404
|
+
"fixture": "b2d_doc.json",
|
|
405
|
+
"outFile": "b2d.d.ts"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"namespace": "b2d.body",
|
|
409
|
+
"fixture": "b2d_body_doc.json",
|
|
410
|
+
"outFile": "b2d_body.d.ts",
|
|
411
|
+
"skipFunctions": ["get_user_data", "set_user_data"],
|
|
412
|
+
"skipOverloads": [
|
|
413
|
+
{
|
|
414
|
+
"name": "create_fixture",
|
|
415
|
+
"param": "shape",
|
|
416
|
+
"type": "b2Shape"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"name": "set_mass_data",
|
|
420
|
+
"param": "data",
|
|
421
|
+
"type": "b2MassData"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"name": "get_transform",
|
|
425
|
+
"returns": "b2Transform"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"name": "get_mass_data",
|
|
429
|
+
"returns": "b2MassData"
|
|
430
|
+
}
|
|
431
|
+
]
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"namespace": "b2d.chain",
|
|
435
|
+
"fixture": "b2d_chain_doc.json",
|
|
436
|
+
"outFile": "b2d_chain.d.ts"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"namespace": "b2d.fixture",
|
|
440
|
+
"fixture": "b2d_fixture_doc.json",
|
|
441
|
+
"outFile": "b2d_fixture.d.ts"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"namespace": "b2d.joint",
|
|
445
|
+
"fixture": "b2d_joint_doc.json",
|
|
446
|
+
"outFile": "b2d_joint.d.ts"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"namespace": "b2d.shape",
|
|
450
|
+
"fixture": "b2d_shape_doc.json",
|
|
451
|
+
"outFile": "b2d_shape.d.ts"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"namespace": "b2d.world",
|
|
455
|
+
"fixture": "b2d_world_doc.json",
|
|
456
|
+
"outFile": "b2d_world.d.ts"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"namespace": "buffer",
|
|
460
|
+
"fixture": "buffer_doc.json",
|
|
461
|
+
"outFile": "buffer.d.ts"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"namespace": "bullet3d",
|
|
465
|
+
"fixture": "bullet3d_doc.json",
|
|
466
|
+
"outFile": "bullet3d.d.ts"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"namespace": "bullet3d.collision_object",
|
|
470
|
+
"fixture": "bullet3d_collision_object_doc.json",
|
|
471
|
+
"outFile": "bullet3d_collision_object.d.ts"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"namespace": "bullet3d.constraint",
|
|
475
|
+
"fixture": "bullet3d_constraint_doc.json",
|
|
476
|
+
"outFile": "bullet3d_constraint.d.ts"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"namespace": "bullet3d.rigid_body",
|
|
480
|
+
"fixture": "bullet3d_rigid_body_doc.json",
|
|
481
|
+
"outFile": "bullet3d_rigid_body.d.ts"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"namespace": "bullet3d.shape",
|
|
485
|
+
"fixture": "bullet3d_shape_doc.json",
|
|
486
|
+
"outFile": "bullet3d_shape.d.ts"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"namespace": "bullet3d.world",
|
|
490
|
+
"fixture": "bullet3d_world_doc.json",
|
|
491
|
+
"outFile": "bullet3d_world.d.ts"
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"namespace": "camera",
|
|
495
|
+
"fixture": "camera_doc.json",
|
|
496
|
+
"outFile": "camera.d.ts"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"namespace": "collectionfactory",
|
|
500
|
+
"fixture": "collectionfactory_doc.json",
|
|
501
|
+
"outFile": "collectionfactory.d.ts"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"namespace": "collectionproxy",
|
|
505
|
+
"fixture": "collectionproxy_doc.json",
|
|
506
|
+
"outFile": "collectionproxy.d.ts"
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"namespace": "compute",
|
|
510
|
+
"fixture": "compute_doc.json",
|
|
511
|
+
"outFile": "compute.d.ts"
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"namespace": "crash",
|
|
515
|
+
"fixture": "crash_doc.json",
|
|
516
|
+
"outFile": "crash.d.ts"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"namespace": "factory",
|
|
520
|
+
"fixture": "factory_doc.json",
|
|
521
|
+
"outFile": "factory.d.ts"
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"namespace": "font",
|
|
525
|
+
"fixture": "font_doc.json",
|
|
526
|
+
"outFile": "font.d.ts"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"namespace": "go",
|
|
530
|
+
"fixture": "go_doc.json",
|
|
531
|
+
"outFile": "go.d.ts",
|
|
532
|
+
"skipFunctions": ["get", "set", "property"]
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"namespace": "graphics",
|
|
536
|
+
"fixture": "graphics_doc.json",
|
|
537
|
+
"outFile": "graphics.d.ts"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"namespace": "gui",
|
|
541
|
+
"fixture": "gui_doc.json",
|
|
542
|
+
"outFile": "gui.d.ts"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"namespace": "html5",
|
|
546
|
+
"fixture": "html5_doc.json",
|
|
547
|
+
"outFile": "html5.d.ts"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"namespace": "http",
|
|
551
|
+
"fixture": "http_doc.json",
|
|
552
|
+
"outFile": "http.d.ts",
|
|
553
|
+
"skipFunctions": ["response"]
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"namespace": "image",
|
|
557
|
+
"fixture": "image_doc.json",
|
|
558
|
+
"outFile": "image.d.ts"
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"namespace": "json",
|
|
562
|
+
"fixture": "json_doc.json",
|
|
563
|
+
"outFile": "json.d.ts"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"namespace": "label",
|
|
567
|
+
"fixture": "label_doc.json",
|
|
568
|
+
"outFile": "label.d.ts"
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"namespace": "liveupdate",
|
|
572
|
+
"fixture": "liveupdate_doc.json",
|
|
573
|
+
"outFile": "liveupdate.d.ts"
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"namespace": "material",
|
|
577
|
+
"fixture": "material_doc.json",
|
|
578
|
+
"outFile": "material.d.ts"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"namespace": "model",
|
|
582
|
+
"fixture": "model_doc.json",
|
|
583
|
+
"outFile": "model.d.ts"
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"namespace": "msg",
|
|
587
|
+
"fixture": "msg_doc.json",
|
|
588
|
+
"outFile": "msg.d.ts",
|
|
589
|
+
"skipFunctions": ["post", "url"]
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"namespace": "particlefx",
|
|
593
|
+
"fixture": "particlefx_doc.json",
|
|
594
|
+
"outFile": "particlefx.d.ts"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"namespace": "physics",
|
|
598
|
+
"fixture": "physics_doc.json",
|
|
599
|
+
"outFile": "physics.d.ts"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"namespace": "profiler",
|
|
603
|
+
"fixture": "profiler_doc.json",
|
|
604
|
+
"outFile": "profiler.d.ts"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"namespace": "render",
|
|
608
|
+
"fixture": "render_doc.json",
|
|
609
|
+
"outFile": "render.d.ts",
|
|
610
|
+
"skipFunctions": ["render_target"]
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"namespace": "resource",
|
|
614
|
+
"fixture": "resource_doc.json",
|
|
615
|
+
"outFile": "resource.d.ts"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"namespace": "socket",
|
|
619
|
+
"fixture": "socket_doc.json",
|
|
620
|
+
"outFile": "socket.d.ts"
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"namespace": "sound",
|
|
624
|
+
"fixture": "sound_doc.json",
|
|
625
|
+
"outFile": "sound.d.ts"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"namespace": "sprite",
|
|
629
|
+
"fixture": "sprite_doc.json",
|
|
630
|
+
"outFile": "sprite.d.ts"
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"namespace": "sys",
|
|
634
|
+
"fixture": "sys_doc.json",
|
|
635
|
+
"outFile": "sys.d.ts",
|
|
636
|
+
"skipFunctions": ["get_config_string", "set_engine_throttle"]
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"namespace": "tilemap",
|
|
640
|
+
"fixture": "tilemap_doc.json",
|
|
641
|
+
"outFile": "tilemap.d.ts"
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"namespace": "timer",
|
|
645
|
+
"fixture": "timer_doc.json",
|
|
646
|
+
"outFile": "timer.d.ts"
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"namespace": "types",
|
|
650
|
+
"fixture": "types_doc.json",
|
|
651
|
+
"outFile": "types.d.ts"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"namespace": "vmath",
|
|
655
|
+
"fixture": "vmath_doc.json",
|
|
656
|
+
"outFile": "vmath.d.ts",
|
|
657
|
+
"skipFunctions": [
|
|
658
|
+
"clamp",
|
|
659
|
+
"euler_to_quat",
|
|
660
|
+
"lerp",
|
|
661
|
+
"slerp",
|
|
662
|
+
"mul_per_elem",
|
|
663
|
+
"normalize",
|
|
664
|
+
"vector"
|
|
665
|
+
]
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"namespace": "window",
|
|
669
|
+
"fixture": "window_doc.json",
|
|
670
|
+
"outFile": "window.d.ts"
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"namespace": "zlib",
|
|
674
|
+
"fixture": "zlib_doc.json",
|
|
675
|
+
"outFile": "zlib.d.ts"
|
|
676
|
+
}
|
|
677
|
+
],
|
|
678
|
+
"editorModules": [
|
|
679
|
+
{
|
|
680
|
+
"namespace": "editor",
|
|
681
|
+
"fixture": "editor_doc.json",
|
|
682
|
+
"outFile": "editor.d.ts",
|
|
683
|
+
"mapType": "editor",
|
|
684
|
+
"skipFunctions": [
|
|
685
|
+
"command",
|
|
686
|
+
"http.",
|
|
687
|
+
"image.",
|
|
688
|
+
"json.",
|
|
689
|
+
"localization.",
|
|
690
|
+
"pprint",
|
|
691
|
+
"tilemap.",
|
|
692
|
+
"zip.",
|
|
693
|
+
"zlib."
|
|
694
|
+
]
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"namespace": "http",
|
|
698
|
+
"fixture": "editor_http_doc.json",
|
|
699
|
+
"outFile": "editor-vm/http.d.ts",
|
|
700
|
+
"mapType": "editor",
|
|
701
|
+
"skipFunctions": ["server.local_url", "server.port", "server.route", "server.url"]
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"namespace": "image",
|
|
705
|
+
"fixture": "editor_image_doc.json",
|
|
706
|
+
"outFile": "editor-vm/image.d.ts",
|
|
707
|
+
"mapType": "editor"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"namespace": "json",
|
|
711
|
+
"fixture": "editor_json_doc.json",
|
|
712
|
+
"outFile": "editor-vm/json.d.ts",
|
|
713
|
+
"mapType": "editor",
|
|
714
|
+
"skipFunctions": ["decode", "encode"]
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"namespace": "localization",
|
|
718
|
+
"fixture": "editor_localization_doc.json",
|
|
719
|
+
"outFile": "editor-vm/localization.d.ts",
|
|
720
|
+
"mapType": "editor"
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
"namespace": "zip",
|
|
724
|
+
"fixture": "editor_zip_doc.json",
|
|
725
|
+
"outFile": "editor-vm/zip.d.ts",
|
|
726
|
+
"mapType": "editor",
|
|
727
|
+
"skipFunctions": ["METHOD.", "ON_CONFLICT.", "pack", "unpack"]
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"namespace": "zlib",
|
|
731
|
+
"fixture": "editor_zlib_doc.json",
|
|
732
|
+
"outFile": "editor-vm/zlib.d.ts",
|
|
733
|
+
"mapType": "editor"
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"namespace": "tilemap.tiles",
|
|
737
|
+
"fixture": "editor_tilemap_tiles_doc.json",
|
|
738
|
+
"outFile": "editor-vm/tilemap_tiles.d.ts",
|
|
739
|
+
"mapType": "editor"
|
|
740
|
+
}
|
|
741
|
+
],
|
|
742
|
+
"luaStdlib": [
|
|
743
|
+
{
|
|
744
|
+
"namespace": "base",
|
|
745
|
+
"fixture": "base_doc.json"
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"namespace": "bit",
|
|
749
|
+
"fixture": "bit_doc.json"
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"namespace": "math",
|
|
753
|
+
"fixture": "math_doc.json"
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
"namespace": "os",
|
|
757
|
+
"fixture": "os_doc.json"
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
"namespace": "string",
|
|
761
|
+
"fixture": "string_doc.json"
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"namespace": "table",
|
|
765
|
+
"fixture": "table_doc.json"
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"namespace": "coroutine",
|
|
769
|
+
"fixture": "coroutine_doc.json"
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"namespace": "debug",
|
|
773
|
+
"fixture": "debug_doc.json"
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
"namespace": "io",
|
|
777
|
+
"fixture": "io_doc.json"
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
"namespace": "package",
|
|
781
|
+
"fixture": "package_doc.json"
|
|
782
|
+
}
|
|
783
|
+
]
|
|
784
|
+
},
|
|
394
785
|
{
|
|
395
786
|
"id": "defold-1.13.1",
|
|
396
787
|
"default": false,
|
|
@@ -17,6 +17,12 @@
|
|
|
17
17
|
"ts": "const body = b2d.get_body(\"#collisionobject\");\nif (body !== undefined) {\n // Move a circle shape relative to the body origin.\n const circle = b2d.fixture.get_shape(body, 1);\n const radius = \"radius\" in circle ? circle.radius : undefined;\n b2d.fixture.set_shape(body, 1, { type: b2d.shape.SHAPE_TYPE_CIRCLE, radius: radius ?? 16, center: vmath.vector3(24, 0, 0) }, true);\n\n // Replace an edge shape's local endpoints.\n b2d.fixture.set_shape(body, 2, {\n type: b2d.shape.SHAPE_TYPE_EDGE,\n v1: vmath.vector3(-32, 0, 0),\n v2: vmath.vector3(32, 0, 0),\n });\n\n // Update a box shape using the polygon box convenience format.\n // The existing polygon must already have four vertices.\n b2d.fixture.set_shape(\n body,\n 3,\n {\n type: b2d.shape.SHAPE_TYPE_BOX,\n hx: 16,\n hy: 8,\n center: vmath.vector3(0, 20, 0),\n angle: math.rad(30),\n },\n true,\n );\n}"
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
|
+
"b2d.get_gameobject_id": [
|
|
21
|
+
{
|
|
22
|
+
"sourceHash": "eb6ca97a8d3c27db",
|
|
23
|
+
"ts": "const body = b2d.get_body(\"#collisionobject\");\nif (body !== undefined) {\n const id = b2d.get_gameobject_id(body);\n}"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
20
26
|
"b2d.shape.set_shape": [
|
|
21
27
|
{
|
|
22
28
|
"sourceHash": "f31970e9ebb8d446",
|
|
@@ -89,6 +95,12 @@
|
|
|
89
95
|
"ts": "// Join two bodies at matching local pivots and explicitly destroy the\n// constraint when the script is finalized:\nexport default defineScript({\n init() {\n const body_a = bullet3d.get_rigid_body(\"/body_a#collisionobject\");\n const body_b = bullet3d.get_rigid_body(\"/body_b#collisionobject\");\n let constraint: bullet3d.constraint.btTypedConstraint | undefined;\n if (body_a !== undefined) {\n constraint = bullet3d.constraint.create_point_to_point(body_a, body_b, {\n pivot_a: vmath.vector3(0.5, 0, 0),\n pivot_b: vmath.vector3(-0.5, 0, 0),\n });\n }\n return { constraint };\n },\n\n final(self) {\n if (self.constraint !== undefined && bullet3d.constraint.is_valid(self.constraint)) {\n bullet3d.constraint.destroy(self.constraint);\n }\n },\n});"
|
|
90
96
|
}
|
|
91
97
|
],
|
|
98
|
+
"bullet3d.get_gameobject_id": [
|
|
99
|
+
{
|
|
100
|
+
"sourceHash": "48ba7c199938dd13",
|
|
101
|
+
"ts": "const object = bullet3d.get_collision_object(\"#collisionobject\");\nif (object !== undefined) {\n const id = bullet3d.get_gameobject_id(object);\n}"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
92
104
|
"bullet3d.get_rigid_body": [
|
|
93
105
|
{
|
|
94
106
|
"sourceHash": "e09c75e81d50dd6c",
|
package/generated/b2d.d.ts
CHANGED
|
@@ -691,6 +691,21 @@ declare global {
|
|
|
691
691
|
* @returns the body if successful. Otherwise `nil`.
|
|
692
692
|
*/
|
|
693
693
|
function get_body(url: string | Hash | Url): Opaque<"b2Body"> | undefined;
|
|
694
|
+
/**
|
|
695
|
+
* Returns the id of the game object that owns the body's collision-object component.
|
|
696
|
+
* Raises a Lua error if the body handle is invalid or its game object has been deleted.
|
|
697
|
+
*
|
|
698
|
+
* @param body - the Box2D body
|
|
699
|
+
* @returns the game object id, or `nil` if the body has no associated game object
|
|
700
|
+
* @example
|
|
701
|
+
* ```ts
|
|
702
|
+
* const body = b2d.get_body("#collisionobject");
|
|
703
|
+
* if (body !== undefined) {
|
|
704
|
+
* const id = b2d.get_gameobject_id(body);
|
|
705
|
+
* }
|
|
706
|
+
* ```
|
|
707
|
+
*/
|
|
708
|
+
function get_gameobject_id(body: Opaque<"b2Body">): Hash | undefined;
|
|
694
709
|
/**
|
|
695
710
|
* Get the Box2D version information for the active backend.
|
|
696
711
|
*
|
package/generated/bullet3d.d.ts
CHANGED
|
@@ -53,6 +53,22 @@ declare global {
|
|
|
53
53
|
* @returns the collision object, or `nil`
|
|
54
54
|
*/
|
|
55
55
|
function get_collision_object(url: string | Hash | Url): Opaque<"btCollisionObject" | "btRigidBody"> | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Returns the id of the game object that owns the collision-object component.
|
|
58
|
+
* Accepts both rigid bodies and ghost trigger objects.
|
|
59
|
+
* Raises a Lua error if the handle is invalid or its game object has been deleted.
|
|
60
|
+
*
|
|
61
|
+
* @param object - the Bullet collision object
|
|
62
|
+
* @returns the game object id, or `nil` if the collision object has no associated game object
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* const object = bullet3d.get_collision_object("#collisionobject");
|
|
66
|
+
* if (object !== undefined) {
|
|
67
|
+
* const id = bullet3d.get_gameobject_id(object);
|
|
68
|
+
* }
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
function get_gameobject_id(object: Opaque<"btCollisionObject" | "btRigidBody">): Hash | undefined;
|
|
56
72
|
/**
|
|
57
73
|
* Trigger components are ghost objects, so this function returns `nil` for them.
|
|
58
74
|
* This function raises an error unless the collection uses 3D physics.
|
package/generated/font.d.ts
CHANGED
|
@@ -95,9 +95,13 @@ declare global {
|
|
|
95
95
|
* A `link` tag uses `link` by default. Callers may select another named style,
|
|
96
96
|
* such as `link:hover` or `link:active`, in response to input.
|
|
97
97
|
* Font collections initially define these named styles. Each default contains
|
|
98
|
-
* a normalized RGBA face
|
|
99
|
-
*
|
|
100
|
-
*
|
|
98
|
+
* a normalized RGBA face color and no effects. Style RGB overrides the base
|
|
99
|
+
* text color, while alpha uses the lower of the style and base text alpha.
|
|
100
|
+
* Gradients override RGB and use the lower alpha in the same way. Inline colors
|
|
101
|
+
* and gradients take precedence over object styles, which take precedence over
|
|
102
|
+
* the named base style. Nested color or gradient tags override enclosing RGB
|
|
103
|
+
* in inline markup and named style definitions. The default `link` style also
|
|
104
|
+
* uses a solid underline, which remains when hover or active colors are applied:
|
|
101
105
|
*
|
|
102
106
|
* - `link`: `(0.10, 0.45, 0.90, 1.0)`, solid underline
|
|
103
107
|
* - `link:hover`: `(0.30, 0.65, 1.00, 1.0)`
|
package/generated/graphics.d.ts
CHANGED
|
@@ -119,6 +119,7 @@ declare global {
|
|
|
119
119
|
type COMPRESSION_TYPE = typeof graphics.COMPRESSION_TYPE_BASIS_ETC1S | typeof graphics.COMPRESSION_TYPE_BASIS_UASTC | typeof graphics.COMPRESSION_TYPE_DEFAULT | typeof graphics.COMPRESSION_TYPE_WEBP | typeof graphics.COMPRESSION_TYPE_WEBP_LOSSY;
|
|
120
120
|
type CONTEXT_FEATURE = typeof graphics.CONTEXT_FEATURE_3D_TEXTURES | typeof graphics.CONTEXT_FEATURE_ASTC_ARRAY_TEXTURES | typeof graphics.CONTEXT_FEATURE_BC_ARRAY_TEXTURES | typeof graphics.CONTEXT_FEATURE_BLEND_EQUATION_MIN_MAX | typeof graphics.CONTEXT_FEATURE_COMPUTE_SHADER | typeof graphics.CONTEXT_FEATURE_INSTANCING | typeof graphics.CONTEXT_FEATURE_MULTI_TARGET_RENDERING | typeof graphics.CONTEXT_FEATURE_STORAGE_BUFFER | typeof graphics.CONTEXT_FEATURE_TEXTURE_ARRAY | typeof graphics.CONTEXT_FEATURE_VSYNC;
|
|
121
121
|
type COORDINATE_SPACE = typeof graphics.COORDINATE_SPACE_DEFAULT | typeof graphics.COORDINATE_SPACE_LOCAL | typeof graphics.COORDINATE_SPACE_WORLD;
|
|
122
|
+
type CUBEMAP_FACE = typeof graphics.CUBEMAP_FACE_NEGATIVE_X | typeof graphics.CUBEMAP_FACE_NEGATIVE_Y | typeof graphics.CUBEMAP_FACE_NEGATIVE_Z | typeof graphics.CUBEMAP_FACE_POSITIVE_X | typeof graphics.CUBEMAP_FACE_POSITIVE_Y | typeof graphics.CUBEMAP_FACE_POSITIVE_Z;
|
|
122
123
|
type DATA_TYPE = typeof graphics.DATA_TYPE_BYTE | typeof graphics.DATA_TYPE_FLOAT | typeof graphics.DATA_TYPE_INT | typeof graphics.DATA_TYPE_SHORT | typeof graphics.DATA_TYPE_UNSIGNED_BYTE | typeof graphics.DATA_TYPE_UNSIGNED_INT | typeof graphics.DATA_TYPE_UNSIGNED_SHORT;
|
|
123
124
|
type FACE_TYPE = typeof graphics.FACE_TYPE_BACK | typeof graphics.FACE_TYPE_FRONT | typeof graphics.FACE_TYPE_FRONT_AND_BACK;
|
|
124
125
|
type SEMANTIC_TYPE = typeof graphics.SEMANTIC_TYPE_BONE_INDICES | typeof graphics.SEMANTIC_TYPE_BONE_WEIGHTS | typeof graphics.SEMANTIC_TYPE_COLOR | typeof graphics.SEMANTIC_TYPE_MORPH_TARGET_WEIGHTS | typeof graphics.SEMANTIC_TYPE_NONE | typeof graphics.SEMANTIC_TYPE_NORMAL | typeof graphics.SEMANTIC_TYPE_NORMAL_MATRIX | typeof graphics.SEMANTIC_TYPE_PAGE_INDEX | typeof graphics.SEMANTIC_TYPE_POSITION | typeof graphics.SEMANTIC_TYPE_TANGENT | typeof graphics.SEMANTIC_TYPE_TEXCOORD | typeof graphics.SEMANTIC_TYPE_TEXTURE_TRANSFORM_2D | typeof graphics.SEMANTIC_TYPE_WORLD_MATRIX;
|
|
@@ -307,6 +308,12 @@ declare global {
|
|
|
307
308
|
* World vertex attribute coordinate space.
|
|
308
309
|
*/
|
|
309
310
|
const COORDINATE_SPACE_WORLD: number & { readonly __brand: "graphics.COORDINATE_SPACE_WORLD" };
|
|
311
|
+
const CUBEMAP_FACE_NEGATIVE_X: number & { readonly __brand: "graphics.CUBEMAP_FACE_NEGATIVE_X" };
|
|
312
|
+
const CUBEMAP_FACE_NEGATIVE_Y: number & { readonly __brand: "graphics.CUBEMAP_FACE_NEGATIVE_Y" };
|
|
313
|
+
const CUBEMAP_FACE_NEGATIVE_Z: number & { readonly __brand: "graphics.CUBEMAP_FACE_NEGATIVE_Z" };
|
|
314
|
+
const CUBEMAP_FACE_POSITIVE_X: number & { readonly __brand: "graphics.CUBEMAP_FACE_POSITIVE_X" };
|
|
315
|
+
const CUBEMAP_FACE_POSITIVE_Y: number & { readonly __brand: "graphics.CUBEMAP_FACE_POSITIVE_Y" };
|
|
316
|
+
const CUBEMAP_FACE_POSITIVE_Z: number & { readonly __brand: "graphics.CUBEMAP_FACE_POSITIVE_Z" };
|
|
310
317
|
/**
|
|
311
318
|
* Signed 8-bit vertex attribute data.
|
|
312
319
|
*/
|
package/generated/gui.d.ts
CHANGED
|
@@ -27,11 +27,11 @@ declare global {
|
|
|
27
27
|
*/
|
|
28
28
|
text_length: number;
|
|
29
29
|
/**
|
|
30
|
-
* lower-left x-coordinate relative to the text node's
|
|
30
|
+
* unscaled lower-left x-coordinate relative to the text node's pivot
|
|
31
31
|
*/
|
|
32
32
|
x: number;
|
|
33
33
|
/**
|
|
34
|
-
* lower-left y-coordinate relative to the text node's
|
|
34
|
+
* unscaled lower-left y-coordinate relative to the text node's pivot
|
|
35
35
|
*/
|
|
36
36
|
y: number;
|
|
37
37
|
/**
|
|
@@ -969,7 +969,7 @@ declare global {
|
|
|
969
969
|
/**
|
|
970
970
|
* Returns the sprites and links found in the text node's current layout.
|
|
971
971
|
* Each object's `x` and `y` identify its lower-left corner relative to the
|
|
972
|
-
* text node's
|
|
972
|
+
* text node's pivot, before applying the node's scale and rotation.
|
|
973
973
|
*
|
|
974
974
|
* @param node - text node to inspect
|
|
975
975
|
* @returns layout objects in source order. **0️⃣ `text_offset` is 0-based; passed to Defold unchanged.**
|
|
@@ -1713,7 +1713,8 @@ declare global {
|
|
|
1713
1713
|
function set_clipping_visible(node: Opaque<"node">, visible: boolean): void;
|
|
1714
1714
|
/**
|
|
1715
1715
|
* Sets the color of the supplied node. The components
|
|
1716
|
-
* of the supplied vector3 or vector4 should contain the color channel values
|
|
1716
|
+
* of the supplied vector3 or vector4 should contain the color channel values
|
|
1717
|
+
* in the range 0 to 1:
|
|
1717
1718
|
*
|
|
1718
1719
|
* Component
|
|
1719
1720
|
* Color value
|
package/generated/label.d.ts
CHANGED
|
@@ -27,11 +27,11 @@ declare global {
|
|
|
27
27
|
*/
|
|
28
28
|
text_length: number;
|
|
29
29
|
/**
|
|
30
|
-
* lower-left x-coordinate relative to the label's
|
|
30
|
+
* unscaled lower-left x-coordinate relative to the label's pivot
|
|
31
31
|
*/
|
|
32
32
|
x: number;
|
|
33
33
|
/**
|
|
34
|
-
* lower-left y-coordinate relative to the label's
|
|
34
|
+
* unscaled lower-left y-coordinate relative to the label's pivot
|
|
35
35
|
*/
|
|
36
36
|
y: number;
|
|
37
37
|
/**
|
|
@@ -52,7 +52,7 @@ declare global {
|
|
|
52
52
|
* Each entry contains `type`, `id`, the zero-based UTF-32 `text_offset`,
|
|
53
53
|
* `text_length`, resolved `x`, `y`, `width`
|
|
54
54
|
* and `height`, and an `attributes` table. The position is the lower-left
|
|
55
|
-
* object corner relative to the label's
|
|
55
|
+
* object corner relative to the label's pivot, before applying scale and rotation.
|
|
56
56
|
* Inline resource rendering is not part of this MVP; sprites use their explicit
|
|
57
57
|
* dimensions or a one-em square fallback.
|
|
58
58
|
*
|
package/generated/render.d.ts
CHANGED
|
@@ -102,7 +102,7 @@ declare global {
|
|
|
102
102
|
*/
|
|
103
103
|
flags?: render.RENDER_TARGET_FLAG | number;
|
|
104
104
|
}
|
|
105
|
-
type render_target_params = { sample_count?: number } & { [key: number]: render.render_target_buffer_params };
|
|
105
|
+
type render_target_params = { type?: graphics.TEXTURE_TYPE; sample_count?: number } & { [key: number]: render.render_target_buffer_params };
|
|
106
106
|
/**
|
|
107
107
|
* Render-target activation options
|
|
108
108
|
*/
|
|
@@ -111,6 +111,10 @@ declare global {
|
|
|
111
111
|
* Buffers whose contents become undefined after the target is deactivated. Missing buffers are ignored; combined depth-stencil buffers remain non-transient unless both are selected.
|
|
112
112
|
*/
|
|
113
113
|
transient?: graphics.BUFFER_TYPE[];
|
|
114
|
+
/**
|
|
115
|
+
* Cubemap face selected for rendering. Valid only for cubemap render targets.
|
|
116
|
+
*/
|
|
117
|
+
face?: graphics.CUBEMAP_FACE;
|
|
114
118
|
}
|
|
115
119
|
type texture = Opaque<"texture">;
|
|
116
120
|
type ClearBufferKey = typeof graphics.BUFFER_TYPE_COLOR0_BIT | typeof graphics.BUFFER_TYPE_DEPTH_BIT | typeof graphics.BUFFER_TYPE_STENCIL_BIT;
|
|
@@ -951,6 +955,16 @@ declare global {
|
|
|
951
955
|
*
|
|
952
956
|
* @param render_target - render target to set. Omit it, pass `nil`, or use render.RENDER_TARGET_DEFAULT to set the default render target
|
|
953
957
|
* @param options - optional render-target activation options
|
|
958
|
+
*
|
|
959
|
+
* `face`
|
|
960
|
+
* number Cubemap face selected for rendering. This option is valid only for cubemap render targets and defaults to `graphics.CUBEMAP_FACE_POSITIVE_X`.
|
|
961
|
+
*
|
|
962
|
+
* - `graphics.CUBEMAP_FACE_POSITIVE_X`
|
|
963
|
+
* - `graphics.CUBEMAP_FACE_NEGATIVE_X`
|
|
964
|
+
* - `graphics.CUBEMAP_FACE_POSITIVE_Y`
|
|
965
|
+
* - `graphics.CUBEMAP_FACE_NEGATIVE_Y`
|
|
966
|
+
* - `graphics.CUBEMAP_FACE_POSITIVE_Z`
|
|
967
|
+
* - `graphics.CUBEMAP_FACE_NEGATIVE_Z`
|
|
954
968
|
* @example
|
|
955
969
|
* How to set a render target and draw to it and then switch back to the default render target
|
|
956
970
|
* The render target defines the depth/stencil buffers as transient, when set_render_target is called the next time the buffers may be invalidated and allow for optimisations depending on driver support
|
|
@@ -1009,6 +1023,7 @@ declare global {
|
|
|
1009
1023
|
/**
|
|
1010
1024
|
* Sets the render target size for a render target created from
|
|
1011
1025
|
* either a render script, or from a render target resource.
|
|
1026
|
+
* Cubemap render targets require equal width and height.
|
|
1012
1027
|
*
|
|
1013
1028
|
* @param render_target - render target to set size for
|
|
1014
1029
|
* @param width - new render target width
|