UNPKG

lingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

44 lines 1.43 kB
import { MIN_POLAR_ANGLE, MAX_POLAR_ANGLE } from "../globals"; import { objectManagerDefaults, objectManagerSchema } from "./IObjectManager"; import Choices from "./utils/Choices"; import { extendDefaults } from "./utils/Defaults"; import { nullableDefault } from "./utils/NullableDefault"; import Range from "./utils/Range"; export const cameraBaseSchema = { ...objectManagerSchema, mouseControl: [Boolean, String], fov: Number, zoom: Number, active: Boolean, transition: Boolean, minPolarAngle: Number, maxPolarAngle: Number, minAzimuthAngle: Number, maxAzimuthAngle: Number, polarAngle: Number, azimuthAngle: Number, inertia: Boolean }; export const cameraBaseDefaults = extendDefaults([objectManagerDefaults], { mouseControl: false, fov: 75, zoom: 1, active: false, transition: false, minPolarAngle: MIN_POLAR_ANGLE, maxPolarAngle: MAX_POLAR_ANGLE, minAzimuthAngle: -Infinity, maxAzimuthAngle: Infinity, polarAngle: nullableDefault(0), azimuthAngle: nullableDefault(0), inertia: false }, { mouseControl: new Choices({ true: true, false: false, drag: "drag" }), fov: new Range(30, 120, 5), zoom: new Range(0.1, 10), minPolarAngle: new Range(0, 180, 1), maxPolarAngle: new Range(0, 180, 1), polarAngle: new Range(0, 180), azimuthAngle: new Range(0, 360) }); //# sourceMappingURL=ICameraBase.js.map