@flemo/core 1.20.0 → 1.21.0
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/core/engine/__tests__/compositorWarmUp.test.d.ts +1 -0
- package/dist/core/engine/__tests__/imageDecodeOffloader.test.d.ts +1 -0
- package/dist/core/engine/compositorWarmUp.d.ts +2 -0
- package/dist/core/engine/driverPolicy.d.ts +2 -1
- package/dist/core/engine/imageDecodeOffloader.d.ts +12 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +762 -444
- package/dist/screen/__tests__/pendingNetwork.test.d.ts +1 -0
- package/dist/screen/animStartAnchor.d.ts +6 -0
- package/dist/screen/pendingNetwork.d.ts +2 -0
- package/package.json +5 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,6 +2,7 @@ export interface DriverPolicyStorage {
|
|
|
2
2
|
read: () => string | null;
|
|
3
3
|
write: (value: string) => void;
|
|
4
4
|
}
|
|
5
|
+
export declare const FORCE_PIN_TTL_MS: number;
|
|
5
6
|
export interface DriverPolicy {
|
|
6
7
|
playerAllowed: () => boolean;
|
|
7
8
|
beginRun: () => void;
|
|
@@ -14,6 +15,6 @@ export interface DriverPolicy {
|
|
|
14
15
|
};
|
|
15
16
|
}
|
|
16
17
|
export declare const detectBlinkEngine: () => boolean;
|
|
17
|
-
export declare const createDriverPolicy: (storage?: DriverPolicyStorage, playerByDefault?: boolean) => DriverPolicy;
|
|
18
|
+
export declare const createDriverPolicy: (storage?: DriverPolicyStorage, playerByDefault?: boolean, demotable?: boolean) => DriverPolicy;
|
|
18
19
|
declare const driverPolicy: DriverPolicy;
|
|
19
20
|
export default driverPolicy;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const OVERSIZE_AREA_RATIO = 8;
|
|
2
|
+
export declare const OFFLOADED_SRC_ATTR = "data-flemo-image-src";
|
|
3
|
+
export interface OversizeInput {
|
|
4
|
+
naturalWidth: number;
|
|
5
|
+
naturalHeight: number;
|
|
6
|
+
boxWidth: number;
|
|
7
|
+
boxHeight: number;
|
|
8
|
+
devicePixelRatio: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const shouldOffloadImage: (input: OversizeInput) => boolean;
|
|
11
|
+
export declare function createImageDecodeOffloader(root: HTMLElement): () => void;
|
|
12
|
+
export default function ensureImageDecodeOffloader(): () => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -43,6 +43,8 @@ export { default as computeBarRiding, type BarRidingInput } from './screen/compu
|
|
|
43
43
|
export { animHoldKey, scheduleAnimHoldRelease, createAnimHoldCoordinator, eagerlyDecodeImages, ANIM_HOLD_RELEASE_BACKSTOP_MS, type AnimHoldInput, type AnimHoldCoordinator } from './screen/animStartAnchor';
|
|
44
44
|
export { default as observeBarHeight } from './screen/observeBarHeight';
|
|
45
45
|
export { default as observeViewportScrollHeight } from './screen/observeViewportScrollHeight';
|
|
46
|
+
export { default as holdCompositorWarm } from './core/engine/compositorWarmUp';
|
|
47
|
+
export { default as ensureImageDecodeOffloader, createImageDecodeOffloader, shouldOffloadImage, OVERSIZE_AREA_RATIO, OFFLOADED_SRC_ATTR, type OversizeInput } from './core/engine/imageDecodeOffloader';
|
|
46
48
|
export type { RegisterTransition, TransitionName, TransitionVariant, TransitionVariantValue, TransitionOptions, BaseTransition, Transition, SwipeInfo, SwipeAnimate } from './transition/typing';
|
|
47
49
|
export type { RegisterDecorator, DecoratorName, DecoratorOptions, Decorator } from './transition/decorator/typing';
|
|
48
50
|
export type { RegisterPartTransition, PartTransitionName, PartTransitionOptions, PartTransition } from './transition/partTransition/typing';
|