From 56913ca75b80dce491240865f4ab5cc286cf2382 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 12 Jul 2020 18:52:06 +0100 Subject: [PATCH] fix debugging change and tidy --- src/pieces.rs | 9 +-------- templates/script.ts | 9 +-------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/pieces.rs b/src/pieces.rs index 63a987f7..96dc2814 100644 --- a/src/pieces.rs +++ b/src/pieces.rs @@ -87,15 +87,8 @@ impl Piece for SimpleShape { fn svg_piece(&self, f: &mut String, pri: &PieceRenderInstructions) { write!(f, r##""##, 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() diff --git a/templates/script.ts b/templates/script.ts index 1a9212f8..2fb6fa9e 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -52,13 +52,6 @@ type PieceInfo = { pelem : SVGGraphicsElement, } -/* -interface PieceMap { - [piece: string]: PieceInfo; -} -var pieces : PieceMap = new Map(); -*/ - let pieces : { [typeid: string]: PieceInfo } = Object(); //Object.create(null); @@ -260,7 +253,7 @@ function redisplay_ancillaries(piece: PieceId, p: PieceInfo) { 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); } -- 2.30.2