angry-pixel 2.4.0 → 2.4.2

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/lib/index.d.ts CHANGED
@@ -574,6 +574,7 @@ declare class Polygon implements Shape {
574
574
  layer: string;
575
575
  position: Vector2;
576
576
  projectionAxes: Vector2[];
577
+ edgeNormals: Vector2[];
577
578
  radius: number;
578
579
  vertices: Vector2[];
579
580
  updateCollisions: boolean;
@@ -993,6 +994,7 @@ declare class EntityManager {
993
994
  * ```
994
995
  */
995
996
  removeAllEntities(options?: RemoveAllEntitiesOptions): void;
997
+ private addBranch;
996
998
  /**
997
999
  * If the Entity exists, returns TRUE, otherwise it returns FALSE
998
1000
  * @param entity
@@ -3533,7 +3535,9 @@ interface DarknessRenderData extends RenderData {
3533
3535
  * position: new Vector2(10, 10),
3534
3536
  * radius: 32,
3535
3537
  * smooth: true,
3538
+ * steps: 0,
3536
3539
  * intensity: 0.7,
3540
+ * color: "#FF9900",
3537
3541
  * }
3538
3542
  * ```
3539
3543
  */
@@ -3544,8 +3548,12 @@ interface Light {
3544
3548
  radius: number;
3545
3549
  /** If it's TRUE the light will gradually disappear away from the origin point, if FALSE the light will be constant over its entire area. */
3546
3550
  smooth: boolean;
3551
+ /** Number of opacity steps of the smooth light, 0 means a continuous fade */
3552
+ steps: number;
3547
3553
  /** The intensity of the light, between 0 and 1 */
3548
3554
  intensity: number;
3555
+ /** The color of the light glow in hexadecimal, its strength is set by the intensity. No glow if it's not set. */
3556
+ color?: string;
3549
3557
  }
3550
3558
 
3551
3559
  interface SpriteRenderData extends RenderData {
@@ -3771,16 +3779,20 @@ declare class Camera {
3771
3779
  * const lightRenderer = new LightRenderer({
3772
3780
  * radius: 100,
3773
3781
  * smooth: true,
3782
+ * steps: 0,
3774
3783
  * layer: "Default",
3775
- * intensity: 0.8
3784
+ * intensity: 0.8,
3785
+ * color: "#FF9900"
3776
3786
  * });
3777
3787
  * ```
3778
3788
  */
3779
3789
  interface LightRendererOptions {
3780
3790
  radius: number;
3781
3791
  smooth: boolean;
3792
+ steps: number;
3782
3793
  layer: string;
3783
3794
  intensity: number;
3795
+ color: string;
3784
3796
  }
3785
3797
  /**
3786
3798
  * The LightRenderer component is used to render a light effect on the screen.\
@@ -3795,8 +3807,10 @@ interface LightRendererOptions {
3795
3807
  * const lightRenderer = new LightRenderer({
3796
3808
  * radius: 100,
3797
3809
  * smooth: true,
3810
+ * steps: 0,
3798
3811
  * layer: "Default",
3799
- * intensity: 0.8
3812
+ * intensity: 0.8,
3813
+ * color: "#FF9900"
3800
3814
  * });
3801
3815
  * ```
3802
3816
  */
@@ -3805,10 +3819,14 @@ declare class LightRenderer {
3805
3819
  radius: number;
3806
3820
  /** Smooth */
3807
3821
  smooth: boolean;
3822
+ /** Number of opacity steps of the smooth light, 0 means a continuous fade */
3823
+ steps: number;
3808
3824
  /** Darkness render layer */
3809
3825
  layer: string;
3810
3826
  /** Light intensitry between 0 and 1 */
3811
3827
  intensity: number;
3828
+ /** Light glow color in hexadecimal, its strength is set by the intensity. No glow if it's not set */
3829
+ color: string;
3812
3830
  /** @internal */
3813
3831
  _boundingBox: Rectangle;
3814
3832
  /** @internal */