@playcanvas/web-components 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -75,6 +75,24 @@
75
75
  "privacy": "private",
76
76
  "default": "true"
77
77
  },
78
+ {
79
+ "kind": "field",
80
+ "name": "_loadingBar",
81
+ "type": {
82
+ "text": "boolean"
83
+ },
84
+ "privacy": "private",
85
+ "default": "true"
86
+ },
87
+ {
88
+ "kind": "field",
89
+ "name": "_bar",
90
+ "type": {
91
+ "text": "LoadingBar | null"
92
+ },
93
+ "privacy": "private",
94
+ "default": "null"
95
+ },
78
96
  {
79
97
  "kind": "field",
80
98
  "name": "_hierarchyReady",
@@ -111,6 +129,15 @@
111
129
  "privacy": "private",
112
130
  "default": "null"
113
131
  },
132
+ {
133
+ "kind": "field",
134
+ "name": "_pickToken",
135
+ "type": {
136
+ "text": "number"
137
+ },
138
+ "privacy": "private",
139
+ "default": "0"
140
+ },
114
141
  {
115
142
  "kind": "field",
116
143
  "name": "_pointerHandlers",
@@ -129,13 +156,36 @@
129
156
  "privacy": "private",
130
157
  "default": "null"
131
158
  },
159
+ {
160
+ "kind": "field",
161
+ "name": "_loadProgress",
162
+ "type": {
163
+ "text": "number"
164
+ },
165
+ "privacy": "private",
166
+ "default": "0"
167
+ },
132
168
  {
133
169
  "kind": "field",
134
170
  "name": "app",
135
171
  "type": {
136
- "text": "AppBase"
172
+ "text": "AppBase | null"
137
173
  },
138
- "description": "The PlayCanvas application instance. Available once the element is ready — await\nwhenReady or the element's `ready()` promise before accessing it.",
174
+ "description": "The PlayCanvas application instance. `null` until the element is ready, and again once it\nhas been removed from the document — await whenReady or the element's `ready()`\npromise before accessing it.",
175
+ "return": {
176
+ "type": {
177
+ "text": ""
178
+ }
179
+ },
180
+ "readonly": true
181
+ },
182
+ {
183
+ "kind": "field",
184
+ "name": "loadProgress",
185
+ "type": {
186
+ "text": "number"
187
+ },
188
+ "description": "The asset preload progress of the application, as a fraction from 0 to 1. It is 0 until\npreloading begins (and again once the element has been removed from the document), and 1\nonce preloading has finished — including when there was nothing to preload. Read this to\ninitialize a loading UI; subsequent updates arrive via the `progress` event.",
139
189
  "return": {
140
190
  "type": {
141
191
  "text": ""
@@ -173,6 +223,26 @@
173
223
  }
174
224
  ]
175
225
  },
226
+ {
227
+ "kind": "method",
228
+ "name": "_pickNode",
229
+ "privacy": "private",
230
+ "return": {
231
+ "type": {
232
+ "text": ""
233
+ }
234
+ },
235
+ "parameters": [
236
+ {
237
+ "name": "event",
238
+ "type": {
239
+ "text": "PointerEvent"
240
+ },
241
+ "description": "The pointer event to pick under."
242
+ }
243
+ ],
244
+ "description": "Picks the scene under the pointer and returns the graph node that was hit, or `null`.\n\nThe read back is asynchronous because the synchronous Picker.getSelection is not\nsupported on WebGPU, where it returns an empty selection rather than failing - which\nsilently disabled every `onpointer*` handler once WebGPU became the resolved backend. The\nasync variant works on both backends and does not block the main thread on a GPU read."
245
+ },
176
246
  {
177
247
  "kind": "method",
178
248
  "name": "_onPointerMove",
@@ -313,6 +383,22 @@
313
383
  }
314
384
  }
315
385
  },
386
+ {
387
+ "kind": "field",
388
+ "name": "loadingBar",
389
+ "description": "Gets whether the application shows its built-in loading bar while it boots and preloads\nits assets.",
390
+ "parameters": [
391
+ {
392
+ "description": "The loading bar flag.",
393
+ "name": "value"
394
+ }
395
+ ],
396
+ "return": {
397
+ "type": {
398
+ "text": ""
399
+ }
400
+ }
401
+ },
316
402
  {
317
403
  "kind": "field",
318
404
  "name": "stencil",
@@ -358,7 +444,13 @@
358
444
  "kind": "field",
359
445
  "name": "closestApp",
360
446
  "type": {
361
- "text": "AppElement"
447
+ "text": "AppElement | null"
448
+ },
449
+ "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.",
450
+ "return": {
451
+ "type": {
452
+ "text": ""
453
+ }
362
454
  },
363
455
  "readonly": true,
364
456
  "inheritedFrom": {
@@ -370,7 +462,13 @@
370
462
  "kind": "field",
371
463
  "name": "closestEntity",
372
464
  "type": {
373
- "text": "EntityElement"
465
+ "text": "EntityElement | null"
466
+ },
467
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
468
+ "return": {
469
+ "type": {
470
+ "text": ""
471
+ }
374
472
  },
375
473
  "readonly": true,
376
474
  "inheritedFrom": {
@@ -403,6 +501,26 @@
403
501
  }
404
502
  }
405
503
  ],
504
+ "events": [
505
+ {
506
+ "name": "progress",
507
+ "type": {
508
+ "text": "ProgressEvent"
509
+ },
510
+ "description": "Fired while the application preloads its assets. `loaded` and `total` are asset counts, not bytes, and an asset that fails to load still counts as loaded. Fired at least once per boot, and the final event always has `loaded` equal to `total`. Does not bubble."
511
+ },
512
+ {
513
+ "name": "ready",
514
+ "type": {
515
+ "text": "CustomEvent"
516
+ },
517
+ "description": "Fired once the element is fully initialized. Bubbles and is composed.",
518
+ "inheritedFrom": {
519
+ "name": "AsyncElement",
520
+ "module": "src/async-element.ts"
521
+ }
522
+ }
523
+ ],
406
524
  "attributes": [
407
525
  {
408
526
  "name": "alpha",
@@ -449,6 +567,15 @@
449
567
  "default": "true",
450
568
  "description": "The high resolution flag."
451
569
  },
570
+ {
571
+ "name": "loading-bar",
572
+ "type": {
573
+ "text": "boolean"
574
+ },
575
+ "fieldName": "loadingBar",
576
+ "default": "true",
577
+ "description": "Whether the application shows its built-in loading bar while it boots and preloads its assets."
578
+ },
452
579
  {
453
580
  "name": "stencil",
454
581
  "type": {
@@ -464,20 +591,7 @@
464
591
  "module": "/src/async-element"
465
592
  },
466
593
  "tagName": "pc-app",
467
- "customElement": true,
468
- "events": [
469
- {
470
- "name": "ready",
471
- "type": {
472
- "text": "CustomEvent"
473
- },
474
- "description": "Fired once the element is fully initialized. Bubbles and is composed.",
475
- "inheritedFrom": {
476
- "name": "AsyncElement",
477
- "module": "src/async-element.ts"
478
- }
479
- }
480
- ]
594
+ "customElement": true
481
595
  }
482
596
  ],
483
597
  "exports": [
@@ -526,6 +640,24 @@
526
640
  "default": "null",
527
641
  "description": "The asset that is loaded. Available once the element is ready — await\nwhenReady or the element's `ready()` promise before accessing it."
528
642
  },
643
+ {
644
+ "kind": "method",
645
+ "name": "_onAssetLoad",
646
+ "privacy": "private"
647
+ },
648
+ {
649
+ "kind": "method",
650
+ "name": "_onAssetError",
651
+ "privacy": "private",
652
+ "parameters": [
653
+ {
654
+ "name": "err",
655
+ "type": {
656
+ "text": "string | Error"
657
+ }
658
+ }
659
+ ]
660
+ },
529
661
  {
530
662
  "kind": "method",
531
663
  "name": "createAsset"
@@ -612,7 +744,13 @@
612
744
  "kind": "field",
613
745
  "name": "closestApp",
614
746
  "type": {
615
- "text": "AppElement"
747
+ "text": "AppElement | null"
748
+ },
749
+ "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.",
750
+ "return": {
751
+ "type": {
752
+ "text": ""
753
+ }
616
754
  },
617
755
  "readonly": true,
618
756
  "inheritedFrom": {
@@ -624,7 +762,13 @@
624
762
  "kind": "field",
625
763
  "name": "closestEntity",
626
764
  "type": {
627
- "text": "EntityElement"
765
+ "text": "EntityElement | null"
766
+ },
767
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
768
+ "return": {
769
+ "type": {
770
+ "text": ""
771
+ }
628
772
  },
629
773
  "readonly": true,
630
774
  "inheritedFrom": {
@@ -657,6 +801,33 @@
657
801
  }
658
802
  }
659
803
  ],
804
+ "events": [
805
+ {
806
+ "name": "error",
807
+ "type": {
808
+ "text": "ErrorEvent"
809
+ },
810
+ "description": "Fired when the 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."
811
+ },
812
+ {
813
+ "name": "load",
814
+ "type": {
815
+ "text": "Event"
816
+ },
817
+ "description": "Fired each time the asset finishes loading, including a `lazy` asset loaded later and any subsequent reloads. Does not bubble — listen on this element, or use a capture-phase listener on an ancestor to observe every asset."
818
+ },
819
+ {
820
+ "name": "ready",
821
+ "type": {
822
+ "text": "CustomEvent"
823
+ },
824
+ "description": "Fired once the element is fully initialized. Bubbles and is composed.",
825
+ "inheritedFrom": {
826
+ "name": "AsyncElement",
827
+ "module": "src/async-element.ts"
828
+ }
829
+ }
830
+ ],
660
831
  "attributes": [
661
832
  {
662
833
  "type": {
@@ -729,20 +900,7 @@
729
900
  "module": "/src/async-element"
730
901
  },
731
902
  "tagName": "pc-asset",
732
- "customElement": true,
733
- "events": [
734
- {
735
- "name": "ready",
736
- "type": {
737
- "text": "CustomEvent"
738
- },
739
- "description": "Fired once the element is fully initialized. Bubbles and is composed.",
740
- "inheritedFrom": {
741
- "name": "AsyncElement",
742
- "module": "src/async-element.ts"
743
- }
744
- }
745
- ]
903
+ "customElement": true
746
904
  }
747
905
  ],
748
906
  "exports": [
@@ -794,7 +952,13 @@
794
952
  "kind": "field",
795
953
  "name": "closestApp",
796
954
  "type": {
797
- "text": "AppElement"
955
+ "text": "AppElement | null"
956
+ },
957
+ "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.",
958
+ "return": {
959
+ "type": {
960
+ "text": ""
961
+ }
798
962
  },
799
963
  "readonly": true
800
964
  },
@@ -802,7 +966,13 @@
802
966
  "kind": "field",
803
967
  "name": "closestEntity",
804
968
  "type": {
805
- "text": "EntityElement"
969
+ "text": "EntityElement | null"
970
+ },
971
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
972
+ "return": {
973
+ "type": {
974
+ "text": ""
975
+ }
806
976
  },
807
977
  "readonly": true
808
978
  },
@@ -1039,9 +1209,9 @@
1039
1209
  "kind": "field",
1040
1210
  "name": "entity",
1041
1211
  "type": {
1042
- "text": "Entity"
1212
+ "text": "Entity | null"
1043
1213
  },
1044
- "description": "The PlayCanvas entity instance. Available once the element is ready — await\nwhenReady or the element's `ready()` promise before accessing it.",
1214
+ "description": "The PlayCanvas entity instance. `null` until the element is ready, and again once it has\nbeen removed from the document — await whenReady or the element's `ready()`\npromise before accessing it.",
1045
1215
  "return": {
1046
1216
  "type": {
1047
1217
  "text": ""
@@ -1287,7 +1457,13 @@
1287
1457
  "kind": "field",
1288
1458
  "name": "closestApp",
1289
1459
  "type": {
1290
- "text": "AppElement"
1460
+ "text": "AppElement | null"
1461
+ },
1462
+ "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.",
1463
+ "return": {
1464
+ "type": {
1465
+ "text": ""
1466
+ }
1291
1467
  },
1292
1468
  "readonly": true,
1293
1469
  "inheritedFrom": {
@@ -1299,7 +1475,13 @@
1299
1475
  "kind": "field",
1300
1476
  "name": "closestEntity",
1301
1477
  "type": {
1302
- "text": "EntityElement"
1478
+ "text": "EntityElement | null"
1479
+ },
1480
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
1481
+ "return": {
1482
+ "type": {
1483
+ "text": ""
1484
+ }
1303
1485
  },
1304
1486
  "readonly": true,
1305
1487
  "inheritedFrom": {
@@ -1762,7 +1944,7 @@
1762
1944
  "declarations": [
1763
1945
  {
1764
1946
  "kind": "class",
1765
- "description": "The MaterialElement interface provides properties and methods for manipulating\n[`<pc-material>`](https://developer.playcanvas.com/user-manual/web-components/tags/pc-material/) elements.\nThe MaterialElement interface also inherits the properties and methods of the\nHTMLElement interface.\n\nA `pc-material` must be a direct child of `pc-app` — elements placed elsewhere log a warning\nand never create a material. Elements inserted while the application is already running are\ncreated on insertion.\n\nThe element is metal/rough by default: unlike a bare `StandardMaterial` it enables the metalness\nworkflow, which is what the `metalness-*` attributes assume and what glTF means by PBR. The\n`roughness` and `roughness-map` attributes are aliases for `gloss` and `gloss-map` that\nadditionally invert the gloss channel; do not mix the two families on one element.\n\nThe two aliases are documented here rather than on an accessor, because they resolve to the\n`gloss` properties and would otherwise inherit gloss's description - which reads inverted.\n",
1947
+ "description": "The MaterialElement interface provides properties and methods for manipulating\n[`<pc-material>`](https://developer.playcanvas.com/user-manual/web-components/tags/pc-material/) elements.\nThe MaterialElement interface also inherits the properties and methods of the\nHTMLElement interface.\n\nA `pc-material` must be a direct child of `pc-app` — elements placed elsewhere log a warning\nand never create a material. Elements inserted while the application is already running are\ncreated on insertion.\n\nThe element is metal/rough by default: unlike a bare `StandardMaterial` it enables the metalness\nworkflow, which is what the `metalness-*` attributes assume and what glTF means by PBR. It also\ndefaults `metalness` to 0 rather than the engine's 1, because those two defaults have to be\nchosen together - the engine's 1 is unreachable under its own `useMetalness` of false, and with\nthe workflow on it would make every material fully metallic, so `<pc-material diffuse=\"crimson\">`\nwould render as dark tinted reflections of an environment that may not exist rather than as a\ncrimson surface. `metalness=\"1\"` remains one attribute away.\n\nThe `roughness` and `roughness-map` attributes are aliases for `gloss` and `gloss-map` that\nadditionally invert the gloss channel; do not mix the two families on one element.\n\nThe two aliases are documented here rather than on an accessor, because they resolve to the\n`gloss` properties and would otherwise inherit gloss's description - which reads inverted.\n",
1766
1948
  "name": "MaterialElement",
1767
1949
  "members": [
1768
1950
  {
@@ -2159,7 +2341,7 @@
2159
2341
  "text": "number"
2160
2342
  },
2161
2343
  "privacy": "private",
2162
- "default": "1"
2344
+ "default": "0"
2163
2345
  },
2164
2346
  {
2165
2347
  "kind": "field",
@@ -4315,7 +4497,7 @@
4315
4497
  "text": "number"
4316
4498
  },
4317
4499
  "fieldName": "metalness",
4318
- "default": "1",
4500
+ "default": "0",
4319
4501
  "description": "How metallic the surface is."
4320
4502
  },
4321
4503
  {
@@ -4745,7 +4927,13 @@
4745
4927
  "kind": "field",
4746
4928
  "name": "closestApp",
4747
4929
  "type": {
4748
- "text": "AppElement"
4930
+ "text": "AppElement | null"
4931
+ },
4932
+ "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.",
4933
+ "return": {
4934
+ "type": {
4935
+ "text": ""
4936
+ }
4749
4937
  },
4750
4938
  "readonly": true,
4751
4939
  "inheritedFrom": {
@@ -4757,7 +4945,13 @@
4757
4945
  "kind": "field",
4758
4946
  "name": "closestEntity",
4759
4947
  "type": {
4760
- "text": "EntityElement"
4948
+ "text": "EntityElement | null"
4949
+ },
4950
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
4951
+ "return": {
4952
+ "type": {
4953
+ "text": ""
4954
+ }
4761
4955
  },
4762
4956
  "readonly": true,
4763
4957
  "inheritedFrom": {
@@ -5025,9 +5219,9 @@
5025
5219
  "kind": "field",
5026
5220
  "name": "scene",
5027
5221
  "type": {
5028
- "text": "Scene"
5222
+ "text": "Scene | null"
5029
5223
  },
5030
- "description": "The PlayCanvas scene instance. Available once the element is ready — await\nwhenReady or the element's `ready()` promise before accessing it.",
5224
+ "description": "The PlayCanvas scene instance. `null` until the element is ready — await\nwhenReady or the element's `ready()` promise before accessing it.",
5031
5225
  "return": {
5032
5226
  "type": {
5033
5227
  "text": ""
@@ -5039,6 +5233,21 @@
5039
5233
  "kind": "method",
5040
5234
  "name": "updateSceneSettings"
5041
5235
  },
5236
+ {
5237
+ "kind": "method",
5238
+ "name": "_applyGravity",
5239
+ "privacy": "private",
5240
+ "parameters": [
5241
+ {
5242
+ "name": "value",
5243
+ "type": {
5244
+ "text": "Vec3"
5245
+ },
5246
+ "description": "The gravity to apply."
5247
+ }
5248
+ ],
5249
+ "description": "Applies gravity to the rigid body system. Resolved through `closestApp` rather than\n`parentElement` so that a `<pc-scene>` nested inside a wrapper element behaves the same as\na direct child, matching how `connectedCallback` resolves the application."
5250
+ },
5042
5251
  {
5043
5252
  "kind": "field",
5044
5253
  "name": "fog",
@@ -5164,7 +5373,13 @@
5164
5373
  "kind": "field",
5165
5374
  "name": "closestApp",
5166
5375
  "type": {
5167
- "text": "AppElement"
5376
+ "text": "AppElement | null"
5377
+ },
5378
+ "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.",
5379
+ "return": {
5380
+ "type": {
5381
+ "text": ""
5382
+ }
5168
5383
  },
5169
5384
  "readonly": true,
5170
5385
  "inheritedFrom": {
@@ -5176,7 +5391,13 @@
5176
5391
  "kind": "field",
5177
5392
  "name": "closestEntity",
5178
5393
  "type": {
5179
- "text": "EntityElement"
5394
+ "text": "EntityElement | null"
5395
+ },
5396
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
5397
+ "return": {
5398
+ "type": {
5399
+ "text": ""
5400
+ }
5180
5401
  },
5181
5402
  "readonly": true,
5182
5403
  "inheritedFrom": {
@@ -5575,7 +5796,13 @@
5575
5796
  "kind": "field",
5576
5797
  "name": "closestApp",
5577
5798
  "type": {
5578
- "text": "AppElement"
5799
+ "text": "AppElement | null"
5800
+ },
5801
+ "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.",
5802
+ "return": {
5803
+ "type": {
5804
+ "text": ""
5805
+ }
5579
5806
  },
5580
5807
  "readonly": true,
5581
5808
  "inheritedFrom": {
@@ -5587,7 +5814,13 @@
5587
5814
  "kind": "field",
5588
5815
  "name": "closestEntity",
5589
5816
  "type": {
5590
- "text": "EntityElement"
5817
+ "text": "EntityElement | null"
5818
+ },
5819
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
5820
+ "return": {
5821
+ "type": {
5822
+ "text": ""
5823
+ }
5591
5824
  },
5592
5825
  "readonly": true,
5593
5826
  "inheritedFrom": {
@@ -5868,7 +6101,7 @@
5868
6101
  "kind": "field",
5869
6102
  "name": "component",
5870
6103
  "type": {
5871
- "text": "Component"
6104
+ "text": "Component | null"
5872
6105
  },
5873
6106
  "description": "Gets the underlying PlayCanvas button component.",
5874
6107
  "return": {
@@ -6223,7 +6456,13 @@
6223
6456
  "kind": "field",
6224
6457
  "name": "closestApp",
6225
6458
  "type": {
6226
- "text": "AppElement"
6459
+ "text": "AppElement | null"
6460
+ },
6461
+ "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.",
6462
+ "return": {
6463
+ "type": {
6464
+ "text": ""
6465
+ }
6227
6466
  },
6228
6467
  "readonly": true,
6229
6468
  "inheritedFrom": {
@@ -6235,7 +6474,13 @@
6235
6474
  "kind": "field",
6236
6475
  "name": "closestEntity",
6237
6476
  "type": {
6238
- "text": "EntityElement"
6477
+ "text": "EntityElement | null"
6478
+ },
6479
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
6480
+ "return": {
6481
+ "type": {
6482
+ "text": ""
6483
+ }
6239
6484
  },
6240
6485
  "readonly": true,
6241
6486
  "inheritedFrom": {
@@ -6650,7 +6895,7 @@
6650
6895
  "kind": "field",
6651
6896
  "name": "component",
6652
6897
  "type": {
6653
- "text": "Component"
6898
+ "text": "Component | null"
6654
6899
  },
6655
6900
  "description": "Gets the underlying PlayCanvas camera component.",
6656
6901
  "return": {
@@ -7120,7 +7365,13 @@
7120
7365
  "kind": "field",
7121
7366
  "name": "closestApp",
7122
7367
  "type": {
7123
- "text": "AppElement"
7368
+ "text": "AppElement | null"
7369
+ },
7370
+ "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.",
7371
+ "return": {
7372
+ "type": {
7373
+ "text": ""
7374
+ }
7124
7375
  },
7125
7376
  "readonly": true,
7126
7377
  "inheritedFrom": {
@@ -7132,7 +7383,13 @@
7132
7383
  "kind": "field",
7133
7384
  "name": "closestEntity",
7134
7385
  "type": {
7135
- "text": "EntityElement"
7386
+ "text": "EntityElement | null"
7387
+ },
7388
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
7389
+ "return": {
7390
+ "type": {
7391
+ "text": ""
7392
+ }
7136
7393
  },
7137
7394
  "readonly": true,
7138
7395
  "inheritedFrom": {
@@ -7475,7 +7732,7 @@
7475
7732
  "kind": "field",
7476
7733
  "name": "component",
7477
7734
  "type": {
7478
- "text": "Component"
7735
+ "text": "Component | null"
7479
7736
  },
7480
7737
  "description": "Gets the underlying PlayCanvas collision component.",
7481
7738
  "return": {
@@ -7638,7 +7895,13 @@
7638
7895
  "kind": "field",
7639
7896
  "name": "closestApp",
7640
7897
  "type": {
7641
- "text": "AppElement"
7898
+ "text": "AppElement | null"
7899
+ },
7900
+ "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.",
7901
+ "return": {
7902
+ "type": {
7903
+ "text": ""
7904
+ }
7642
7905
  },
7643
7906
  "readonly": true,
7644
7907
  "inheritedFrom": {
@@ -7650,7 +7913,13 @@
7650
7913
  "kind": "field",
7651
7914
  "name": "closestEntity",
7652
7915
  "type": {
7653
- "text": "EntityElement"
7916
+ "text": "EntityElement | null"
7917
+ },
7918
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
7919
+ "return": {
7920
+ "type": {
7921
+ "text": ""
7922
+ }
7654
7923
  },
7655
7924
  "readonly": true,
7656
7925
  "inheritedFrom": {
@@ -7866,9 +8135,9 @@
7866
8135
  "kind": "field",
7867
8136
  "name": "component",
7868
8137
  "type": {
7869
- "text": "Component"
8138
+ "text": "Component | null"
7870
8139
  },
7871
- "description": "The PlayCanvas component instance. Available once the element is ready — await\nwhenReady or the element's `ready()` promise before accessing it.",
8140
+ "description": "The PlayCanvas component instance. `null` until the element is ready, and also for an\nelement that is not a descendant of a `<pc-entity>` — await whenReady or the\nelement's `ready()` promise before accessing it.",
7872
8141
  "return": {
7873
8142
  "type": {
7874
8143
  "text": ""
@@ -7921,7 +8190,13 @@
7921
8190
  "kind": "field",
7922
8191
  "name": "closestApp",
7923
8192
  "type": {
7924
- "text": "AppElement"
8193
+ "text": "AppElement | null"
8194
+ },
8195
+ "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.",
8196
+ "return": {
8197
+ "type": {
8198
+ "text": ""
8199
+ }
7925
8200
  },
7926
8201
  "readonly": true,
7927
8202
  "inheritedFrom": {
@@ -7933,7 +8208,13 @@
7933
8208
  "kind": "field",
7934
8209
  "name": "closestEntity",
7935
8210
  "type": {
7936
- "text": "EntityElement"
8211
+ "text": "EntityElement | null"
8212
+ },
8213
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
8214
+ "return": {
8215
+ "type": {
8216
+ "text": ""
8217
+ }
7937
8218
  },
7938
8219
  "readonly": true,
7939
8220
  "inheritedFrom": {
@@ -8270,7 +8551,7 @@
8270
8551
  "kind": "field",
8271
8552
  "name": "component",
8272
8553
  "type": {
8273
- "text": "Component"
8554
+ "text": "Component | null"
8274
8555
  },
8275
8556
  "description": "Gets the underlying PlayCanvas element component.",
8276
8557
  "return": {
@@ -8812,7 +9093,13 @@
8812
9093
  "kind": "field",
8813
9094
  "name": "closestApp",
8814
9095
  "type": {
8815
- "text": "AppElement"
9096
+ "text": "AppElement | null"
9097
+ },
9098
+ "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.",
9099
+ "return": {
9100
+ "type": {
9101
+ "text": ""
9102
+ }
8816
9103
  },
8817
9104
  "readonly": true,
8818
9105
  "inheritedFrom": {
@@ -8824,7 +9111,13 @@
8824
9111
  "kind": "field",
8825
9112
  "name": "closestEntity",
8826
9113
  "type": {
8827
- "text": "EntityElement"
9114
+ "text": "EntityElement | null"
9115
+ },
9116
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
9117
+ "return": {
9118
+ "type": {
9119
+ "text": ""
9120
+ }
8828
9121
  },
8829
9122
  "readonly": true,
8830
9123
  "inheritedFrom": {
@@ -9215,7 +9508,7 @@
9215
9508
  "kind": "field",
9216
9509
  "name": "component",
9217
9510
  "type": {
9218
- "text": "Component"
9511
+ "text": "Component | null"
9219
9512
  },
9220
9513
  "description": "Gets the underlying PlayCanvas gsplat component.",
9221
9514
  "return": {
@@ -9442,7 +9735,13 @@
9442
9735
  "kind": "field",
9443
9736
  "name": "closestApp",
9444
9737
  "type": {
9445
- "text": "AppElement"
9738
+ "text": "AppElement | null"
9739
+ },
9740
+ "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.",
9741
+ "return": {
9742
+ "type": {
9743
+ "text": ""
9744
+ }
9446
9745
  },
9447
9746
  "readonly": true,
9448
9747
  "inheritedFrom": {
@@ -9454,7 +9753,13 @@
9454
9753
  "kind": "field",
9455
9754
  "name": "closestEntity",
9456
9755
  "type": {
9457
- "text": "EntityElement"
9756
+ "text": "EntityElement | null"
9757
+ },
9758
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
9759
+ "return": {
9760
+ "type": {
9761
+ "text": ""
9762
+ }
9458
9763
  },
9459
9764
  "readonly": true,
9460
9765
  "inheritedFrom": {
@@ -9679,7 +9984,7 @@
9679
9984
  "kind": "field",
9680
9985
  "name": "component",
9681
9986
  "type": {
9682
- "text": "Component"
9987
+ "text": "Component | null"
9683
9988
  },
9684
9989
  "description": "Gets the underlying PlayCanvas layout child component.",
9685
9990
  "return": {
@@ -9922,7 +10227,13 @@
9922
10227
  "kind": "field",
9923
10228
  "name": "closestApp",
9924
10229
  "type": {
9925
- "text": "AppElement"
10230
+ "text": "AppElement | null"
10231
+ },
10232
+ "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.",
10233
+ "return": {
10234
+ "type": {
10235
+ "text": ""
10236
+ }
9926
10237
  },
9927
10238
  "readonly": true,
9928
10239
  "inheritedFrom": {
@@ -9934,7 +10245,13 @@
9934
10245
  "kind": "field",
9935
10246
  "name": "closestEntity",
9936
10247
  "type": {
9937
- "text": "EntityElement"
10248
+ "text": "EntityElement | null"
10249
+ },
10250
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
10251
+ "return": {
10252
+ "type": {
10253
+ "text": ""
10254
+ }
9938
10255
  },
9939
10256
  "readonly": true,
9940
10257
  "inheritedFrom": {
@@ -10176,7 +10493,7 @@
10176
10493
  "kind": "field",
10177
10494
  "name": "component",
10178
10495
  "type": {
10179
- "text": "Component"
10496
+ "text": "Component | null"
10180
10497
  },
10181
10498
  "description": "Gets the underlying PlayCanvas layout group component.",
10182
10499
  "return": {
@@ -10451,7 +10768,13 @@
10451
10768
  "kind": "field",
10452
10769
  "name": "closestApp",
10453
10770
  "type": {
10454
- "text": "AppElement"
10771
+ "text": "AppElement | null"
10772
+ },
10773
+ "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.",
10774
+ "return": {
10775
+ "type": {
10776
+ "text": ""
10777
+ }
10455
10778
  },
10456
10779
  "readonly": true,
10457
10780
  "inheritedFrom": {
@@ -10463,7 +10786,13 @@
10463
10786
  "kind": "field",
10464
10787
  "name": "closestEntity",
10465
10788
  "type": {
10466
- "text": "EntityElement"
10789
+ "text": "EntityElement | null"
10790
+ },
10791
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
10792
+ "return": {
10793
+ "type": {
10794
+ "text": ""
10795
+ }
10467
10796
  },
10468
10797
  "readonly": true,
10469
10798
  "inheritedFrom": {
@@ -10821,7 +11150,7 @@
10821
11150
  "kind": "field",
10822
11151
  "name": "component",
10823
11152
  "type": {
10824
- "text": "Component"
11153
+ "text": "Component | null"
10825
11154
  },
10826
11155
  "description": "Gets the underlying PlayCanvas light component.",
10827
11156
  "return": {
@@ -11256,7 +11585,13 @@
11256
11585
  "kind": "field",
11257
11586
  "name": "closestApp",
11258
11587
  "type": {
11259
- "text": "AppElement"
11588
+ "text": "AppElement | null"
11589
+ },
11590
+ "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.",
11591
+ "return": {
11592
+ "type": {
11593
+ "text": ""
11594
+ }
11260
11595
  },
11261
11596
  "readonly": true,
11262
11597
  "inheritedFrom": {
@@ -11268,7 +11603,13 @@
11268
11603
  "kind": "field",
11269
11604
  "name": "closestEntity",
11270
11605
  "type": {
11271
- "text": "EntityElement"
11606
+ "text": "EntityElement | null"
11607
+ },
11608
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
11609
+ "return": {
11610
+ "type": {
11611
+ "text": ""
11612
+ }
11272
11613
  },
11273
11614
  "readonly": true,
11274
11615
  "inheritedFrom": {
@@ -11540,7 +11881,7 @@
11540
11881
  "kind": "field",
11541
11882
  "name": "component",
11542
11883
  "type": {
11543
- "text": "Component"
11884
+ "text": "Component | null"
11544
11885
  },
11545
11886
  "description": "Gets the underlying PlayCanvas audio listener component.",
11546
11887
  "return": {
@@ -11679,7 +12020,13 @@
11679
12020
  "kind": "field",
11680
12021
  "name": "closestApp",
11681
12022
  "type": {
11682
- "text": "AppElement"
12023
+ "text": "AppElement | null"
12024
+ },
12025
+ "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.",
12026
+ "return": {
12027
+ "type": {
12028
+ "text": ""
12029
+ }
11683
12030
  },
11684
12031
  "readonly": true,
11685
12032
  "inheritedFrom": {
@@ -11691,7 +12038,13 @@
11691
12038
  "kind": "field",
11692
12039
  "name": "closestEntity",
11693
12040
  "type": {
11694
- "text": "EntityElement"
12041
+ "text": "EntityElement | null"
12042
+ },
12043
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
12044
+ "return": {
12045
+ "type": {
12046
+ "text": ""
12047
+ }
11695
12048
  },
11696
12049
  "readonly": true,
11697
12050
  "inheritedFrom": {
@@ -11809,7 +12162,7 @@
11809
12162
  "kind": "field",
11810
12163
  "name": "component",
11811
12164
  "type": {
11812
- "text": "Component"
12165
+ "text": "Component | null"
11813
12166
  },
11814
12167
  "description": "Gets the underlying PlayCanvas particle system component.",
11815
12168
  "return": {
@@ -11997,7 +12350,13 @@
11997
12350
  "kind": "field",
11998
12351
  "name": "closestApp",
11999
12352
  "type": {
12000
- "text": "AppElement"
12353
+ "text": "AppElement | null"
12354
+ },
12355
+ "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.",
12356
+ "return": {
12357
+ "type": {
12358
+ "text": ""
12359
+ }
12001
12360
  },
12002
12361
  "readonly": true,
12003
12362
  "inheritedFrom": {
@@ -12009,7 +12368,13 @@
12009
12368
  "kind": "field",
12010
12369
  "name": "closestEntity",
12011
12370
  "type": {
12012
- "text": "EntityElement"
12371
+ "text": "EntityElement | null"
12372
+ },
12373
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
12374
+ "return": {
12375
+ "type": {
12376
+ "text": ""
12377
+ }
12013
12378
  },
12014
12379
  "readonly": true,
12015
12380
  "inheritedFrom": {
@@ -12162,7 +12527,7 @@
12162
12527
  "kind": "field",
12163
12528
  "name": "component",
12164
12529
  "type": {
12165
- "text": "Component"
12530
+ "text": "Component | null"
12166
12531
  },
12167
12532
  "description": "Gets the underlying PlayCanvas render component.",
12168
12533
  "return": {
@@ -12366,7 +12731,13 @@
12366
12731
  "kind": "field",
12367
12732
  "name": "closestApp",
12368
12733
  "type": {
12369
- "text": "AppElement"
12734
+ "text": "AppElement | null"
12735
+ },
12736
+ "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.",
12737
+ "return": {
12738
+ "type": {
12739
+ "text": ""
12740
+ }
12370
12741
  },
12371
12742
  "readonly": true,
12372
12743
  "inheritedFrom": {
@@ -12378,7 +12749,13 @@
12378
12749
  "kind": "field",
12379
12750
  "name": "closestEntity",
12380
12751
  "type": {
12381
- "text": "EntityElement"
12752
+ "text": "EntityElement | null"
12753
+ },
12754
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
12755
+ "return": {
12756
+ "type": {
12757
+ "text": ""
12758
+ }
12382
12759
  },
12383
12760
  "readonly": true,
12384
12761
  "inheritedFrom": {
@@ -12612,7 +12989,7 @@
12612
12989
  "kind": "field",
12613
12990
  "name": "component",
12614
12991
  "type": {
12615
- "text": "Component"
12992
+ "text": "Component | null"
12616
12993
  },
12617
12994
  "description": "Gets the underlying PlayCanvas rigidbody component.",
12618
12995
  "return": {
@@ -12779,7 +13156,13 @@
12779
13156
  "kind": "field",
12780
13157
  "name": "closestApp",
12781
13158
  "type": {
12782
- "text": "AppElement"
13159
+ "text": "AppElement | null"
13160
+ },
13161
+ "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.",
13162
+ "return": {
13163
+ "type": {
13164
+ "text": ""
13165
+ }
12783
13166
  },
12784
13167
  "readonly": true,
12785
13168
  "inheritedFrom": {
@@ -12791,7 +13174,13 @@
12791
13174
  "kind": "field",
12792
13175
  "name": "closestEntity",
12793
13176
  "type": {
12794
- "text": "EntityElement"
13177
+ "text": "EntityElement | null"
13178
+ },
13179
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
13180
+ "return": {
13181
+ "type": {
13182
+ "text": ""
13183
+ }
12795
13184
  },
12796
13185
  "readonly": true,
12797
13186
  "inheritedFrom": {
@@ -13028,7 +13417,7 @@
13028
13417
  "kind": "field",
13029
13418
  "name": "component",
13030
13419
  "type": {
13031
- "text": "Component"
13420
+ "text": "Component | null"
13032
13421
  },
13033
13422
  "description": "Gets the underlying PlayCanvas screen component.",
13034
13423
  "return": {
@@ -13183,7 +13572,13 @@
13183
13572
  "kind": "field",
13184
13573
  "name": "closestApp",
13185
13574
  "type": {
13186
- "text": "AppElement"
13575
+ "text": "AppElement | null"
13576
+ },
13577
+ "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.",
13578
+ "return": {
13579
+ "type": {
13580
+ "text": ""
13581
+ }
13187
13582
  },
13188
13583
  "readonly": true,
13189
13584
  "inheritedFrom": {
@@ -13195,7 +13590,13 @@
13195
13590
  "kind": "field",
13196
13591
  "name": "closestEntity",
13197
13592
  "type": {
13198
- "text": "EntityElement"
13593
+ "text": "EntityElement | null"
13594
+ },
13595
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
13596
+ "return": {
13597
+ "type": {
13598
+ "text": ""
13599
+ }
13199
13600
  },
13200
13601
  "readonly": true,
13201
13602
  "inheritedFrom": {
@@ -13706,7 +14107,7 @@
13706
14107
  "kind": "field",
13707
14108
  "name": "component",
13708
14109
  "type": {
13709
- "text": "Component"
14110
+ "text": "Component | null"
13710
14111
  },
13711
14112
  "description": "Gets the underlying PlayCanvas script component.",
13712
14113
  "return": {
@@ -13837,7 +14238,13 @@
13837
14238
  "kind": "field",
13838
14239
  "name": "closestApp",
13839
14240
  "type": {
13840
- "text": "AppElement"
14241
+ "text": "AppElement | null"
14242
+ },
14243
+ "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.",
14244
+ "return": {
14245
+ "type": {
14246
+ "text": ""
14247
+ }
13841
14248
  },
13842
14249
  "readonly": true,
13843
14250
  "inheritedFrom": {
@@ -13849,7 +14256,13 @@
13849
14256
  "kind": "field",
13850
14257
  "name": "closestEntity",
13851
14258
  "type": {
13852
- "text": "EntityElement"
14259
+ "text": "EntityElement | null"
14260
+ },
14261
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
14262
+ "return": {
14263
+ "type": {
14264
+ "text": ""
14265
+ }
13853
14266
  },
13854
14267
  "readonly": true,
13855
14268
  "inheritedFrom": {
@@ -14068,7 +14481,13 @@
14068
14481
  "kind": "field",
14069
14482
  "name": "closestApp",
14070
14483
  "type": {
14071
- "text": "AppElement"
14484
+ "text": "AppElement | null"
14485
+ },
14486
+ "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.",
14487
+ "return": {
14488
+ "type": {
14489
+ "text": ""
14490
+ }
14072
14491
  },
14073
14492
  "readonly": true,
14074
14493
  "inheritedFrom": {
@@ -14080,7 +14499,13 @@
14080
14499
  "kind": "field",
14081
14500
  "name": "closestEntity",
14082
14501
  "type": {
14083
- "text": "EntityElement"
14502
+ "text": "EntityElement | null"
14503
+ },
14504
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
14505
+ "return": {
14506
+ "type": {
14507
+ "text": ""
14508
+ }
14084
14509
  },
14085
14510
  "readonly": true,
14086
14511
  "inheritedFrom": {
@@ -14258,7 +14683,7 @@
14258
14683
  "kind": "field",
14259
14684
  "name": "component",
14260
14685
  "type": {
14261
- "text": "Component"
14686
+ "text": "Component | null"
14262
14687
  },
14263
14688
  "description": "Gets the underlying PlayCanvas scrollbar component.",
14264
14689
  "return": {
@@ -14453,7 +14878,13 @@
14453
14878
  "kind": "field",
14454
14879
  "name": "closestApp",
14455
14880
  "type": {
14456
- "text": "AppElement"
14881
+ "text": "AppElement | null"
14882
+ },
14883
+ "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.",
14884
+ "return": {
14885
+ "type": {
14886
+ "text": ""
14887
+ }
14457
14888
  },
14458
14889
  "readonly": true,
14459
14890
  "inheritedFrom": {
@@ -14465,7 +14896,13 @@
14465
14896
  "kind": "field",
14466
14897
  "name": "closestEntity",
14467
14898
  "type": {
14468
- "text": "EntityElement"
14899
+ "text": "EntityElement | null"
14900
+ },
14901
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
14902
+ "return": {
14903
+ "type": {
14904
+ "text": ""
14905
+ }
14469
14906
  },
14470
14907
  "readonly": true,
14471
14908
  "inheritedFrom": {
@@ -14723,7 +15160,7 @@
14723
15160
  "kind": "field",
14724
15161
  "name": "component",
14725
15162
  "type": {
14726
- "text": "Component"
15163
+ "text": "Component | null"
14727
15164
  },
14728
15165
  "description": "Gets the underlying PlayCanvas scroll view component.",
14729
15166
  "return": {
@@ -15062,7 +15499,13 @@
15062
15499
  "kind": "field",
15063
15500
  "name": "closestApp",
15064
15501
  "type": {
15065
- "text": "AppElement"
15502
+ "text": "AppElement | null"
15503
+ },
15504
+ "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.",
15505
+ "return": {
15506
+ "type": {
15507
+ "text": ""
15508
+ }
15066
15509
  },
15067
15510
  "readonly": true,
15068
15511
  "inheritedFrom": {
@@ -15074,7 +15517,13 @@
15074
15517
  "kind": "field",
15075
15518
  "name": "closestEntity",
15076
15519
  "type": {
15077
- "text": "EntityElement"
15520
+ "text": "EntityElement | null"
15521
+ },
15522
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
15523
+ "return": {
15524
+ "type": {
15525
+ "text": ""
15526
+ }
15078
15527
  },
15079
15528
  "readonly": true,
15080
15529
  "inheritedFrom": {
@@ -15359,7 +15808,7 @@
15359
15808
  "kind": "field",
15360
15809
  "name": "component",
15361
15810
  "type": {
15362
- "text": "Component"
15811
+ "text": "Component | null"
15363
15812
  },
15364
15813
  "description": "Gets the underlying PlayCanvas sound component.",
15365
15814
  "return": {
@@ -15605,7 +16054,13 @@
15605
16054
  "kind": "field",
15606
16055
  "name": "closestApp",
15607
16056
  "type": {
15608
- "text": "AppElement"
16057
+ "text": "AppElement | null"
16058
+ },
16059
+ "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.",
16060
+ "return": {
16061
+ "type": {
16062
+ "text": ""
16063
+ }
15609
16064
  },
15610
16065
  "readonly": true,
15611
16066
  "inheritedFrom": {
@@ -15617,7 +16072,13 @@
15617
16072
  "kind": "field",
15618
16073
  "name": "closestEntity",
15619
16074
  "type": {
15620
- "text": "EntityElement"
16075
+ "text": "EntityElement | null"
16076
+ },
16077
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
16078
+ "return": {
16079
+ "type": {
16080
+ "text": ""
16081
+ }
15621
16082
  },
15622
16083
  "readonly": true,
15623
16084
  "inheritedFrom": {
@@ -16062,7 +16523,13 @@
16062
16523
  "kind": "field",
16063
16524
  "name": "closestApp",
16064
16525
  "type": {
16065
- "text": "AppElement"
16526
+ "text": "AppElement | null"
16527
+ },
16528
+ "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.",
16529
+ "return": {
16530
+ "type": {
16531
+ "text": ""
16532
+ }
16066
16533
  },
16067
16534
  "readonly": true,
16068
16535
  "inheritedFrom": {
@@ -16074,7 +16541,13 @@
16074
16541
  "kind": "field",
16075
16542
  "name": "closestEntity",
16076
16543
  "type": {
16077
- "text": "EntityElement"
16544
+ "text": "EntityElement | null"
16545
+ },
16546
+ "description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
16547
+ "return": {
16548
+ "type": {
16549
+ "text": ""
16550
+ }
16078
16551
  },
16079
16552
  "readonly": true,
16080
16553
  "inheritedFrom": {