From e1cec80733bfe31197c499a4d95c3f9c081ed7b9 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Tue, 14 Mar 2017 13:41:21 -0700 Subject: [PATCH] Improved stencil --- scripts/filters/stencil.js | 4 ++-- scripts/modules/render.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/filters/stencil.js b/scripts/filters/stencil.js index 7b1e944..27412b5 100644 --- a/scripts/filters/stencil.js +++ b/scripts/filters/stencil.js @@ -46,11 +46,11 @@ function Filter_Stencil() context.font = "5px Arial"; context.fillStyle = color; - context.fillText("GRID",(w*0.4)+10,10); + context.fillText(angle+"'",(w*0.4)+10,10); context.font = "5px Arial"; context.fillStyle = color; - context.fillText("GRID",(-w*0.4)-20,-10); + context.fillText(angle+"'",(-w*0.4)-20,-10); context.rotate(-angle*Math.PI/180); context.translate(-w/2,-h/2); diff --git a/scripts/modules/render.js b/scripts/modules/render.js index 70dda31..a9b7e46 100644 --- a/scripts/modules/render.js +++ b/scripts/modules/render.js @@ -37,7 +37,7 @@ function Render(rune) this.hint = function(content) { - var name = content.trim().replace(this.rune,"").trim().split(" "); + var name = content.trim().replace(this.rune,"").trim().split(" ")[0]; var h = ""; if(this.collection[name]){