@egjs/view360
Version:
360 integrated viewing solution from inside-out view to outside-in view. It provides user-friendly service by rotating 360 degrees through various user interaction such as motion sensor and touch.
28 lines (27 loc) • 1.11 kB
TypeScript
export declare type ValueOf<T> = T[keyof T];
export interface TileConfig {
flipHorizontal: boolean;
rotation: number;
}
export interface CubemapConfig {
order: string;
tileConfig: TileConfig | TileConfig[];
trim: number;
}
export declare type TypedArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array;
export declare type Mutable<T extends object> = {
-readonly [K in keyof T]: T[K];
};
export declare type ImageCandidate = HTMLImageElement | string | Array<HTMLImageElement | string>;
export declare type VideoCandidate = HTMLVideoElement | string | {
src: string;
type: string;
} | Array<string | {
src: string;
type: string;
}>;
export declare type Unique<T, U> = Pick<T, Exclude<keyof T, keyof U>>;
export declare type MergeObject<T, U> = {
[K in keyof T & keyof U]: T[K] extends Record<string, unknown> ? U[K] extends Record<string, unknown> ? Merged<T[K], U[K]> : T[K] : T[K];
};
export declare type Merged<From, To> = Unique<From, To> & Unique<To, From> & MergeObject<From, To>;