UNPKG

lingo3d

Version:

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

62 lines 2.2 kB
import { extendDefaults } from "./utils/Defaults"; import { appendableDefaults, appendableSchema } from "./IAppendable"; import { defaultMethod, defaultMethodPt3dArg, defaultMethodNumberArg } from "./utils/DefaultMethod"; import { nullableCallback } from "./utils/NullableCallback"; import Range from "./utils/Range"; import { disableSchema } from "../collections/disableSchema"; export const meshAppendableSchema = { ...appendableSchema, x: Number, y: Number, z: Number, rotationX: Number, rotationY: Number, rotationZ: Number, rotation: Number, onMove: Function, onMoveToEnd: Function, onLookToEnd: Function, moveTo: [Function, Array], lerpTo: [Function, Array], placeAt: [Function, Array], translateX: [Function, Array], translateY: [Function, Array], translateZ: [Function, Array], rotateX: [Function, Array], rotateY: [Function, Array], rotateZ: [Function, Array], setRotationFromDirection: [Function, Array], lookAt: [Function, Array], lookTo: [Function, Array] }; disableSchema.add("rotation"); export const meshAppendableDefaults = extendDefaults([appendableDefaults], { x: 0, y: 0, z: 0, rotationX: 0, rotationY: 0, rotationZ: 0, rotation: 0, onMove: nullableCallback(), onMoveToEnd: nullableCallback(), onLookToEnd: nullableCallback(), moveTo: defaultMethod(defaultMethodPt3dArg), lerpTo: defaultMethod(defaultMethodPt3dArg), placeAt: defaultMethod(defaultMethodPt3dArg), translateX: defaultMethod(defaultMethodNumberArg), translateY: defaultMethod(defaultMethodNumberArg), translateZ: defaultMethod(defaultMethodNumberArg), rotateX: defaultMethod(defaultMethodNumberArg), rotateY: defaultMethod(defaultMethodNumberArg), rotateZ: defaultMethod(defaultMethodNumberArg), setRotationFromDirection: defaultMethod(defaultMethodPt3dArg), lookAt: defaultMethod(defaultMethodPt3dArg), lookTo: defaultMethod(defaultMethodPt3dArg) }, { rotationX: new Range(0, 360), rotationY: new Range(0, 360), rotationZ: new Range(0, 360), rotation: new Range(0, 360) }); //# sourceMappingURL=IMeshAppendable.js.map