@byomakase/omakase-player
Version:
## Omakase Player - Open source JavaScript framework for building frame accurate video experiences
12 lines (11 loc) • 795 B
TypeScript
import Konva from 'konva';
import { Observable } from 'rxjs';
import { AuthenticationData } from '../authentication/model';
export declare class ImageUtil {
static getProtectedImageUrl(url: string, authentication: AuthenticationData): Observable<string>;
static createKonvaImage(url: string, authentication?: AuthenticationData): Observable<Konva.Image>;
static createKonvaImageSizedByWidth(url: string, width: number, authentication?: AuthenticationData): Observable<Konva.Image>;
static createKonvaImageSizedByHeight(url: string, height: number, authentication?: AuthenticationData): Observable<Konva.Image>;
static calculateProportionalHeight(width: number, image: Konva.Image): number;
static calculateProportionalWidth(height: number, image: Konva.Image): number;
}