Class: Template

Template

new Template(options)

Template

This:
Parameters:
Name Type Description
options Object

Template options

Properties
Name Type Argument Default Description
colors Array <optional>

Colors scheme: One color for each column

arrow.color String <optional>

Arrow color

arrow.size Number <optional>

Arrow size

arrow.offset Number <optional>

Arrow offset

branch.color String <optional>

Branch color

branch.lineWidth Number <optional>

Branch line width

branch.mergeStyle String <optional>
("bezier"|"straight")

Branch merge style

branch.spacingX Number <optional>

Space between branches

branch.spacingY Number <optional>

Space between branches

commit.spacingX Number <optional>

Space between commits

commit.spacingY Number <optional>

Space between commits

commit.widthExtension Number <optional>
0

Additional width to be added to the calculated width

commit.color String <optional>

Master commit color (dot & message)

commit.dot.color String <optional>

Commit dot color

commit.dot.size Number <optional>

Commit dot size

commit.dot.strokeWidth Number <optional>

Commit dot stroke width

commit.dot.strokeColor Number <optional>

Commit dot stroke color

commit.message.color String <optional>

Commit message color

commit.message.display Boolean <optional>

Commit display policy

commit.message.displayAuthor Boolean <optional>

Commit message author policy

commit.message.displayBranch Boolean <optional>

Commit message branch policy

commit.message.displayHash Boolean <optional>

Commit message hash policy

commit.message.font String <optional>
"normal 12pt Calibri"

Commit message font

commit.shouldDisplayTooltipsInCompactMode Boolean <optional>

Tooltips policy

commit.tooltipHTMLFormatter commitFormatter <optional>
true

Formatter for the tooltip contents.

Source:

Methods

get(name) → {Template}

Get a default template from library

Parameters:
Name Type Description
name String

Template name

Source:
Returns:

[template] - Template if exist

Type
Template