prevent-orientation
Version:
Prevent orientation mode on mobile device
26 lines (25 loc) • 802 B
TypeScript
export declare class PreventOrientation {
private text;
private color;
private background;
private fontSize;
private angle;
private readonly className;
constructor({ text, color, background, fontSize, }?: {
text?: string | undefined;
color?: string | undefined;
background?: string | undefined;
fontSize?: string | undefined;
});
protected get currentAngle(): string | number;
protected get supportsOrientationChange(): "resize" | "orientationchange";
protected handlePrevent: () => void;
preventOrientationToAngle: (angle: string | number) => void;
preventPortrait: () => void;
preventLandscape: () => void;
}
declare global {
interface Window {
PreventOrientation: typeof PreventOrientation;
}
}