We now have this in two places which is a bit poor, but we already
have some duplication between die.svg and the Rust code - eg, the path
generation which was just c&p.
I have left a comment. And arranged to filter it out for distribution.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
next if $keep_attr{$name};
$node->removeAttribute($name);
}
+ foreach my $desc_node ($node->getChildrenByTagName('desc')) {
+ $node->removeChild($desc_node);
+ }
}
sub filter_circle () {
my @xy = qw(cx cy);
cx="0"
cy="0"
r="8"
- inkscape:label="timeblack" />
+ inkscape:label="timeblack">
+ <desc
+ id="desc829">OUTER BLACK LINE FOR COOLDOWN TIMER
+NOTE - CHANGING STROKE WITH - EDIT src/dice.rs COOLDOWN_STROKE_WIDTH</desc>
+ </circle>
<circle
id="path15199"
style="fill:none;stroke:#ffffff;stroke-width:1.134;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
fn default_cooldown() -> Duration { Duration::from_millis(4000) }
fn default_circle_scale() -> f64 { 1. }
+// Copy of the value from die.svg's "timeblack"'s stroke-width
+const COOLDOWN_STROKE_WIDTH: f64 = 1.512;
+
const COOLDOWN_EXTRA_RADIUS: f64 = DEFAULT_EDGE_WIDTH * 2. + 0.2;
#[derive(Debug,Serialize,Deserialize)]