bard-legends-framework 1.4.3 → 1.4.5

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/index.d.mts CHANGED
@@ -126,8 +126,14 @@ declare enum ContainerEventType {
126
126
  Added = "added",
127
127
  Removed = "removed",
128
128
  Update = "update",
129
- Change = "change"
129
+ Change = "change",
130
+ Wheel = "wheel"
130
131
  }
132
+ type ContainerEventTypeToResultType = {
133
+ [K in ContainerEventType]: K extends ContainerEventType.Wheel ? {
134
+ deltaY: number;
135
+ } : undefined;
136
+ };
131
137
  declare enum Cursor {
132
138
  Default = "default",
133
139
  Pointer = "pointer"
@@ -154,7 +160,7 @@ declare abstract class ContainerAttributes extends IDAttachable {
154
160
  set x(value: number);
155
161
  get y(): number;
156
162
  set y(value: number);
157
- on(eventType: ContainerEventType): Sequence;
163
+ on<T extends ContainerEventType>(eventType: T): Sequence<ContainerEventTypeToResultType[T]>;
158
164
  setRotation(value: Radian): this;
159
165
  get rotation(): Radian;
160
166
  set rotation(value: Radian);
@@ -495,6 +501,7 @@ declare class AnimationInterpolationFunctions {
495
501
  static easeOut(time: number): number;
496
502
  static easeInOut(time: number): number;
497
503
  static easeInOutCubic(t: number): number;
504
+ static blink(t: number): number;
498
505
  }
499
506
  declare class AnimationLineer implements AnimatorAnimation {
500
507
  start(): void;
@@ -516,6 +523,10 @@ declare class AnimationEaseInOutCubic implements AnimatorAnimation {
516
523
  start(): void;
517
524
  multiplierFunction(t: number): number;
518
525
  }
526
+ declare class AnimationBlink implements AnimatorAnimation {
527
+ start(): void;
528
+ multiplierFunction(t: number): number;
529
+ }
519
530
  declare class AnimationFlicker implements AnimatorAnimation {
520
531
  start(): void;
521
532
  multiplierFunction(t: number): number;
@@ -526,6 +537,7 @@ declare class Animations {
526
537
  static easeOut: AnimationEaseOut;
527
538
  static easeInOut: AnimationEaseInOut;
528
539
  static easeInOutCubic: AnimationEaseInOutCubic;
540
+ static blink: AnimationBlink;
529
541
  }
530
542
 
531
543
  declare enum ReAnimateHandlingType {
@@ -744,6 +756,10 @@ interface GameConfiguration {
744
756
  readonly width: number;
745
757
  readonly height: number;
746
758
  } | undefined;
759
+ readonly maxScreenResolution: {
760
+ readonly width: number;
761
+ readonly height: number;
762
+ } | undefined;
747
763
  readonly devMode: boolean;
748
764
  readonly backgroundColor: RGBColor;
749
765
  readonly antialias: boolean;
@@ -803,6 +819,12 @@ declare class MouseService {
803
819
  readonly secondaryButtonState: actions_lib.Notifier<boolean>;
804
820
  getSecondaryButtonState(): boolean;
805
821
  constructor();
822
+ /**
823
+ * Maps viewport (DOM) coordinates to Pixi logical screen space (`renderer.screen`),
824
+ * accounting for canvas offset (e.g. letterboxing when max resolution is smaller than the window)
825
+ * and CSS scaling of the canvas.
826
+ */
827
+ private clientPositionToScreenPosition;
806
828
  }
807
829
 
808
830
  declare class MouseTargetFocusService {
package/dist/index.d.ts CHANGED
@@ -126,8 +126,14 @@ declare enum ContainerEventType {
126
126
  Added = "added",
127
127
  Removed = "removed",
128
128
  Update = "update",
129
- Change = "change"
129
+ Change = "change",
130
+ Wheel = "wheel"
130
131
  }
132
+ type ContainerEventTypeToResultType = {
133
+ [K in ContainerEventType]: K extends ContainerEventType.Wheel ? {
134
+ deltaY: number;
135
+ } : undefined;
136
+ };
131
137
  declare enum Cursor {
132
138
  Default = "default",
133
139
  Pointer = "pointer"
@@ -154,7 +160,7 @@ declare abstract class ContainerAttributes extends IDAttachable {
154
160
  set x(value: number);
155
161
  get y(): number;
156
162
  set y(value: number);
157
- on(eventType: ContainerEventType): Sequence;
163
+ on<T extends ContainerEventType>(eventType: T): Sequence<ContainerEventTypeToResultType[T]>;
158
164
  setRotation(value: Radian): this;
159
165
  get rotation(): Radian;
160
166
  set rotation(value: Radian);
@@ -495,6 +501,7 @@ declare class AnimationInterpolationFunctions {
495
501
  static easeOut(time: number): number;
496
502
  static easeInOut(time: number): number;
497
503
  static easeInOutCubic(t: number): number;
504
+ static blink(t: number): number;
498
505
  }
499
506
  declare class AnimationLineer implements AnimatorAnimation {
500
507
  start(): void;
@@ -516,6 +523,10 @@ declare class AnimationEaseInOutCubic implements AnimatorAnimation {
516
523
  start(): void;
517
524
  multiplierFunction(t: number): number;
518
525
  }
526
+ declare class AnimationBlink implements AnimatorAnimation {
527
+ start(): void;
528
+ multiplierFunction(t: number): number;
529
+ }
519
530
  declare class AnimationFlicker implements AnimatorAnimation {
520
531
  start(): void;
521
532
  multiplierFunction(t: number): number;
@@ -526,6 +537,7 @@ declare class Animations {
526
537
  static easeOut: AnimationEaseOut;
527
538
  static easeInOut: AnimationEaseInOut;
528
539
  static easeInOutCubic: AnimationEaseInOutCubic;
540
+ static blink: AnimationBlink;
529
541
  }
530
542
 
531
543
  declare enum ReAnimateHandlingType {
@@ -744,6 +756,10 @@ interface GameConfiguration {
744
756
  readonly width: number;
745
757
  readonly height: number;
746
758
  } | undefined;
759
+ readonly maxScreenResolution: {
760
+ readonly width: number;
761
+ readonly height: number;
762
+ } | undefined;
747
763
  readonly devMode: boolean;
748
764
  readonly backgroundColor: RGBColor;
749
765
  readonly antialias: boolean;
@@ -803,6 +819,12 @@ declare class MouseService {
803
819
  readonly secondaryButtonState: actions_lib.Notifier<boolean>;
804
820
  getSecondaryButtonState(): boolean;
805
821
  constructor();
822
+ /**
823
+ * Maps viewport (DOM) coordinates to Pixi logical screen space (`renderer.screen`),
824
+ * accounting for canvas offset (e.g. letterboxing when max resolution is smaller than the window)
825
+ * and CSS scaling of the canvas.
826
+ */
827
+ private clientPositionToScreenPosition;
806
828
  }
807
829
 
808
830
  declare class MouseTargetFocusService {