feat: export geometry functionality to public api

This commit is contained in:
Oscar Lorentzon 2022-05-02 12:19:16 -04:00
parent 8b59a86e66
commit f8fed7c19e
2 changed files with 19 additions and 7 deletions

View File

@ -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";

View File

@ -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];
}
}