UNPKG

phylogician-ts

Version:

Module to read, manipulate and write phylogenetic trees. Written in TypeScript

42 lines (41 loc) 1.09 kB
import { ISvgParams } from './interfaces'; import { Tree } from './Tree'; import { TreeLayout } from './TreeLayout'; import { LogLevelDescType } from 'loglevel-colored-prefix'; export declare class Circular extends TreeLayout { private logger; constructor(tree: Tree, svgParams: ISvgParams, loglevel?: LogLevelDescType); /** * Calculates all parameters of the tree * * @param {boolean} scaling * @returns {this} * @memberof Circular */ calcTree(scaling: boolean): this; /** * Calculates the branch path * * @returns {this} * @memberof Circular */ calcBranchPath(): this; /** * Helper function to place label by the corresponding node * * @param {number} id * @returns {string} * @memberof Circular */ labelPlace(id: number): string; /** * Helper function to determine the anchor of text * * @param {number} id * @returns {string} * @memberof Circular */ labelAnchor(id: number): string; private calcAngle; private calcRadius; }