fn svg_piece(&self, f: &mut String, pri: &PieceRenderInstructions) {
write!(f, r##"<path fill="{}" d="{}"/>"##,
self.colours[pri.face],
- svg_rescale_path(&self.path, 0.5)?,
- )?;
+ &self.path)?;
}
-/*
- #[throws(SE)]
- fn outline_path(&self, _pri : &PieceRenderInstructions) -> String {
- self.path.clone()
- }
-*/
#[throws(SE)]
fn surround_path(&self, _pri : &PieceRenderInstructions) -> String {
self.scaled_path.clone()
pelem : SVGGraphicsElement,
}
-/*
-interface PieceMap {
- [piece: string]: PieceInfo;
-}
-var pieces : PieceMap = new Map();
-*/
-
let pieces : { [typeid: string]: PieceInfo } = Object();
//Object.create(null);
if (piece == halo) {
let nelem = ancillary_node(piece, 'yellow');
if (p.held != null) {
- nelem.setAttributeNS(null,'stroke-width','3px');
+ nelem.setAttributeNS(null,'stroke-width','2px');
}
p.pelem.prepend(nelem);
}