bard-legends-framework 1.4.3 → 1.4.4

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 {
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 {