Class: Template

Template(options)

new Template(options)

Template

This:
Parameters:
Name Type Description
options object

Template options

Properties
Name Type Attributes Default Description
colors Array.<string> <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.lineDash Array.<number> <optional>

Branch line dash segments

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 string <optional>

Commit dot stroke color

commit.dot.lineDash Array.<number> <optional>

Commit dot line dash segments

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