From 3bbf081c366fb30e8d6c7a806ecb0a4f380327ca Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Thu, 9 Apr 2015 20:58:35 +0200 Subject: NMS2 prototype: Add orig-explanation --- web/nms.gathering.org/nms2/prototype/test.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'web/nms.gathering.org/nms2') diff --git a/web/nms.gathering.org/nms2/prototype/test.js b/web/nms.gathering.org/nms2/prototype/test.js index 4fd3dbc..f7a2453 100644 --- a/web/nms.gathering.org/nms2/prototype/test.js +++ b/web/nms.gathering.org/nms2/prototype/test.js @@ -4,6 +4,14 @@ var fontSize = 20; var fontFace = "Arial Black"; var nightMode = false; var nightBlur = {}; + +/* "Orig" refers to the oriinal coordinate system. + * + * The short version is: This is the extents of the map, regardless of + * resolution. So if you place something at 1920x1032, it'll be at the very + * corner. If you change "orig", you also have to re-calculate all switch + * placements etc. + */ var orig = { width:1920, height:1032 -- cgit v1.2.3