@dcl/playground-assets 7.0.6-4055981423.commit-60b7f6f → 7.0.6-4076330908.commit-cd40e5f
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/alpha.d.ts +487 -602
- package/dist/beta.d.ts +487 -606
- package/dist/index.bundled.d.ts +487 -606
- package/dist/index.d.ts +1 -1
- package/dist/index.js +582 -250
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +487 -614
- package/etc/playground-assets.api.json +8156 -10095
- package/etc/playground-assets.api.md +276 -947
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -7455,7 +7455,10 @@
|
|
|
7455
7455
|
return { states: [] };
|
|
7456
7456
|
}
|
|
7457
7457
|
/**
|
|
7458
|
-
*
|
|
7458
|
+
* @public
|
|
7459
|
+
*/
|
|
7460
|
+
/**
|
|
7461
|
+
* @internal
|
|
7459
7462
|
*/
|
|
7460
7463
|
const PBAnimator = {
|
|
7461
7464
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -7494,7 +7497,10 @@
|
|
|
7494
7497
|
};
|
|
7495
7498
|
}
|
|
7496
7499
|
/**
|
|
7497
|
-
*
|
|
7500
|
+
* @public
|
|
7501
|
+
*/
|
|
7502
|
+
/**
|
|
7503
|
+
* @internal
|
|
7498
7504
|
*/
|
|
7499
7505
|
const PBAnimationState = {
|
|
7500
7506
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -7559,7 +7565,7 @@
|
|
|
7559
7565
|
};
|
|
7560
7566
|
|
|
7561
7567
|
/**
|
|
7562
|
-
*
|
|
7568
|
+
* @internal
|
|
7563
7569
|
*/
|
|
7564
7570
|
const AnimatorSchema = {
|
|
7565
7571
|
COMPONENT_ID: 1042,
|
|
@@ -7582,7 +7588,10 @@
|
|
|
7582
7588
|
return { playing: undefined, volume: undefined, loop: undefined, pitch: undefined, audioClipUrl: "" };
|
|
7583
7589
|
}
|
|
7584
7590
|
/**
|
|
7585
|
-
*
|
|
7591
|
+
* @public
|
|
7592
|
+
*/
|
|
7593
|
+
/**
|
|
7594
|
+
* @internal
|
|
7586
7595
|
*/
|
|
7587
7596
|
const PBAudioSource = {
|
|
7588
7597
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -7635,7 +7644,7 @@
|
|
|
7635
7644
|
};
|
|
7636
7645
|
|
|
7637
7646
|
/**
|
|
7638
|
-
*
|
|
7647
|
+
* @internal
|
|
7639
7648
|
*/
|
|
7640
7649
|
const AudioSourceSchema = {
|
|
7641
7650
|
COMPONENT_ID: 1020,
|
|
@@ -7658,7 +7667,10 @@
|
|
|
7658
7667
|
return { playing: undefined, volume: undefined, url: "" };
|
|
7659
7668
|
}
|
|
7660
7669
|
/**
|
|
7661
|
-
*
|
|
7670
|
+
* @public
|
|
7671
|
+
*/
|
|
7672
|
+
/**
|
|
7673
|
+
* @internal
|
|
7662
7674
|
*/
|
|
7663
7675
|
const PBAudioStream = {
|
|
7664
7676
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -7699,7 +7711,7 @@
|
|
|
7699
7711
|
};
|
|
7700
7712
|
|
|
7701
7713
|
/**
|
|
7702
|
-
*
|
|
7714
|
+
* @internal
|
|
7703
7715
|
*/
|
|
7704
7716
|
const AudioStreamSchema = {
|
|
7705
7717
|
COMPONENT_ID: 1021,
|
|
@@ -7718,6 +7730,9 @@
|
|
|
7718
7730
|
};
|
|
7719
7731
|
|
|
7720
7732
|
/* eslint-disable */
|
|
7733
|
+
/**
|
|
7734
|
+
* @public
|
|
7735
|
+
*/
|
|
7721
7736
|
exports.AvatarAnchorPointType = void 0;
|
|
7722
7737
|
(function (AvatarAnchorPointType) {
|
|
7723
7738
|
AvatarAnchorPointType[AvatarAnchorPointType["AAPT_POSITION"] = 0] = "AAPT_POSITION";
|
|
@@ -7729,7 +7744,10 @@
|
|
|
7729
7744
|
return { avatarId: undefined, anchorPointId: 0 };
|
|
7730
7745
|
}
|
|
7731
7746
|
/**
|
|
7732
|
-
*
|
|
7747
|
+
* @public
|
|
7748
|
+
*/
|
|
7749
|
+
/**
|
|
7750
|
+
* @internal
|
|
7733
7751
|
*/
|
|
7734
7752
|
const PBAvatarAttach = {
|
|
7735
7753
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -7764,7 +7782,7 @@
|
|
|
7764
7782
|
};
|
|
7765
7783
|
|
|
7766
7784
|
/**
|
|
7767
|
-
*
|
|
7785
|
+
* @internal
|
|
7768
7786
|
*/
|
|
7769
7787
|
const AvatarAttachSchema = {
|
|
7770
7788
|
COMPONENT_ID: 1073,
|
|
@@ -7787,7 +7805,10 @@
|
|
|
7787
7805
|
return { x: 0, y: 0, z: 0 };
|
|
7788
7806
|
}
|
|
7789
7807
|
/**
|
|
7790
|
-
*
|
|
7808
|
+
* @public
|
|
7809
|
+
*/
|
|
7810
|
+
/**
|
|
7811
|
+
* @internal
|
|
7791
7812
|
*/
|
|
7792
7813
|
const Vector3 = {
|
|
7793
7814
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -7828,6 +7849,9 @@
|
|
|
7828
7849
|
};
|
|
7829
7850
|
|
|
7830
7851
|
/* eslint-disable */
|
|
7852
|
+
/**
|
|
7853
|
+
* @public
|
|
7854
|
+
*/
|
|
7831
7855
|
exports.AvatarModifierType = void 0;
|
|
7832
7856
|
(function (AvatarModifierType) {
|
|
7833
7857
|
AvatarModifierType[AvatarModifierType["AMT_HIDE_AVATARS"] = 0] = "AMT_HIDE_AVATARS";
|
|
@@ -7837,7 +7861,10 @@
|
|
|
7837
7861
|
return { area: undefined, excludeIds: [], modifiers: [] };
|
|
7838
7862
|
}
|
|
7839
7863
|
/**
|
|
7840
|
-
*
|
|
7864
|
+
* @public
|
|
7865
|
+
*/
|
|
7866
|
+
/**
|
|
7867
|
+
* @internal
|
|
7841
7868
|
*/
|
|
7842
7869
|
const PBAvatarModifierArea = {
|
|
7843
7870
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -7888,7 +7915,7 @@
|
|
|
7888
7915
|
};
|
|
7889
7916
|
|
|
7890
7917
|
/**
|
|
7891
|
-
*
|
|
7918
|
+
* @internal
|
|
7892
7919
|
*/
|
|
7893
7920
|
const AvatarModifierAreaSchema = {
|
|
7894
7921
|
COMPONENT_ID: 1070,
|
|
@@ -9246,7 +9273,10 @@
|
|
|
9246
9273
|
return { r: 0, g: 0, b: 0 };
|
|
9247
9274
|
}
|
|
9248
9275
|
/**
|
|
9249
|
-
*
|
|
9276
|
+
* @public
|
|
9277
|
+
*/
|
|
9278
|
+
/**
|
|
9279
|
+
* @internal
|
|
9250
9280
|
*/
|
|
9251
9281
|
const Color3 = {
|
|
9252
9282
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -9289,7 +9319,10 @@
|
|
|
9289
9319
|
return { r: 0, g: 0, b: 0, a: 0 };
|
|
9290
9320
|
}
|
|
9291
9321
|
/**
|
|
9292
|
-
*
|
|
9322
|
+
* @public
|
|
9323
|
+
*/
|
|
9324
|
+
/**
|
|
9325
|
+
* @internal
|
|
9293
9326
|
*/
|
|
9294
9327
|
const Color4 = {
|
|
9295
9328
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -9352,7 +9385,10 @@
|
|
|
9352
9385
|
};
|
|
9353
9386
|
}
|
|
9354
9387
|
/**
|
|
9355
|
-
*
|
|
9388
|
+
* @public
|
|
9389
|
+
*/
|
|
9390
|
+
/**
|
|
9391
|
+
* @internal
|
|
9356
9392
|
*/
|
|
9357
9393
|
const PBAvatarShape = {
|
|
9358
9394
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -9466,7 +9502,7 @@
|
|
|
9466
9502
|
}
|
|
9467
9503
|
|
|
9468
9504
|
/**
|
|
9469
|
-
*
|
|
9505
|
+
* @internal
|
|
9470
9506
|
*/
|
|
9471
9507
|
const AvatarShapeSchema = {
|
|
9472
9508
|
COMPONENT_ID: 1080,
|
|
@@ -9485,6 +9521,9 @@
|
|
|
9485
9521
|
};
|
|
9486
9522
|
|
|
9487
9523
|
/* eslint-disable */
|
|
9524
|
+
/**
|
|
9525
|
+
* @public
|
|
9526
|
+
*/
|
|
9488
9527
|
exports.BillboardMode = void 0;
|
|
9489
9528
|
(function (BillboardMode) {
|
|
9490
9529
|
BillboardMode[BillboardMode["BM_NONE"] = 0] = "BM_NONE";
|
|
@@ -9497,7 +9536,10 @@
|
|
|
9497
9536
|
return { billboardMode: undefined };
|
|
9498
9537
|
}
|
|
9499
9538
|
/**
|
|
9500
|
-
*
|
|
9539
|
+
* @public
|
|
9540
|
+
*/
|
|
9541
|
+
/**
|
|
9542
|
+
* @internal
|
|
9501
9543
|
*/
|
|
9502
9544
|
const PBBillboard = {
|
|
9503
9545
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -9526,7 +9568,7 @@
|
|
|
9526
9568
|
};
|
|
9527
9569
|
|
|
9528
9570
|
/**
|
|
9529
|
-
*
|
|
9571
|
+
* @internal
|
|
9530
9572
|
*/
|
|
9531
9573
|
const BillboardSchema = {
|
|
9532
9574
|
COMPONENT_ID: 1090,
|
|
@@ -9549,7 +9591,10 @@
|
|
|
9549
9591
|
return { mode: 0 };
|
|
9550
9592
|
}
|
|
9551
9593
|
/**
|
|
9552
|
-
*
|
|
9594
|
+
* @public
|
|
9595
|
+
*/
|
|
9596
|
+
/**
|
|
9597
|
+
* @internal
|
|
9553
9598
|
*/
|
|
9554
9599
|
const PBCameraMode = {
|
|
9555
9600
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -9578,7 +9623,7 @@
|
|
|
9578
9623
|
};
|
|
9579
9624
|
|
|
9580
9625
|
/**
|
|
9581
|
-
*
|
|
9626
|
+
* @internal
|
|
9582
9627
|
*/
|
|
9583
9628
|
const CameraModeSchema = {
|
|
9584
9629
|
COMPONENT_ID: 1072,
|
|
@@ -9601,7 +9646,10 @@
|
|
|
9601
9646
|
return { area: undefined, mode: 0 };
|
|
9602
9647
|
}
|
|
9603
9648
|
/**
|
|
9604
|
-
*
|
|
9649
|
+
* @public
|
|
9650
|
+
*/
|
|
9651
|
+
/**
|
|
9652
|
+
* @internal
|
|
9605
9653
|
*/
|
|
9606
9654
|
const PBCameraModeArea = {
|
|
9607
9655
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -9636,7 +9684,7 @@
|
|
|
9636
9684
|
};
|
|
9637
9685
|
|
|
9638
9686
|
/**
|
|
9639
|
-
*
|
|
9687
|
+
* @internal
|
|
9640
9688
|
*/
|
|
9641
9689
|
const CameraModeAreaSchema = {
|
|
9642
9690
|
COMPONENT_ID: 1071,
|
|
@@ -9659,7 +9707,10 @@
|
|
|
9659
9707
|
return { src: "" };
|
|
9660
9708
|
}
|
|
9661
9709
|
/**
|
|
9662
|
-
*
|
|
9710
|
+
* @public
|
|
9711
|
+
*/
|
|
9712
|
+
/**
|
|
9713
|
+
* @internal
|
|
9663
9714
|
*/
|
|
9664
9715
|
const PBGltfContainer = {
|
|
9665
9716
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -9688,7 +9739,7 @@
|
|
|
9688
9739
|
};
|
|
9689
9740
|
|
|
9690
9741
|
/**
|
|
9691
|
-
*
|
|
9742
|
+
* @internal
|
|
9692
9743
|
*/
|
|
9693
9744
|
const GltfContainerSchema = {
|
|
9694
9745
|
COMPONENT_ID: 1041,
|
|
@@ -9707,6 +9758,9 @@
|
|
|
9707
9758
|
};
|
|
9708
9759
|
|
|
9709
9760
|
/* eslint-disable */
|
|
9761
|
+
/**
|
|
9762
|
+
* @public
|
|
9763
|
+
*/
|
|
9710
9764
|
exports.TextureWrapMode = void 0;
|
|
9711
9765
|
(function (TextureWrapMode) {
|
|
9712
9766
|
TextureWrapMode[TextureWrapMode["TWM_REPEAT"] = 0] = "TWM_REPEAT";
|
|
@@ -9714,6 +9768,9 @@
|
|
|
9714
9768
|
TextureWrapMode[TextureWrapMode["TWM_MIRROR"] = 2] = "TWM_MIRROR";
|
|
9715
9769
|
TextureWrapMode[TextureWrapMode["TWM_MIRROR_ONCE"] = 3] = "TWM_MIRROR_ONCE";
|
|
9716
9770
|
})(exports.TextureWrapMode || (exports.TextureWrapMode = {}));
|
|
9771
|
+
/**
|
|
9772
|
+
* @public
|
|
9773
|
+
*/
|
|
9717
9774
|
exports.TextureFilterMode = void 0;
|
|
9718
9775
|
(function (TextureFilterMode) {
|
|
9719
9776
|
TextureFilterMode[TextureFilterMode["TFM_POINT"] = 0] = "TFM_POINT";
|
|
@@ -9724,7 +9781,10 @@
|
|
|
9724
9781
|
return { src: "", wrapMode: undefined, filterMode: undefined };
|
|
9725
9782
|
}
|
|
9726
9783
|
/**
|
|
9727
|
-
*
|
|
9784
|
+
* @public
|
|
9785
|
+
*/
|
|
9786
|
+
/**
|
|
9787
|
+
* @internal
|
|
9728
9788
|
*/
|
|
9729
9789
|
const Texture = {
|
|
9730
9790
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -9767,7 +9827,10 @@
|
|
|
9767
9827
|
return { userId: "", wrapMode: undefined, filterMode: undefined };
|
|
9768
9828
|
}
|
|
9769
9829
|
/**
|
|
9770
|
-
*
|
|
9830
|
+
* @public
|
|
9831
|
+
*/
|
|
9832
|
+
/**
|
|
9833
|
+
* @internal
|
|
9771
9834
|
*/
|
|
9772
9835
|
const AvatarTexture = {
|
|
9773
9836
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -9810,7 +9873,10 @@
|
|
|
9810
9873
|
return { tex: undefined };
|
|
9811
9874
|
}
|
|
9812
9875
|
/**
|
|
9813
|
-
*
|
|
9876
|
+
* @public
|
|
9877
|
+
*/
|
|
9878
|
+
/**
|
|
9879
|
+
* @internal
|
|
9814
9880
|
*/
|
|
9815
9881
|
const TextureUnion = {
|
|
9816
9882
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -9845,6 +9911,9 @@
|
|
|
9845
9911
|
};
|
|
9846
9912
|
|
|
9847
9913
|
/* eslint-disable */
|
|
9914
|
+
/**
|
|
9915
|
+
* @public
|
|
9916
|
+
*/
|
|
9848
9917
|
exports.MaterialTransparencyMode = void 0;
|
|
9849
9918
|
(function (MaterialTransparencyMode) {
|
|
9850
9919
|
MaterialTransparencyMode[MaterialTransparencyMode["MTM_OPAQUE"] = 0] = "MTM_OPAQUE";
|
|
@@ -9857,7 +9926,10 @@
|
|
|
9857
9926
|
return { material: undefined };
|
|
9858
9927
|
}
|
|
9859
9928
|
/**
|
|
9860
|
-
*
|
|
9929
|
+
* @public
|
|
9930
|
+
*/
|
|
9931
|
+
/**
|
|
9932
|
+
* @internal
|
|
9861
9933
|
*/
|
|
9862
9934
|
const PBMaterial = {
|
|
9863
9935
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -9894,7 +9966,10 @@
|
|
|
9894
9966
|
return { texture: undefined, alphaTest: undefined, castShadows: undefined };
|
|
9895
9967
|
}
|
|
9896
9968
|
/**
|
|
9897
|
-
*
|
|
9969
|
+
* @public
|
|
9970
|
+
*/
|
|
9971
|
+
/**
|
|
9972
|
+
* @internal
|
|
9898
9973
|
*/
|
|
9899
9974
|
const PBMaterial_UnlitMaterial = {
|
|
9900
9975
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -9954,7 +10029,10 @@
|
|
|
9954
10029
|
};
|
|
9955
10030
|
}
|
|
9956
10031
|
/**
|
|
9957
|
-
*
|
|
10032
|
+
* @public
|
|
10033
|
+
*/
|
|
10034
|
+
/**
|
|
10035
|
+
* @internal
|
|
9958
10036
|
*/
|
|
9959
10037
|
const PBMaterial_PbrMaterial = {
|
|
9960
10038
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -10073,7 +10151,7 @@
|
|
|
10073
10151
|
};
|
|
10074
10152
|
|
|
10075
10153
|
/**
|
|
10076
|
-
*
|
|
10154
|
+
* @internal
|
|
10077
10155
|
*/
|
|
10078
10156
|
const MaterialSchema = {
|
|
10079
10157
|
COMPONENT_ID: 1017,
|
|
@@ -10092,6 +10170,9 @@
|
|
|
10092
10170
|
};
|
|
10093
10171
|
|
|
10094
10172
|
/* eslint-disable */
|
|
10173
|
+
/**
|
|
10174
|
+
* @public
|
|
10175
|
+
*/
|
|
10095
10176
|
exports.ColliderLayer = void 0;
|
|
10096
10177
|
(function (ColliderLayer) {
|
|
10097
10178
|
ColliderLayer[ColliderLayer["CL_NONE"] = 0] = "CL_NONE";
|
|
@@ -10102,7 +10183,10 @@
|
|
|
10102
10183
|
return { collisionMask: undefined, mesh: undefined };
|
|
10103
10184
|
}
|
|
10104
10185
|
/**
|
|
10105
|
-
*
|
|
10186
|
+
* @public
|
|
10187
|
+
*/
|
|
10188
|
+
/**
|
|
10189
|
+
* @internal
|
|
10106
10190
|
*/
|
|
10107
10191
|
const PBMeshCollider = {
|
|
10108
10192
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -10157,7 +10241,10 @@
|
|
|
10157
10241
|
return {};
|
|
10158
10242
|
}
|
|
10159
10243
|
/**
|
|
10160
|
-
*
|
|
10244
|
+
* @public
|
|
10245
|
+
*/
|
|
10246
|
+
/**
|
|
10247
|
+
* @internal
|
|
10161
10248
|
*/
|
|
10162
10249
|
const PBMeshCollider_BoxMesh = {
|
|
10163
10250
|
encode(_, writer = _m0.Writer.create()) {
|
|
@@ -10182,7 +10269,10 @@
|
|
|
10182
10269
|
return { radiusTop: undefined, radiusBottom: undefined };
|
|
10183
10270
|
}
|
|
10184
10271
|
/**
|
|
10185
|
-
*
|
|
10272
|
+
* @public
|
|
10273
|
+
*/
|
|
10274
|
+
/**
|
|
10275
|
+
* @internal
|
|
10186
10276
|
*/
|
|
10187
10277
|
const PBMeshCollider_CylinderMesh = {
|
|
10188
10278
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -10219,7 +10309,10 @@
|
|
|
10219
10309
|
return {};
|
|
10220
10310
|
}
|
|
10221
10311
|
/**
|
|
10222
|
-
*
|
|
10312
|
+
* @public
|
|
10313
|
+
*/
|
|
10314
|
+
/**
|
|
10315
|
+
* @internal
|
|
10223
10316
|
*/
|
|
10224
10317
|
const PBMeshCollider_PlaneMesh = {
|
|
10225
10318
|
encode(_, writer = _m0.Writer.create()) {
|
|
@@ -10244,7 +10337,10 @@
|
|
|
10244
10337
|
return {};
|
|
10245
10338
|
}
|
|
10246
10339
|
/**
|
|
10247
|
-
*
|
|
10340
|
+
* @public
|
|
10341
|
+
*/
|
|
10342
|
+
/**
|
|
10343
|
+
* @internal
|
|
10248
10344
|
*/
|
|
10249
10345
|
const PBMeshCollider_SphereMesh = {
|
|
10250
10346
|
encode(_, writer = _m0.Writer.create()) {
|
|
@@ -10267,7 +10363,7 @@
|
|
|
10267
10363
|
};
|
|
10268
10364
|
|
|
10269
10365
|
/**
|
|
10270
|
-
*
|
|
10366
|
+
* @internal
|
|
10271
10367
|
*/
|
|
10272
10368
|
const MeshColliderSchema = {
|
|
10273
10369
|
COMPONENT_ID: 1019,
|
|
@@ -10290,7 +10386,10 @@
|
|
|
10290
10386
|
return { mesh: undefined };
|
|
10291
10387
|
}
|
|
10292
10388
|
/**
|
|
10293
|
-
*
|
|
10389
|
+
* @public
|
|
10390
|
+
*/
|
|
10391
|
+
/**
|
|
10392
|
+
* @internal
|
|
10294
10393
|
*/
|
|
10295
10394
|
const PBMeshRenderer = {
|
|
10296
10395
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -10339,7 +10438,10 @@
|
|
|
10339
10438
|
return { uvs: [] };
|
|
10340
10439
|
}
|
|
10341
10440
|
/**
|
|
10342
|
-
*
|
|
10441
|
+
* @public
|
|
10442
|
+
*/
|
|
10443
|
+
/**
|
|
10444
|
+
* @internal
|
|
10343
10445
|
*/
|
|
10344
10446
|
const PBMeshRenderer_BoxMesh = {
|
|
10345
10447
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -10380,7 +10482,10 @@
|
|
|
10380
10482
|
return { radiusTop: undefined, radiusBottom: undefined };
|
|
10381
10483
|
}
|
|
10382
10484
|
/**
|
|
10383
|
-
*
|
|
10485
|
+
* @public
|
|
10486
|
+
*/
|
|
10487
|
+
/**
|
|
10488
|
+
* @internal
|
|
10384
10489
|
*/
|
|
10385
10490
|
const PBMeshRenderer_CylinderMesh = {
|
|
10386
10491
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -10417,7 +10522,10 @@
|
|
|
10417
10522
|
return { uvs: [] };
|
|
10418
10523
|
}
|
|
10419
10524
|
/**
|
|
10420
|
-
*
|
|
10525
|
+
* @public
|
|
10526
|
+
*/
|
|
10527
|
+
/**
|
|
10528
|
+
* @internal
|
|
10421
10529
|
*/
|
|
10422
10530
|
const PBMeshRenderer_PlaneMesh = {
|
|
10423
10531
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -10458,7 +10566,10 @@
|
|
|
10458
10566
|
return {};
|
|
10459
10567
|
}
|
|
10460
10568
|
/**
|
|
10461
|
-
*
|
|
10569
|
+
* @public
|
|
10570
|
+
*/
|
|
10571
|
+
/**
|
|
10572
|
+
* @internal
|
|
10462
10573
|
*/
|
|
10463
10574
|
const PBMeshRenderer_SphereMesh = {
|
|
10464
10575
|
encode(_, writer = _m0.Writer.create()) {
|
|
@@ -10481,7 +10592,7 @@
|
|
|
10481
10592
|
};
|
|
10482
10593
|
|
|
10483
10594
|
/**
|
|
10484
|
-
*
|
|
10595
|
+
* @internal
|
|
10485
10596
|
*/
|
|
10486
10597
|
const MeshRendererSchema = {
|
|
10487
10598
|
COMPONENT_ID: 1018,
|
|
@@ -10500,6 +10611,9 @@
|
|
|
10500
10611
|
};
|
|
10501
10612
|
|
|
10502
10613
|
/* eslint-disable */
|
|
10614
|
+
/**
|
|
10615
|
+
* @public
|
|
10616
|
+
*/
|
|
10503
10617
|
exports.NftFrameType = void 0;
|
|
10504
10618
|
(function (NftFrameType) {
|
|
10505
10619
|
NftFrameType[NftFrameType["NFT_CLASSIC"] = 0] = "NFT_CLASSIC";
|
|
@@ -10530,7 +10644,10 @@
|
|
|
10530
10644
|
return { src: "", style: undefined, color: undefined };
|
|
10531
10645
|
}
|
|
10532
10646
|
/**
|
|
10533
|
-
*
|
|
10647
|
+
* @public
|
|
10648
|
+
*/
|
|
10649
|
+
/**
|
|
10650
|
+
* @internal
|
|
10534
10651
|
*/
|
|
10535
10652
|
const PBNftShape = {
|
|
10536
10653
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -10571,7 +10688,7 @@
|
|
|
10571
10688
|
};
|
|
10572
10689
|
|
|
10573
10690
|
/**
|
|
10574
|
-
*
|
|
10691
|
+
* @internal
|
|
10575
10692
|
*/
|
|
10576
10693
|
const NftShapeSchema = {
|
|
10577
10694
|
COMPONENT_ID: 1040,
|
|
@@ -10590,6 +10707,9 @@
|
|
|
10590
10707
|
};
|
|
10591
10708
|
|
|
10592
10709
|
/* eslint-disable */
|
|
10710
|
+
/**
|
|
10711
|
+
* @public
|
|
10712
|
+
*/
|
|
10593
10713
|
exports.PointerEventType = void 0;
|
|
10594
10714
|
(function (PointerEventType) {
|
|
10595
10715
|
PointerEventType[PointerEventType["PET_UP"] = 0] = "PET_UP";
|
|
@@ -10601,7 +10721,10 @@
|
|
|
10601
10721
|
return { pointerEvents: [] };
|
|
10602
10722
|
}
|
|
10603
10723
|
/**
|
|
10604
|
-
*
|
|
10724
|
+
* @public
|
|
10725
|
+
*/
|
|
10726
|
+
/**
|
|
10727
|
+
* @internal
|
|
10605
10728
|
*/
|
|
10606
10729
|
const PBPointerEvents = {
|
|
10607
10730
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -10632,7 +10755,10 @@
|
|
|
10632
10755
|
return { button: undefined, hoverText: undefined, maxDistance: undefined, showFeedback: undefined };
|
|
10633
10756
|
}
|
|
10634
10757
|
/**
|
|
10635
|
-
*
|
|
10758
|
+
* @public
|
|
10759
|
+
*/
|
|
10760
|
+
/**
|
|
10761
|
+
* @internal
|
|
10636
10762
|
*/
|
|
10637
10763
|
const PBPointerEvents_Info = {
|
|
10638
10764
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -10681,7 +10807,10 @@
|
|
|
10681
10807
|
return { eventType: 0, eventInfo: undefined };
|
|
10682
10808
|
}
|
|
10683
10809
|
/**
|
|
10684
|
-
*
|
|
10810
|
+
* @public
|
|
10811
|
+
*/
|
|
10812
|
+
/**
|
|
10813
|
+
* @internal
|
|
10685
10814
|
*/
|
|
10686
10815
|
const PBPointerEvents_Entry = {
|
|
10687
10816
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -10716,7 +10845,7 @@
|
|
|
10716
10845
|
};
|
|
10717
10846
|
|
|
10718
10847
|
/**
|
|
10719
|
-
*
|
|
10848
|
+
* @internal
|
|
10720
10849
|
*/
|
|
10721
10850
|
const PointerEventsSchema = {
|
|
10722
10851
|
COMPONENT_ID: 1062,
|
|
@@ -10739,7 +10868,10 @@
|
|
|
10739
10868
|
return { timestamp: 0, origin: undefined, direction: undefined, hits: [] };
|
|
10740
10869
|
}
|
|
10741
10870
|
/**
|
|
10742
|
-
*
|
|
10871
|
+
* @public
|
|
10872
|
+
*/
|
|
10873
|
+
/**
|
|
10874
|
+
* @internal
|
|
10743
10875
|
*/
|
|
10744
10876
|
const PBRaycastResult = {
|
|
10745
10877
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -10796,7 +10928,10 @@
|
|
|
10796
10928
|
};
|
|
10797
10929
|
}
|
|
10798
10930
|
/**
|
|
10799
|
-
*
|
|
10931
|
+
* @public
|
|
10932
|
+
*/
|
|
10933
|
+
/**
|
|
10934
|
+
* @internal
|
|
10800
10935
|
*/
|
|
10801
10936
|
const RaycastHit = {
|
|
10802
10937
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -10890,7 +11025,10 @@
|
|
|
10890
11025
|
return { commands: [] };
|
|
10891
11026
|
}
|
|
10892
11027
|
/**
|
|
10893
|
-
*
|
|
11028
|
+
* @public
|
|
11029
|
+
*/
|
|
11030
|
+
/**
|
|
11031
|
+
* @internal
|
|
10894
11032
|
*/
|
|
10895
11033
|
const PBPointerEventsResult = {
|
|
10896
11034
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -10921,7 +11059,10 @@
|
|
|
10921
11059
|
return { button: 0, hit: undefined, state: 0, timestamp: 0, analog: undefined };
|
|
10922
11060
|
}
|
|
10923
11061
|
/**
|
|
10924
|
-
*
|
|
11062
|
+
* @public
|
|
11063
|
+
*/
|
|
11064
|
+
/**
|
|
11065
|
+
* @internal
|
|
10925
11066
|
*/
|
|
10926
11067
|
const PBPointerEventsResult_PointerCommand = {
|
|
10927
11068
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -10974,7 +11115,7 @@
|
|
|
10974
11115
|
};
|
|
10975
11116
|
|
|
10976
11117
|
/**
|
|
10977
|
-
*
|
|
11118
|
+
* @internal
|
|
10978
11119
|
*/
|
|
10979
11120
|
const PointerEventsResultSchema = {
|
|
10980
11121
|
COMPONENT_ID: 1063,
|
|
@@ -10997,7 +11138,10 @@
|
|
|
10997
11138
|
return { isPointerLocked: false };
|
|
10998
11139
|
}
|
|
10999
11140
|
/**
|
|
11000
|
-
*
|
|
11141
|
+
* @public
|
|
11142
|
+
*/
|
|
11143
|
+
/**
|
|
11144
|
+
* @internal
|
|
11001
11145
|
*/
|
|
11002
11146
|
const PBPointerLock = {
|
|
11003
11147
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -11026,7 +11170,7 @@
|
|
|
11026
11170
|
};
|
|
11027
11171
|
|
|
11028
11172
|
/**
|
|
11029
|
-
*
|
|
11173
|
+
* @internal
|
|
11030
11174
|
*/
|
|
11031
11175
|
const PointerLockSchema = {
|
|
11032
11176
|
COMPONENT_ID: 1074,
|
|
@@ -11045,6 +11189,9 @@
|
|
|
11045
11189
|
};
|
|
11046
11190
|
|
|
11047
11191
|
/* eslint-disable */
|
|
11192
|
+
/**
|
|
11193
|
+
* @public
|
|
11194
|
+
*/
|
|
11048
11195
|
exports.RaycastQueryType = void 0;
|
|
11049
11196
|
(function (RaycastQueryType) {
|
|
11050
11197
|
RaycastQueryType[RaycastQueryType["RQT_HIT_FIRST"] = 0] = "RQT_HIT_FIRST";
|
|
@@ -11054,7 +11201,10 @@
|
|
|
11054
11201
|
return { origin: undefined, direction: undefined, maxDistance: 0, queryType: 0 };
|
|
11055
11202
|
}
|
|
11056
11203
|
/**
|
|
11057
|
-
*
|
|
11204
|
+
* @public
|
|
11205
|
+
*/
|
|
11206
|
+
/**
|
|
11207
|
+
* @internal
|
|
11058
11208
|
*/
|
|
11059
11209
|
const PBRaycast = {
|
|
11060
11210
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -11101,7 +11251,7 @@
|
|
|
11101
11251
|
};
|
|
11102
11252
|
|
|
11103
11253
|
/**
|
|
11104
|
-
*
|
|
11254
|
+
* @internal
|
|
11105
11255
|
*/
|
|
11106
11256
|
const RaycastSchema = {
|
|
11107
11257
|
COMPONENT_ID: 1067,
|
|
@@ -11120,7 +11270,7 @@
|
|
|
11120
11270
|
};
|
|
11121
11271
|
|
|
11122
11272
|
/**
|
|
11123
|
-
*
|
|
11273
|
+
* @internal
|
|
11124
11274
|
*/
|
|
11125
11275
|
const RaycastResultSchema = {
|
|
11126
11276
|
COMPONENT_ID: 1068,
|
|
@@ -11165,7 +11315,10 @@
|
|
|
11165
11315
|
};
|
|
11166
11316
|
}
|
|
11167
11317
|
/**
|
|
11168
|
-
*
|
|
11318
|
+
* @public
|
|
11319
|
+
*/
|
|
11320
|
+
/**
|
|
11321
|
+
* @internal
|
|
11169
11322
|
*/
|
|
11170
11323
|
const PBTextShape = {
|
|
11171
11324
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -11314,7 +11467,7 @@
|
|
|
11314
11467
|
};
|
|
11315
11468
|
|
|
11316
11469
|
/**
|
|
11317
|
-
*
|
|
11470
|
+
* @internal
|
|
11318
11471
|
*/
|
|
11319
11472
|
const TextShapeSchema = {
|
|
11320
11473
|
COMPONENT_ID: 1030,
|
|
@@ -11337,7 +11490,10 @@
|
|
|
11337
11490
|
return { top: 0, left: 0, right: 0, bottom: 0 };
|
|
11338
11491
|
}
|
|
11339
11492
|
/**
|
|
11340
|
-
*
|
|
11493
|
+
* @public
|
|
11494
|
+
*/
|
|
11495
|
+
/**
|
|
11496
|
+
* @internal
|
|
11341
11497
|
*/
|
|
11342
11498
|
const BorderRect = {
|
|
11343
11499
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -11384,6 +11540,9 @@
|
|
|
11384
11540
|
};
|
|
11385
11541
|
|
|
11386
11542
|
/* eslint-disable */
|
|
11543
|
+
/**
|
|
11544
|
+
* @public
|
|
11545
|
+
*/
|
|
11387
11546
|
exports.BackgroundTextureMode = void 0;
|
|
11388
11547
|
(function (BackgroundTextureMode) {
|
|
11389
11548
|
/**
|
|
@@ -11409,7 +11568,10 @@
|
|
|
11409
11568
|
return { color: undefined, texture: undefined, textureMode: 0, textureSlices: undefined, uvs: [] };
|
|
11410
11569
|
}
|
|
11411
11570
|
/**
|
|
11412
|
-
*
|
|
11571
|
+
* @public
|
|
11572
|
+
*/
|
|
11573
|
+
/**
|
|
11574
|
+
* @internal
|
|
11413
11575
|
*/
|
|
11414
11576
|
const PBUiBackground = {
|
|
11415
11577
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -11472,7 +11634,7 @@
|
|
|
11472
11634
|
};
|
|
11473
11635
|
|
|
11474
11636
|
/**
|
|
11475
|
-
*
|
|
11637
|
+
* @internal
|
|
11476
11638
|
*/
|
|
11477
11639
|
const UiBackgroundSchema = {
|
|
11478
11640
|
COMPONENT_ID: 1053,
|
|
@@ -11505,7 +11667,10 @@
|
|
|
11505
11667
|
};
|
|
11506
11668
|
}
|
|
11507
11669
|
/**
|
|
11508
|
-
*
|
|
11670
|
+
* @public
|
|
11671
|
+
*/
|
|
11672
|
+
/**
|
|
11673
|
+
* @internal
|
|
11509
11674
|
*/
|
|
11510
11675
|
const PBUiDropdown = {
|
|
11511
11676
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -11582,7 +11747,7 @@
|
|
|
11582
11747
|
};
|
|
11583
11748
|
|
|
11584
11749
|
/**
|
|
11585
|
-
*
|
|
11750
|
+
* @internal
|
|
11586
11751
|
*/
|
|
11587
11752
|
const UiDropdownSchema = {
|
|
11588
11753
|
COMPONENT_ID: 1094,
|
|
@@ -11605,7 +11770,10 @@
|
|
|
11605
11770
|
return { value: 0 };
|
|
11606
11771
|
}
|
|
11607
11772
|
/**
|
|
11608
|
-
*
|
|
11773
|
+
* @public
|
|
11774
|
+
*/
|
|
11775
|
+
/**
|
|
11776
|
+
* @internal
|
|
11609
11777
|
*/
|
|
11610
11778
|
const PBUiDropdownResult = {
|
|
11611
11779
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -11634,7 +11802,7 @@
|
|
|
11634
11802
|
};
|
|
11635
11803
|
|
|
11636
11804
|
/**
|
|
11637
|
-
*
|
|
11805
|
+
* @internal
|
|
11638
11806
|
*/
|
|
11639
11807
|
const UiDropdownResultSchema = {
|
|
11640
11808
|
COMPONENT_ID: 1096,
|
|
@@ -11665,7 +11833,10 @@
|
|
|
11665
11833
|
};
|
|
11666
11834
|
}
|
|
11667
11835
|
/**
|
|
11668
|
-
*
|
|
11836
|
+
* @public
|
|
11837
|
+
*/
|
|
11838
|
+
/**
|
|
11839
|
+
* @internal
|
|
11669
11840
|
*/
|
|
11670
11841
|
const PBUiInput = {
|
|
11671
11842
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -11730,7 +11901,7 @@
|
|
|
11730
11901
|
};
|
|
11731
11902
|
|
|
11732
11903
|
/**
|
|
11733
|
-
*
|
|
11904
|
+
* @internal
|
|
11734
11905
|
*/
|
|
11735
11906
|
const UiInputSchema = {
|
|
11736
11907
|
COMPONENT_ID: 1093,
|
|
@@ -11753,7 +11924,10 @@
|
|
|
11753
11924
|
return { value: "" };
|
|
11754
11925
|
}
|
|
11755
11926
|
/**
|
|
11756
|
-
*
|
|
11927
|
+
* @public
|
|
11928
|
+
*/
|
|
11929
|
+
/**
|
|
11930
|
+
* @internal
|
|
11757
11931
|
*/
|
|
11758
11932
|
const PBUiInputResult = {
|
|
11759
11933
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -11782,7 +11956,7 @@
|
|
|
11782
11956
|
};
|
|
11783
11957
|
|
|
11784
11958
|
/**
|
|
11785
|
-
*
|
|
11959
|
+
* @internal
|
|
11786
11960
|
*/
|
|
11787
11961
|
const UiInputResultSchema = {
|
|
11788
11962
|
COMPONENT_ID: 1095,
|
|
@@ -11805,7 +11979,10 @@
|
|
|
11805
11979
|
return { value: "", color: undefined, textAlign: undefined, font: undefined, fontSize: undefined };
|
|
11806
11980
|
}
|
|
11807
11981
|
/**
|
|
11808
|
-
*
|
|
11982
|
+
* @public
|
|
11983
|
+
*/
|
|
11984
|
+
/**
|
|
11985
|
+
* @internal
|
|
11809
11986
|
*/
|
|
11810
11987
|
const PBUiText = {
|
|
11811
11988
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -11858,7 +12035,7 @@
|
|
|
11858
12035
|
};
|
|
11859
12036
|
|
|
11860
12037
|
/**
|
|
11861
|
-
*
|
|
12038
|
+
* @internal
|
|
11862
12039
|
*/
|
|
11863
12040
|
const UiTextSchema = {
|
|
11864
12041
|
COMPONENT_ID: 1052,
|
|
@@ -11877,11 +12054,17 @@
|
|
|
11877
12054
|
};
|
|
11878
12055
|
|
|
11879
12056
|
/* eslint-disable */
|
|
12057
|
+
/**
|
|
12058
|
+
* @public
|
|
12059
|
+
*/
|
|
11880
12060
|
exports.YGPositionType = void 0;
|
|
11881
12061
|
(function (YGPositionType) {
|
|
11882
12062
|
YGPositionType[YGPositionType["YGPT_RELATIVE"] = 0] = "YGPT_RELATIVE";
|
|
11883
12063
|
YGPositionType[YGPositionType["YGPT_ABSOLUTE"] = 1] = "YGPT_ABSOLUTE";
|
|
11884
12064
|
})(exports.YGPositionType || (exports.YGPositionType = {}));
|
|
12065
|
+
/**
|
|
12066
|
+
* @public
|
|
12067
|
+
*/
|
|
11885
12068
|
exports.YGAlign = void 0;
|
|
11886
12069
|
(function (YGAlign) {
|
|
11887
12070
|
YGAlign[YGAlign["YGA_AUTO"] = 0] = "YGA_AUTO";
|
|
@@ -11893,6 +12076,9 @@
|
|
|
11893
12076
|
YGAlign[YGAlign["YGA_SPACE_BETWEEN"] = 6] = "YGA_SPACE_BETWEEN";
|
|
11894
12077
|
YGAlign[YGAlign["YGA_SPACE_AROUND"] = 7] = "YGA_SPACE_AROUND";
|
|
11895
12078
|
})(exports.YGAlign || (exports.YGAlign = {}));
|
|
12079
|
+
/**
|
|
12080
|
+
* @public
|
|
12081
|
+
*/
|
|
11896
12082
|
exports.YGUnit = void 0;
|
|
11897
12083
|
(function (YGUnit) {
|
|
11898
12084
|
YGUnit[YGUnit["YGU_UNDEFINED"] = 0] = "YGU_UNDEFINED";
|
|
@@ -11900,6 +12086,9 @@
|
|
|
11900
12086
|
YGUnit[YGUnit["YGU_PERCENT"] = 2] = "YGU_PERCENT";
|
|
11901
12087
|
YGUnit[YGUnit["YGU_AUTO"] = 3] = "YGU_AUTO";
|
|
11902
12088
|
})(exports.YGUnit || (exports.YGUnit = {}));
|
|
12089
|
+
/**
|
|
12090
|
+
* @public
|
|
12091
|
+
*/
|
|
11903
12092
|
exports.YGFlexDirection = void 0;
|
|
11904
12093
|
(function (YGFlexDirection) {
|
|
11905
12094
|
YGFlexDirection[YGFlexDirection["YGFD_ROW"] = 0] = "YGFD_ROW";
|
|
@@ -11907,12 +12096,18 @@
|
|
|
11907
12096
|
YGFlexDirection[YGFlexDirection["YGFD_COLUMN_REVERSE"] = 2] = "YGFD_COLUMN_REVERSE";
|
|
11908
12097
|
YGFlexDirection[YGFlexDirection["YGFD_ROW_REVERSE"] = 3] = "YGFD_ROW_REVERSE";
|
|
11909
12098
|
})(exports.YGFlexDirection || (exports.YGFlexDirection = {}));
|
|
12099
|
+
/**
|
|
12100
|
+
* @public
|
|
12101
|
+
*/
|
|
11910
12102
|
exports.YGWrap = void 0;
|
|
11911
12103
|
(function (YGWrap) {
|
|
11912
12104
|
YGWrap[YGWrap["YGW_NO_WRAP"] = 0] = "YGW_NO_WRAP";
|
|
11913
12105
|
YGWrap[YGWrap["YGW_WRAP"] = 1] = "YGW_WRAP";
|
|
11914
12106
|
YGWrap[YGWrap["YGW_WRAP_REVERSE"] = 2] = "YGW_WRAP_REVERSE";
|
|
11915
12107
|
})(exports.YGWrap || (exports.YGWrap = {}));
|
|
12108
|
+
/**
|
|
12109
|
+
* @public
|
|
12110
|
+
*/
|
|
11916
12111
|
exports.YGJustify = void 0;
|
|
11917
12112
|
(function (YGJustify) {
|
|
11918
12113
|
YGJustify[YGJustify["YGJ_FLEX_START"] = 0] = "YGJ_FLEX_START";
|
|
@@ -11922,17 +12117,26 @@
|
|
|
11922
12117
|
YGJustify[YGJustify["YGJ_SPACE_AROUND"] = 4] = "YGJ_SPACE_AROUND";
|
|
11923
12118
|
YGJustify[YGJustify["YGJ_SPACE_EVENLY"] = 5] = "YGJ_SPACE_EVENLY";
|
|
11924
12119
|
})(exports.YGJustify || (exports.YGJustify = {}));
|
|
12120
|
+
/**
|
|
12121
|
+
* @public
|
|
12122
|
+
*/
|
|
11925
12123
|
exports.YGOverflow = void 0;
|
|
11926
12124
|
(function (YGOverflow) {
|
|
11927
12125
|
YGOverflow[YGOverflow["YGO_VISIBLE"] = 0] = "YGO_VISIBLE";
|
|
11928
12126
|
YGOverflow[YGOverflow["YGO_HIDDEN"] = 1] = "YGO_HIDDEN";
|
|
11929
12127
|
YGOverflow[YGOverflow["YGO_SCROLL"] = 2] = "YGO_SCROLL";
|
|
11930
12128
|
})(exports.YGOverflow || (exports.YGOverflow = {}));
|
|
12129
|
+
/**
|
|
12130
|
+
* @public
|
|
12131
|
+
*/
|
|
11931
12132
|
exports.YGDisplay = void 0;
|
|
11932
12133
|
(function (YGDisplay) {
|
|
11933
12134
|
YGDisplay[YGDisplay["YGD_FLEX"] = 0] = "YGD_FLEX";
|
|
11934
12135
|
YGDisplay[YGDisplay["YGD_NONE"] = 1] = "YGD_NONE";
|
|
11935
12136
|
})(exports.YGDisplay || (exports.YGDisplay = {}));
|
|
12137
|
+
/**
|
|
12138
|
+
* @public
|
|
12139
|
+
*/
|
|
11936
12140
|
exports.YGEdge = void 0;
|
|
11937
12141
|
(function (YGEdge) {
|
|
11938
12142
|
YGEdge[YGEdge["YGE_LEFT"] = 0] = "YGE_LEFT";
|
|
@@ -12001,7 +12205,10 @@
|
|
|
12001
12205
|
};
|
|
12002
12206
|
}
|
|
12003
12207
|
/**
|
|
12004
|
-
*
|
|
12208
|
+
* @public
|
|
12209
|
+
*/
|
|
12210
|
+
/**
|
|
12211
|
+
* @internal
|
|
12005
12212
|
*/
|
|
12006
12213
|
const PBUiTransform = {
|
|
12007
12214
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -12330,7 +12537,7 @@
|
|
|
12330
12537
|
};
|
|
12331
12538
|
|
|
12332
12539
|
/**
|
|
12333
|
-
*
|
|
12540
|
+
* @internal
|
|
12334
12541
|
*/
|
|
12335
12542
|
const UiTransformSchema = {
|
|
12336
12543
|
COMPONENT_ID: 1050,
|
|
@@ -12353,7 +12560,10 @@
|
|
|
12353
12560
|
return { visible: undefined };
|
|
12354
12561
|
}
|
|
12355
12562
|
/**
|
|
12356
|
-
*
|
|
12563
|
+
* @public
|
|
12564
|
+
*/
|
|
12565
|
+
/**
|
|
12566
|
+
* @internal
|
|
12357
12567
|
*/
|
|
12358
12568
|
const PBVisibilityComponent = {
|
|
12359
12569
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -12382,7 +12592,7 @@
|
|
|
12382
12592
|
};
|
|
12383
12593
|
|
|
12384
12594
|
/**
|
|
12385
|
-
*
|
|
12595
|
+
* @internal
|
|
12386
12596
|
*/
|
|
12387
12597
|
const VisibilityComponentSchema = {
|
|
12388
12598
|
COMPONENT_ID: 1081,
|
|
@@ -12875,9 +13085,9 @@
|
|
|
12875
13085
|
}
|
|
12876
13086
|
|
|
12877
13087
|
/**
|
|
12878
|
-
* @
|
|
13088
|
+
* @internal
|
|
12879
13089
|
*/
|
|
12880
|
-
|
|
13090
|
+
const IArray = (type) => {
|
|
12881
13091
|
return {
|
|
12882
13092
|
serialize(value, builder) {
|
|
12883
13093
|
builder.writeUint32(value.length);
|
|
@@ -12897,10 +13107,10 @@
|
|
|
12897
13107
|
return [];
|
|
12898
13108
|
}
|
|
12899
13109
|
};
|
|
12900
|
-
}
|
|
13110
|
+
};
|
|
12901
13111
|
|
|
12902
13112
|
/**
|
|
12903
|
-
* @
|
|
13113
|
+
* @internal
|
|
12904
13114
|
*/
|
|
12905
13115
|
const Bool = {
|
|
12906
13116
|
serialize(value, builder) {
|
|
@@ -12915,9 +13125,9 @@
|
|
|
12915
13125
|
};
|
|
12916
13126
|
|
|
12917
13127
|
/**
|
|
12918
|
-
* @
|
|
13128
|
+
* @internal
|
|
12919
13129
|
*/
|
|
12920
|
-
|
|
13130
|
+
const IEnum = (type) => {
|
|
12921
13131
|
return {
|
|
12922
13132
|
serialize(value, builder) {
|
|
12923
13133
|
type.serialize(value, builder);
|
|
@@ -12929,10 +13139,10 @@
|
|
|
12929
13139
|
return type.create();
|
|
12930
13140
|
}
|
|
12931
13141
|
};
|
|
12932
|
-
}
|
|
13142
|
+
};
|
|
12933
13143
|
|
|
12934
13144
|
/**
|
|
12935
|
-
* @
|
|
13145
|
+
* @internal
|
|
12936
13146
|
*/
|
|
12937
13147
|
const Float32 = {
|
|
12938
13148
|
serialize(value, builder) {
|
|
@@ -12946,7 +13156,7 @@
|
|
|
12946
13156
|
}
|
|
12947
13157
|
};
|
|
12948
13158
|
/**
|
|
12949
|
-
* @
|
|
13159
|
+
* @internal
|
|
12950
13160
|
*/
|
|
12951
13161
|
const Float64 = {
|
|
12952
13162
|
serialize(value, builder) {
|
|
@@ -12961,7 +13171,7 @@
|
|
|
12961
13171
|
};
|
|
12962
13172
|
|
|
12963
13173
|
/**
|
|
12964
|
-
* @
|
|
13174
|
+
* @internal
|
|
12965
13175
|
*/
|
|
12966
13176
|
const Int64 = {
|
|
12967
13177
|
serialize(value, builder) {
|
|
@@ -12975,7 +13185,7 @@
|
|
|
12975
13185
|
}
|
|
12976
13186
|
};
|
|
12977
13187
|
/**
|
|
12978
|
-
* @
|
|
13188
|
+
* @internal
|
|
12979
13189
|
*/
|
|
12980
13190
|
const Int32 = {
|
|
12981
13191
|
serialize(value, builder) {
|
|
@@ -13018,7 +13228,7 @@
|
|
|
13018
13228
|
};
|
|
13019
13229
|
|
|
13020
13230
|
/**
|
|
13021
|
-
* @
|
|
13231
|
+
* @internal
|
|
13022
13232
|
*/
|
|
13023
13233
|
const FlatString = {
|
|
13024
13234
|
serialize(value, builder) {
|
|
@@ -13032,12 +13242,12 @@
|
|
|
13032
13242
|
}
|
|
13033
13243
|
};
|
|
13034
13244
|
/**
|
|
13035
|
-
* @
|
|
13245
|
+
* @internal
|
|
13036
13246
|
*/
|
|
13037
13247
|
const EcsString = FlatString;
|
|
13038
13248
|
|
|
13039
13249
|
/**
|
|
13040
|
-
* @
|
|
13250
|
+
* @internal
|
|
13041
13251
|
*/
|
|
13042
13252
|
const Color3Schema = {
|
|
13043
13253
|
serialize(value, builder) {
|
|
@@ -13058,7 +13268,7 @@
|
|
|
13058
13268
|
};
|
|
13059
13269
|
|
|
13060
13270
|
/**
|
|
13061
|
-
* @
|
|
13271
|
+
* @internal
|
|
13062
13272
|
*/
|
|
13063
13273
|
const Color4Schema = {
|
|
13064
13274
|
serialize(value, builder) {
|
|
@@ -13081,7 +13291,7 @@
|
|
|
13081
13291
|
};
|
|
13082
13292
|
|
|
13083
13293
|
/**
|
|
13084
|
-
* @
|
|
13294
|
+
* @internal
|
|
13085
13295
|
*/
|
|
13086
13296
|
const EntitySchema = {
|
|
13087
13297
|
serialize(value, builder) {
|
|
@@ -13096,7 +13306,7 @@
|
|
|
13096
13306
|
};
|
|
13097
13307
|
|
|
13098
13308
|
/**
|
|
13099
|
-
* @
|
|
13309
|
+
* @internal
|
|
13100
13310
|
*/
|
|
13101
13311
|
const QuaternionSchema = {
|
|
13102
13312
|
serialize(value, builder) {
|
|
@@ -13119,7 +13329,7 @@
|
|
|
13119
13329
|
};
|
|
13120
13330
|
|
|
13121
13331
|
/**
|
|
13122
|
-
* @
|
|
13332
|
+
* @internal
|
|
13123
13333
|
*/
|
|
13124
13334
|
const Vector3Schema = {
|
|
13125
13335
|
serialize(value, builder) {
|
|
@@ -13140,9 +13350,9 @@
|
|
|
13140
13350
|
};
|
|
13141
13351
|
|
|
13142
13352
|
/**
|
|
13143
|
-
* @
|
|
13353
|
+
* @internal
|
|
13144
13354
|
*/
|
|
13145
|
-
|
|
13355
|
+
const IMap = (spec, defaultValue) => {
|
|
13146
13356
|
return {
|
|
13147
13357
|
serialize(value, builder) {
|
|
13148
13358
|
for (const key in spec) {
|
|
@@ -13171,12 +13381,12 @@
|
|
|
13171
13381
|
return { ...newValue, ...defaultValue, ...base };
|
|
13172
13382
|
}
|
|
13173
13383
|
};
|
|
13174
|
-
}
|
|
13384
|
+
};
|
|
13175
13385
|
|
|
13176
13386
|
/**
|
|
13177
|
-
* @
|
|
13387
|
+
* @internal
|
|
13178
13388
|
*/
|
|
13179
|
-
|
|
13389
|
+
const IOptional = (spec) => {
|
|
13180
13390
|
return {
|
|
13181
13391
|
serialize(value, builder) {
|
|
13182
13392
|
if (value) {
|
|
@@ -13197,30 +13407,48 @@
|
|
|
13197
13407
|
return undefined;
|
|
13198
13408
|
}
|
|
13199
13409
|
};
|
|
13200
|
-
}
|
|
13410
|
+
};
|
|
13201
13411
|
|
|
13202
13412
|
/**
|
|
13203
13413
|
* @public
|
|
13204
13414
|
*/
|
|
13205
13415
|
exports.Schemas = void 0;
|
|
13206
13416
|
(function (Schemas) {
|
|
13417
|
+
/** @public */
|
|
13207
13418
|
Schemas.Boolean = Bool;
|
|
13419
|
+
/** @public */
|
|
13208
13420
|
Schemas.String = EcsString;
|
|
13421
|
+
/** @public */
|
|
13209
13422
|
Schemas.Float = Float32;
|
|
13423
|
+
/** @public */
|
|
13210
13424
|
Schemas.Double = Float64;
|
|
13425
|
+
/** @public */
|
|
13211
13426
|
Schemas.Byte = Int8;
|
|
13427
|
+
/** @public */
|
|
13212
13428
|
Schemas.Short = Int16;
|
|
13429
|
+
/** @public */
|
|
13213
13430
|
Schemas.Int = Int32;
|
|
13431
|
+
/** @public */
|
|
13214
13432
|
Schemas.Int64 = Int64;
|
|
13433
|
+
/** @public */
|
|
13215
13434
|
Schemas.Number = Float32;
|
|
13435
|
+
/** @public */
|
|
13216
13436
|
Schemas.Vector3 = Vector3Schema;
|
|
13437
|
+
/** @public */
|
|
13217
13438
|
Schemas.Quaternion = QuaternionSchema;
|
|
13439
|
+
/** @public */
|
|
13218
13440
|
Schemas.Color3 = Color3Schema;
|
|
13441
|
+
/** @public */
|
|
13219
13442
|
Schemas.Color4 = Color4Schema;
|
|
13443
|
+
/** @public */
|
|
13220
13444
|
Schemas.Entity = EntitySchema;
|
|
13445
|
+
/** @public */
|
|
13221
13446
|
Schemas.Enum = IEnum;
|
|
13447
|
+
/** @public */
|
|
13222
13448
|
Schemas.Array = IArray;
|
|
13449
|
+
/** @public */
|
|
13223
13450
|
Schemas.Map = IMap;
|
|
13451
|
+
/** @public */
|
|
13224
13452
|
Schemas.Optional = IOptional;
|
|
13225
13453
|
})(exports.Schemas || (exports.Schemas = {}));
|
|
13226
13454
|
|
|
@@ -13620,18 +13848,28 @@
|
|
|
13620
13848
|
|
|
13621
13849
|
var gsetExports = requireGset();
|
|
13622
13850
|
|
|
13851
|
+
/**
|
|
13852
|
+
* @internal
|
|
13853
|
+
*/
|
|
13623
13854
|
const MAX_U16 = 0xffff;
|
|
13624
13855
|
const MASK_UPPER_16_ON_32 = 0xffff0000;
|
|
13856
|
+
/**
|
|
13857
|
+
* @internal
|
|
13858
|
+
*/
|
|
13625
13859
|
const AMOUNT_VERSION_AVAILABLE = MAX_U16 + 1;
|
|
13626
13860
|
// This type matches with @dcl/crdt entity type.
|
|
13627
13861
|
/**
|
|
13628
|
-
* @
|
|
13862
|
+
* @internal
|
|
13863
|
+
* This first 512 entities are reserved by the renderer
|
|
13629
13864
|
*/
|
|
13630
13865
|
const RESERVED_STATIC_ENTITIES = 512;
|
|
13631
13866
|
/**
|
|
13632
|
-
* @
|
|
13867
|
+
* @internal
|
|
13633
13868
|
*/
|
|
13634
13869
|
const MAX_ENTITY_NUMBER = MAX_U16;
|
|
13870
|
+
/**
|
|
13871
|
+
* @internal
|
|
13872
|
+
*/
|
|
13635
13873
|
exports.EntityUtils = void 0;
|
|
13636
13874
|
(function (EntityUtils) {
|
|
13637
13875
|
/**
|
|
@@ -13668,6 +13906,9 @@
|
|
|
13668
13906
|
*/
|
|
13669
13907
|
EntityState[EntityState["Reserved"] = 3] = "Reserved";
|
|
13670
13908
|
})(exports.EntityState || (exports.EntityState = {}));
|
|
13909
|
+
/**
|
|
13910
|
+
* @internal
|
|
13911
|
+
*/
|
|
13671
13912
|
function EntityContainer() {
|
|
13672
13913
|
let entityCounter = RESERVED_STATIC_ENTITIES;
|
|
13673
13914
|
const usedEntities = new Set();
|
|
@@ -14020,6 +14261,9 @@
|
|
|
14020
14261
|
return this.roffset - amount;
|
|
14021
14262
|
};
|
|
14022
14263
|
|
|
14264
|
+
/**
|
|
14265
|
+
* @public
|
|
14266
|
+
*/
|
|
14023
14267
|
exports.CrdtMessageType = void 0;
|
|
14024
14268
|
(function (CrdtMessageType) {
|
|
14025
14269
|
CrdtMessageType[CrdtMessageType["RESERVED"] = 0] = "RESERVED";
|
|
@@ -14029,8 +14273,14 @@
|
|
|
14029
14273
|
CrdtMessageType[CrdtMessageType["DELETE_ENTITY"] = 3] = "DELETE_ENTITY";
|
|
14030
14274
|
CrdtMessageType[CrdtMessageType["MAX_MESSAGE_TYPE"] = 4] = "MAX_MESSAGE_TYPE";
|
|
14031
14275
|
})(exports.CrdtMessageType || (exports.CrdtMessageType = {}));
|
|
14276
|
+
/**
|
|
14277
|
+
* @internal
|
|
14278
|
+
*/
|
|
14032
14279
|
const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
14033
14280
|
|
|
14281
|
+
/**
|
|
14282
|
+
* @internal
|
|
14283
|
+
*/
|
|
14034
14284
|
exports.DeleteComponent = void 0;
|
|
14035
14285
|
(function (DeleteComponent) {
|
|
14036
14286
|
// TODO: change timestamp to 32 bit and remove buffer length (-8 bytes)
|
|
@@ -14055,7 +14305,7 @@
|
|
|
14055
14305
|
}
|
|
14056
14306
|
DeleteComponent.write = write;
|
|
14057
14307
|
function read(buf) {
|
|
14058
|
-
const header = CrdtMessageProtocol.readHeader(buf);
|
|
14308
|
+
const header = exports.CrdtMessageProtocol.readHeader(buf);
|
|
14059
14309
|
if (!header) {
|
|
14060
14310
|
return null;
|
|
14061
14311
|
}
|
|
@@ -14075,6 +14325,9 @@
|
|
|
14075
14325
|
DeleteComponent.read = read;
|
|
14076
14326
|
})(exports.DeleteComponent || (exports.DeleteComponent = {}));
|
|
14077
14327
|
|
|
14328
|
+
/**
|
|
14329
|
+
* @internal
|
|
14330
|
+
*/
|
|
14078
14331
|
exports.PutComponentOperation = void 0;
|
|
14079
14332
|
(function (PutComponentOperation) {
|
|
14080
14333
|
PutComponentOperation.MESSAGE_HEADER_LENGTH = 20;
|
|
@@ -14100,7 +14353,7 @@
|
|
|
14100
14353
|
}
|
|
14101
14354
|
PutComponentOperation.write = write;
|
|
14102
14355
|
function read(buf) {
|
|
14103
|
-
const header = CrdtMessageProtocol.readHeader(buf);
|
|
14356
|
+
const header = exports.CrdtMessageProtocol.readHeader(buf);
|
|
14104
14357
|
if (!header) {
|
|
14105
14358
|
return null;
|
|
14106
14359
|
}
|
|
@@ -14118,6 +14371,9 @@
|
|
|
14118
14371
|
PutComponentOperation.read = read;
|
|
14119
14372
|
})(exports.PutComponentOperation || (exports.PutComponentOperation = {}));
|
|
14120
14373
|
|
|
14374
|
+
/**
|
|
14375
|
+
* @internal
|
|
14376
|
+
*/
|
|
14121
14377
|
exports.DeleteEntity = void 0;
|
|
14122
14378
|
(function (DeleteEntity) {
|
|
14123
14379
|
DeleteEntity.MESSAGE_HEADER_LENGTH = 4;
|
|
@@ -14130,7 +14386,7 @@
|
|
|
14130
14386
|
}
|
|
14131
14387
|
DeleteEntity.write = write;
|
|
14132
14388
|
function read(buf) {
|
|
14133
|
-
const header = CrdtMessageProtocol.readHeader(buf);
|
|
14389
|
+
const header = exports.CrdtMessageProtocol.readHeader(buf);
|
|
14134
14390
|
if (!header) {
|
|
14135
14391
|
return null;
|
|
14136
14392
|
}
|
|
@@ -14145,6 +14401,9 @@
|
|
|
14145
14401
|
DeleteEntity.read = read;
|
|
14146
14402
|
})(exports.DeleteEntity || (exports.DeleteEntity = {}));
|
|
14147
14403
|
|
|
14404
|
+
/**
|
|
14405
|
+
* @internal
|
|
14406
|
+
*/
|
|
14148
14407
|
exports.CrdtMessageProtocol = void 0;
|
|
14149
14408
|
(function (CrdtMessageProtocol) {
|
|
14150
14409
|
/**
|
|
@@ -14209,8 +14468,10 @@
|
|
|
14209
14468
|
}
|
|
14210
14469
|
CrdtMessageProtocol.consumeMessage = consumeMessage;
|
|
14211
14470
|
})(exports.CrdtMessageProtocol || (exports.CrdtMessageProtocol = {}));
|
|
14212
|
-
var CrdtMessageProtocol = exports.CrdtMessageProtocol;
|
|
14213
14471
|
|
|
14472
|
+
/**
|
|
14473
|
+
* @internal
|
|
14474
|
+
*/
|
|
14214
14475
|
function crdtSceneSystem(engine, onProcessEntityComponentChange) {
|
|
14215
14476
|
const transports = [];
|
|
14216
14477
|
// CRDT Client
|
|
@@ -14238,7 +14499,7 @@
|
|
|
14238
14499
|
return function parseChunkMessage(chunkMessage) {
|
|
14239
14500
|
const buffer = new ReadWriteByteBuffer(chunkMessage);
|
|
14240
14501
|
let header;
|
|
14241
|
-
while ((header = CrdtMessageProtocol.getHeader(buffer))) {
|
|
14502
|
+
while ((header = exports.CrdtMessageProtocol.getHeader(buffer))) {
|
|
14242
14503
|
const offset = buffer.currentReadOffset();
|
|
14243
14504
|
if (header.type === exports.CrdtMessageType.DELETE_COMPONENT) {
|
|
14244
14505
|
const message = exports.DeleteComponent.read(buffer);
|
|
@@ -14523,6 +14784,9 @@
|
|
|
14523
14784
|
return Object.freeze({ ...val });
|
|
14524
14785
|
}
|
|
14525
14786
|
|
|
14787
|
+
/**
|
|
14788
|
+
* @internal
|
|
14789
|
+
*/
|
|
14526
14790
|
function createComponentDefinitionFromSchema(componentName, componentId, schema) {
|
|
14527
14791
|
const data = new Map();
|
|
14528
14792
|
const dirtyIterator = new Set();
|
|
@@ -14727,6 +14991,9 @@
|
|
|
14727
14991
|
};
|
|
14728
14992
|
const TimestampUpdateSystemPriority = 1 << 20;
|
|
14729
14993
|
const ButtonStateUpdateSystemPriority = 0;
|
|
14994
|
+
/**
|
|
14995
|
+
* @internal
|
|
14996
|
+
*/
|
|
14730
14997
|
function createInputSystem(engine) {
|
|
14731
14998
|
const PointerEventsResult = PointerEventsResult$1(engine);
|
|
14732
14999
|
const InternalInputStateComponent = engine.defineComponent('@dcl/sdk/InternalInputStateSchema', InternalInputStateSchema);
|
|
@@ -15019,47 +15286,47 @@
|
|
|
15019
15286
|
};
|
|
15020
15287
|
}
|
|
15021
15288
|
/**
|
|
15022
|
-
* @
|
|
15289
|
+
* @internal
|
|
15023
15290
|
*/
|
|
15024
15291
|
function Engine(options) {
|
|
15025
|
-
const
|
|
15026
|
-
const crdtSystem = crdtSceneSystem(
|
|
15292
|
+
const partialEngine = preEngine();
|
|
15293
|
+
const crdtSystem = crdtSceneSystem(partialEngine, options?.onChangeFunction || null);
|
|
15027
15294
|
async function update(dt) {
|
|
15028
15295
|
await crdtSystem.receiveMessages();
|
|
15029
|
-
for (const system of
|
|
15296
|
+
for (const system of partialEngine.getSystems()) {
|
|
15030
15297
|
const ret = system.fn(dt);
|
|
15031
15298
|
checkNotThenable(ret, `A system (${system.name || 'anonymous'}) returned a thenable. Systems cannot be async functions. Documentation: https://dcl.gg/sdk/sync-systems`);
|
|
15032
15299
|
}
|
|
15033
15300
|
const dirtyEntities = crdtSystem.updateState();
|
|
15034
|
-
const deletedEntites =
|
|
15301
|
+
const deletedEntites = partialEngine.entityContainer.releaseRemovedEntities();
|
|
15035
15302
|
await crdtSystem.sendMessages(dirtyEntities, deletedEntites);
|
|
15036
|
-
for (const definition of
|
|
15303
|
+
for (const definition of partialEngine.componentsIter()) {
|
|
15037
15304
|
definition.clearDirty();
|
|
15038
15305
|
}
|
|
15039
15306
|
}
|
|
15040
15307
|
return {
|
|
15041
|
-
addEntity:
|
|
15042
|
-
removeEntity:
|
|
15043
|
-
removeEntityWithChildren:
|
|
15044
|
-
addSystem:
|
|
15045
|
-
removeSystem:
|
|
15046
|
-
defineComponent:
|
|
15047
|
-
defineComponentFromSchema:
|
|
15048
|
-
registerComponentDefinition:
|
|
15049
|
-
getEntitiesWith:
|
|
15050
|
-
getComponent:
|
|
15051
|
-
getComponentOrNull:
|
|
15052
|
-
removeComponentDefinition:
|
|
15053
|
-
componentsIter:
|
|
15054
|
-
seal:
|
|
15308
|
+
addEntity: partialEngine.addEntity,
|
|
15309
|
+
removeEntity: partialEngine.removeEntity,
|
|
15310
|
+
removeEntityWithChildren: partialEngine.removeEntityWithChildren,
|
|
15311
|
+
addSystem: partialEngine.addSystem,
|
|
15312
|
+
removeSystem: partialEngine.removeSystem,
|
|
15313
|
+
defineComponent: partialEngine.defineComponent,
|
|
15314
|
+
defineComponentFromSchema: partialEngine.defineComponentFromSchema,
|
|
15315
|
+
registerComponentDefinition: partialEngine.registerComponentDefinition,
|
|
15316
|
+
getEntitiesWith: partialEngine.getEntitiesWith,
|
|
15317
|
+
getComponent: partialEngine.getComponent,
|
|
15318
|
+
getComponentOrNull: partialEngine.getComponentOrNull,
|
|
15319
|
+
removeComponentDefinition: partialEngine.removeComponentDefinition,
|
|
15320
|
+
componentsIter: partialEngine.componentsIter,
|
|
15321
|
+
seal: partialEngine.seal,
|
|
15055
15322
|
update,
|
|
15056
15323
|
RootEntity: 0,
|
|
15057
15324
|
PlayerEntity: 1,
|
|
15058
15325
|
CameraEntity: 2,
|
|
15059
|
-
getEntityState:
|
|
15326
|
+
getEntityState: partialEngine.entityContainer.getEntityState,
|
|
15060
15327
|
addTransport: crdtSystem.addTransport,
|
|
15061
15328
|
getCrdtState: crdtSystem.getCrdt,
|
|
15062
|
-
entityContainer:
|
|
15329
|
+
entityContainer: partialEngine.entityContainer
|
|
15063
15330
|
};
|
|
15064
15331
|
}
|
|
15065
15332
|
|
|
@@ -15068,6 +15335,9 @@
|
|
|
15068
15335
|
value.length = 0;
|
|
15069
15336
|
return messagesToProcess;
|
|
15070
15337
|
}
|
|
15338
|
+
/**
|
|
15339
|
+
* @internal
|
|
15340
|
+
*/
|
|
15071
15341
|
function createTaskSystem(engine) {
|
|
15072
15342
|
const tasks = [];
|
|
15073
15343
|
async function runTask(task) {
|
|
@@ -15092,6 +15362,9 @@
|
|
|
15092
15362
|
};
|
|
15093
15363
|
}
|
|
15094
15364
|
|
|
15365
|
+
/**
|
|
15366
|
+
* @internal
|
|
15367
|
+
*/
|
|
15095
15368
|
function createPointerEventSystem(engine, inputSystem) {
|
|
15096
15369
|
const PointerEvents = PointerEvents$1(engine);
|
|
15097
15370
|
let EventType;
|
|
@@ -15165,37 +15438,15 @@
|
|
|
15165
15438
|
}
|
|
15166
15439
|
});
|
|
15167
15440
|
return {
|
|
15168
|
-
/**
|
|
15169
|
-
* @internal
|
|
15170
|
-
* Remove the callback for onClick event
|
|
15171
|
-
* @param entity - Entity where the callback was attached
|
|
15172
|
-
*/
|
|
15173
15441
|
removeOnClick(entity) {
|
|
15174
15442
|
removeEvent(entity, EventType.Click);
|
|
15175
15443
|
},
|
|
15176
|
-
/**
|
|
15177
|
-
* @public
|
|
15178
|
-
* Remove the callback for onPointerDown event
|
|
15179
|
-
* @param entity - Entity where the callback was attached
|
|
15180
|
-
*/
|
|
15181
15444
|
removeOnPointerDown(entity) {
|
|
15182
15445
|
removeEvent(entity, EventType.Down);
|
|
15183
15446
|
},
|
|
15184
|
-
/**
|
|
15185
|
-
* @public
|
|
15186
|
-
* Remove the callback for onPointerUp event
|
|
15187
|
-
* @param entity - Entity where the callback was attached
|
|
15188
|
-
*/
|
|
15189
15447
|
removeOnPointerUp(entity) {
|
|
15190
15448
|
removeEvent(entity, EventType.Up);
|
|
15191
15449
|
},
|
|
15192
|
-
/**
|
|
15193
|
-
* @internal
|
|
15194
|
-
* Execute callback when the user clicks the entity.
|
|
15195
|
-
* @param entity - Entity to attach the callback
|
|
15196
|
-
* @param cb - Function to execute when onPointerDown fires
|
|
15197
|
-
* @param opts - Opts to trigger Feedback and Button
|
|
15198
|
-
*/
|
|
15199
15450
|
onClick(entity, cb, opts) {
|
|
15200
15451
|
const options = getDefaultOpts(opts);
|
|
15201
15452
|
// Clear previous event with over feedback included
|
|
@@ -15204,26 +15455,12 @@
|
|
|
15204
15455
|
getEvent(entity).set(EventType.Click, { cb, opts: options });
|
|
15205
15456
|
setPointerEvent(entity, 1 /* PointerEventType.PET_DOWN */, options);
|
|
15206
15457
|
},
|
|
15207
|
-
/**
|
|
15208
|
-
* @public
|
|
15209
|
-
* Execute callback when the user press the InputButton pointing at the entity
|
|
15210
|
-
* @param entity - Entity to attach the callback
|
|
15211
|
-
* @param cb - Function to execute when click fires
|
|
15212
|
-
* @param opts - Opts to trigger Feedback and Button
|
|
15213
|
-
*/
|
|
15214
15458
|
onPointerDown(entity, cb, opts) {
|
|
15215
15459
|
const options = getDefaultOpts(opts);
|
|
15216
15460
|
removeEvent(entity, EventType.Down);
|
|
15217
15461
|
getEvent(entity).set(EventType.Down, { cb, opts: options });
|
|
15218
15462
|
setPointerEvent(entity, 1 /* PointerEventType.PET_DOWN */, options);
|
|
15219
15463
|
},
|
|
15220
|
-
/**
|
|
15221
|
-
* @public
|
|
15222
|
-
* Execute callback when the user releases the InputButton pointing at the entity
|
|
15223
|
-
* @param entity - Entity to attach the callback
|
|
15224
|
-
* @param cb - Function to execute when click fires
|
|
15225
|
-
* @param opts - Opts to trigger Feedback and Button
|
|
15226
|
-
*/
|
|
15227
15464
|
onPointerUp(entity, cb, opts) {
|
|
15228
15465
|
const options = getDefaultOpts(opts);
|
|
15229
15466
|
removeEvent(entity, EventType.Up);
|
|
@@ -15237,15 +15474,39 @@
|
|
|
15237
15474
|
* @alpha * This file initialization is an alpha one. This is based on the old-ecs
|
|
15238
15475
|
* init and it'll be changing.
|
|
15239
15476
|
*/
|
|
15477
|
+
/**
|
|
15478
|
+
* @public
|
|
15479
|
+
* The engine is the part of the scene that sits in the middle and manages all of the other parts.
|
|
15480
|
+
* It determines what entities are rendered and how players interact with them.
|
|
15481
|
+
* It also coordinates what functions from systems are executed and when.
|
|
15482
|
+
*
|
|
15483
|
+
* @example
|
|
15484
|
+
* import { engine } from '@dcl/sdk/ecs'
|
|
15485
|
+
* const entity = engine.addEntity()
|
|
15486
|
+
* engine.addSystem(someSystemFunction)
|
|
15487
|
+
*
|
|
15488
|
+
*/
|
|
15240
15489
|
|
|
15241
15490
|
const engine = Engine();
|
|
15242
|
-
|
|
15491
|
+
/**
|
|
15492
|
+
* @public
|
|
15493
|
+
* Input system manager. Check for button events
|
|
15494
|
+
* @example
|
|
15495
|
+
* inputSystem.isTriggered: Returns true if an input action ocurred since the last tick.
|
|
15496
|
+
* inputSystem.isPressed: Returns true if an input is currently being pressed down. It will return true on every tick until the button goes up again.
|
|
15497
|
+
* inputSystem.getInputCommand: Returns an object with data about the input action.
|
|
15498
|
+
*/
|
|
15243
15499
|
|
|
15244
15500
|
const inputSystem = createInputSystem(engine);
|
|
15501
|
+
/**
|
|
15502
|
+
* @public
|
|
15503
|
+
* Register callback functions to a particular entity.
|
|
15504
|
+
*/
|
|
15245
15505
|
|
|
15246
15506
|
const pointerEventsSystem = createPointerEventSystem(engine, inputSystem);
|
|
15247
15507
|
/**
|
|
15248
15508
|
* @public
|
|
15509
|
+
* Runs an async function
|
|
15249
15510
|
*/
|
|
15250
15511
|
|
|
15251
15512
|
const executeTask = createTaskSystem(engine).executeTask;
|
|
@@ -15309,6 +15570,9 @@
|
|
|
15309
15570
|
/** @public */ const VisibilityComponent = VisibilityComponent$1(engine);
|
|
15310
15571
|
|
|
15311
15572
|
/* eslint-disable */
|
|
15573
|
+
/**
|
|
15574
|
+
* @public
|
|
15575
|
+
*/
|
|
15312
15576
|
exports.CameraType = void 0;
|
|
15313
15577
|
(function (CameraType) {
|
|
15314
15578
|
CameraType[CameraType["CT_FIRST_PERSON"] = 0] = "CT_FIRST_PERSON";
|
|
@@ -15316,6 +15580,9 @@
|
|
|
15316
15580
|
})(exports.CameraType || (exports.CameraType = {}));
|
|
15317
15581
|
|
|
15318
15582
|
/* eslint-disable */
|
|
15583
|
+
/**
|
|
15584
|
+
* @public
|
|
15585
|
+
*/
|
|
15319
15586
|
exports.InputAction = void 0;
|
|
15320
15587
|
(function (InputAction) {
|
|
15321
15588
|
InputAction[InputAction["IA_POINTER"] = 0] = "IA_POINTER";
|
|
@@ -15335,6 +15602,9 @@
|
|
|
15335
15602
|
})(exports.InputAction || (exports.InputAction = {}));
|
|
15336
15603
|
|
|
15337
15604
|
/* eslint-disable */
|
|
15605
|
+
/**
|
|
15606
|
+
* @public
|
|
15607
|
+
*/
|
|
15338
15608
|
exports.TextAlignMode = void 0;
|
|
15339
15609
|
(function (TextAlignMode) {
|
|
15340
15610
|
TextAlignMode[TextAlignMode["TAM_TOP_LEFT"] = 0] = "TAM_TOP_LEFT";
|
|
@@ -15347,6 +15617,9 @@
|
|
|
15347
15617
|
TextAlignMode[TextAlignMode["TAM_BOTTOM_CENTER"] = 7] = "TAM_BOTTOM_CENTER";
|
|
15348
15618
|
TextAlignMode[TextAlignMode["TAM_BOTTOM_RIGHT"] = 8] = "TAM_BOTTOM_RIGHT";
|
|
15349
15619
|
})(exports.TextAlignMode || (exports.TextAlignMode = {}));
|
|
15620
|
+
/**
|
|
15621
|
+
* @public
|
|
15622
|
+
*/
|
|
15350
15623
|
exports.Font = void 0;
|
|
15351
15624
|
(function (Font) {
|
|
15352
15625
|
Font[Font["F_SANS_SERIF"] = 0] = "F_SANS_SERIF";
|
|
@@ -18176,9 +18449,11 @@
|
|
|
18176
18449
|
var reactExports = requireReact();
|
|
18177
18450
|
var React = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
|
|
18178
18451
|
|
|
18452
|
+
/**
|
|
18453
|
+
* @public
|
|
18454
|
+
*/
|
|
18179
18455
|
var ReactEcs$1;
|
|
18180
18456
|
(function (ReactEcs) {
|
|
18181
|
-
// TODO: check if this as any is still needed
|
|
18182
18457
|
ReactEcs.createElement = React.createElement;
|
|
18183
18458
|
})(ReactEcs$1 || (ReactEcs$1 = {}));
|
|
18184
18459
|
|
|
@@ -40623,6 +40898,75 @@
|
|
|
40623
40898
|
var reactReconcilerExports = requireReactReconciler();
|
|
40624
40899
|
var Reconciler = /*@__PURE__*/getDefaultExportFromCjs(reactReconcilerExports);
|
|
40625
40900
|
|
|
40901
|
+
const parseTextureMode = {
|
|
40902
|
+
'nine-slices': 0 /* BackgroundTextureMode.NINE_SLICES */,
|
|
40903
|
+
center: 1 /* BackgroundTextureMode.CENTER */,
|
|
40904
|
+
stretch: 2 /* BackgroundTextureMode.STRETCH */
|
|
40905
|
+
};
|
|
40906
|
+
/**
|
|
40907
|
+
* @internal
|
|
40908
|
+
*/
|
|
40909
|
+
function getTextureMode(mode) {
|
|
40910
|
+
const value = mode ? parseTextureMode[mode] : 1 /* BackgroundTextureMode.CENTER */;
|
|
40911
|
+
return { textureMode: value };
|
|
40912
|
+
}
|
|
40913
|
+
/**
|
|
40914
|
+
* @internal
|
|
40915
|
+
*/
|
|
40916
|
+
function getTexture(props) {
|
|
40917
|
+
if (props.texture) {
|
|
40918
|
+
return {
|
|
40919
|
+
tex: {
|
|
40920
|
+
$case: 'texture',
|
|
40921
|
+
texture: parseTexture(props.texture)
|
|
40922
|
+
}
|
|
40923
|
+
};
|
|
40924
|
+
}
|
|
40925
|
+
if (props.avatarTexture) {
|
|
40926
|
+
return {
|
|
40927
|
+
tex: {
|
|
40928
|
+
$case: 'avatarTexture',
|
|
40929
|
+
avatarTexture: parseTexture(props.avatarTexture)
|
|
40930
|
+
}
|
|
40931
|
+
};
|
|
40932
|
+
}
|
|
40933
|
+
return undefined;
|
|
40934
|
+
}
|
|
40935
|
+
function parseTexture(texture) {
|
|
40936
|
+
return {
|
|
40937
|
+
...texture,
|
|
40938
|
+
wrapMode: texture.wrapMode ? parseWrap[texture.wrapMode] : undefined,
|
|
40939
|
+
filterMode: texture.filterMode ? parseFilter[texture.filterMode] : undefined
|
|
40940
|
+
};
|
|
40941
|
+
}
|
|
40942
|
+
const parseWrap = {
|
|
40943
|
+
repeat: 0 /* TextureWrapMode.TWM_REPEAT */,
|
|
40944
|
+
clamp: 1 /* TextureWrapMode.TWM_CLAMP */,
|
|
40945
|
+
mirror: 2 /* TextureWrapMode.TWM_MIRROR */,
|
|
40946
|
+
'mirror-once': 3 /* TextureWrapMode.TWM_MIRROR_ONCE */
|
|
40947
|
+
};
|
|
40948
|
+
const parseFilter = {
|
|
40949
|
+
point: 0 /* TextureFilterMode.TFM_POINT */,
|
|
40950
|
+
'bi-linear': 1 /* TextureFilterMode.TFM_BILINEAR */,
|
|
40951
|
+
'tri-linear': 2 /* TextureFilterMode.TFM_TRILINEAR */
|
|
40952
|
+
};
|
|
40953
|
+
|
|
40954
|
+
/**
|
|
40955
|
+
* @public
|
|
40956
|
+
*/
|
|
40957
|
+
|
|
40958
|
+
function parseUiBackground(props) {
|
|
40959
|
+
if (!props || !Object.keys(props).length)
|
|
40960
|
+
return undefined;
|
|
40961
|
+
const texture = getTexture(props);
|
|
40962
|
+
return {
|
|
40963
|
+
...props,
|
|
40964
|
+
...getTextureMode(props.textureMode),
|
|
40965
|
+
uvs: props.uvs ?? [],
|
|
40966
|
+
texture
|
|
40967
|
+
};
|
|
40968
|
+
}
|
|
40969
|
+
|
|
40626
40970
|
function capitalize(value) {
|
|
40627
40971
|
return `${value[0].toUpperCase()}${value.slice(1, value.length)}`;
|
|
40628
40972
|
}
|
|
@@ -40767,6 +41111,9 @@
|
|
|
40767
41111
|
absolute: 1 /* YGPositionType.YGPT_ABSOLUTE */
|
|
40768
41112
|
};
|
|
40769
41113
|
|
|
41114
|
+
/**
|
|
41115
|
+
* @internal
|
|
41116
|
+
*/
|
|
40770
41117
|
const CANVAS_ROOT_ENTITY = 0;
|
|
40771
41118
|
const defaultUiTransform = {
|
|
40772
41119
|
parent: CANVAS_ROOT_ENTITY,
|
|
@@ -40841,81 +41188,6 @@
|
|
|
40841
41188
|
};
|
|
40842
41189
|
}
|
|
40843
41190
|
|
|
40844
|
-
const parseTextureMode = {
|
|
40845
|
-
'nine-slices': 0 /* BackgroundTextureMode.NINE_SLICES */,
|
|
40846
|
-
center: 1 /* BackgroundTextureMode.CENTER */,
|
|
40847
|
-
stretch: 2 /* BackgroundTextureMode.STRETCH */
|
|
40848
|
-
};
|
|
40849
|
-
/**
|
|
40850
|
-
* @internal
|
|
40851
|
-
*/
|
|
40852
|
-
function getTextureMode(mode) {
|
|
40853
|
-
const value = mode ? parseTextureMode[mode] : 1 /* BackgroundTextureMode.CENTER */;
|
|
40854
|
-
return { textureMode: value };
|
|
40855
|
-
}
|
|
40856
|
-
function isAvatarTexture(props) {
|
|
40857
|
-
return !!props.avatarTexture;
|
|
40858
|
-
}
|
|
40859
|
-
function isTexture(props) {
|
|
40860
|
-
return !!props.texture;
|
|
40861
|
-
}
|
|
40862
|
-
/**
|
|
40863
|
-
* @internal
|
|
40864
|
-
*/
|
|
40865
|
-
function getTexture(props) {
|
|
40866
|
-
if (isTexture(props) && props.texture) {
|
|
40867
|
-
return {
|
|
40868
|
-
tex: {
|
|
40869
|
-
$case: 'texture',
|
|
40870
|
-
texture: parseTexture(props.texture)
|
|
40871
|
-
}
|
|
40872
|
-
};
|
|
40873
|
-
}
|
|
40874
|
-
if (isAvatarTexture(props) && props.avatarTexture) {
|
|
40875
|
-
return {
|
|
40876
|
-
tex: {
|
|
40877
|
-
$case: 'avatarTexture',
|
|
40878
|
-
avatarTexture: parseTexture(props.avatarTexture)
|
|
40879
|
-
}
|
|
40880
|
-
};
|
|
40881
|
-
}
|
|
40882
|
-
return undefined;
|
|
40883
|
-
}
|
|
40884
|
-
function parseTexture(texture) {
|
|
40885
|
-
return {
|
|
40886
|
-
...texture,
|
|
40887
|
-
wrapMode: texture.wrapMode ? parseWrap[texture.wrapMode] : undefined,
|
|
40888
|
-
filterMode: texture.filterMode ? parseFilter[texture.filterMode] : undefined
|
|
40889
|
-
};
|
|
40890
|
-
}
|
|
40891
|
-
const parseWrap = {
|
|
40892
|
-
repeat: 0 /* TextureWrapMode.TWM_REPEAT */,
|
|
40893
|
-
clamp: 1 /* TextureWrapMode.TWM_CLAMP */,
|
|
40894
|
-
mirror: 2 /* TextureWrapMode.TWM_MIRROR */,
|
|
40895
|
-
'mirror-once': 3 /* TextureWrapMode.TWM_MIRROR_ONCE */
|
|
40896
|
-
};
|
|
40897
|
-
const parseFilter = {
|
|
40898
|
-
point: 0 /* TextureFilterMode.TFM_POINT */,
|
|
40899
|
-
'bi-linear': 1 /* TextureFilterMode.TFM_BILINEAR */,
|
|
40900
|
-
'tri-linear': 2 /* TextureFilterMode.TFM_TRILINEAR */
|
|
40901
|
-
};
|
|
40902
|
-
|
|
40903
|
-
/**
|
|
40904
|
-
* @public
|
|
40905
|
-
*/
|
|
40906
|
-
|
|
40907
|
-
function parseUiBackground(props) {
|
|
40908
|
-
if (!props || !Object.keys(props).length)
|
|
40909
|
-
return undefined;
|
|
40910
|
-
const texture = getTexture(props);
|
|
40911
|
-
return {
|
|
40912
|
-
...props,
|
|
40913
|
-
...getTextureMode(props.textureMode),
|
|
40914
|
-
uvs: props.uvs ?? [],
|
|
40915
|
-
texture
|
|
40916
|
-
};
|
|
40917
|
-
}
|
|
40918
|
-
|
|
40919
41191
|
/**
|
|
40920
41192
|
* @internal
|
|
40921
41193
|
*/
|
|
@@ -40935,6 +41207,9 @@
|
|
|
40935
41207
|
onMouseUp: undefined
|
|
40936
41208
|
};
|
|
40937
41209
|
const listenersKey = Object.keys(listeners);
|
|
41210
|
+
/**
|
|
41211
|
+
* @internal
|
|
41212
|
+
*/
|
|
40938
41213
|
const isListener = (key) => listenersKey.includes(key);
|
|
40939
41214
|
|
|
40940
41215
|
const parseFont = {
|
|
@@ -40984,6 +41259,21 @@
|
|
|
40984
41259
|
}
|
|
40985
41260
|
/**
|
|
40986
41261
|
* @public
|
|
41262
|
+
* Dropdown component
|
|
41263
|
+
*
|
|
41264
|
+
* A dropdown allows a user to select a value from a series of options.
|
|
41265
|
+
*
|
|
41266
|
+
* @example
|
|
41267
|
+
* <Dropdown
|
|
41268
|
+
options={['Red', 'Blue']}
|
|
41269
|
+
color={Color4.Red()}
|
|
41270
|
+
font="sans-serif"
|
|
41271
|
+
fontSize={14}
|
|
41272
|
+
selectedIndex={value}
|
|
41273
|
+
onChange={(index) => value = index}
|
|
41274
|
+
/>
|
|
41275
|
+
*
|
|
41276
|
+
* @category Component
|
|
40987
41277
|
*/
|
|
40988
41278
|
|
|
40989
41279
|
function Dropdown(props) {
|
|
@@ -41010,8 +41300,22 @@
|
|
|
41010
41300
|
}
|
|
41011
41301
|
/**
|
|
41012
41302
|
* @public
|
|
41013
|
-
|
|
41014
|
-
|
|
41303
|
+
* Input component
|
|
41304
|
+
*
|
|
41305
|
+
* An Input is a field used to obtain a response from a user.
|
|
41306
|
+
*
|
|
41307
|
+
* @example
|
|
41308
|
+
<Input
|
|
41309
|
+
placeholder="Please enter your email"
|
|
41310
|
+
onChange={(value) => {
|
|
41311
|
+
email = value
|
|
41312
|
+
}}
|
|
41313
|
+
uiBackground={{ color: Color4.Red() }}
|
|
41314
|
+
uiTransform={{ width: 200, height: 36 }}
|
|
41315
|
+
/>
|
|
41316
|
+
*
|
|
41317
|
+
* @category Component
|
|
41318
|
+
*/
|
|
41015
41319
|
function Input(props) {
|
|
41016
41320
|
const { uiTransform, uiBackground, onMouseDown, onMouseUp, ...otherProps } = props;
|
|
41017
41321
|
const inputProps = parseUiInput(otherProps);
|
|
@@ -41025,7 +41329,16 @@
|
|
|
41025
41329
|
}
|
|
41026
41330
|
|
|
41027
41331
|
/**
|
|
41332
|
+
*
|
|
41028
41333
|
* @public
|
|
41334
|
+
* Label component
|
|
41335
|
+
*
|
|
41336
|
+
* A label displays text content
|
|
41337
|
+
*
|
|
41338
|
+
* @example
|
|
41339
|
+
* <Label value="SDK 7" uiTransform={{ margin: { left: 10 } }} />
|
|
41340
|
+
*
|
|
41341
|
+
* @category Component
|
|
41029
41342
|
*/
|
|
41030
41343
|
|
|
41031
41344
|
function Label(props) {
|
|
@@ -41046,13 +41359,13 @@
|
|
|
41046
41359
|
}
|
|
41047
41360
|
|
|
41048
41361
|
function getButtonProps(props) {
|
|
41049
|
-
if (props.
|
|
41362
|
+
if (props.variant === 'primary') {
|
|
41050
41363
|
return {
|
|
41051
41364
|
uiBackground: { color: { r: 0.98, g: 0.17, b: 0.33, a: 1 } },
|
|
41052
41365
|
uiText: { color: { r: 1, g: 1, b: 1, a: 1 } }
|
|
41053
41366
|
};
|
|
41054
41367
|
}
|
|
41055
|
-
if (props.
|
|
41368
|
+
if (props.variant === 'secondary') {
|
|
41056
41369
|
return {
|
|
41057
41370
|
uiBackground: { color: { r: 1, g: 1, b: 1, a: 1 } },
|
|
41058
41371
|
uiText: { color: { r: 0.98, g: 0.17, b: 0.33, a: 1 } }
|
|
@@ -41061,7 +41374,16 @@
|
|
|
41061
41374
|
return {};
|
|
41062
41375
|
}
|
|
41063
41376
|
/**
|
|
41377
|
+
*
|
|
41064
41378
|
* @public
|
|
41379
|
+
* Button component
|
|
41380
|
+
*
|
|
41381
|
+
* A Button indicates a possible user action.
|
|
41382
|
+
*
|
|
41383
|
+
* @example
|
|
41384
|
+
* <Button variant="primary" value="Click me!" />
|
|
41385
|
+
*
|
|
41386
|
+
* @category Component
|
|
41065
41387
|
*/
|
|
41066
41388
|
|
|
41067
41389
|
function Button(props) {
|
|
@@ -41087,6 +41409,7 @@
|
|
|
41087
41409
|
|
|
41088
41410
|
/**
|
|
41089
41411
|
* @public
|
|
41412
|
+
* @category Component
|
|
41090
41413
|
*/
|
|
41091
41414
|
|
|
41092
41415
|
function UiEntity(props) {
|
|
@@ -41468,6 +41791,9 @@
|
|
|
41468
41791
|
};
|
|
41469
41792
|
}
|
|
41470
41793
|
|
|
41794
|
+
/**
|
|
41795
|
+
* @internal
|
|
41796
|
+
*/
|
|
41471
41797
|
function createReactBasedUiSystem(engine, pointerSystem) {
|
|
41472
41798
|
const renderer = createReconciler(engine, pointerSystem);
|
|
41473
41799
|
let uiComponent = undefined;
|
|
@@ -41489,6 +41815,14 @@
|
|
|
41489
41815
|
};
|
|
41490
41816
|
}
|
|
41491
41817
|
|
|
41818
|
+
/**
|
|
41819
|
+
* ReactEcs variable provides the function to render & destroy the specified UI
|
|
41820
|
+
* @public
|
|
41821
|
+
* @example
|
|
41822
|
+
* import { ReactEcsRenderer } from '@dcl/sdk/react-ecs'
|
|
41823
|
+
* ReactEcsRenderer.setUiRenderer(uiComponent)
|
|
41824
|
+
*/
|
|
41825
|
+
|
|
41492
41826
|
const ReactEcsRenderer = createReactBasedUiSystem(engine, pointerEventsSystem);
|
|
41493
41827
|
var ReactEcs = ReactEcs$1;
|
|
41494
41828
|
|
|
@@ -41889,7 +42223,6 @@
|
|
|
41889
42223
|
exports.Billboard = Billboard;
|
|
41890
42224
|
exports.BorderRect = BorderRect;
|
|
41891
42225
|
exports.Button = Button;
|
|
41892
|
-
exports.CANVAS_ROOT_ENTITY = CANVAS_ROOT_ENTITY;
|
|
41893
42226
|
exports.CRDT_MESSAGE_HEADER_LENGTH = CRDT_MESSAGE_HEADER_LENGTH;
|
|
41894
42227
|
exports.CameraMode = CameraMode;
|
|
41895
42228
|
exports.CameraModeArea = CameraModeArea;
|
|
@@ -41901,7 +42234,6 @@
|
|
|
41901
42234
|
exports.GltfContainer = GltfContainer;
|
|
41902
42235
|
exports.Input = Input;
|
|
41903
42236
|
exports.Label = Label;
|
|
41904
|
-
exports.MASK_UPPER_16_ON_32 = MASK_UPPER_16_ON_32;
|
|
41905
42237
|
exports.MAX_ENTITY_NUMBER = MAX_ENTITY_NUMBER;
|
|
41906
42238
|
exports.MAX_U16 = MAX_U16;
|
|
41907
42239
|
exports.Material = Material;
|