@lumiscaphe/viewer 4.0.8 → 4.0.10
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/Animation.d.ts +7 -7
- package/dist/Basis3.d.ts +10 -10
- package/dist/Canvas2D.d.ts +16 -16
- package/dist/Canvas3D.d.ts +8 -8
- package/dist/Encoder.d.ts +5 -5
- package/dist/EventHelper.d.ts +5 -5
- package/dist/Hotspot.d.ts +14 -14
- package/dist/Inertia.d.ts +14 -14
- package/dist/InertiaPoint.d.ts +6 -6
- package/dist/InteractiveCamera.d.ts +25 -25
- package/dist/InteractivePosition.d.ts +26 -26
- package/dist/Loader.d.ts +28 -28
- package/dist/LoaderDelegate.d.ts +5 -5
- package/dist/Maths.d.ts +10 -10
- package/dist/Options.d.ts +10 -10
- package/dist/Parameters.d.ts +9 -9
- package/dist/Point.d.ts +6 -6
- package/dist/PointOfView.d.ts +12 -12
- package/dist/Position.d.ts +4 -4
- package/dist/Resolution.d.ts +6 -6
- package/dist/Scene.d.ts +13 -13
- package/dist/Size.d.ts +5 -5
- package/dist/Snapshot.d.ts +10 -10
- package/dist/Transition.d.ts +6 -6
- package/dist/Video.d.ts +8 -8
- package/dist/View.d.ts +20 -20
- package/dist/Viewer.d.ts +64 -64
- package/dist/Viewport.d.ts +12 -12
- package/dist/WRAPIv1.d.ts +37 -37
- package/dist/WRAPIv2.d.ts +333 -333
- package/dist/WebRenderStatic.d.ts +9 -9
- package/dist/WebRenderV1.d.ts +16 -16
- package/dist/WebRenderV2.d.ts +20 -20
- package/dist/Widget.d.ts +17 -17
- package/dist/WidgetImage.d.ts +28 -28
- package/dist/WidgetVRCube.d.ts +43 -43
- package/dist/WidgetVRObject.d.ts +37 -37
- package/dist/WidgetVideo.d.ts +26 -26
- package/dist/index.d.ts +16 -16
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
package/dist/Animation.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface Animation {
|
|
2
|
-
name: string;
|
|
3
|
-
camera: any;
|
|
4
|
-
duration: number;
|
|
5
|
-
reverse?: boolean;
|
|
6
|
-
loop?: boolean;
|
|
7
|
-
}
|
|
1
|
+
export interface Animation {
|
|
2
|
+
name: string;
|
|
3
|
+
camera: any;
|
|
4
|
+
duration: number;
|
|
5
|
+
reverse?: boolean;
|
|
6
|
+
loop?: boolean;
|
|
7
|
+
}
|
package/dist/Basis3.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { m4, v3 } from 'twgl.js';
|
|
2
|
-
export declare class Basis3 {
|
|
3
|
-
u: v3.Vec3;
|
|
4
|
-
v: v3.Vec3;
|
|
5
|
-
w: v3.Vec3;
|
|
6
|
-
o: v3.Vec3;
|
|
7
|
-
constructor(...args: v3.Vec3[]);
|
|
8
|
-
get localToGlobalMatrix(): m4.Mat4;
|
|
9
|
-
get globalToLocalMatrix(): m4.Mat4;
|
|
10
|
-
}
|
|
1
|
+
import { m4, v3 } from 'twgl.js';
|
|
2
|
+
export declare class Basis3 {
|
|
3
|
+
u: v3.Vec3;
|
|
4
|
+
v: v3.Vec3;
|
|
5
|
+
w: v3.Vec3;
|
|
6
|
+
o: v3.Vec3;
|
|
7
|
+
constructor(...args: v3.Vec3[]);
|
|
8
|
+
get localToGlobalMatrix(): m4.Mat4;
|
|
9
|
+
get globalToLocalMatrix(): m4.Mat4;
|
|
10
|
+
}
|
package/dist/Canvas2D.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export declare class Canvas2D {
|
|
2
|
-
element: HTMLCanvasElement;
|
|
3
|
-
image?: HTMLImageElement;
|
|
4
|
-
private fit;
|
|
5
|
-
private context;
|
|
6
|
-
private backCanvas;
|
|
7
|
-
private backContext;
|
|
8
|
-
private requestAnimationId?;
|
|
9
|
-
constructor(fit: 'contain' | 'cover' | 'fill');
|
|
10
|
-
destroy(): void;
|
|
11
|
-
show(useDisplay: boolean): void;
|
|
12
|
-
hide(useDisplay: boolean): void;
|
|
13
|
-
resize(width: number, height: number, pixelRatio: number): void;
|
|
14
|
-
draw(img: HTMLImageElement, fade: boolean, speed?: number): void;
|
|
15
|
-
private fadeLoop;
|
|
16
|
-
}
|
|
1
|
+
export declare class Canvas2D {
|
|
2
|
+
element: HTMLCanvasElement;
|
|
3
|
+
image?: HTMLImageElement;
|
|
4
|
+
private fit;
|
|
5
|
+
private context;
|
|
6
|
+
private backCanvas;
|
|
7
|
+
private backContext;
|
|
8
|
+
private requestAnimationId?;
|
|
9
|
+
constructor(fit: 'contain' | 'cover' | 'fill');
|
|
10
|
+
destroy(): void;
|
|
11
|
+
show(useDisplay: boolean): void;
|
|
12
|
+
hide(useDisplay: boolean): void;
|
|
13
|
+
resize(width: number, height: number, pixelRatio: number): void;
|
|
14
|
+
draw(img: HTMLImageElement, fade: boolean, speed?: number): void;
|
|
15
|
+
private fadeLoop;
|
|
16
|
+
}
|
package/dist/Canvas3D.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare class Canvas3D {
|
|
2
|
-
element: HTMLCanvasElement;
|
|
3
|
-
context: WebGLRenderingContext;
|
|
4
|
-
constructor();
|
|
5
|
-
show(): void;
|
|
6
|
-
hide(): void;
|
|
7
|
-
resize(width: number, height: number, pixelRatio: number): void;
|
|
8
|
-
}
|
|
1
|
+
export declare class Canvas3D {
|
|
2
|
+
element: HTMLCanvasElement;
|
|
3
|
+
context: WebGLRenderingContext;
|
|
4
|
+
constructor();
|
|
5
|
+
show(): void;
|
|
6
|
+
hide(): void;
|
|
7
|
+
resize(width: number, height: number, pixelRatio: number): void;
|
|
8
|
+
}
|
package/dist/Encoder.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface Encoder {
|
|
2
|
-
format: string;
|
|
3
|
-
compression?: number;
|
|
4
|
-
quality?: number;
|
|
5
|
-
}
|
|
1
|
+
export interface Encoder {
|
|
2
|
+
format: string;
|
|
3
|
+
compression?: number;
|
|
4
|
+
quality?: number;
|
|
5
|
+
}
|
package/dist/EventHelper.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Point } from './Point';
|
|
2
|
-
export declare class EventHelper {
|
|
3
|
-
static pointFromMouseEvent(e: MouseEvent): Point;
|
|
4
|
-
static pointFromTouchEvent(e: TouchEvent): Point;
|
|
5
|
-
}
|
|
1
|
+
import { Point } from './Point';
|
|
2
|
+
export declare class EventHelper {
|
|
3
|
+
static pointFromMouseEvent(e: MouseEvent): Point;
|
|
4
|
+
static pointFromTouchEvent(e: TouchEvent): Point;
|
|
5
|
+
}
|
package/dist/Hotspot.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface Hotspot {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
position2D: {
|
|
5
|
-
x: number;
|
|
6
|
-
y: number;
|
|
7
|
-
};
|
|
8
|
-
position3D: {
|
|
9
|
-
x: number;
|
|
10
|
-
y: number;
|
|
11
|
-
z: number;
|
|
12
|
-
};
|
|
13
|
-
visibility: 'Visible' | 'Occluded' | 'Clipped' | 'OutOfFrustum';
|
|
14
|
-
}
|
|
1
|
+
export interface Hotspot {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
position2D: {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
};
|
|
8
|
+
position3D: {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
z: number;
|
|
12
|
+
};
|
|
13
|
+
visibility: 'Visible' | 'Occluded' | 'Clipped' | 'OutOfFrustum';
|
|
14
|
+
}
|
package/dist/Inertia.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Point } from './Point';
|
|
2
|
-
export declare class Inertia {
|
|
3
|
-
private points;
|
|
4
|
-
private onMotion;
|
|
5
|
-
private lastPoint;
|
|
6
|
-
private velocity;
|
|
7
|
-
private animationFrameId?;
|
|
8
|
-
constructor(onMotion: (point: Point) => void);
|
|
9
|
-
destroy(): void;
|
|
10
|
-
track(point: Point): void;
|
|
11
|
-
start(): void;
|
|
12
|
-
stop(): void;
|
|
13
|
-
loop(): void;
|
|
14
|
-
}
|
|
1
|
+
import { Point } from './Point';
|
|
2
|
+
export declare class Inertia {
|
|
3
|
+
private points;
|
|
4
|
+
private onMotion;
|
|
5
|
+
private lastPoint;
|
|
6
|
+
private velocity;
|
|
7
|
+
private animationFrameId?;
|
|
8
|
+
constructor(onMotion: (point: Point) => void);
|
|
9
|
+
destroy(): void;
|
|
10
|
+
track(point: Point): void;
|
|
11
|
+
start(): void;
|
|
12
|
+
stop(): void;
|
|
13
|
+
loop(): void;
|
|
14
|
+
}
|
package/dist/InertiaPoint.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare class InertiaPoint {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
time: number;
|
|
5
|
-
constructor(x: number, y: number, time: number);
|
|
6
|
-
}
|
|
1
|
+
export declare class InertiaPoint {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
time: number;
|
|
5
|
+
constructor(x: number, y: number, time: number);
|
|
6
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { Point } from './Point';
|
|
2
|
-
import { PointOfView } from './PointOfView';
|
|
3
|
-
import { Size } from './Size';
|
|
4
|
-
export declare class InteractiveCamera {
|
|
5
|
-
isStarted: boolean;
|
|
6
|
-
pov: PointOfView;
|
|
7
|
-
fov: number;
|
|
8
|
-
private orientationMatrix;
|
|
9
|
-
private inertia;
|
|
10
|
-
private onMotion;
|
|
11
|
-
private initPov;
|
|
12
|
-
private initFov;
|
|
13
|
-
private initOrientation;
|
|
14
|
-
private startPov;
|
|
15
|
-
private startSize;
|
|
16
|
-
private previousPoint;
|
|
17
|
-
constructor(pov: PointOfView, fov: number, onMotion: () => void);
|
|
18
|
-
destroy(): void;
|
|
19
|
-
get orientedPov(): PointOfView;
|
|
20
|
-
reset(): void;
|
|
21
|
-
start(point: Point, size: Size): void;
|
|
22
|
-
motion(point: Point): void;
|
|
23
|
-
end(point: Point, inertia: boolean): void;
|
|
24
|
-
orientation(alpha: number, beta: number, gamma: number): void;
|
|
25
|
-
}
|
|
1
|
+
import { Point } from './Point';
|
|
2
|
+
import { PointOfView } from './PointOfView';
|
|
3
|
+
import { Size } from './Size';
|
|
4
|
+
export declare class InteractiveCamera {
|
|
5
|
+
isStarted: boolean;
|
|
6
|
+
pov: PointOfView;
|
|
7
|
+
fov: number;
|
|
8
|
+
private orientationMatrix;
|
|
9
|
+
private inertia;
|
|
10
|
+
private onMotion;
|
|
11
|
+
private initPov;
|
|
12
|
+
private initFov;
|
|
13
|
+
private initOrientation;
|
|
14
|
+
private startPov;
|
|
15
|
+
private startSize;
|
|
16
|
+
private previousPoint;
|
|
17
|
+
constructor(pov: PointOfView, fov: number, onMotion: () => void);
|
|
18
|
+
destroy(): void;
|
|
19
|
+
get orientedPov(): PointOfView;
|
|
20
|
+
reset(): void;
|
|
21
|
+
start(point: Point, size: Size): void;
|
|
22
|
+
motion(point: Point): void;
|
|
23
|
+
end(point: Point, inertia: boolean): void;
|
|
24
|
+
orientation(alpha: number, beta: number, gamma: number): void;
|
|
25
|
+
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Point } from './Point';
|
|
2
|
-
import { Position } from './Position';
|
|
3
|
-
import { Size } from './Size';
|
|
4
|
-
export declare class InteractivePosition {
|
|
5
|
-
isStarted: boolean;
|
|
6
|
-
private position;
|
|
7
|
-
private initPosition;
|
|
8
|
-
frames: number;
|
|
9
|
-
rows: number;
|
|
10
|
-
loop: boolean;
|
|
11
|
-
private onMotion;
|
|
12
|
-
private inertia;
|
|
13
|
-
private startPosition;
|
|
14
|
-
private startPoint;
|
|
15
|
-
private startSize;
|
|
16
|
-
private lastPoints;
|
|
17
|
-
private lastPointsNumber;
|
|
18
|
-
constructor(position: Position, frames: number, rows: number, loop: boolean, onMotion: () => void);
|
|
19
|
-
destroy(): void;
|
|
20
|
-
reset(): void;
|
|
21
|
-
get positionIndex(): number;
|
|
22
|
-
set positionIndex(index: number);
|
|
23
|
-
start(point: Point, size: Size): void;
|
|
24
|
-
motion(point: Point): void;
|
|
25
|
-
end(point: Point, inertia: boolean): void;
|
|
26
|
-
}
|
|
1
|
+
import { Point } from './Point';
|
|
2
|
+
import { Position } from './Position';
|
|
3
|
+
import { Size } from './Size';
|
|
4
|
+
export declare class InteractivePosition {
|
|
5
|
+
isStarted: boolean;
|
|
6
|
+
private position;
|
|
7
|
+
private initPosition;
|
|
8
|
+
frames: number;
|
|
9
|
+
rows: number;
|
|
10
|
+
loop: boolean;
|
|
11
|
+
private onMotion;
|
|
12
|
+
private inertia;
|
|
13
|
+
private startPosition;
|
|
14
|
+
private startPoint;
|
|
15
|
+
private startSize;
|
|
16
|
+
private lastPoints;
|
|
17
|
+
private lastPointsNumber;
|
|
18
|
+
constructor(position: Position, frames: number, rows: number, loop: boolean, onMotion: () => void);
|
|
19
|
+
destroy(): void;
|
|
20
|
+
reset(): void;
|
|
21
|
+
get positionIndex(): number;
|
|
22
|
+
set positionIndex(index: number);
|
|
23
|
+
start(point: Point, size: Size): void;
|
|
24
|
+
motion(point: Point): void;
|
|
25
|
+
end(point: Point, inertia: boolean): void;
|
|
26
|
+
}
|
package/dist/Loader.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { Hotspot } from './Hotspot';
|
|
2
|
-
import { LoaderDelegate } from './LoaderDelegate';
|
|
3
|
-
import { Snapshot } from './Snapshot';
|
|
4
|
-
export declare class Loader {
|
|
5
|
-
private webrender;
|
|
6
|
-
private delegate?;
|
|
7
|
-
private loadingId;
|
|
8
|
-
private loaded;
|
|
9
|
-
private total;
|
|
10
|
-
constructor(server: string, api: string, delegate: LoaderDelegate);
|
|
11
|
-
get progress(): number;
|
|
12
|
-
loadImageSnapshot(snapshot: Snapshot): Promise<HTMLImageElement>;
|
|
13
|
-
loadVideoSnapshot(video: HTMLVideoElement, snapshot: Snapshot): Promise<any>;
|
|
14
|
-
loadVRCubeSnapshot(snapshot: Snapshot): Promise<HTMLImageElement[]>;
|
|
15
|
-
loadVRObjectSnapshot(snapshot: Snapshot, position: number): Promise<Promise<HTMLImageElement>[]>;
|
|
16
|
-
private loadImage;
|
|
17
|
-
private loadImageFrames;
|
|
18
|
-
private loadVideo;
|
|
19
|
-
private loadVideoFrame;
|
|
20
|
-
private loadVideoFrames;
|
|
21
|
-
loadImageHotspots(snapshot: Snapshot, tags: string[]): Promise<Hotspot[]>;
|
|
22
|
-
loadVRCubeHotspots(snapshot: Snapshot, tags: string[]): Promise<Hotspot[][]>;
|
|
23
|
-
loadVRObjectHotspots(snapshot: Snapshot, tags: string[]): Promise<Hotspot[][]>;
|
|
24
|
-
private onLoadStart;
|
|
25
|
-
private onLoadProgress;
|
|
26
|
-
private onLoadEnd;
|
|
27
|
-
private static isValidHttpUrl;
|
|
28
|
-
}
|
|
1
|
+
import { Hotspot } from './Hotspot';
|
|
2
|
+
import { LoaderDelegate } from './LoaderDelegate';
|
|
3
|
+
import { Snapshot } from './Snapshot';
|
|
4
|
+
export declare class Loader {
|
|
5
|
+
private webrender;
|
|
6
|
+
private delegate?;
|
|
7
|
+
private loadingId;
|
|
8
|
+
private loaded;
|
|
9
|
+
private total;
|
|
10
|
+
constructor(server: string, api: string, delegate: LoaderDelegate);
|
|
11
|
+
get progress(): number;
|
|
12
|
+
loadImageSnapshot(snapshot: Snapshot): Promise<HTMLImageElement>;
|
|
13
|
+
loadVideoSnapshot(video: HTMLVideoElement, snapshot: Snapshot): Promise<any>;
|
|
14
|
+
loadVRCubeSnapshot(snapshot: Snapshot): Promise<HTMLImageElement[]>;
|
|
15
|
+
loadVRObjectSnapshot(snapshot: Snapshot, position: number): Promise<Promise<HTMLImageElement>[]>;
|
|
16
|
+
private loadImage;
|
|
17
|
+
private loadImageFrames;
|
|
18
|
+
private loadVideo;
|
|
19
|
+
private loadVideoFrame;
|
|
20
|
+
private loadVideoFrames;
|
|
21
|
+
loadImageHotspots(snapshot: Snapshot, tags: string[]): Promise<Hotspot[]>;
|
|
22
|
+
loadVRCubeHotspots(snapshot: Snapshot, tags: string[]): Promise<Hotspot[][]>;
|
|
23
|
+
loadVRObjectHotspots(snapshot: Snapshot, tags: string[]): Promise<Hotspot[][]>;
|
|
24
|
+
private onLoadStart;
|
|
25
|
+
private onLoadProgress;
|
|
26
|
+
private onLoadEnd;
|
|
27
|
+
private static isValidHttpUrl;
|
|
28
|
+
}
|
package/dist/LoaderDelegate.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface LoaderDelegate {
|
|
2
|
-
onLoadStart: (progress: number) => void;
|
|
3
|
-
onLoadProgress: (progress: number) => void;
|
|
4
|
-
onLoadEnd: (progress: number) => void;
|
|
5
|
-
}
|
|
1
|
+
export interface LoaderDelegate {
|
|
2
|
+
onLoadStart: (progress: number) => void;
|
|
3
|
+
onLoadProgress: (progress: number) => void;
|
|
4
|
+
onLoadEnd: (progress: number) => void;
|
|
5
|
+
}
|
package/dist/Maths.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { m4 } from 'twgl.js';
|
|
2
|
-
export declare class Maths {
|
|
3
|
-
static accelerate(v: number, f: number): number;
|
|
4
|
-
static degreesToRadians(a: number): number;
|
|
5
|
-
static radiansToDegrees(a: number): number;
|
|
6
|
-
static mod(x: number, y: number): number;
|
|
7
|
-
static perspectiveWithFovX(fovX: number, aspect: number, near: number, far: number, dst?: m4.Mat4): m4.Mat4;
|
|
8
|
-
static perspectiveWithFovY(fovY: number, aspect: number, near: number, far: number, dst?: m4.Mat4): m4.Mat4;
|
|
9
|
-
static perspectiveWithLeft(left: number, right: number, bottom: number, top: number, near: number, far: number, dst?: m4.Mat4): m4.Mat4;
|
|
10
|
-
}
|
|
1
|
+
import { m4 } from 'twgl.js';
|
|
2
|
+
export declare class Maths {
|
|
3
|
+
static accelerate(v: number, f: number): number;
|
|
4
|
+
static degreesToRadians(a: number): number;
|
|
5
|
+
static radiansToDegrees(a: number): number;
|
|
6
|
+
static mod(x: number, y: number): number;
|
|
7
|
+
static perspectiveWithFovX(fovX: number, aspect: number, near: number, far: number, dst?: m4.Mat4): m4.Mat4;
|
|
8
|
+
static perspectiveWithFovY(fovY: number, aspect: number, near: number, far: number, dst?: m4.Mat4): m4.Mat4;
|
|
9
|
+
static perspectiveWithLeft(left: number, right: number, bottom: number, top: number, near: number, far: number, dst?: m4.Mat4): m4.Mat4;
|
|
10
|
+
}
|
package/dist/Options.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface Options {
|
|
2
|
-
server: string;
|
|
3
|
-
api: string;
|
|
4
|
-
fit: 'contain' | 'cover' | 'fill';
|
|
5
|
-
image: any;
|
|
6
|
-
video: any;
|
|
7
|
-
vrcube: any;
|
|
8
|
-
vrobject: any;
|
|
9
|
-
events: any;
|
|
10
|
-
}
|
|
1
|
+
export interface Options {
|
|
2
|
+
server: string;
|
|
3
|
+
api: string;
|
|
4
|
+
fit: 'contain' | 'cover' | 'fill';
|
|
5
|
+
image: any;
|
|
6
|
+
video: any;
|
|
7
|
+
vrcube: any;
|
|
8
|
+
vrobject: any;
|
|
9
|
+
events: any;
|
|
10
|
+
}
|
package/dist/Parameters.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface Parameters {
|
|
2
|
-
width?: number;
|
|
3
|
-
height?: number;
|
|
4
|
-
antialiasing: boolean;
|
|
5
|
-
superSampling: number;
|
|
6
|
-
imageFormat?: string;
|
|
7
|
-
imageQuality?: number;
|
|
8
|
-
softwareAntialiasing?: boolean;
|
|
9
|
-
}
|
|
1
|
+
export interface Parameters {
|
|
2
|
+
width?: number;
|
|
3
|
+
height?: number;
|
|
4
|
+
antialiasing: boolean;
|
|
5
|
+
superSampling: number;
|
|
6
|
+
imageFormat?: string;
|
|
7
|
+
imageQuality?: number;
|
|
8
|
+
softwareAntialiasing?: boolean;
|
|
9
|
+
}
|
package/dist/Point.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare class Point {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
constructor(x: number, y: number);
|
|
5
|
-
clone(): Point;
|
|
6
|
-
}
|
|
1
|
+
export declare class Point {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
constructor(x: number, y: number);
|
|
5
|
+
clone(): Point;
|
|
6
|
+
}
|
package/dist/PointOfView.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { m4, v3 } from 'twgl.js';
|
|
2
|
-
export declare class PointOfView {
|
|
3
|
-
target: v3.Vec3;
|
|
4
|
-
eye: v3.Vec3;
|
|
5
|
-
up: v3.Vec3;
|
|
6
|
-
static readonly default: PointOfView;
|
|
7
|
-
constructor(target: v3.Vec3, eye: v3.Vec3, up: v3.Vec3);
|
|
8
|
-
get viewVector(): v3.Vec3;
|
|
9
|
-
get rightVector(): v3.Vec3;
|
|
10
|
-
get viewMatrix(): m4.Mat4;
|
|
11
|
-
clone(): PointOfView;
|
|
12
|
-
}
|
|
1
|
+
import { m4, v3 } from 'twgl.js';
|
|
2
|
+
export declare class PointOfView {
|
|
3
|
+
target: v3.Vec3;
|
|
4
|
+
eye: v3.Vec3;
|
|
5
|
+
up: v3.Vec3;
|
|
6
|
+
static readonly default: PointOfView;
|
|
7
|
+
constructor(target: v3.Vec3, eye: v3.Vec3, up: v3.Vec3);
|
|
8
|
+
get viewVector(): v3.Vec3;
|
|
9
|
+
get rightVector(): v3.Vec3;
|
|
10
|
+
get viewMatrix(): m4.Mat4;
|
|
11
|
+
clone(): PointOfView;
|
|
12
|
+
}
|
package/dist/Position.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface Position {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
}
|
|
1
|
+
export interface Position {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
}
|
package/dist/Resolution.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare class Resolution {
|
|
2
|
-
width: number;
|
|
3
|
-
height: number;
|
|
4
|
-
constructor(width: number, height: number);
|
|
5
|
-
get aspect(): number;
|
|
6
|
-
}
|
|
1
|
+
export declare class Resolution {
|
|
2
|
+
width: number;
|
|
3
|
+
height: number;
|
|
4
|
+
constructor(width: number, height: number);
|
|
5
|
+
get aspect(): number;
|
|
6
|
+
}
|
package/dist/Scene.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export type ImageScene = string;
|
|
2
|
-
export interface WebRenderScene {
|
|
3
|
-
database: string;
|
|
4
|
-
configuration?: string;
|
|
5
|
-
animations?: string[];
|
|
6
|
-
translation?: {
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
};
|
|
10
|
-
accessory?: boolean;
|
|
11
|
-
decor?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export type Scene = ImageScene | WebRenderScene;
|
|
1
|
+
export type ImageScene = string;
|
|
2
|
+
export interface WebRenderScene {
|
|
3
|
+
database: string;
|
|
4
|
+
configuration?: string;
|
|
5
|
+
animations?: string[];
|
|
6
|
+
translation?: {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
};
|
|
10
|
+
accessory?: boolean;
|
|
11
|
+
decor?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type Scene = ImageScene | WebRenderScene;
|
package/dist/Size.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare class Size {
|
|
2
|
-
width: number;
|
|
3
|
-
height: number;
|
|
4
|
-
constructor(width: number, height: number);
|
|
5
|
-
}
|
|
1
|
+
export declare class Size {
|
|
2
|
+
width: number;
|
|
3
|
+
height: number;
|
|
4
|
+
constructor(width: number, height: number);
|
|
5
|
+
}
|
package/dist/Snapshot.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Encoder } from './Encoder';
|
|
2
|
-
import { Parameters } from './Parameters';
|
|
3
|
-
import { Scene } from './Scene';
|
|
4
|
-
import { View } from './View';
|
|
5
|
-
export interface Snapshot {
|
|
6
|
-
scene: Scene[];
|
|
7
|
-
view: View;
|
|
8
|
-
parameters: Parameters;
|
|
9
|
-
encoder: Encoder;
|
|
10
|
-
}
|
|
1
|
+
import { Encoder } from './Encoder';
|
|
2
|
+
import { Parameters } from './Parameters';
|
|
3
|
+
import { Scene } from './Scene';
|
|
4
|
+
import { View } from './View';
|
|
5
|
+
export interface Snapshot {
|
|
6
|
+
scene: Scene[];
|
|
7
|
+
view: View;
|
|
8
|
+
parameters: Parameters;
|
|
9
|
+
encoder: Encoder;
|
|
10
|
+
}
|
package/dist/Transition.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Animation } from './Animation';
|
|
2
|
-
export interface Transition {
|
|
3
|
-
fromPosition: number;
|
|
4
|
-
toPosition: number;
|
|
5
|
-
animation: Animation;
|
|
6
|
-
}
|
|
1
|
+
import { Animation } from './Animation';
|
|
2
|
+
export interface Transition {
|
|
3
|
+
fromPosition: number;
|
|
4
|
+
toPosition: number;
|
|
5
|
+
animation: Animation;
|
|
6
|
+
}
|
package/dist/Video.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Resolution } from './Resolution';
|
|
2
|
-
export declare class Video {
|
|
3
|
-
element: HTMLVideoElement;
|
|
4
|
-
constructor();
|
|
5
|
-
show(): void;
|
|
6
|
-
hide(): void;
|
|
7
|
-
resize(width: number, height: number, resolution: Resolution, fit: 'contain' | 'cover' | 'fill'): void;
|
|
8
|
-
}
|
|
1
|
+
import { Resolution } from './Resolution';
|
|
2
|
+
export declare class Video {
|
|
3
|
+
element: HTMLVideoElement;
|
|
4
|
+
constructor();
|
|
5
|
+
show(): void;
|
|
6
|
+
hide(): void;
|
|
7
|
+
resize(width: number, height: number, resolution: Resolution, fit: 'contain' | 'cover' | 'fill'): void;
|
|
8
|
+
}
|
package/dist/View.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export interface View {
|
|
2
|
-
mode: string;
|
|
3
|
-
camera?: string;
|
|
4
|
-
background?: string;
|
|
5
|
-
animation?: string;
|
|
6
|
-
frames?: number;
|
|
7
|
-
loop?: boolean;
|
|
8
|
-
cameraGroup?: any;
|
|
9
|
-
panFrom?: number;
|
|
10
|
-
panTo?: number;
|
|
11
|
-
panFrames?: number;
|
|
12
|
-
panLoop?: boolean;
|
|
13
|
-
tiltFrom?: number;
|
|
14
|
-
tiltTo?: number;
|
|
15
|
-
tiltFrames?: number;
|
|
16
|
-
tiltLoop?: boolean;
|
|
17
|
-
duration?: number;
|
|
18
|
-
reverse?: boolean;
|
|
19
|
-
fps?: number;
|
|
20
|
-
}
|
|
1
|
+
export interface View {
|
|
2
|
+
mode: string;
|
|
3
|
+
camera?: string;
|
|
4
|
+
background?: string;
|
|
5
|
+
animation?: string;
|
|
6
|
+
frames?: number;
|
|
7
|
+
loop?: boolean;
|
|
8
|
+
cameraGroup?: any;
|
|
9
|
+
panFrom?: number;
|
|
10
|
+
panTo?: number;
|
|
11
|
+
panFrames?: number;
|
|
12
|
+
panLoop?: boolean;
|
|
13
|
+
tiltFrom?: number;
|
|
14
|
+
tiltTo?: number;
|
|
15
|
+
tiltFrames?: number;
|
|
16
|
+
tiltLoop?: boolean;
|
|
17
|
+
duration?: number;
|
|
18
|
+
reverse?: boolean;
|
|
19
|
+
fps?: number;
|
|
20
|
+
}
|