add support of animated-interval configuration

Closes #2
This commit is contained in:
Dmitriy Pleshevskiy 2023-04-03 16:15:01 +03:00
parent 03c25ed475
commit db26eb7213
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985
2 changed files with 5 additions and 1 deletions

View file

@ -58,6 +58,7 @@ x -> y -> z
- sketch
- force-appendix
- center
- animated-interval
# Limitation

5
wd2
View file

@ -24,6 +24,7 @@ cli and overwrite cli parameters with the same name.
- sketch
- force-appendix
- center
- animated-interval
-------------------------------------------------------------------------------
@ -82,6 +83,7 @@ d2_sketch=$(get_attr_value "sketch")
d2_port=$(get_attr_value "port")
d2_force_appendix=$(get_attr_value "force-appendix")
d2_center=$(get_attr_value "center")
d2_animated_interval=$(get_attr_value "animated-interval")
set -e
d2 "${d2_args[@]}" \
@ -92,5 +94,6 @@ d2 "${d2_args[@]}" \
${d2_sketch:+--sketch=${d2_sketch}} \
${d2_port:+--port=${d2_port}} \
${d2_force_appendix:+--force-appendix=${d2_force_appendix}}
${d2_center:+--center=${d2_center}}
${d2_center:+--center=${d2_center}} \
${d2_animated_interval:+--animated-interval=${d2_animated_interval}}