bard-legends-framework 1.4.2 → 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 +14 -7
- package/dist/index.d.ts +14 -7
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
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:
|
|
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 {
|
|
@@ -792,19 +804,14 @@ declare class KeyboardService {
|
|
|
792
804
|
}
|
|
793
805
|
|
|
794
806
|
declare class MouseService {
|
|
795
|
-
readonly _initialMouseMovementHappened: Variable<boolean>;
|
|
796
807
|
readonly onInitialMouseMove: actions_lib.Notifier<boolean>;
|
|
797
808
|
get initialMouseMoveHappened(): boolean;
|
|
798
|
-
readonly _stagePosition: Variable<Vector>;
|
|
799
809
|
readonly stagePosition: actions_lib.Notifier<Vector>;
|
|
800
810
|
getStagePosition(): Vector;
|
|
801
|
-
readonly _screenPosition: Variable<Vector>;
|
|
802
811
|
readonly screenPosition: actions_lib.Notifier<Vector>;
|
|
803
812
|
getScreenPosition(): Vector;
|
|
804
|
-
readonly _mainButtonState: Variable<boolean>;
|
|
805
813
|
readonly mainButtonState: actions_lib.Notifier<boolean>;
|
|
806
814
|
getMainButtonState(): boolean;
|
|
807
|
-
readonly _secondaryButtonState: Variable<boolean>;
|
|
808
815
|
readonly secondaryButtonState: actions_lib.Notifier<boolean>;
|
|
809
816
|
getSecondaryButtonState(): boolean;
|
|
810
817
|
constructor();
|
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:
|
|
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 {
|
|
@@ -792,19 +804,14 @@ declare class KeyboardService {
|
|
|
792
804
|
}
|
|
793
805
|
|
|
794
806
|
declare class MouseService {
|
|
795
|
-
readonly _initialMouseMovementHappened: Variable<boolean>;
|
|
796
807
|
readonly onInitialMouseMove: actions_lib.Notifier<boolean>;
|
|
797
808
|
get initialMouseMoveHappened(): boolean;
|
|
798
|
-
readonly _stagePosition: Variable<Vector>;
|
|
799
809
|
readonly stagePosition: actions_lib.Notifier<Vector>;
|
|
800
810
|
getStagePosition(): Vector;
|
|
801
|
-
readonly _screenPosition: Variable<Vector>;
|
|
802
811
|
readonly screenPosition: actions_lib.Notifier<Vector>;
|
|
803
812
|
getScreenPosition(): Vector;
|
|
804
|
-
readonly _mainButtonState: Variable<boolean>;
|
|
805
813
|
readonly mainButtonState: actions_lib.Notifier<boolean>;
|
|
806
814
|
getMainButtonState(): boolean;
|
|
807
|
-
readonly _secondaryButtonState: Variable<boolean>;
|
|
808
815
|
readonly secondaryButtonState: actions_lib.Notifier<boolean>;
|
|
809
816
|
getSecondaryButtonState(): boolean;
|
|
810
817
|
constructor();
|