Interface: PhylogeneticTreeOptions
Defined in: src/mobjects/biology/biologyTypes.ts:261
Options for a PhylogeneticTree. Supply newick or root.
Properties
height?
optionalheight:number
Defined in: src/mobjects/biology/biologyTypes.ts:277
Height of the drawing along the leaf axis. Default: 4.
labelFontSize?
optionallabelFontSize:number
Defined in: src/mobjects/biology/biologyTypes.ts:279
Font size of the leaf labels. Default: 20.
labels?
optionallabels:boolean
Defined in: src/mobjects/biology/biologyTypes.ts:281
Draw leaf labels. Default: true.
layout?
optionallayout:PhyloLayout
Defined in: src/mobjects/biology/biologyTypes.ts:267
Drawing style. Default: 'rectangular'.
leafColor?
optionalleafColor:string
Defined in: src/mobjects/biology/biologyTypes.ts:285
Color of the leaf dots. Default: a blue.
leafDotRadius?
optionalleafDotRadius:number
Defined in: src/mobjects/biology/biologyTypes.ts:289
Radius of each leaf dot. Default: 0.06.
lineColor?
optionallineColor:string
Defined in: src/mobjects/biology/biologyTypes.ts:283
Color of the branch lines. Default: white.
newick?
optionalnewick:string
Defined in: src/mobjects/biology/biologyTypes.ts:263
A Newick string, parsed into the tree. Supply this or root.
orientation?
optionalorientation:PhyloOrientation
Defined in: src/mobjects/biology/biologyTypes.ts:293
Reading direction (rectangular layout only). Default: 'left-to-right'.
root?
optionalroot:PhyloNode
Defined in: src/mobjects/biology/biologyTypes.ts:265
An already-parsed tree. Supply this or newick.
showLeafDots?
optionalshowLeafDots:boolean
Defined in: src/mobjects/biology/biologyTypes.ts:287
Draw a dot at each leaf. Default: true.
strokeWidth?
optionalstrokeWidth:number
Defined in: src/mobjects/biology/biologyTypes.ts:291
Stroke width of the branch lines. Default: 3.
useBranchLengths?
optionaluseBranchLengths: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?
optionalwidth:number
Defined in: src/mobjects/biology/biologyTypes.ts:275
Width of the drawing along the depth axis. Default: 6.