mirror of
https://github.com/mapillary/mapillary-js.git
synced 2026-01-25 14:07:28 +00:00
feat: export geometry functionality to public api
This commit is contained in:
parent
8b59a86e66
commit
f8fed7c19e
14
src/external/viewer.ts
vendored
14
src/external/viewer.ts
vendored
@ -48,6 +48,18 @@ export {
|
||||
CameraUniforms,
|
||||
ICamera,
|
||||
} from "../geometry/interfaces/ICamera";
|
||||
export {
|
||||
FISHEYE_CAMERA_TYPE,
|
||||
FisheyeCamera,
|
||||
} from "../geometry/camera/FisheyeCamera";
|
||||
export {
|
||||
PERSPECTIVE_CAMERA_TYPE,
|
||||
PerspectiveCamera,
|
||||
} from "../geometry/camera/PerspectiveCamera";
|
||||
export {
|
||||
SPHERICAL_CAMERA_TYPE,
|
||||
SphericalCamera,
|
||||
} from "../geometry/camera/SphericalCamera";
|
||||
|
||||
// Graph
|
||||
export { Image } from "../graph/Image";
|
||||
@ -78,4 +90,4 @@ export { MapillaryError } from "../error/MapillaryError";
|
||||
|
||||
// Shader
|
||||
export { ShaderChunk } from "../shader/ShaderChunk";
|
||||
export { Shader } from "../shader/Shader";
|
||||
export { GLShader, Shader } from "../shader/Shader";
|
||||
|
||||
@ -84,14 +84,14 @@ describe("ProjectionService.registerCamera", () => {
|
||||
|
||||
const type = "custom";
|
||||
class CustomCamera implements ICamera {
|
||||
type: string = type;
|
||||
parameters: CameraParameters = {};
|
||||
uniforms: CameraUniforms = {};
|
||||
projectToSfmFunction: string = "";
|
||||
bearingFromSfm(): number[] {
|
||||
public type: string = type;
|
||||
public parameters: CameraParameters = {};
|
||||
public uniforms: CameraUniforms = {};
|
||||
public projectToSfmFunction: string = "";
|
||||
public bearingFromSfm(): number[] {
|
||||
return [0, 0, 0];
|
||||
}
|
||||
projectToSfm(): number[] {
|
||||
public projectToSfm(): number[] {
|
||||
return [0, 0];
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user