import { ANIME , EASE_TYPE } from "../cubicons/constants" ; import { AxisProjector , Point } from "../cubicons/coordinateSystem" ; import { PT_TO_COORDS_DATA } from "../cubicons/constants" ; import { Animation } from "./animation" ; import { Create } from "./create" ; /**
 * The creation of a point and its two axis projectors.
 */ export class PointToCoords extends Animation { private projectors : [ AxisProjector , AxisProjector ] ; constructor ( params ) { super ( { cubicon : params . point . point , duration : params . duration ?? ANIME . CREATE , ease : params . ease , } ) ; this . projectors = params . point . projectors ; } play ( ) { this . ptToCoords ( this . cubicon , this . projectors ) ; } private ptToCoords ( point , projectors ) { point . group . play ( [ new Create ( { cubicon : point } ) , new Create ( { cubicon : projectors [ 0 ] } ) , new Create ( { cubicon : projectors [ 1 ] } ) , ] ) ; } }