aptechka 0.5.7 → 0.5.9
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/animation/Animation.d.ts +3 -3
- package/lib/animation/AnimationLink.d.ts +2 -2
- package/lib/animation/Damped.d.ts +1 -1
- package/lib/animation/Tweened.d.ts +2 -2
- package/lib/en3/core/en3.d.ts +2 -0
- package/lib/en3/index.cjs +7 -7
- package/lib/en3/index.d.ts +1 -0
- package/lib/en3/index.js +859 -805
- package/lib/en3/loaders/en3Cache.d.ts +4 -0
- package/lib/morph/Morph.d.ts +3 -0
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +146 -139
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ export interface AnimationOptions extends TickerAddOptions {
|
|
|
15
15
|
equalize?: boolean;
|
|
16
16
|
}
|
|
17
17
|
export type AnimationConstructorOptions<Options extends AnimationOptions> = StoreOptions<number, 'number'> & Options;
|
|
18
|
-
export declare abstract class Animation<Entry extends AnimationEntry = AnimationEntry> extends Store<number, 'number', Entry> {
|
|
18
|
+
export declare abstract class Animation<Entry extends AnimationEntry = AnimationEntry, Options extends AnimationOptions = AnimationOptions> extends Store<number, 'number', Entry> {
|
|
19
19
|
#private;
|
|
20
20
|
constructor(initial?: number, options?: StoreOptions<number, 'number'>);
|
|
21
21
|
get linked(): Set<AnimationLink<AnimationLinkOptions>>;
|
|
@@ -43,8 +43,8 @@ export declare abstract class Animation<Entry extends AnimationEntry = Animation
|
|
|
43
43
|
progress: number;
|
|
44
44
|
};
|
|
45
45
|
setTarget(value: number): void;
|
|
46
|
-
set(value: number, options?:
|
|
47
|
-
shift(value: number, options?:
|
|
46
|
+
set(value: number, options?: Options): void;
|
|
47
|
+
shift(value: number, options?: Options): void;
|
|
48
48
|
reset(): void;
|
|
49
49
|
close(): void;
|
|
50
50
|
listenAnimationFrame(): void;
|
|
@@ -7,7 +7,7 @@ export interface AnimationLinkOptions extends Omit<AnimationOptions, keyof Store
|
|
|
7
7
|
export declare class AnimationLink<Options extends AnimationLinkOptions = AnimationLinkOptions> {
|
|
8
8
|
#private;
|
|
9
9
|
constructor(triggerAnimation: Animation<any>, targetAnimation: Animation<any>, startValue: number, setValue: number, options?: Options | undefined);
|
|
10
|
-
get targetAnimation(): Animation<any>;
|
|
11
|
-
get triggerAnimation(): Animation<any>;
|
|
10
|
+
get targetAnimation(): Animation<any, AnimationOptions>;
|
|
11
|
+
get triggerAnimation(): Animation<any, AnimationOptions>;
|
|
12
12
|
destroy(): void;
|
|
13
13
|
}
|
|
@@ -10,7 +10,7 @@ export interface DampedEntry extends AnimationEntry {
|
|
|
10
10
|
velocity: number;
|
|
11
11
|
speed: number;
|
|
12
12
|
}
|
|
13
|
-
export declare class Damped extends Animation<DampedEntry> {
|
|
13
|
+
export declare class Damped extends Animation<DampedEntry, DampedOptions> {
|
|
14
14
|
#private;
|
|
15
15
|
damping: number;
|
|
16
16
|
stiffness: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Animation, AnimationConstructorOptions, AnimationOptions } from './Animation';
|
|
1
|
+
import { Animation, AnimationConstructorOptions, AnimationEntry, AnimationOptions } from './Animation';
|
|
2
2
|
import { EasingFunction } from '../utils';
|
|
3
3
|
import { TickerCallbackEntry } from '../ticker';
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ export interface TweenedOptions extends AnimationOptions {
|
|
|
7
7
|
duration?: number;
|
|
8
8
|
restart?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare class Tweened extends Animation {
|
|
10
|
+
export declare class Tweened extends Animation<AnimationEntry, TweenedOptions> {
|
|
11
11
|
#private;
|
|
12
12
|
constructor(initial?: number, options?: AnimationConstructorOptions<TweenedOptions>);
|
|
13
13
|
updateOptions(options?: TweenedOptions): void;
|
package/lib/en3/core/en3.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface En3Options {
|
|
|
7
7
|
maxPixelRatio?: number;
|
|
8
8
|
containerElement?: ElementOrSelector<HTMLElement>;
|
|
9
9
|
view?: En3ViewOptions;
|
|
10
|
+
cacheAssets?: boolean;
|
|
10
11
|
}
|
|
11
12
|
declare class En3 {
|
|
12
13
|
#private;
|
|
@@ -18,6 +19,7 @@ declare class En3 {
|
|
|
18
19
|
get width(): number;
|
|
19
20
|
get height(): number;
|
|
20
21
|
get pixelRatio(): number;
|
|
22
|
+
get cacheAssets(): boolean;
|
|
21
23
|
setup(options?: En3Options): void;
|
|
22
24
|
destroy(): void;
|
|
23
25
|
createView(viewName: string, viewOptions?: En3ViewOptions): En3View;
|