Skip to main content

Interface: PhylogeneticTreeOptions

Defined in: src/mobjects/biology/biologyTypes.ts:261

Options for a PhylogeneticTree. Supply newick or root.

Properties​

height?​

optional height: number

Defined in: src/mobjects/biology/biologyTypes.ts:277

Height of the drawing along the leaf axis. Default: 4.


labelFontSize?​

optional labelFontSize: number

Defined in: src/mobjects/biology/biologyTypes.ts:279

Font size of the leaf labels. Default: 20.


labels?​

optional labels: boolean

Defined in: src/mobjects/biology/biologyTypes.ts:281

Draw leaf labels. Default: true.


layout?​

optional layout: PhyloLayout

Defined in: src/mobjects/biology/biologyTypes.ts:267

Drawing style. Default: 'rectangular'.


leafColor?​

optional leafColor: string

Defined in: src/mobjects/biology/biologyTypes.ts:285

Color of the leaf dots. Default: a blue.


leafDotRadius?​

optional leafDotRadius: number

Defined in: src/mobjects/biology/biologyTypes.ts:289

Radius of each leaf dot. Default: 0.06.


lineColor?​

optional lineColor: string

Defined in: src/mobjects/biology/biologyTypes.ts:283

Color of the branch lines. Default: white.


newick?​

optional newick: string

Defined in: src/mobjects/biology/biologyTypes.ts:263

A Newick string, parsed into the tree. Supply this or root.


orientation?​

optional orientation: PhyloOrientation

Defined in: src/mobjects/biology/biologyTypes.ts:293

Reading direction (rectangular layout only). Default: 'left-to-right'.


root?​

optional root: PhyloNode

Defined in: src/mobjects/biology/biologyTypes.ts:265

An already-parsed tree. Supply this or newick.


showLeafDots?​

optional showLeafDots: boolean

Defined in: src/mobjects/biology/biologyTypes.ts:287

Draw a dot at each leaf. Default: true.


strokeWidth?​

optional strokeWidth: number

Defined in: src/mobjects/biology/biologyTypes.ts:291

Stroke width of the branch lines. Default: 3.


useBranchLengths?​

optional useBranchLengths: boolean

Defined in: src/mobjects/biology/biologyTypes.ts:273

Use branch lengths to place nodes along the depth axis (a phylogram). When false, or when the tree has no branch lengths, node depth (the number of edges from the root) is used instead (a cladogram). Default: true.


width?​

optional width: number

Defined in: src/mobjects/biology/biologyTypes.ts:275

Width of the drawing along the depth axis. Default: 6.