UNPKG

@plurid/plurid-engine

Version:
23 lines (22 loc) 1.13 kB
import { /** interfaces */ PluridPlane, PluridConfiguration, TreePlane, SpaceLocation, LocationCoordinates, LinkCoordinates } from '@plurid/plurid-data'; export declare const computePath: (tree: TreePlane[], planeID: string) => TreePlane[]; export declare const computePluridPlaneLocation: (linkCoordinates: LinkCoordinates, treePageParent: TreePlane, bridgeLength?: number, linkPlaneAngle?: number) => LocationCoordinates; export declare const recomputeChildrenLocation: (page: TreePlane) => TreePlane[]; /** * Compute translateX based on configuration layout if it exists * or based on the index of the root. * * @param configuration * @param root * @param index */ export declare const computeRootLocationX: <C>(configuration: PluridConfiguration | undefined, root: PluridPlane<C>, index: number) => number; export declare const computeSpaceLocation: (configuration: PluridConfiguration) => SpaceLocation; /** * Based on the specified camera, compute the X translation * * @param configuration */ export declare const computeCameraLocationX: (configuration: PluridConfiguration) => number;