@vkontakte/videoplayer-interactive 1.0.30-dev.b736679d.0 → 1.0.30-dev.d16c215e.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/es2015.cjs.js +5 -233
- package/es2015.esm.js +6 -234
- package/es2018.cjs.js +6 -234
- package/es2018.esm.js +5 -233
- package/esnext.cjs.js +6 -234
- package/esnext.esm.js +6 -234
- package/evergreen.esm.js +6 -234
- package/package.json +4 -4
- package/types/modules/Interactives/Interactives.d.ts +8 -19
- package/types/modules/Interactives/Layout.d.ts +0 -4
- package/types/modules/Interactives/containers/ChoiceContainer.d.ts +6 -16
- package/types/modules/Interactives/containers/Container.d.ts +6 -9
- package/types/modules/Interactives/controls/AreaControl.d.ts +2 -22
- package/types/modules/Interactives/controls/ButtonControl.d.ts +2 -27
- package/types/modules/Interactives/controls/Control.d.ts +9 -22
- package/types/modules/Interactives/controls/types.d.ts +7 -21
- package/types/modules/Interactives/index.d.ts +4 -69
- package/types/modules/Interactives/types.d.ts +4 -12
- package/types/modules/Interactives/utils/GameController.d.ts +6 -14
- package/types/modules/Interactives/utils/InteractiveEvents.d.ts +2 -2
- package/types/modules/Interactives/utils/SelectBranches.d.ts +1 -2
- package/types/modules/Interactives/utils/SelectBranches.types.d.ts +0 -1
- package/types/modules/Interactives/utils/events.types.d.ts +1 -3
- package/types/modules/Interactives/utils/renderingUtils.d.ts +3 -15
- package/types/utils/Binding.d.ts +34 -0
- package/types/utils/EventManager.d.ts +13 -0
- package/types/utils/getVideoContentSize.d.ts +1 -1
- package/types/modules/Interactives/styles.d.ts +0 -1
- package/types/modules/Interactives/utils/BlinkAnimationReference.d.ts +0 -2
- package/types/modules/Interactives/utils/FillAnimation.d.ts +0 -30
- package/types/modules/Interactives/utils/TapElement.d.ts +0 -10
- package/types/utils/AverageColor/FrameAverageColor.d.ts +0 -19
- package/types/utils/AverageColor/helpers.d.ts +0 -17
- package/types/utils/AverageColor/index.d.ts +0 -2
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare function normalizeRadians(rad: number): number;
|
|
2
|
-
export declare function radiansToDegrees(rad: number): number;
|
|
3
|
-
export type Options = {
|
|
4
|
-
startTime: number;
|
|
5
|
-
endTime: number;
|
|
6
|
-
rotateAngle: number;
|
|
7
|
-
borderRadius: string;
|
|
8
|
-
debug?: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare class FillAnimation {
|
|
11
|
-
fillAnimationElement: HTMLDivElement;
|
|
12
|
-
private fillAnimationFillerElement;
|
|
13
|
-
private fillAnimationFillerWrapperElement;
|
|
14
|
-
private startTime;
|
|
15
|
-
private endTime;
|
|
16
|
-
private shouldFillHeight;
|
|
17
|
-
private widthExpansionCoef;
|
|
18
|
-
private isDebug;
|
|
19
|
-
private fromLeft;
|
|
20
|
-
private useSkew;
|
|
21
|
-
private rotateAngle;
|
|
22
|
-
constructor(opts: Options);
|
|
23
|
-
updateDimension(opts: {
|
|
24
|
-
width: number;
|
|
25
|
-
height: number;
|
|
26
|
-
borderWidth: number;
|
|
27
|
-
}): void;
|
|
28
|
-
updateAnimation(currentTime: number): void;
|
|
29
|
-
private calcWidthExpansionCoef;
|
|
30
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare class TapElement {
|
|
2
|
-
element: HTMLDivElement;
|
|
3
|
-
controlRotateAngleRad: number;
|
|
4
|
-
clickCancelCondition: () => boolean;
|
|
5
|
-
constructor(controlRotateAngleRad: number, clickCancelCondition: () => boolean);
|
|
6
|
-
onElementClick: (e: Event & {
|
|
7
|
-
clientX: number;
|
|
8
|
-
clientY: number;
|
|
9
|
-
}) => void;
|
|
10
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type Options } from './helpers';
|
|
2
|
-
export declare class FrameAverageColor {
|
|
3
|
-
canvas: HTMLCanvasElement | OffscreenCanvas | null;
|
|
4
|
-
ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D | null;
|
|
5
|
-
getColorAsync(resource: HTMLVideoElement, options: Options): Promise<{
|
|
6
|
-
rgba: string;
|
|
7
|
-
isDark: boolean;
|
|
8
|
-
error: Error | undefined;
|
|
9
|
-
}>;
|
|
10
|
-
getColor(resource: HTMLVideoElement, options: Options): {
|
|
11
|
-
rgba: string;
|
|
12
|
-
isDark: boolean;
|
|
13
|
-
error: Error | undefined;
|
|
14
|
-
};
|
|
15
|
-
private getColorFromArray;
|
|
16
|
-
private sqrtAlgorithm;
|
|
17
|
-
private prepareResult;
|
|
18
|
-
destroy(): void;
|
|
19
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export type Color = [number, number, number, number];
|
|
2
|
-
export type Options = {
|
|
3
|
-
width: number;
|
|
4
|
-
height: number;
|
|
5
|
-
step?: number;
|
|
6
|
-
defaultColor?: Color;
|
|
7
|
-
debug?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare function makeCanvas(): OffscreenCanvas | HTMLCanvasElement | null;
|
|
10
|
-
export declare function isDark(color: Color): boolean;
|
|
11
|
-
export declare const DEFAULT_COLOR: Color;
|
|
12
|
-
export declare const DEFAULT_STEP = 1;
|
|
13
|
-
export declare function getError(message: string): Error;
|
|
14
|
-
export declare function getVideoContentSize(element: HTMLElement): {
|
|
15
|
-
width: number;
|
|
16
|
-
height: number;
|
|
17
|
-
};
|