Skip to content

Commit 2df7deb

Browse files
committed
TritonDataCenter#11 strip height should be configurable
1 parent c37c9a2 commit 2df7deb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bin/statemap

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,10 @@ var main = function ()
666666
names: [ 'coalesce', 'c' ],
667667
type: 'number',
668668
help: 'coalesce target'
669+
}, {
670+
names: [ 'stripHeight', 's' ],
671+
type: 'number',
672+
help: 'height of each state strip, in pixels'
669673
} ];
670674

671675
mod_dashdash.addOptionType({
@@ -719,6 +723,9 @@ var main = function ()
719723
if (opts.coalesce)
720724
config.autocoalesceTarget = opts.coalesce;
721725

726+
if (opts.stripHeight)
727+
config.stripHeight = Math.floor(opts.stripHeight);
728+
722729
file = opts._args[0];
723730

724731
try {

0 commit comments

Comments
 (0)