@dcl/playground-assets 7.6.7 → 7.6.8-12354882097.commit-0c727b8

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 CHANGED
@@ -1883,6 +1883,8 @@ export declare type EntityComponents = {
1883
1883
  uiDropdown: PBUiDropdown;
1884
1884
  onMouseDown: Callback;
1885
1885
  onMouseUp: Callback;
1886
+ onMouseEnter: Callback;
1887
+ onMouseLeave: Callback;
1886
1888
  };
1887
1889
 
1888
1890
  /** @public */
@@ -2658,6 +2660,10 @@ export declare type Listeners = {
2658
2660
  onMouseDown?: Callback;
2659
2661
  /** triggered on mouse up event */
2660
2662
  onMouseUp?: Callback;
2663
+ /** triggered on mouse hover event */
2664
+ onMouseEnter?: Callback;
2665
+ /** triggered on mouse leave event */
2666
+ onMouseLeave?: Callback;
2661
2667
  };
2662
2668
 
2663
2669
  /**
@@ -5794,6 +5800,18 @@ export declare interface PointerEventsSystem {
5794
5800
  * @param entity - Entity where the callback was attached
5795
5801
  */
5796
5802
  removeOnPointerUp(entity: Entity): void;
5803
+ /**
5804
+ * @public
5805
+ * Remove the callback for onPointerHoverEnter event
5806
+ * @param entity - Entity where the callback was attached
5807
+ */
5808
+ removeOnPointerHoverEnter(entity: Entity): void;
5809
+ /**
5810
+ * @public
5811
+ * Remove the callback for onPointerHoverLeave event
5812
+ * @param entity - Entity where the callback was attached
5813
+ */
5814
+ removeOnPointerHoverLeave(entity: Entity): void;
5797
5815
  /**
5798
5816
  * @public
5799
5817
  * Execute callback when the user press the InputButton pointing at the entity
@@ -5828,6 +5846,26 @@ export declare interface PointerEventsSystem {
5828
5846
  * @param opts - Opts to trigger Feedback and Button
5829
5847
  */
5830
5848
  onPointerUp(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
5849
+ /**
5850
+ * @public
5851
+ * Execute callback when the user place the pointer over the entity
5852
+ * @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
5853
+ * @param cb - Function to execute when click fires
5854
+ */
5855
+ onPointerHoverEnter(pointerData: {
5856
+ entity: Entity;
5857
+ opts?: Partial<EventSystemOptions>;
5858
+ }, cb: EventSystemCallback): void;
5859
+ /**
5860
+ * @public
5861
+ * Execute callback when the user take the pointer out of the entity
5862
+ * @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
5863
+ * @param cb - Function to execute when click fires
5864
+ */
5865
+ onPointerHoverLeave(pointerData: {
5866
+ entity: Entity;
5867
+ opts?: Partial<EventSystemOptions>;
5868
+ }, cb: EventSystemCallback): void;
5831
5869
  }
5832
5870
 
5833
5871
  /**
package/dist/beta.d.ts CHANGED
@@ -1883,6 +1883,8 @@ export declare type EntityComponents = {
1883
1883
  uiDropdown: PBUiDropdown;
1884
1884
  onMouseDown: Callback;
1885
1885
  onMouseUp: Callback;
1886
+ onMouseEnter: Callback;
1887
+ onMouseLeave: Callback;
1886
1888
  };
1887
1889
 
1888
1890
  /** @public */
@@ -2649,6 +2651,10 @@ export declare type Listeners = {
2649
2651
  onMouseDown?: Callback;
2650
2652
  /** triggered on mouse up event */
2651
2653
  onMouseUp?: Callback;
2654
+ /** triggered on mouse hover event */
2655
+ onMouseEnter?: Callback;
2656
+ /** triggered on mouse leave event */
2657
+ onMouseLeave?: Callback;
2652
2658
  };
2653
2659
 
2654
2660
  /**
@@ -5766,6 +5772,18 @@ export declare interface PointerEventsSystem {
5766
5772
  * @param entity - Entity where the callback was attached
5767
5773
  */
5768
5774
  removeOnPointerUp(entity: Entity): void;
5775
+ /**
5776
+ * @public
5777
+ * Remove the callback for onPointerHoverEnter event
5778
+ * @param entity - Entity where the callback was attached
5779
+ */
5780
+ removeOnPointerHoverEnter(entity: Entity): void;
5781
+ /**
5782
+ * @public
5783
+ * Remove the callback for onPointerHoverLeave event
5784
+ * @param entity - Entity where the callback was attached
5785
+ */
5786
+ removeOnPointerHoverLeave(entity: Entity): void;
5769
5787
  /**
5770
5788
  * @public
5771
5789
  * Execute callback when the user press the InputButton pointing at the entity
@@ -5800,6 +5818,26 @@ export declare interface PointerEventsSystem {
5800
5818
  * @param opts - Opts to trigger Feedback and Button
5801
5819
  */
5802
5820
  onPointerUp(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
5821
+ /**
5822
+ * @public
5823
+ * Execute callback when the user place the pointer over the entity
5824
+ * @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
5825
+ * @param cb - Function to execute when click fires
5826
+ */
5827
+ onPointerHoverEnter(pointerData: {
5828
+ entity: Entity;
5829
+ opts?: Partial<EventSystemOptions>;
5830
+ }, cb: EventSystemCallback): void;
5831
+ /**
5832
+ * @public
5833
+ * Execute callback when the user take the pointer out of the entity
5834
+ * @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
5835
+ * @param cb - Function to execute when click fires
5836
+ */
5837
+ onPointerHoverLeave(pointerData: {
5838
+ entity: Entity;
5839
+ opts?: Partial<EventSystemOptions>;
5840
+ }, cb: EventSystemCallback): void;
5803
5841
  }
5804
5842
 
5805
5843
  /**
@@ -1883,6 +1883,8 @@ export declare type EntityComponents = {
1883
1883
  uiDropdown: PBUiDropdown;
1884
1884
  onMouseDown: Callback;
1885
1885
  onMouseUp: Callback;
1886
+ onMouseEnter: Callback;
1887
+ onMouseLeave: Callback;
1886
1888
  };
1887
1889
 
1888
1890
  /** @public */
@@ -2649,6 +2651,10 @@ export declare type Listeners = {
2649
2651
  onMouseDown?: Callback;
2650
2652
  /** triggered on mouse up event */
2651
2653
  onMouseUp?: Callback;
2654
+ /** triggered on mouse hover event */
2655
+ onMouseEnter?: Callback;
2656
+ /** triggered on mouse leave event */
2657
+ onMouseLeave?: Callback;
2652
2658
  };
2653
2659
 
2654
2660
  /**
@@ -5766,6 +5772,18 @@ export declare interface PointerEventsSystem {
5766
5772
  * @param entity - Entity where the callback was attached
5767
5773
  */
5768
5774
  removeOnPointerUp(entity: Entity): void;
5775
+ /**
5776
+ * @public
5777
+ * Remove the callback for onPointerHoverEnter event
5778
+ * @param entity - Entity where the callback was attached
5779
+ */
5780
+ removeOnPointerHoverEnter(entity: Entity): void;
5781
+ /**
5782
+ * @public
5783
+ * Remove the callback for onPointerHoverLeave event
5784
+ * @param entity - Entity where the callback was attached
5785
+ */
5786
+ removeOnPointerHoverLeave(entity: Entity): void;
5769
5787
  /**
5770
5788
  * @public
5771
5789
  * Execute callback when the user press the InputButton pointing at the entity
@@ -5800,6 +5818,26 @@ export declare interface PointerEventsSystem {
5800
5818
  * @param opts - Opts to trigger Feedback and Button
5801
5819
  */
5802
5820
  onPointerUp(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
5821
+ /**
5822
+ * @public
5823
+ * Execute callback when the user place the pointer over the entity
5824
+ * @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
5825
+ * @param cb - Function to execute when click fires
5826
+ */
5827
+ onPointerHoverEnter(pointerData: {
5828
+ entity: Entity;
5829
+ opts?: Partial<EventSystemOptions>;
5830
+ }, cb: EventSystemCallback): void;
5831
+ /**
5832
+ * @public
5833
+ * Execute callback when the user take the pointer out of the entity
5834
+ * @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
5835
+ * @param cb - Function to execute when click fires
5836
+ */
5837
+ onPointerHoverLeave(pointerData: {
5838
+ entity: Entity;
5839
+ opts?: Partial<EventSystemOptions>;
5840
+ }, cb: EventSystemCallback): void;
5803
5841
  }
5804
5842
 
5805
5843
  /**