@dcl/playground-assets 7.7.10-13934567813.commit-fb33ab1 → 7.7.10-13948137894.commit-1103705

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/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # @dcl/playground-assets
2
+
3
+ Assets package for the [Decentraland Playground](https://playground.decentraland.org/).
4
+
5
+ ## Overview
6
+
7
+ This package contains the built assets required by the Decentraland Playground - an experimental web IDE that allows developers to:
8
+
9
+ - Write and preview Decentraland scenes in real-time
10
+ - Share code snippets with other developers
11
+ - Test and iterate on scene code directly in the browser
12
+ - View changes instantly in the integrated Decentraland web explorer
13
+
14
+ Similar to [Babylon.js Playground](https://playground.babylonjs.com/), the Decentraland Playground provides an interactive environment for rapid prototyping and experimentation.
15
+
16
+ ## Development
17
+
18
+ The assets in this package are automatically built during the monorepo's build process:
19
+
20
+ ```bash
21
+ # From the root of the monorepo
22
+ make build
23
+ ```
24
+
25
+ ## Related Documentation
26
+
27
+ - [Playground](https://playground.decentraland.org)
package/dist/alpha.d.ts CHANGED
@@ -1298,7 +1298,6 @@ export declare const componentDefinitionByName: {
1298
1298
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
1299
1299
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1300
1300
  "core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
1301
- "core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
1302
1301
  "core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
1303
1302
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1304
1303
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
@@ -1597,6 +1596,11 @@ export declare function createInputSystem(engine: IEngine): IInputSystem;
1597
1596
  */
1598
1597
  export declare function createPointerEventsSystem(engine: IEngine, inputSystem: IInputSystem): PointerEventsSystem;
1599
1598
 
1599
+ /**
1600
+ * @public
1601
+ */
1602
+ export declare function createReactBasedUiSystem(engine: IEngine, pointerSystem: PointerEventsSystem): ReactBasedUiSystem;
1603
+
1600
1604
  /**
1601
1605
  * @public
1602
1606
  * @returns tween helper to be used on the scene
@@ -2652,32 +2656,6 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2652
2656
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2653
2657
  }
2654
2658
 
2655
- export declare const LightSource: LightSourceComponentDefinitionExtended;
2656
-
2657
- /**
2658
- * @public
2659
- */
2660
- export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
2661
- /**
2662
- * LightSource helper with constructor
2663
- */
2664
- Type: LightSourceHelper;
2665
- }
2666
-
2667
- /**
2668
- * @public
2669
- */
2670
- export declare interface LightSourceHelper {
2671
- /**
2672
- * @returns a Light Source type
2673
- */
2674
- Point: (point: PBLightSource_Point) => PBLightSource['type'];
2675
- /**
2676
- * @returns a Light Source type
2677
- */
2678
- Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
2679
- }
2680
-
2681
2659
  /**
2682
2660
  * User key event Listeners
2683
2661
  * @public
@@ -4553,85 +4531,6 @@ export declare namespace PBInputModifier_StandardInput {
4553
4531
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4554
4532
  }
4555
4533
 
4556
- /**
4557
- * @public
4558
- */
4559
- export declare interface PBLightSource {
4560
- /** default = true, whether the lightSource is active or not. */
4561
- active?: boolean | undefined;
4562
- /** default = Color.white, the tint of the light, in RGB format where each component is a floating point value with a range from 0 to 1. */
4563
- color?: PBColor3 | undefined;
4564
- /** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
4565
- brightness?: number | undefined;
4566
- /** default = 10, how far the light travels, expressed in meters. */
4567
- range?: number | undefined;
4568
- type?: {
4569
- $case: "point";
4570
- point: PBLightSource_Point;
4571
- } | {
4572
- $case: "spot";
4573
- spot: PBLightSource_Spot;
4574
- } | undefined;
4575
- }
4576
-
4577
- /**
4578
- * @public
4579
- */
4580
- export declare namespace PBLightSource {
4581
- export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4582
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4583
- }
4584
-
4585
- /**
4586
- * @public
4587
- */
4588
- export declare interface PBLightSource_Point {
4589
- /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4590
- shadow?: PBLightSource_ShadowType | undefined;
4591
- }
4592
-
4593
- /**
4594
- * @public
4595
- */
4596
- export declare namespace PBLightSource_Point {
4597
- export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4598
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4599
- }
4600
-
4601
- /**
4602
- * @public
4603
- */
4604
- export declare const enum PBLightSource_ShadowType {
4605
- /** ST_NONE - No shadows are cast from this LightSource. */
4606
- ST_NONE = 0,
4607
- /** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
4608
- ST_SOFT = 1,
4609
- /** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
4610
- ST_HARD = 2
4611
- }
4612
-
4613
- /**
4614
- * @public
4615
- */
4616
- export declare interface PBLightSource_Spot {
4617
- /** default = 21.8. Inner angle can't be higher than outer angle, otherwise will default to same value. Min value is 0. Max value is 179. */
4618
- innerAngle?: number | undefined;
4619
- /** default = 30. Outer angle can't be lower than inner angle, otherwise will inner angle will be set to same value. Max value is 179. */
4620
- outerAngle?: number | undefined;
4621
- /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4622
- shadow?: PBLightSource_ShadowType | undefined;
4623
- /** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
4624
- shadowMaskTexture?: TextureUnion | undefined;
4625
- }
4626
-
4627
- /**
4628
- * @public
4629
- */
4630
- export declare namespace PBLightSource_Spot {
4631
- export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4632
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4633
- }
4634
-
4635
4534
  /**
4636
4535
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4637
4536
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
@@ -5733,7 +5632,6 @@ export declare namespace PBVideoPlayer {
5733
5632
  * an 'instant' transition (like using speed/time = 0)
5734
5633
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5735
5634
  * the holding entity transform).
5736
- * * The fov defines the Field of View of the virtual camera
5737
5635
  */
5738
5636
  /**
5739
5637
  * @public
@@ -5741,8 +5639,6 @@ export declare namespace PBVideoPlayer {
5741
5639
  export declare interface PBVirtualCamera {
5742
5640
  defaultTransition?: CameraTransition | undefined;
5743
5641
  lookAtEntity?: number | undefined;
5744
- /** default: 60 */
5745
- fov?: number | undefined;
5746
5642
  }
5747
5643
 
5748
5644
  /**
package/dist/beta.d.ts CHANGED
@@ -1298,7 +1298,6 @@ export declare const componentDefinitionByName: {
1298
1298
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
1299
1299
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1300
1300
  "core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
1301
- "core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
1302
1301
  "core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
1303
1302
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1304
1303
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
@@ -1597,6 +1596,11 @@ export declare function createInputSystem(engine: IEngine): IInputSystem;
1597
1596
  */
1598
1597
  export declare function createPointerEventsSystem(engine: IEngine, inputSystem: IInputSystem): PointerEventsSystem;
1599
1598
 
1599
+ /**
1600
+ * @public
1601
+ */
1602
+ export declare function createReactBasedUiSystem(engine: IEngine, pointerSystem: PointerEventsSystem): ReactBasedUiSystem;
1603
+
1600
1604
  /**
1601
1605
  * @public
1602
1606
  * @returns tween helper to be used on the scene
@@ -2643,32 +2647,6 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2643
2647
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2644
2648
  }
2645
2649
 
2646
- export declare const LightSource: LightSourceComponentDefinitionExtended;
2647
-
2648
- /**
2649
- * @public
2650
- */
2651
- export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
2652
- /**
2653
- * LightSource helper with constructor
2654
- */
2655
- Type: LightSourceHelper;
2656
- }
2657
-
2658
- /**
2659
- * @public
2660
- */
2661
- export declare interface LightSourceHelper {
2662
- /**
2663
- * @returns a Light Source type
2664
- */
2665
- Point: (point: PBLightSource_Point) => PBLightSource['type'];
2666
- /**
2667
- * @returns a Light Source type
2668
- */
2669
- Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
2670
- }
2671
-
2672
2650
  /**
2673
2651
  * User key event Listeners
2674
2652
  * @public
@@ -4525,85 +4503,6 @@ export declare namespace PBInputModifier_StandardInput {
4525
4503
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4526
4504
  }
4527
4505
 
4528
- /**
4529
- * @public
4530
- */
4531
- export declare interface PBLightSource {
4532
- /** default = true, whether the lightSource is active or not. */
4533
- active?: boolean | undefined;
4534
- /** default = Color.white, the tint of the light, in RGB format where each component is a floating point value with a range from 0 to 1. */
4535
- color?: PBColor3 | undefined;
4536
- /** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
4537
- brightness?: number | undefined;
4538
- /** default = 10, how far the light travels, expressed in meters. */
4539
- range?: number | undefined;
4540
- type?: {
4541
- $case: "point";
4542
- point: PBLightSource_Point;
4543
- } | {
4544
- $case: "spot";
4545
- spot: PBLightSource_Spot;
4546
- } | undefined;
4547
- }
4548
-
4549
- /**
4550
- * @public
4551
- */
4552
- export declare namespace PBLightSource {
4553
- export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4554
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4555
- }
4556
-
4557
- /**
4558
- * @public
4559
- */
4560
- export declare interface PBLightSource_Point {
4561
- /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4562
- shadow?: PBLightSource_ShadowType | undefined;
4563
- }
4564
-
4565
- /**
4566
- * @public
4567
- */
4568
- export declare namespace PBLightSource_Point {
4569
- export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4570
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4571
- }
4572
-
4573
- /**
4574
- * @public
4575
- */
4576
- export declare const enum PBLightSource_ShadowType {
4577
- /** ST_NONE - No shadows are cast from this LightSource. */
4578
- ST_NONE = 0,
4579
- /** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
4580
- ST_SOFT = 1,
4581
- /** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
4582
- ST_HARD = 2
4583
- }
4584
-
4585
- /**
4586
- * @public
4587
- */
4588
- export declare interface PBLightSource_Spot {
4589
- /** default = 21.8. Inner angle can't be higher than outer angle, otherwise will default to same value. Min value is 0. Max value is 179. */
4590
- innerAngle?: number | undefined;
4591
- /** default = 30. Outer angle can't be lower than inner angle, otherwise will inner angle will be set to same value. Max value is 179. */
4592
- outerAngle?: number | undefined;
4593
- /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4594
- shadow?: PBLightSource_ShadowType | undefined;
4595
- /** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
4596
- shadowMaskTexture?: TextureUnion | undefined;
4597
- }
4598
-
4599
- /**
4600
- * @public
4601
- */
4602
- export declare namespace PBLightSource_Spot {
4603
- export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4604
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4605
- }
4606
-
4607
4506
  /**
4608
4507
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4609
4508
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
@@ -5705,7 +5604,6 @@ export declare namespace PBVideoPlayer {
5705
5604
  * an 'instant' transition (like using speed/time = 0)
5706
5605
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5707
5606
  * the holding entity transform).
5708
- * * The fov defines the Field of View of the virtual camera
5709
5607
  */
5710
5608
  /**
5711
5609
  * @public
@@ -5713,8 +5611,6 @@ export declare namespace PBVideoPlayer {
5713
5611
  export declare interface PBVirtualCamera {
5714
5612
  defaultTransition?: CameraTransition | undefined;
5715
5613
  lookAtEntity?: number | undefined;
5716
- /** default: 60 */
5717
- fov?: number | undefined;
5718
5614
  }
5719
5615
 
5720
5616
  /**
@@ -1298,7 +1298,6 @@ export declare const componentDefinitionByName: {
1298
1298
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
1299
1299
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1300
1300
  "core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
1301
- "core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
1302
1301
  "core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
1303
1302
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1304
1303
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
@@ -1597,6 +1596,11 @@ export declare function createInputSystem(engine: IEngine): IInputSystem;
1597
1596
  */
1598
1597
  export declare function createPointerEventsSystem(engine: IEngine, inputSystem: IInputSystem): PointerEventsSystem;
1599
1598
 
1599
+ /**
1600
+ * @public
1601
+ */
1602
+ export declare function createReactBasedUiSystem(engine: IEngine, pointerSystem: PointerEventsSystem): ReactBasedUiSystem;
1603
+
1600
1604
  /**
1601
1605
  * @public
1602
1606
  * @returns tween helper to be used on the scene
@@ -2643,32 +2647,6 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2643
2647
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2644
2648
  }
2645
2649
 
2646
- export declare const LightSource: LightSourceComponentDefinitionExtended;
2647
-
2648
- /**
2649
- * @public
2650
- */
2651
- export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
2652
- /**
2653
- * LightSource helper with constructor
2654
- */
2655
- Type: LightSourceHelper;
2656
- }
2657
-
2658
- /**
2659
- * @public
2660
- */
2661
- export declare interface LightSourceHelper {
2662
- /**
2663
- * @returns a Light Source type
2664
- */
2665
- Point: (point: PBLightSource_Point) => PBLightSource['type'];
2666
- /**
2667
- * @returns a Light Source type
2668
- */
2669
- Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
2670
- }
2671
-
2672
2650
  /**
2673
2651
  * User key event Listeners
2674
2652
  * @public
@@ -4525,85 +4503,6 @@ export declare namespace PBInputModifier_StandardInput {
4525
4503
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4526
4504
  }
4527
4505
 
4528
- /**
4529
- * @public
4530
- */
4531
- export declare interface PBLightSource {
4532
- /** default = true, whether the lightSource is active or not. */
4533
- active?: boolean | undefined;
4534
- /** default = Color.white, the tint of the light, in RGB format where each component is a floating point value with a range from 0 to 1. */
4535
- color?: PBColor3 | undefined;
4536
- /** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
4537
- brightness?: number | undefined;
4538
- /** default = 10, how far the light travels, expressed in meters. */
4539
- range?: number | undefined;
4540
- type?: {
4541
- $case: "point";
4542
- point: PBLightSource_Point;
4543
- } | {
4544
- $case: "spot";
4545
- spot: PBLightSource_Spot;
4546
- } | undefined;
4547
- }
4548
-
4549
- /**
4550
- * @public
4551
- */
4552
- export declare namespace PBLightSource {
4553
- export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4554
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4555
- }
4556
-
4557
- /**
4558
- * @public
4559
- */
4560
- export declare interface PBLightSource_Point {
4561
- /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4562
- shadow?: PBLightSource_ShadowType | undefined;
4563
- }
4564
-
4565
- /**
4566
- * @public
4567
- */
4568
- export declare namespace PBLightSource_Point {
4569
- export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4570
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4571
- }
4572
-
4573
- /**
4574
- * @public
4575
- */
4576
- export declare const enum PBLightSource_ShadowType {
4577
- /** ST_NONE - No shadows are cast from this LightSource. */
4578
- ST_NONE = 0,
4579
- /** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
4580
- ST_SOFT = 1,
4581
- /** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
4582
- ST_HARD = 2
4583
- }
4584
-
4585
- /**
4586
- * @public
4587
- */
4588
- export declare interface PBLightSource_Spot {
4589
- /** default = 21.8. Inner angle can't be higher than outer angle, otherwise will default to same value. Min value is 0. Max value is 179. */
4590
- innerAngle?: number | undefined;
4591
- /** default = 30. Outer angle can't be lower than inner angle, otherwise will inner angle will be set to same value. Max value is 179. */
4592
- outerAngle?: number | undefined;
4593
- /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4594
- shadow?: PBLightSource_ShadowType | undefined;
4595
- /** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
4596
- shadowMaskTexture?: TextureUnion | undefined;
4597
- }
4598
-
4599
- /**
4600
- * @public
4601
- */
4602
- export declare namespace PBLightSource_Spot {
4603
- export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4604
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4605
- }
4606
-
4607
4506
  /**
4608
4507
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4609
4508
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
@@ -5705,7 +5604,6 @@ export declare namespace PBVideoPlayer {
5705
5604
  * an 'instant' transition (like using speed/time = 0)
5706
5605
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5707
5606
  * the holding entity transform).
5708
- * * The fov defines the Field of View of the virtual camera
5709
5607
  */
5710
5608
  /**
5711
5609
  * @public
@@ -5713,8 +5611,6 @@ export declare namespace PBVideoPlayer {
5713
5611
  export declare interface PBVirtualCamera {
5714
5612
  defaultTransition?: CameraTransition | undefined;
5715
5613
  lookAtEntity?: number | undefined;
5716
- /** default: 60 */
5717
- fov?: number | undefined;
5718
5614
  }
5719
5615
 
5720
5616
  /**