@playcanvas/web-components 0.11.1 → 0.12.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/dist/app.d.ts +13 -11
- package/dist/asset.d.ts +144 -5
- package/dist/async-element.d.ts +6 -5
- package/dist/components/collision-component.d.ts +16 -0
- package/dist/components/component.d.ts +19 -0
- package/dist/custom-elements.json +1054 -164
- package/dist/entity-base.d.ts +67 -0
- package/dist/entity.d.ts +3 -38
- package/dist/index.d.ts +4 -1
- package/dist/material.d.ts +2 -1
- package/dist/model.d.ts +26 -4
- package/dist/node.d.ts +253 -0
- package/dist/pwc.cjs +1364 -168
- package/dist/pwc.cjs.map +1 -1
- package/dist/pwc.js +1364 -168
- package/dist/pwc.js.map +1 -1
- package/dist/pwc.min.js +1 -1
- package/dist/pwc.min.js.map +1 -1
- package/dist/pwc.min.mjs +1 -1
- package/dist/pwc.min.mjs.map +1 -1
- package/dist/pwc.mjs +1364 -170
- package/dist/pwc.mjs.map +1 -1
- package/dist/vscode.html-custom-data.json +126 -4
- package/dist/web-types.json +360 -56
- package/package.json +2 -2
- package/src/app.ts +27 -24
- package/src/asset.ts +439 -9
- package/src/async-element.ts +7 -6
- package/src/components/collision-component.ts +35 -0
- package/src/components/component.ts +93 -3
- package/src/entity-base.ts +136 -0
- package/src/entity.ts +23 -117
- package/src/index.ts +5 -0
- package/src/material.ts +2 -2
- package/src/model.ts +79 -11
- package/src/node.ts +715 -0
- package/src/sky.ts +0 -1
|
@@ -95,9 +95,9 @@
|
|
|
95
95
|
"kind": "field",
|
|
96
96
|
"name": "closestEntity",
|
|
97
97
|
"type": {
|
|
98
|
-
"text": "
|
|
98
|
+
"text": "EntityBaseElement | null"
|
|
99
99
|
},
|
|
100
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
100
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
101
101
|
"return": {
|
|
102
102
|
"type": {
|
|
103
103
|
"text": ""
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"description": "The entity to look up."
|
|
143
143
|
}
|
|
144
144
|
],
|
|
145
|
-
"description": "Returns the `<pc-entity>` element whose backing entity is `entity`, or
|
|
145
|
+
"description": "Returns the `<pc-entity>` or `<pc-node>` element whose backing entity is `entity`, or\n`null` if the entity is not fronted by an element of this application - for example, an\nunbound node inside a model's instantiated hierarchy, or an entity created through the\nengine API."
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
"kind": "field",
|
|
@@ -339,9 +339,66 @@
|
|
|
339
339
|
"declarations": [
|
|
340
340
|
{
|
|
341
341
|
"kind": "class",
|
|
342
|
-
"description": "The AssetElement interface provides properties and methods for manipulating\n[`<pc-asset>`](https://developer.playcanvas.com/user-manual/web-components/tags/pc-asset/) elements.\nThe AssetElement interface also inherits the properties and methods of the\nHTMLElement interface.\n\nThe element becomes ready once the containing application has started and the asset is in the\nstate declared by the markup: loaded for preloaded assets (even if loading failed — check the\nasset's `resource`), or registered and awaiting a load for `lazy` assets. Elements inserted\nwhile the application is running are created and registered on insertion, and begin loading\nimmediately unless `lazy`. A `pc-asset` must be a direct child of `pc-app` — elements placed\nelsewhere, or with an unsupported asset type, never become ready.\n\nApart from `lazy
|
|
342
|
+
"description": "The AssetElement interface provides properties and methods for manipulating\n[`<pc-asset>`](https://developer.playcanvas.com/user-manual/web-components/tags/pc-asset/) elements.\nThe AssetElement interface also inherits the properties and methods of the\nHTMLElement interface.\n\nThe element becomes ready once the containing application has started and the asset is in the\nstate declared by the markup: loaded for preloaded assets (even if loading failed — check the\nasset's `resource`), or registered and awaiting a load for `lazy` assets. Elements inserted\nwhile the application is running are created and registered on insertion, and begin loading\nimmediately unless `lazy`. A `pc-asset` must be a direct child of `pc-app` — elements placed\nelsewhere, or with an unsupported asset type, never become ready.\n\nFor `texture` and `textureatlas` assets, the texture options (`address-u`, `address-v`,\n`min-filter`, `mag-filter`, `anisotropy`, `mipmaps`, `srgb`, `flip-y`) apply when the texture is\ncreated and — like `lazy` — are observed: changing one updates a texture that has already\nloaded, and removing one restores the engine default. Changing `srgb` or `mipmaps` on a loaded\ntexture recreates the underlying GPU resource, so prefer declaring those up front. Each option\noverrides the matching key in the `data` JSON; options left unset write nothing, leaving the\nengine's per-format defaults in force.\n\nApart from `lazy` and the texture options, these attributes are read once when the asset is\ncreated, so changing them later has no effect.\n",
|
|
343
343
|
"name": "AssetElement",
|
|
344
344
|
"members": [
|
|
345
|
+
{
|
|
346
|
+
"kind": "field",
|
|
347
|
+
"name": "addressU",
|
|
348
|
+
"description": "Gets the texture's horizontal (U) address mode.",
|
|
349
|
+
"parameters": [
|
|
350
|
+
{
|
|
351
|
+
"description": "The address mode, or `null` to use the engine default of 'repeat'.",
|
|
352
|
+
"name": "value"
|
|
353
|
+
}
|
|
354
|
+
],
|
|
355
|
+
"type": {
|
|
356
|
+
"text": "AddressMode | null"
|
|
357
|
+
},
|
|
358
|
+
"return": {
|
|
359
|
+
"type": {
|
|
360
|
+
"text": ""
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"kind": "field",
|
|
366
|
+
"name": "addressV",
|
|
367
|
+
"description": "Gets the texture's vertical (V) address mode.",
|
|
368
|
+
"parameters": [
|
|
369
|
+
{
|
|
370
|
+
"description": "The address mode, or `null` to use the engine default of 'repeat'.",
|
|
371
|
+
"name": "value"
|
|
372
|
+
}
|
|
373
|
+
],
|
|
374
|
+
"type": {
|
|
375
|
+
"text": "AddressMode | null"
|
|
376
|
+
},
|
|
377
|
+
"return": {
|
|
378
|
+
"type": {
|
|
379
|
+
"text": ""
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"kind": "field",
|
|
385
|
+
"name": "anisotropy",
|
|
386
|
+
"description": "Gets the texture's maximum anisotropic filtering level.",
|
|
387
|
+
"parameters": [
|
|
388
|
+
{
|
|
389
|
+
"description": "The anisotropy level, or `null` to use the engine default of 1.",
|
|
390
|
+
"name": "value"
|
|
391
|
+
}
|
|
392
|
+
],
|
|
393
|
+
"type": {
|
|
394
|
+
"text": "number | null"
|
|
395
|
+
},
|
|
396
|
+
"return": {
|
|
397
|
+
"type": {
|
|
398
|
+
"text": ""
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
},
|
|
345
402
|
{
|
|
346
403
|
"kind": "field",
|
|
347
404
|
"name": "asset",
|
|
@@ -373,9 +430,9 @@
|
|
|
373
430
|
"kind": "field",
|
|
374
431
|
"name": "closestEntity",
|
|
375
432
|
"type": {
|
|
376
|
-
"text": "
|
|
433
|
+
"text": "EntityBaseElement | null"
|
|
377
434
|
},
|
|
378
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
435
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
379
436
|
"return": {
|
|
380
437
|
"type": {
|
|
381
438
|
"text": ""
|
|
@@ -387,6 +444,25 @@
|
|
|
387
444
|
"module": "src/async-element.ts"
|
|
388
445
|
}
|
|
389
446
|
},
|
|
447
|
+
{
|
|
448
|
+
"kind": "field",
|
|
449
|
+
"name": "flipY",
|
|
450
|
+
"description": "Gets whether the texture's image data is flipped vertically at upload.",
|
|
451
|
+
"parameters": [
|
|
452
|
+
{
|
|
453
|
+
"description": "The flip flag, or `null` to use the engine default of `false`.",
|
|
454
|
+
"name": "value"
|
|
455
|
+
}
|
|
456
|
+
],
|
|
457
|
+
"type": {
|
|
458
|
+
"text": "boolean | null"
|
|
459
|
+
},
|
|
460
|
+
"return": {
|
|
461
|
+
"type": {
|
|
462
|
+
"text": ""
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
},
|
|
390
466
|
{
|
|
391
467
|
"kind": "method",
|
|
392
468
|
"name": "get",
|
|
@@ -423,6 +499,63 @@
|
|
|
423
499
|
}
|
|
424
500
|
}
|
|
425
501
|
},
|
|
502
|
+
{
|
|
503
|
+
"kind": "field",
|
|
504
|
+
"name": "magFilter",
|
|
505
|
+
"description": "Gets the texture's magnification filter.",
|
|
506
|
+
"parameters": [
|
|
507
|
+
{
|
|
508
|
+
"description": "The filter, or `null` to use the engine default of 'linear'.",
|
|
509
|
+
"name": "value"
|
|
510
|
+
}
|
|
511
|
+
],
|
|
512
|
+
"type": {
|
|
513
|
+
"text": "MagFilterMode | null"
|
|
514
|
+
},
|
|
515
|
+
"return": {
|
|
516
|
+
"type": {
|
|
517
|
+
"text": ""
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"kind": "field",
|
|
523
|
+
"name": "minFilter",
|
|
524
|
+
"description": "Gets the texture's minification filter.",
|
|
525
|
+
"parameters": [
|
|
526
|
+
{
|
|
527
|
+
"description": "The filter, or `null` to use the engine default of 'linear-mip-linear'.",
|
|
528
|
+
"name": "value"
|
|
529
|
+
}
|
|
530
|
+
],
|
|
531
|
+
"type": {
|
|
532
|
+
"text": "MinFilterMode | null"
|
|
533
|
+
},
|
|
534
|
+
"return": {
|
|
535
|
+
"type": {
|
|
536
|
+
"text": ""
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"kind": "field",
|
|
542
|
+
"name": "mipmaps",
|
|
543
|
+
"description": "Gets whether the texture generates and uses mipmaps.",
|
|
544
|
+
"parameters": [
|
|
545
|
+
{
|
|
546
|
+
"description": "The mipmaps flag, or `null` to use the engine default of `true`.",
|
|
547
|
+
"name": "value"
|
|
548
|
+
}
|
|
549
|
+
],
|
|
550
|
+
"type": {
|
|
551
|
+
"text": "boolean | null"
|
|
552
|
+
},
|
|
553
|
+
"return": {
|
|
554
|
+
"type": {
|
|
555
|
+
"text": ""
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
},
|
|
426
559
|
{
|
|
427
560
|
"kind": "method",
|
|
428
561
|
"name": "ready",
|
|
@@ -436,6 +569,25 @@
|
|
|
436
569
|
"name": "AsyncElement",
|
|
437
570
|
"module": "src/async-element.ts"
|
|
438
571
|
}
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"kind": "field",
|
|
575
|
+
"name": "srgb",
|
|
576
|
+
"description": "Gets whether the texture holds sRGB (gamma-encoded) color data.",
|
|
577
|
+
"parameters": [
|
|
578
|
+
{
|
|
579
|
+
"description": "The sRGB flag, or `null` to use the engine default of `false`.",
|
|
580
|
+
"name": "value"
|
|
581
|
+
}
|
|
582
|
+
],
|
|
583
|
+
"type": {
|
|
584
|
+
"text": "boolean | null"
|
|
585
|
+
},
|
|
586
|
+
"return": {
|
|
587
|
+
"type": {
|
|
588
|
+
"text": ""
|
|
589
|
+
}
|
|
590
|
+
}
|
|
439
591
|
}
|
|
440
592
|
],
|
|
441
593
|
"events": [
|
|
@@ -466,6 +618,33 @@
|
|
|
466
618
|
}
|
|
467
619
|
],
|
|
468
620
|
"attributes": [
|
|
621
|
+
{
|
|
622
|
+
"name": "address-u",
|
|
623
|
+
"type": {
|
|
624
|
+
"text": "'repeat' | 'clamp' | 'mirror'"
|
|
625
|
+
},
|
|
626
|
+
"fieldName": "addressU",
|
|
627
|
+
"default": "repeat",
|
|
628
|
+
"description": "The texture's horizontal (U) address mode."
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"name": "address-v",
|
|
632
|
+
"type": {
|
|
633
|
+
"text": "'repeat' | 'clamp' | 'mirror'"
|
|
634
|
+
},
|
|
635
|
+
"fieldName": "addressV",
|
|
636
|
+
"default": "repeat",
|
|
637
|
+
"description": "The texture's vertical (V) address mode."
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"name": "anisotropy",
|
|
641
|
+
"type": {
|
|
642
|
+
"text": "number"
|
|
643
|
+
},
|
|
644
|
+
"fieldName": "anisotropy",
|
|
645
|
+
"default": "1",
|
|
646
|
+
"description": "The texture's maximum anisotropic filtering level."
|
|
647
|
+
},
|
|
469
648
|
{
|
|
470
649
|
"type": {
|
|
471
650
|
"text": "string"
|
|
@@ -480,6 +659,15 @@
|
|
|
480
659
|
"description": "Additional asset data, as a JSON object.",
|
|
481
660
|
"name": "data"
|
|
482
661
|
},
|
|
662
|
+
{
|
|
663
|
+
"name": "flip-y",
|
|
664
|
+
"type": {
|
|
665
|
+
"text": "boolean"
|
|
666
|
+
},
|
|
667
|
+
"fieldName": "flipY",
|
|
668
|
+
"default": "false",
|
|
669
|
+
"description": "Whether the texture's image data is flipped vertically at upload."
|
|
670
|
+
},
|
|
483
671
|
{
|
|
484
672
|
"type": {
|
|
485
673
|
"text": "string"
|
|
@@ -503,6 +691,33 @@
|
|
|
503
691
|
"default": "false",
|
|
504
692
|
"description": "Whether the asset should be loaded lazily."
|
|
505
693
|
},
|
|
694
|
+
{
|
|
695
|
+
"name": "mag-filter",
|
|
696
|
+
"type": {
|
|
697
|
+
"text": "'nearest' | 'linear'"
|
|
698
|
+
},
|
|
699
|
+
"fieldName": "magFilter",
|
|
700
|
+
"default": "linear",
|
|
701
|
+
"description": "The texture's magnification filter."
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"name": "min-filter",
|
|
705
|
+
"type": {
|
|
706
|
+
"text": "'nearest' | 'linear' | 'nearest-mip-nearest' | 'linear-mip-nearest' | 'nearest-mip-linear' | 'linear-mip-linear'"
|
|
707
|
+
},
|
|
708
|
+
"fieldName": "minFilter",
|
|
709
|
+
"default": "linear-mip-linear",
|
|
710
|
+
"description": "The texture's minification filter."
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
"name": "mipmaps",
|
|
714
|
+
"type": {
|
|
715
|
+
"text": "boolean"
|
|
716
|
+
},
|
|
717
|
+
"fieldName": "mipmaps",
|
|
718
|
+
"default": "true",
|
|
719
|
+
"description": "Whether the texture generates and uses mipmaps."
|
|
720
|
+
},
|
|
506
721
|
{
|
|
507
722
|
"type": {
|
|
508
723
|
"text": "number"
|
|
@@ -524,6 +739,15 @@
|
|
|
524
739
|
"description": "The URL of the asset to load.",
|
|
525
740
|
"name": "src"
|
|
526
741
|
},
|
|
742
|
+
{
|
|
743
|
+
"name": "srgb",
|
|
744
|
+
"type": {
|
|
745
|
+
"text": "boolean"
|
|
746
|
+
},
|
|
747
|
+
"fieldName": "srgb",
|
|
748
|
+
"default": "false",
|
|
749
|
+
"description": "Whether the texture holds sRGB (gamma-encoded) color data."
|
|
750
|
+
},
|
|
527
751
|
{
|
|
528
752
|
"type": {
|
|
529
753
|
"text": "string"
|
|
@@ -586,9 +810,9 @@
|
|
|
586
810
|
"kind": "field",
|
|
587
811
|
"name": "closestEntity",
|
|
588
812
|
"type": {
|
|
589
|
-
"text": "
|
|
813
|
+
"text": "EntityBaseElement | null"
|
|
590
814
|
},
|
|
591
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
815
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
592
816
|
"return": {
|
|
593
817
|
"type": {
|
|
594
818
|
"text": ""
|
|
@@ -725,12 +949,12 @@
|
|
|
725
949
|
},
|
|
726
950
|
{
|
|
727
951
|
"kind": "javascript-module",
|
|
728
|
-
"path": "src/entity.ts",
|
|
952
|
+
"path": "src/entity-base.ts",
|
|
729
953
|
"declarations": [
|
|
730
954
|
{
|
|
731
955
|
"kind": "class",
|
|
732
|
-
"description": "The
|
|
733
|
-
"name": "
|
|
956
|
+
"description": "The base class for elements that front an engine Entity: `<pc-entity>`, which creates\none, and `<pc-node>`, which binds to one inside a model's instantiated hierarchy. It carries\nwhat both need — the `entity` contract, registration with the owning application (which joins\npicked scene nodes back to elements by identity, never by name), and the pointer listener\nbookkeeping that lets the application lazily attach its canvas handlers.",
|
|
957
|
+
"name": "EntityBaseElement",
|
|
734
958
|
"members": [
|
|
735
959
|
{
|
|
736
960
|
"kind": "method",
|
|
@@ -779,9 +1003,9 @@
|
|
|
779
1003
|
"kind": "field",
|
|
780
1004
|
"name": "closestEntity",
|
|
781
1005
|
"type": {
|
|
782
|
-
"text": "
|
|
1006
|
+
"text": "EntityBaseElement | null"
|
|
783
1007
|
},
|
|
784
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
1008
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
785
1009
|
"return": {
|
|
786
1010
|
"type": {
|
|
787
1011
|
"text": ""
|
|
@@ -793,29 +1017,13 @@
|
|
|
793
1017
|
"module": "src/async-element.ts"
|
|
794
1018
|
}
|
|
795
1019
|
},
|
|
796
|
-
{
|
|
797
|
-
"kind": "field",
|
|
798
|
-
"name": "enabled",
|
|
799
|
-
"description": "Gets the enabled state of the entity.",
|
|
800
|
-
"parameters": [
|
|
801
|
-
{
|
|
802
|
-
"description": "Whether the entity is enabled.",
|
|
803
|
-
"name": "value"
|
|
804
|
-
}
|
|
805
|
-
],
|
|
806
|
-
"return": {
|
|
807
|
-
"type": {
|
|
808
|
-
"text": ""
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
|
-
},
|
|
812
1020
|
{
|
|
813
1021
|
"kind": "field",
|
|
814
1022
|
"name": "entity",
|
|
815
1023
|
"type": {
|
|
816
1024
|
"text": "Entity | null"
|
|
817
1025
|
},
|
|
818
|
-
"description": "The PlayCanvas entity instance. `null` until the element is ready, and again once
|
|
1026
|
+
"description": "The PlayCanvas entity instance. `null` until the element is ready, and again once the\nentity is gone — await whenReady or the element's `ready()` promise before\naccessing it.",
|
|
819
1027
|
"return": {
|
|
820
1028
|
"type": {
|
|
821
1029
|
"text": ""
|
|
@@ -823,38 +1031,6 @@
|
|
|
823
1031
|
},
|
|
824
1032
|
"readonly": true
|
|
825
1033
|
},
|
|
826
|
-
{
|
|
827
|
-
"kind": "field",
|
|
828
|
-
"name": "name",
|
|
829
|
-
"description": "Gets the name of the entity.",
|
|
830
|
-
"parameters": [
|
|
831
|
-
{
|
|
832
|
-
"description": "The name of the entity.",
|
|
833
|
-
"name": "value"
|
|
834
|
-
}
|
|
835
|
-
],
|
|
836
|
-
"return": {
|
|
837
|
-
"type": {
|
|
838
|
-
"text": ""
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
},
|
|
842
|
-
{
|
|
843
|
-
"kind": "field",
|
|
844
|
-
"name": "position",
|
|
845
|
-
"description": "Gets the position of the entity.",
|
|
846
|
-
"parameters": [
|
|
847
|
-
{
|
|
848
|
-
"description": "The position of the entity.",
|
|
849
|
-
"name": "value"
|
|
850
|
-
}
|
|
851
|
-
],
|
|
852
|
-
"return": {
|
|
853
|
-
"type": {
|
|
854
|
-
"text": ""
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
},
|
|
858
1034
|
{
|
|
859
1035
|
"kind": "method",
|
|
860
1036
|
"name": "ready",
|
|
@@ -893,40 +1069,254 @@
|
|
|
893
1069
|
}
|
|
894
1070
|
}
|
|
895
1071
|
]
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
"name": "rotation",
|
|
900
|
-
"description": "Gets the rotation of the entity.",
|
|
901
|
-
"parameters": [
|
|
902
|
-
{
|
|
903
|
-
"description": "The rotation of the entity.",
|
|
904
|
-
"name": "value"
|
|
905
|
-
}
|
|
906
|
-
],
|
|
907
|
-
"return": {
|
|
908
|
-
"type": {
|
|
909
|
-
"text": ""
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
},
|
|
1072
|
+
}
|
|
1073
|
+
],
|
|
1074
|
+
"events": [
|
|
913
1075
|
{
|
|
914
|
-
"
|
|
915
|
-
"
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
],
|
|
923
|
-
"return": {
|
|
924
|
-
"type": {
|
|
925
|
-
"text": ""
|
|
926
|
-
}
|
|
1076
|
+
"name": "ready",
|
|
1077
|
+
"type": {
|
|
1078
|
+
"text": "CustomEvent"
|
|
1079
|
+
},
|
|
1080
|
+
"description": "Fired when the element is fully initialized — once per readiness cycle, so an element that is torn down and re-initialized (for example by removing and re-inserting it) fires it again. Bubbles and is composed.",
|
|
1081
|
+
"inheritedFrom": {
|
|
1082
|
+
"name": "AsyncElement",
|
|
1083
|
+
"module": "src/async-element.ts"
|
|
927
1084
|
}
|
|
928
|
-
}
|
|
929
|
-
|
|
1085
|
+
}
|
|
1086
|
+
],
|
|
1087
|
+
"superclass": {
|
|
1088
|
+
"name": "AsyncElement",
|
|
1089
|
+
"module": "/src/async-element"
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
],
|
|
1093
|
+
"exports": [
|
|
1094
|
+
{
|
|
1095
|
+
"kind": "js",
|
|
1096
|
+
"name": "EntityBaseElement",
|
|
1097
|
+
"declaration": {
|
|
1098
|
+
"name": "EntityBaseElement",
|
|
1099
|
+
"module": "src/entity-base.ts"
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
]
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
"kind": "javascript-module",
|
|
1106
|
+
"path": "src/entity.ts",
|
|
1107
|
+
"declarations": [
|
|
1108
|
+
{
|
|
1109
|
+
"kind": "class",
|
|
1110
|
+
"description": "The EntityElement interface provides properties and methods for manipulating\n[`<pc-entity>`](https://developer.playcanvas.com/user-manual/web-components/tags/pc-entity/) elements.\nThe EntityElement interface also inherits the properties and methods of the\nHTMLElement interface.\n\nThe pointer events below are dispatched by the containing `<pc-app>` element when the pointer\nintersects this entity's geometry. They are only generated while the entity has a listener for\nthem, registered either with addEventListener or with the matching inline `onpointer*`\nattribute.\n",
|
|
1111
|
+
"name": "EntityElement",
|
|
1112
|
+
"members": [
|
|
1113
|
+
{
|
|
1114
|
+
"kind": "method",
|
|
1115
|
+
"name": "addEventListener",
|
|
1116
|
+
"parameters": [
|
|
1117
|
+
{
|
|
1118
|
+
"name": "type",
|
|
1119
|
+
"type": {
|
|
1120
|
+
"text": "string"
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"name": "listener",
|
|
1125
|
+
"type": {
|
|
1126
|
+
"text": "EventListener"
|
|
1127
|
+
}
|
|
1128
|
+
},
|
|
1129
|
+
{
|
|
1130
|
+
"name": "options",
|
|
1131
|
+
"optional": true,
|
|
1132
|
+
"type": {
|
|
1133
|
+
"text": "boolean | AddEventListenerOptions"
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
],
|
|
1137
|
+
"inheritedFrom": {
|
|
1138
|
+
"name": "EntityBaseElement",
|
|
1139
|
+
"module": "src/entity-base.ts"
|
|
1140
|
+
}
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
"kind": "field",
|
|
1144
|
+
"name": "closestApp",
|
|
1145
|
+
"type": {
|
|
1146
|
+
"text": "AppElement | null"
|
|
1147
|
+
},
|
|
1148
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
1149
|
+
"return": {
|
|
1150
|
+
"type": {
|
|
1151
|
+
"text": ""
|
|
1152
|
+
}
|
|
1153
|
+
},
|
|
1154
|
+
"readonly": true,
|
|
1155
|
+
"inheritedFrom": {
|
|
1156
|
+
"name": "AsyncElement",
|
|
1157
|
+
"module": "src/async-element.ts"
|
|
1158
|
+
}
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
"kind": "field",
|
|
1162
|
+
"name": "closestEntity",
|
|
1163
|
+
"type": {
|
|
1164
|
+
"text": "EntityBaseElement | null"
|
|
1165
|
+
},
|
|
1166
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
1167
|
+
"return": {
|
|
1168
|
+
"type": {
|
|
1169
|
+
"text": ""
|
|
1170
|
+
}
|
|
1171
|
+
},
|
|
1172
|
+
"readonly": true,
|
|
1173
|
+
"inheritedFrom": {
|
|
1174
|
+
"name": "AsyncElement",
|
|
1175
|
+
"module": "src/async-element.ts"
|
|
1176
|
+
}
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
"kind": "field",
|
|
1180
|
+
"name": "enabled",
|
|
1181
|
+
"description": "Gets the enabled state of the entity.",
|
|
1182
|
+
"parameters": [
|
|
1183
|
+
{
|
|
1184
|
+
"description": "Whether the entity is enabled.",
|
|
1185
|
+
"name": "value"
|
|
1186
|
+
}
|
|
1187
|
+
],
|
|
1188
|
+
"return": {
|
|
1189
|
+
"type": {
|
|
1190
|
+
"text": ""
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
"kind": "field",
|
|
1196
|
+
"name": "entity",
|
|
1197
|
+
"type": {
|
|
1198
|
+
"text": "Entity | null"
|
|
1199
|
+
},
|
|
1200
|
+
"description": "The PlayCanvas entity instance. `null` until the element is ready, and again once the\nentity is gone — await whenReady or the element's `ready()` promise before\naccessing it.",
|
|
1201
|
+
"return": {
|
|
1202
|
+
"type": {
|
|
1203
|
+
"text": ""
|
|
1204
|
+
}
|
|
1205
|
+
},
|
|
1206
|
+
"readonly": true,
|
|
1207
|
+
"inheritedFrom": {
|
|
1208
|
+
"name": "EntityBaseElement",
|
|
1209
|
+
"module": "src/entity-base.ts"
|
|
1210
|
+
}
|
|
1211
|
+
},
|
|
1212
|
+
{
|
|
1213
|
+
"kind": "field",
|
|
1214
|
+
"name": "name",
|
|
1215
|
+
"description": "Gets the name of the entity.",
|
|
1216
|
+
"parameters": [
|
|
1217
|
+
{
|
|
1218
|
+
"description": "The name of the entity.",
|
|
1219
|
+
"name": "value"
|
|
1220
|
+
}
|
|
1221
|
+
],
|
|
1222
|
+
"return": {
|
|
1223
|
+
"type": {
|
|
1224
|
+
"text": ""
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
"kind": "field",
|
|
1230
|
+
"name": "position",
|
|
1231
|
+
"description": "Gets the position of the entity.",
|
|
1232
|
+
"parameters": [
|
|
1233
|
+
{
|
|
1234
|
+
"description": "The position of the entity.",
|
|
1235
|
+
"name": "value"
|
|
1236
|
+
}
|
|
1237
|
+
],
|
|
1238
|
+
"return": {
|
|
1239
|
+
"type": {
|
|
1240
|
+
"text": ""
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
"kind": "method",
|
|
1246
|
+
"name": "ready",
|
|
1247
|
+
"return": {
|
|
1248
|
+
"type": {
|
|
1249
|
+
"text": ""
|
|
1250
|
+
}
|
|
1251
|
+
},
|
|
1252
|
+
"description": "Returns a promise that resolves with this element when it's ready. This is the low-level\nprimitive underlying whenReady, which is the recommended way to wait for elements.\n\nReadiness tracks the element's current lifecycle: once a ready element is torn down (for\nexample by removing it from the document), this returns a fresh promise that resolves when\nthe element is next ready. A promise obtained earlier stays resolved — call this again\nafter re-inserting an element rather than reusing a promise from before its removal.",
|
|
1253
|
+
"inheritedFrom": {
|
|
1254
|
+
"name": "AsyncElement",
|
|
1255
|
+
"module": "src/async-element.ts"
|
|
1256
|
+
}
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
"kind": "method",
|
|
1260
|
+
"name": "removeEventListener",
|
|
1261
|
+
"parameters": [
|
|
1262
|
+
{
|
|
1263
|
+
"name": "type",
|
|
1264
|
+
"type": {
|
|
1265
|
+
"text": "string"
|
|
1266
|
+
}
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
"name": "listener",
|
|
1270
|
+
"type": {
|
|
1271
|
+
"text": "EventListener"
|
|
1272
|
+
}
|
|
1273
|
+
},
|
|
1274
|
+
{
|
|
1275
|
+
"name": "options",
|
|
1276
|
+
"optional": true,
|
|
1277
|
+
"type": {
|
|
1278
|
+
"text": "boolean | EventListenerOptions"
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
],
|
|
1282
|
+
"inheritedFrom": {
|
|
1283
|
+
"name": "EntityBaseElement",
|
|
1284
|
+
"module": "src/entity-base.ts"
|
|
1285
|
+
}
|
|
1286
|
+
},
|
|
1287
|
+
{
|
|
1288
|
+
"kind": "field",
|
|
1289
|
+
"name": "rotation",
|
|
1290
|
+
"description": "Gets the rotation of the entity.",
|
|
1291
|
+
"parameters": [
|
|
1292
|
+
{
|
|
1293
|
+
"description": "The rotation of the entity.",
|
|
1294
|
+
"name": "value"
|
|
1295
|
+
}
|
|
1296
|
+
],
|
|
1297
|
+
"return": {
|
|
1298
|
+
"type": {
|
|
1299
|
+
"text": ""
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
"kind": "field",
|
|
1305
|
+
"name": "scale",
|
|
1306
|
+
"description": "Gets the scale of the entity.",
|
|
1307
|
+
"parameters": [
|
|
1308
|
+
{
|
|
1309
|
+
"description": "The scale of the entity.",
|
|
1310
|
+
"name": "value"
|
|
1311
|
+
}
|
|
1312
|
+
],
|
|
1313
|
+
"return": {
|
|
1314
|
+
"type": {
|
|
1315
|
+
"text": ""
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
930
1320
|
"kind": "field",
|
|
931
1321
|
"name": "tags",
|
|
932
1322
|
"description": "Gets the tags of the entity.",
|
|
@@ -1010,43 +1400,43 @@
|
|
|
1010
1400
|
"description": "The name of the entity."
|
|
1011
1401
|
},
|
|
1012
1402
|
{
|
|
1013
|
-
"name": "onpointerdown",
|
|
1014
1403
|
"type": {
|
|
1015
1404
|
"text": "string"
|
|
1016
1405
|
},
|
|
1017
1406
|
"description": "Script to run when a pointer button is pressed over the entity.",
|
|
1407
|
+
"name": "onpointerdown",
|
|
1018
1408
|
"fieldName": "onpointerdown"
|
|
1019
1409
|
},
|
|
1020
1410
|
{
|
|
1021
|
-
"name": "onpointerenter",
|
|
1022
1411
|
"type": {
|
|
1023
1412
|
"text": "string"
|
|
1024
1413
|
},
|
|
1025
1414
|
"description": "Script to run when the pointer moves onto the entity.",
|
|
1415
|
+
"name": "onpointerenter",
|
|
1026
1416
|
"fieldName": "onpointerenter"
|
|
1027
1417
|
},
|
|
1028
1418
|
{
|
|
1029
|
-
"name": "onpointerleave",
|
|
1030
1419
|
"type": {
|
|
1031
1420
|
"text": "string"
|
|
1032
1421
|
},
|
|
1033
1422
|
"description": "Script to run when the pointer moves off the entity.",
|
|
1423
|
+
"name": "onpointerleave",
|
|
1034
1424
|
"fieldName": "onpointerleave"
|
|
1035
1425
|
},
|
|
1036
1426
|
{
|
|
1037
|
-
"name": "onpointermove",
|
|
1038
1427
|
"type": {
|
|
1039
1428
|
"text": "string"
|
|
1040
1429
|
},
|
|
1041
1430
|
"description": "Script to run when the pointer moves over the entity.",
|
|
1431
|
+
"name": "onpointermove",
|
|
1042
1432
|
"fieldName": "onpointermove"
|
|
1043
1433
|
},
|
|
1044
1434
|
{
|
|
1045
|
-
"name": "onpointerup",
|
|
1046
1435
|
"type": {
|
|
1047
1436
|
"text": "string"
|
|
1048
1437
|
},
|
|
1049
1438
|
"description": "Script to run when a pointer button is released over the entity.",
|
|
1439
|
+
"name": "onpointerup",
|
|
1050
1440
|
"fieldName": "onpointerup"
|
|
1051
1441
|
},
|
|
1052
1442
|
{
|
|
@@ -1086,8 +1476,8 @@
|
|
|
1086
1476
|
}
|
|
1087
1477
|
],
|
|
1088
1478
|
"superclass": {
|
|
1089
|
-
"name": "
|
|
1090
|
-
"module": "/src/
|
|
1479
|
+
"name": "EntityBaseElement",
|
|
1480
|
+
"module": "/src/entity-base"
|
|
1091
1481
|
},
|
|
1092
1482
|
"tagName": "pc-entity",
|
|
1093
1483
|
"customElement": true
|
|
@@ -1317,6 +1707,14 @@
|
|
|
1317
1707
|
"module": "src/index.ts"
|
|
1318
1708
|
}
|
|
1319
1709
|
},
|
|
1710
|
+
{
|
|
1711
|
+
"kind": "js",
|
|
1712
|
+
"name": "EntityBaseElement",
|
|
1713
|
+
"declaration": {
|
|
1714
|
+
"name": "EntityBaseElement",
|
|
1715
|
+
"module": "src/index.ts"
|
|
1716
|
+
}
|
|
1717
|
+
},
|
|
1320
1718
|
{
|
|
1321
1719
|
"kind": "js",
|
|
1322
1720
|
"name": "MaterialElement",
|
|
@@ -1333,6 +1731,14 @@
|
|
|
1333
1731
|
"module": "src/index.ts"
|
|
1334
1732
|
}
|
|
1335
1733
|
},
|
|
1734
|
+
{
|
|
1735
|
+
"kind": "js",
|
|
1736
|
+
"name": "NodeElement",
|
|
1737
|
+
"declaration": {
|
|
1738
|
+
"name": "NodeElement",
|
|
1739
|
+
"module": "src/index.ts"
|
|
1740
|
+
}
|
|
1741
|
+
},
|
|
1336
1742
|
{
|
|
1337
1743
|
"kind": "js",
|
|
1338
1744
|
"name": "SceneElement",
|
|
@@ -3526,7 +3932,7 @@
|
|
|
3526
3932
|
"declarations": [
|
|
3527
3933
|
{
|
|
3528
3934
|
"kind": "class",
|
|
3529
|
-
"description": "The ModelElement interface provides properties and methods for manipulating\n[`<pc-model>`](https://developer.playcanvas.com/user-manual/web-components/tags/pc-model/) elements.\nThe ModelElement interface also inherits the properties and methods of the\nHTMLElement interface.\n",
|
|
3935
|
+
"description": "The ModelElement interface provides properties and methods for manipulating\n[`<pc-model>`](https://developer.playcanvas.com/user-manual/web-components/tags/pc-model/) elements.\nThe ModelElement interface also inherits the properties and methods of the\nHTMLElement interface.\n\nThe element becomes ready once its container asset has loaded and the instantiated hierarchy has\nbeen added to the scene — `entity` is non-null by then. A failed load also settles readiness,\nwith `entity` remaining `null`: readiness means the load settled, not that it succeeded — listen\nfor `error`, or check `entity`, to tell the outcomes apart. Changing `asset` re-arms readiness\nand instantiates anew, so a `ready()` obtained after the change resolves against the new\nhierarchy. A `pc-model` outside a `pc-app`, or referencing an unknown asset id, warns and never\nbecomes ready.\n",
|
|
3530
3936
|
"name": "ModelElement",
|
|
3531
3937
|
"members": [
|
|
3532
3938
|
{
|
|
@@ -3570,9 +3976,9 @@
|
|
|
3570
3976
|
"kind": "field",
|
|
3571
3977
|
"name": "closestEntity",
|
|
3572
3978
|
"type": {
|
|
3573
|
-
"text": "
|
|
3979
|
+
"text": "EntityBaseElement | null"
|
|
3574
3980
|
},
|
|
3575
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
3981
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
3576
3982
|
"return": {
|
|
3577
3983
|
"type": {
|
|
3578
3984
|
"text": ""
|
|
@@ -3613,23 +4019,21 @@
|
|
|
3613
4019
|
}
|
|
3614
4020
|
}
|
|
3615
4021
|
],
|
|
3616
|
-
"
|
|
4022
|
+
"events": [
|
|
3617
4023
|
{
|
|
3618
|
-
"name": "
|
|
4024
|
+
"name": "error",
|
|
3619
4025
|
"type": {
|
|
3620
|
-
"text": "
|
|
4026
|
+
"text": "ErrorEvent"
|
|
3621
4027
|
},
|
|
3622
|
-
"
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
"customElement": true,
|
|
3632
|
-
"events": [
|
|
4028
|
+
"description": "Fired when the container asset fails to load, with the engine's error in `message`. Does not bubble. The element still becomes ready — readiness means the load settled, not that it succeeded."
|
|
4029
|
+
},
|
|
4030
|
+
{
|
|
4031
|
+
"name": "load",
|
|
4032
|
+
"type": {
|
|
4033
|
+
"text": "Event"
|
|
4034
|
+
},
|
|
4035
|
+
"description": "Fired each time a container asset finishes instantiating, including re-instantiation after `asset` changes. Does not bubble — listen on this element, or use a capture-phase listener on an ancestor."
|
|
4036
|
+
},
|
|
3633
4037
|
{
|
|
3634
4038
|
"name": "ready",
|
|
3635
4039
|
"type": {
|
|
@@ -3641,7 +4045,23 @@
|
|
|
3641
4045
|
"module": "src/async-element.ts"
|
|
3642
4046
|
}
|
|
3643
4047
|
}
|
|
3644
|
-
]
|
|
4048
|
+
],
|
|
4049
|
+
"attributes": [
|
|
4050
|
+
{
|
|
4051
|
+
"name": "asset",
|
|
4052
|
+
"type": {
|
|
4053
|
+
"text": "string"
|
|
4054
|
+
},
|
|
4055
|
+
"fieldName": "asset",
|
|
4056
|
+
"description": "The id of the `pc-asset` to use for the model."
|
|
4057
|
+
}
|
|
4058
|
+
],
|
|
4059
|
+
"superclass": {
|
|
4060
|
+
"name": "AsyncElement",
|
|
4061
|
+
"module": "/src/async-element"
|
|
4062
|
+
},
|
|
4063
|
+
"tagName": "pc-model",
|
|
4064
|
+
"customElement": true
|
|
3645
4065
|
}
|
|
3646
4066
|
],
|
|
3647
4067
|
"exports": [
|
|
@@ -3742,6 +4162,476 @@
|
|
|
3742
4162
|
}
|
|
3743
4163
|
]
|
|
3744
4164
|
},
|
|
4165
|
+
{
|
|
4166
|
+
"kind": "javascript-module",
|
|
4167
|
+
"path": "src/node.ts",
|
|
4168
|
+
"declarations": [
|
|
4169
|
+
{
|
|
4170
|
+
"kind": "class",
|
|
4171
|
+
"description": "The NodeElement interface provides properties and methods for manipulating\n[`<pc-node>`](https://developer.playcanvas.com/user-manual/web-components/tags/pc-node/)\nelements. The NodeElement interface also inherits the properties and methods of the\nHTMLElement interface.\n\nA `pc-node` is an override element: where `pc-entity` creates an entity, `pc-node` binds to a\nnode a `pc-model` loaded and declares overrides against the authored asset — components to\nadd, properties to change, content to attach. Attributes present apply as overrides; attributes\nabsent leave authored values untouched, and removing an attribute (or assigning `null` to the\nmatching property) restores the authored value.\n\n`name` selects among the host model's nodes (first match in depth-first order), nesting a\n`pc-node` inside another scopes the search to that subtree, and `index` picks among identically\nnamed matches. When `name` matches more than one node and no `index` is given, the element\nwarns and binds nothing.\n\nThe element becomes ready once bound, and never while unresolved — a missing or ambiguous\nname warns and records the failure in `state`, readiness stays unresolved, and descendants\nwait with it.\n\nThe pointer events below are dispatched by the containing `<pc-app>` element when the pointer\nintersects the bound node's geometry, exactly as for `<pc-entity>`.\n",
|
|
4172
|
+
"name": "NodeElement",
|
|
4173
|
+
"members": [
|
|
4174
|
+
{
|
|
4175
|
+
"kind": "method",
|
|
4176
|
+
"name": "addEventListener",
|
|
4177
|
+
"parameters": [
|
|
4178
|
+
{
|
|
4179
|
+
"name": "type",
|
|
4180
|
+
"type": {
|
|
4181
|
+
"text": "string"
|
|
4182
|
+
}
|
|
4183
|
+
},
|
|
4184
|
+
{
|
|
4185
|
+
"name": "listener",
|
|
4186
|
+
"type": {
|
|
4187
|
+
"text": "EventListener"
|
|
4188
|
+
}
|
|
4189
|
+
},
|
|
4190
|
+
{
|
|
4191
|
+
"name": "options",
|
|
4192
|
+
"optional": true,
|
|
4193
|
+
"type": {
|
|
4194
|
+
"text": "boolean | AddEventListenerOptions"
|
|
4195
|
+
}
|
|
4196
|
+
}
|
|
4197
|
+
],
|
|
4198
|
+
"inheritedFrom": {
|
|
4199
|
+
"name": "EntityBaseElement",
|
|
4200
|
+
"module": "src/entity-base.ts"
|
|
4201
|
+
}
|
|
4202
|
+
},
|
|
4203
|
+
{
|
|
4204
|
+
"kind": "field",
|
|
4205
|
+
"name": "closestApp",
|
|
4206
|
+
"type": {
|
|
4207
|
+
"text": "AppElement | null"
|
|
4208
|
+
},
|
|
4209
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
4210
|
+
"return": {
|
|
4211
|
+
"type": {
|
|
4212
|
+
"text": ""
|
|
4213
|
+
}
|
|
4214
|
+
},
|
|
4215
|
+
"readonly": true,
|
|
4216
|
+
"inheritedFrom": {
|
|
4217
|
+
"name": "AsyncElement",
|
|
4218
|
+
"module": "src/async-element.ts"
|
|
4219
|
+
}
|
|
4220
|
+
},
|
|
4221
|
+
{
|
|
4222
|
+
"kind": "field",
|
|
4223
|
+
"name": "closestEntity",
|
|
4224
|
+
"type": {
|
|
4225
|
+
"text": "EntityBaseElement | null"
|
|
4226
|
+
},
|
|
4227
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
4228
|
+
"return": {
|
|
4229
|
+
"type": {
|
|
4230
|
+
"text": ""
|
|
4231
|
+
}
|
|
4232
|
+
},
|
|
4233
|
+
"readonly": true,
|
|
4234
|
+
"inheritedFrom": {
|
|
4235
|
+
"name": "AsyncElement",
|
|
4236
|
+
"module": "src/async-element.ts"
|
|
4237
|
+
}
|
|
4238
|
+
},
|
|
4239
|
+
{
|
|
4240
|
+
"kind": "field",
|
|
4241
|
+
"name": "enabled",
|
|
4242
|
+
"description": "Gets the enabled override.",
|
|
4243
|
+
"parameters": [
|
|
4244
|
+
{
|
|
4245
|
+
"description": "The enabled state, or `null`.",
|
|
4246
|
+
"name": "value"
|
|
4247
|
+
}
|
|
4248
|
+
],
|
|
4249
|
+
"type": {
|
|
4250
|
+
"text": "boolean | null"
|
|
4251
|
+
},
|
|
4252
|
+
"return": {
|
|
4253
|
+
"type": {
|
|
4254
|
+
"text": ""
|
|
4255
|
+
}
|
|
4256
|
+
}
|
|
4257
|
+
},
|
|
4258
|
+
{
|
|
4259
|
+
"kind": "field",
|
|
4260
|
+
"name": "entity",
|
|
4261
|
+
"type": {
|
|
4262
|
+
"text": "Entity | null"
|
|
4263
|
+
},
|
|
4264
|
+
"description": "The PlayCanvas entity instance. `null` until the element is ready, and again once the\nentity is gone — await whenReady or the element's `ready()` promise before\naccessing it.",
|
|
4265
|
+
"return": {
|
|
4266
|
+
"type": {
|
|
4267
|
+
"text": ""
|
|
4268
|
+
}
|
|
4269
|
+
},
|
|
4270
|
+
"readonly": true,
|
|
4271
|
+
"inheritedFrom": {
|
|
4272
|
+
"name": "EntityBaseElement",
|
|
4273
|
+
"module": "src/entity-base.ts"
|
|
4274
|
+
}
|
|
4275
|
+
},
|
|
4276
|
+
{
|
|
4277
|
+
"kind": "field",
|
|
4278
|
+
"name": "index",
|
|
4279
|
+
"description": "Gets which match to bind.",
|
|
4280
|
+
"parameters": [
|
|
4281
|
+
{
|
|
4282
|
+
"description": "The match index, or `null`.",
|
|
4283
|
+
"name": "value"
|
|
4284
|
+
}
|
|
4285
|
+
],
|
|
4286
|
+
"type": {
|
|
4287
|
+
"text": "number | null"
|
|
4288
|
+
},
|
|
4289
|
+
"return": {
|
|
4290
|
+
"type": {
|
|
4291
|
+
"text": ""
|
|
4292
|
+
}
|
|
4293
|
+
}
|
|
4294
|
+
},
|
|
4295
|
+
{
|
|
4296
|
+
"kind": "field",
|
|
4297
|
+
"name": "name",
|
|
4298
|
+
"description": "Gets the name of the node to bind.",
|
|
4299
|
+
"parameters": [
|
|
4300
|
+
{
|
|
4301
|
+
"description": "The node name.",
|
|
4302
|
+
"name": "value"
|
|
4303
|
+
}
|
|
4304
|
+
],
|
|
4305
|
+
"type": {
|
|
4306
|
+
"text": "string"
|
|
4307
|
+
},
|
|
4308
|
+
"return": {
|
|
4309
|
+
"type": {
|
|
4310
|
+
"text": ""
|
|
4311
|
+
}
|
|
4312
|
+
}
|
|
4313
|
+
},
|
|
4314
|
+
{
|
|
4315
|
+
"kind": "field",
|
|
4316
|
+
"name": "path",
|
|
4317
|
+
"type": {
|
|
4318
|
+
"text": "string | null"
|
|
4319
|
+
},
|
|
4320
|
+
"description": "The path of the bound node below the search root, `/`-separated, or `null` while not\nbound.",
|
|
4321
|
+
"return": {
|
|
4322
|
+
"type": {
|
|
4323
|
+
"text": ""
|
|
4324
|
+
}
|
|
4325
|
+
},
|
|
4326
|
+
"readonly": true
|
|
4327
|
+
},
|
|
4328
|
+
{
|
|
4329
|
+
"kind": "field",
|
|
4330
|
+
"name": "position",
|
|
4331
|
+
"description": "Gets the local position override.",
|
|
4332
|
+
"parameters": [
|
|
4333
|
+
{
|
|
4334
|
+
"description": "The position, or `null`.",
|
|
4335
|
+
"name": "value"
|
|
4336
|
+
}
|
|
4337
|
+
],
|
|
4338
|
+
"type": {
|
|
4339
|
+
"text": "Vec3 | null"
|
|
4340
|
+
},
|
|
4341
|
+
"return": {
|
|
4342
|
+
"type": {
|
|
4343
|
+
"text": ""
|
|
4344
|
+
}
|
|
4345
|
+
}
|
|
4346
|
+
},
|
|
4347
|
+
{
|
|
4348
|
+
"kind": "method",
|
|
4349
|
+
"name": "ready",
|
|
4350
|
+
"return": {
|
|
4351
|
+
"type": {
|
|
4352
|
+
"text": ""
|
|
4353
|
+
}
|
|
4354
|
+
},
|
|
4355
|
+
"description": "Returns a promise that resolves with this element when it's ready. This is the low-level\nprimitive underlying whenReady, which is the recommended way to wait for elements.\n\nReadiness tracks the element's current lifecycle: once a ready element is torn down (for\nexample by removing it from the document), this returns a fresh promise that resolves when\nthe element is next ready. A promise obtained earlier stays resolved — call this again\nafter re-inserting an element rather than reusing a promise from before its removal.",
|
|
4356
|
+
"inheritedFrom": {
|
|
4357
|
+
"name": "AsyncElement",
|
|
4358
|
+
"module": "src/async-element.ts"
|
|
4359
|
+
}
|
|
4360
|
+
},
|
|
4361
|
+
{
|
|
4362
|
+
"kind": "method",
|
|
4363
|
+
"name": "removeEventListener",
|
|
4364
|
+
"parameters": [
|
|
4365
|
+
{
|
|
4366
|
+
"name": "type",
|
|
4367
|
+
"type": {
|
|
4368
|
+
"text": "string"
|
|
4369
|
+
}
|
|
4370
|
+
},
|
|
4371
|
+
{
|
|
4372
|
+
"name": "listener",
|
|
4373
|
+
"type": {
|
|
4374
|
+
"text": "EventListener"
|
|
4375
|
+
}
|
|
4376
|
+
},
|
|
4377
|
+
{
|
|
4378
|
+
"name": "options",
|
|
4379
|
+
"optional": true,
|
|
4380
|
+
"type": {
|
|
4381
|
+
"text": "boolean | EventListenerOptions"
|
|
4382
|
+
}
|
|
4383
|
+
}
|
|
4384
|
+
],
|
|
4385
|
+
"inheritedFrom": {
|
|
4386
|
+
"name": "EntityBaseElement",
|
|
4387
|
+
"module": "src/entity-base.ts"
|
|
4388
|
+
}
|
|
4389
|
+
},
|
|
4390
|
+
{
|
|
4391
|
+
"kind": "field",
|
|
4392
|
+
"name": "rotation",
|
|
4393
|
+
"description": "Gets the local rotation override.",
|
|
4394
|
+
"parameters": [
|
|
4395
|
+
{
|
|
4396
|
+
"description": "The rotation, or `null`.",
|
|
4397
|
+
"name": "value"
|
|
4398
|
+
}
|
|
4399
|
+
],
|
|
4400
|
+
"type": {
|
|
4401
|
+
"text": "Vec3 | null"
|
|
4402
|
+
},
|
|
4403
|
+
"return": {
|
|
4404
|
+
"type": {
|
|
4405
|
+
"text": ""
|
|
4406
|
+
}
|
|
4407
|
+
}
|
|
4408
|
+
},
|
|
4409
|
+
{
|
|
4410
|
+
"kind": "field",
|
|
4411
|
+
"name": "scale",
|
|
4412
|
+
"description": "Gets the local scale override.",
|
|
4413
|
+
"parameters": [
|
|
4414
|
+
{
|
|
4415
|
+
"description": "The scale, or `null`.",
|
|
4416
|
+
"name": "value"
|
|
4417
|
+
}
|
|
4418
|
+
],
|
|
4419
|
+
"type": {
|
|
4420
|
+
"text": "Vec3 | null"
|
|
4421
|
+
},
|
|
4422
|
+
"return": {
|
|
4423
|
+
"type": {
|
|
4424
|
+
"text": ""
|
|
4425
|
+
}
|
|
4426
|
+
}
|
|
4427
|
+
},
|
|
4428
|
+
{
|
|
4429
|
+
"kind": "field",
|
|
4430
|
+
"name": "state",
|
|
4431
|
+
"type": {
|
|
4432
|
+
"text": "NodeBindingState"
|
|
4433
|
+
},
|
|
4434
|
+
"description": "The binding state: `pending` until the host instantiates and `name` resolves, `bound`\nonce decorated, `missing`/`ambiguous`/`duplicate` when resolution failed (each also\nwarns). Useful for asserting a document's bindings programmatically.",
|
|
4435
|
+
"return": {
|
|
4436
|
+
"type": {
|
|
4437
|
+
"text": ""
|
|
4438
|
+
}
|
|
4439
|
+
},
|
|
4440
|
+
"readonly": true
|
|
4441
|
+
},
|
|
4442
|
+
{
|
|
4443
|
+
"kind": "field",
|
|
4444
|
+
"name": "tags",
|
|
4445
|
+
"description": "Gets the tags override.",
|
|
4446
|
+
"parameters": [
|
|
4447
|
+
{
|
|
4448
|
+
"description": "The tags, or `null`.",
|
|
4449
|
+
"name": "value"
|
|
4450
|
+
}
|
|
4451
|
+
],
|
|
4452
|
+
"type": {
|
|
4453
|
+
"text": "string[] | null"
|
|
4454
|
+
},
|
|
4455
|
+
"return": {
|
|
4456
|
+
"type": {
|
|
4457
|
+
"text": ""
|
|
4458
|
+
}
|
|
4459
|
+
}
|
|
4460
|
+
}
|
|
4461
|
+
],
|
|
4462
|
+
"events": [
|
|
4463
|
+
{
|
|
4464
|
+
"type": {
|
|
4465
|
+
"text": "PointerEvent"
|
|
4466
|
+
},
|
|
4467
|
+
"description": "Fired when a pointer button is pressed over the node.",
|
|
4468
|
+
"name": "pointerdown"
|
|
4469
|
+
},
|
|
4470
|
+
{
|
|
4471
|
+
"type": {
|
|
4472
|
+
"text": "PointerEvent"
|
|
4473
|
+
},
|
|
4474
|
+
"description": "Fired when the pointer moves onto the node.",
|
|
4475
|
+
"name": "pointerenter"
|
|
4476
|
+
},
|
|
4477
|
+
{
|
|
4478
|
+
"type": {
|
|
4479
|
+
"text": "PointerEvent"
|
|
4480
|
+
},
|
|
4481
|
+
"description": "Fired when the pointer moves off the node.",
|
|
4482
|
+
"name": "pointerleave"
|
|
4483
|
+
},
|
|
4484
|
+
{
|
|
4485
|
+
"type": {
|
|
4486
|
+
"text": "PointerEvent"
|
|
4487
|
+
},
|
|
4488
|
+
"description": "Fired when the pointer moves over the node.",
|
|
4489
|
+
"name": "pointermove"
|
|
4490
|
+
},
|
|
4491
|
+
{
|
|
4492
|
+
"type": {
|
|
4493
|
+
"text": "PointerEvent"
|
|
4494
|
+
},
|
|
4495
|
+
"description": "Fired when a pointer button is released over the node.",
|
|
4496
|
+
"name": "pointerup"
|
|
4497
|
+
},
|
|
4498
|
+
{
|
|
4499
|
+
"name": "ready",
|
|
4500
|
+
"type": {
|
|
4501
|
+
"text": "CustomEvent"
|
|
4502
|
+
},
|
|
4503
|
+
"description": "Fired when the element is fully initialized — once per readiness cycle, so an element that is torn down and re-initialized (for example by removing and re-inserting it) fires it again. Bubbles and is composed.",
|
|
4504
|
+
"inheritedFrom": {
|
|
4505
|
+
"name": "AsyncElement",
|
|
4506
|
+
"module": "src/async-element.ts"
|
|
4507
|
+
}
|
|
4508
|
+
}
|
|
4509
|
+
],
|
|
4510
|
+
"attributes": [
|
|
4511
|
+
{
|
|
4512
|
+
"name": "enabled",
|
|
4513
|
+
"type": {
|
|
4514
|
+
"text": "string"
|
|
4515
|
+
},
|
|
4516
|
+
"description": "Overrides the node's enabled state.",
|
|
4517
|
+
"fieldName": "enabled"
|
|
4518
|
+
},
|
|
4519
|
+
{
|
|
4520
|
+
"name": "index",
|
|
4521
|
+
"type": {
|
|
4522
|
+
"text": "string"
|
|
4523
|
+
},
|
|
4524
|
+
"description": "Which match to bind when `name` matches more than one node, 0-based in depth-first order. Optional for a unique match; required for an ambiguous one.",
|
|
4525
|
+
"fieldName": "index"
|
|
4526
|
+
},
|
|
4527
|
+
{
|
|
4528
|
+
"name": "name",
|
|
4529
|
+
"type": {
|
|
4530
|
+
"text": "string"
|
|
4531
|
+
},
|
|
4532
|
+
"description": "The name of the node to bind, resolved within the nearest ancestor `pc-model` (or `pc-node`) once it has instantiated.",
|
|
4533
|
+
"fieldName": "name"
|
|
4534
|
+
},
|
|
4535
|
+
{
|
|
4536
|
+
"type": {
|
|
4537
|
+
"text": "string"
|
|
4538
|
+
},
|
|
4539
|
+
"description": "Script to run when a pointer button is pressed over the node.",
|
|
4540
|
+
"name": "onpointerdown",
|
|
4541
|
+
"fieldName": "onpointerdown"
|
|
4542
|
+
},
|
|
4543
|
+
{
|
|
4544
|
+
"type": {
|
|
4545
|
+
"text": "string"
|
|
4546
|
+
},
|
|
4547
|
+
"description": "Script to run when the pointer moves onto the node.",
|
|
4548
|
+
"name": "onpointerenter",
|
|
4549
|
+
"fieldName": "onpointerenter"
|
|
4550
|
+
},
|
|
4551
|
+
{
|
|
4552
|
+
"type": {
|
|
4553
|
+
"text": "string"
|
|
4554
|
+
},
|
|
4555
|
+
"description": "Script to run when the pointer moves off the node.",
|
|
4556
|
+
"name": "onpointerleave",
|
|
4557
|
+
"fieldName": "onpointerleave"
|
|
4558
|
+
},
|
|
4559
|
+
{
|
|
4560
|
+
"type": {
|
|
4561
|
+
"text": "string"
|
|
4562
|
+
},
|
|
4563
|
+
"description": "Script to run when the pointer moves over the node.",
|
|
4564
|
+
"name": "onpointermove",
|
|
4565
|
+
"fieldName": "onpointermove"
|
|
4566
|
+
},
|
|
4567
|
+
{
|
|
4568
|
+
"type": {
|
|
4569
|
+
"text": "string"
|
|
4570
|
+
},
|
|
4571
|
+
"description": "Script to run when a pointer button is released over the node.",
|
|
4572
|
+
"name": "onpointerup",
|
|
4573
|
+
"fieldName": "onpointerup"
|
|
4574
|
+
},
|
|
4575
|
+
{
|
|
4576
|
+
"name": "position",
|
|
4577
|
+
"type": {
|
|
4578
|
+
"text": "string"
|
|
4579
|
+
},
|
|
4580
|
+
"description": "Overrides the node's local position, as an \"x y z\" triple.",
|
|
4581
|
+
"fieldName": "position"
|
|
4582
|
+
},
|
|
4583
|
+
{
|
|
4584
|
+
"name": "rotation",
|
|
4585
|
+
"type": {
|
|
4586
|
+
"text": "string"
|
|
4587
|
+
},
|
|
4588
|
+
"description": "Overrides the node's local rotation (Euler angles), as an \"x y z\" triple.",
|
|
4589
|
+
"fieldName": "rotation"
|
|
4590
|
+
},
|
|
4591
|
+
{
|
|
4592
|
+
"name": "scale",
|
|
4593
|
+
"type": {
|
|
4594
|
+
"text": "string"
|
|
4595
|
+
},
|
|
4596
|
+
"description": "Overrides the node's local scale, as an \"x y z\" triple.",
|
|
4597
|
+
"fieldName": "scale"
|
|
4598
|
+
},
|
|
4599
|
+
{
|
|
4600
|
+
"name": "tags",
|
|
4601
|
+
"type": {
|
|
4602
|
+
"text": "string"
|
|
4603
|
+
},
|
|
4604
|
+
"description": "Overrides the node's tags, separated by spaces or commas.",
|
|
4605
|
+
"fieldName": "tags"
|
|
4606
|
+
}
|
|
4607
|
+
],
|
|
4608
|
+
"superclass": {
|
|
4609
|
+
"name": "EntityBaseElement",
|
|
4610
|
+
"module": "/src/entity-base"
|
|
4611
|
+
},
|
|
4612
|
+
"tagName": "pc-node",
|
|
4613
|
+
"customElement": true
|
|
4614
|
+
}
|
|
4615
|
+
],
|
|
4616
|
+
"exports": [
|
|
4617
|
+
{
|
|
4618
|
+
"kind": "custom-element-definition",
|
|
4619
|
+
"name": "pc-node",
|
|
4620
|
+
"declaration": {
|
|
4621
|
+
"name": "NodeElement",
|
|
4622
|
+
"module": "src/node.ts"
|
|
4623
|
+
}
|
|
4624
|
+
},
|
|
4625
|
+
{
|
|
4626
|
+
"kind": "js",
|
|
4627
|
+
"name": "NodeElement",
|
|
4628
|
+
"declaration": {
|
|
4629
|
+
"name": "NodeElement",
|
|
4630
|
+
"module": "src/node.ts"
|
|
4631
|
+
}
|
|
4632
|
+
}
|
|
4633
|
+
]
|
|
4634
|
+
},
|
|
3745
4635
|
{
|
|
3746
4636
|
"kind": "javascript-module",
|
|
3747
4637
|
"path": "src/scene.ts",
|
|
@@ -3773,9 +4663,9 @@
|
|
|
3773
4663
|
"kind": "field",
|
|
3774
4664
|
"name": "closestEntity",
|
|
3775
4665
|
"type": {
|
|
3776
|
-
"text": "
|
|
4666
|
+
"text": "EntityBaseElement | null"
|
|
3777
4667
|
},
|
|
3778
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
4668
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
3779
4669
|
"return": {
|
|
3780
4670
|
"type": {
|
|
3781
4671
|
"text": ""
|
|
@@ -4071,9 +4961,9 @@
|
|
|
4071
4961
|
"kind": "field",
|
|
4072
4962
|
"name": "closestEntity",
|
|
4073
4963
|
"type": {
|
|
4074
|
-
"text": "
|
|
4964
|
+
"text": "EntityBaseElement | null"
|
|
4075
4965
|
},
|
|
4076
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
4966
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
4077
4967
|
"return": {
|
|
4078
4968
|
"type": {
|
|
4079
4969
|
"text": ""
|
|
@@ -4356,9 +5246,9 @@
|
|
|
4356
5246
|
"kind": "field",
|
|
4357
5247
|
"name": "closestEntity",
|
|
4358
5248
|
"type": {
|
|
4359
|
-
"text": "
|
|
5249
|
+
"text": "EntityBaseElement | null"
|
|
4360
5250
|
},
|
|
4361
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
5251
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
4362
5252
|
"return": {
|
|
4363
5253
|
"type": {
|
|
4364
5254
|
"text": ""
|
|
@@ -4915,9 +5805,9 @@
|
|
|
4915
5805
|
"kind": "field",
|
|
4916
5806
|
"name": "closestEntity",
|
|
4917
5807
|
"type": {
|
|
4918
|
-
"text": "
|
|
5808
|
+
"text": "EntityBaseElement | null"
|
|
4919
5809
|
},
|
|
4920
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
5810
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
4921
5811
|
"return": {
|
|
4922
5812
|
"type": {
|
|
4923
5813
|
"text": ""
|
|
@@ -5496,7 +6386,7 @@
|
|
|
5496
6386
|
"declarations": [
|
|
5497
6387
|
{
|
|
5498
6388
|
"kind": "class",
|
|
5499
|
-
"description": "The CollisionComponentElement interface provides properties and methods for manipulating\n[`<pc-collision>`](https://developer.playcanvas.com/user-manual/web-components/tags/pc-collision/) elements.\nThe CollisionComponentElement interface also inherits the properties and methods of the\nHTMLElement interface.\n",
|
|
6389
|
+
"description": "The CollisionComponentElement interface provides properties and methods for manipulating\n[`<pc-collision>`](https://developer.playcanvas.com/user-manual/web-components/tags/pc-collision/) elements.\nThe CollisionComponentElement interface also inherits the properties and methods of the\nHTMLElement interface.\n\nFor `type=\"mesh\"`, the collision geometry defaults to the host entity's own render component\n(its render asset) — a collider matching the visible mesh, which is what a mesh collider on a\nglTF node means. The default resolves each time the component applies, so a `pc-node` that\nretargets or rebinds picks up the new node's geometry. An entity with no asset-backed render\ncomponent warns, and the collider has no shape.\n",
|
|
5500
6390
|
"name": "CollisionComponentElement",
|
|
5501
6391
|
"members": [
|
|
5502
6392
|
{
|
|
@@ -5529,9 +6419,9 @@
|
|
|
5529
6419
|
"kind": "field",
|
|
5530
6420
|
"name": "closestEntity",
|
|
5531
6421
|
"type": {
|
|
5532
|
-
"text": "
|
|
6422
|
+
"text": "EntityBaseElement | null"
|
|
5533
6423
|
},
|
|
5534
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
6424
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
5535
6425
|
"return": {
|
|
5536
6426
|
"type": {
|
|
5537
6427
|
"text": ""
|
|
@@ -5773,9 +6663,9 @@
|
|
|
5773
6663
|
"kind": "field",
|
|
5774
6664
|
"name": "closestEntity",
|
|
5775
6665
|
"type": {
|
|
5776
|
-
"text": "
|
|
6666
|
+
"text": "EntityBaseElement | null"
|
|
5777
6667
|
},
|
|
5778
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
6668
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
5779
6669
|
"return": {
|
|
5780
6670
|
"type": {
|
|
5781
6671
|
"text": ""
|
|
@@ -5984,9 +6874,9 @@
|
|
|
5984
6874
|
"kind": "field",
|
|
5985
6875
|
"name": "closestEntity",
|
|
5986
6876
|
"type": {
|
|
5987
|
-
"text": "
|
|
6877
|
+
"text": "EntityBaseElement | null"
|
|
5988
6878
|
},
|
|
5989
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
6879
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
5990
6880
|
"return": {
|
|
5991
6881
|
"type": {
|
|
5992
6882
|
"text": ""
|
|
@@ -6736,9 +7626,9 @@
|
|
|
6736
7626
|
"kind": "field",
|
|
6737
7627
|
"name": "closestEntity",
|
|
6738
7628
|
"type": {
|
|
6739
|
-
"text": "
|
|
7629
|
+
"text": "EntityBaseElement | null"
|
|
6740
7630
|
},
|
|
6741
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
7631
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
6742
7632
|
"return": {
|
|
6743
7633
|
"type": {
|
|
6744
7634
|
"text": ""
|
|
@@ -7006,9 +7896,9 @@
|
|
|
7006
7896
|
"kind": "field",
|
|
7007
7897
|
"name": "closestEntity",
|
|
7008
7898
|
"type": {
|
|
7009
|
-
"text": "
|
|
7899
|
+
"text": "EntityBaseElement | null"
|
|
7010
7900
|
},
|
|
7011
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
7901
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
7012
7902
|
"return": {
|
|
7013
7903
|
"type": {
|
|
7014
7904
|
"text": ""
|
|
@@ -7348,9 +8238,9 @@
|
|
|
7348
8238
|
"kind": "field",
|
|
7349
8239
|
"name": "closestEntity",
|
|
7350
8240
|
"type": {
|
|
7351
|
-
"text": "
|
|
8241
|
+
"text": "EntityBaseElement | null"
|
|
7352
8242
|
},
|
|
7353
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
8243
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
7354
8244
|
"return": {
|
|
7355
8245
|
"type": {
|
|
7356
8246
|
"text": ""
|
|
@@ -7726,9 +8616,9 @@
|
|
|
7726
8616
|
"kind": "field",
|
|
7727
8617
|
"name": "closestEntity",
|
|
7728
8618
|
"type": {
|
|
7729
|
-
"text": "
|
|
8619
|
+
"text": "EntityBaseElement | null"
|
|
7730
8620
|
},
|
|
7731
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
8621
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
7732
8622
|
"return": {
|
|
7733
8623
|
"type": {
|
|
7734
8624
|
"text": ""
|
|
@@ -8338,9 +9228,9 @@
|
|
|
8338
9228
|
"kind": "field",
|
|
8339
9229
|
"name": "closestEntity",
|
|
8340
9230
|
"type": {
|
|
8341
|
-
"text": "
|
|
9231
|
+
"text": "EntityBaseElement | null"
|
|
8342
9232
|
},
|
|
8343
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
9233
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
8344
9234
|
"return": {
|
|
8345
9235
|
"type": {
|
|
8346
9236
|
"text": ""
|
|
@@ -8510,9 +9400,9 @@
|
|
|
8510
9400
|
"kind": "field",
|
|
8511
9401
|
"name": "closestEntity",
|
|
8512
9402
|
"type": {
|
|
8513
|
-
"text": "
|
|
9403
|
+
"text": "EntityBaseElement | null"
|
|
8514
9404
|
},
|
|
8515
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
9405
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
8516
9406
|
"return": {
|
|
8517
9407
|
"type": {
|
|
8518
9408
|
"text": ""
|
|
@@ -8710,9 +9600,9 @@
|
|
|
8710
9600
|
"kind": "field",
|
|
8711
9601
|
"name": "closestEntity",
|
|
8712
9602
|
"type": {
|
|
8713
|
-
"text": "
|
|
9603
|
+
"text": "EntityBaseElement | null"
|
|
8714
9604
|
},
|
|
8715
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
9605
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
8716
9606
|
"return": {
|
|
8717
9607
|
"type": {
|
|
8718
9608
|
"text": ""
|
|
@@ -8960,9 +9850,9 @@
|
|
|
8960
9850
|
"kind": "field",
|
|
8961
9851
|
"name": "closestEntity",
|
|
8962
9852
|
"type": {
|
|
8963
|
-
"text": "
|
|
9853
|
+
"text": "EntityBaseElement | null"
|
|
8964
9854
|
},
|
|
8965
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
9855
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
8966
9856
|
"return": {
|
|
8967
9857
|
"type": {
|
|
8968
9858
|
"text": ""
|
|
@@ -9215,9 +10105,9 @@
|
|
|
9215
10105
|
"kind": "field",
|
|
9216
10106
|
"name": "closestEntity",
|
|
9217
10107
|
"type": {
|
|
9218
|
-
"text": "
|
|
10108
|
+
"text": "EntityBaseElement | null"
|
|
9219
10109
|
},
|
|
9220
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
10110
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
9221
10111
|
"return": {
|
|
9222
10112
|
"type": {
|
|
9223
10113
|
"text": ""
|
|
@@ -9468,9 +10358,9 @@
|
|
|
9468
10358
|
"kind": "field",
|
|
9469
10359
|
"name": "closestEntity",
|
|
9470
10360
|
"type": {
|
|
9471
|
-
"text": "
|
|
10361
|
+
"text": "EntityBaseElement | null"
|
|
9472
10362
|
},
|
|
9473
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
10363
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
9474
10364
|
"return": {
|
|
9475
10365
|
"type": {
|
|
9476
10366
|
"text": ""
|
|
@@ -9621,9 +10511,9 @@
|
|
|
9621
10511
|
"kind": "field",
|
|
9622
10512
|
"name": "closestEntity",
|
|
9623
10513
|
"type": {
|
|
9624
|
-
"text": "
|
|
10514
|
+
"text": "EntityBaseElement | null"
|
|
9625
10515
|
},
|
|
9626
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
10516
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
9627
10517
|
"return": {
|
|
9628
10518
|
"type": {
|
|
9629
10519
|
"text": ""
|
|
@@ -9834,9 +10724,9 @@
|
|
|
9834
10724
|
"kind": "field",
|
|
9835
10725
|
"name": "closestEntity",
|
|
9836
10726
|
"type": {
|
|
9837
|
-
"text": "
|
|
10727
|
+
"text": "EntityBaseElement | null"
|
|
9838
10728
|
},
|
|
9839
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
10729
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
9840
10730
|
"return": {
|
|
9841
10731
|
"type": {
|
|
9842
10732
|
"text": ""
|
|
@@ -10102,9 +10992,9 @@
|
|
|
10102
10992
|
"kind": "field",
|
|
10103
10993
|
"name": "closestEntity",
|
|
10104
10994
|
"type": {
|
|
10105
|
-
"text": "
|
|
10995
|
+
"text": "EntityBaseElement | null"
|
|
10106
10996
|
},
|
|
10107
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
10997
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
10108
10998
|
"return": {
|
|
10109
10999
|
"type": {
|
|
10110
11000
|
"text": ""
|
|
@@ -10560,9 +11450,9 @@
|
|
|
10560
11450
|
"kind": "field",
|
|
10561
11451
|
"name": "closestEntity",
|
|
10562
11452
|
"type": {
|
|
10563
|
-
"text": "
|
|
11453
|
+
"text": "EntityBaseElement | null"
|
|
10564
11454
|
},
|
|
10565
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
11455
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
10566
11456
|
"return": {
|
|
10567
11457
|
"type": {
|
|
10568
11458
|
"text": ""
|
|
@@ -10923,9 +11813,9 @@
|
|
|
10923
11813
|
"kind": "field",
|
|
10924
11814
|
"name": "closestEntity",
|
|
10925
11815
|
"type": {
|
|
10926
|
-
"text": "
|
|
11816
|
+
"text": "EntityBaseElement | null"
|
|
10927
11817
|
},
|
|
10928
|
-
"description": "The nearest ancestor `<pc-entity>`
|
|
11818
|
+
"description": "The nearest ancestor element that fronts an entity — `<pc-entity>` or `<pc-node>` — or\n`null` if this element has no such ancestor. The search starts at the parent, so an element\nnever resolves to itself.",
|
|
10929
11819
|
"return": {
|
|
10930
11820
|
"type": {
|
|
10931
11821
|
"text": ""
|