diff --git a/LAYOUT.svg b/LAYOUT.svg
new file mode 100644
index 0000000..3b4d9f0
--- /dev/null
+++ b/LAYOUT.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/README.md b/README.md
index 4f5119d..f4c6253 100644
--- a/README.md
+++ b/README.md
@@ -10,41 +10,7 @@ Clicking on the canvas will insert control points, up to 3CPs. CPs can be moved
## Controls
-### Segments
-
-- `a` Draw Arc(counter-clockwise).
-- `s` Draw Arc(clockwise).
-- `d` Draw Line.
-- `f` Draw Bezier.
-- `g` Close Path.
-- `h` Fill Path.
-
-### Parametric
-
-- `arrows` Move last control point.
-- `click/drag` Translate target control point.
-- `click+alt` Erase target control point.
-
-### Shortcuts
-
-- `]` Increase stroke size.
-- `[` Reduce stroke size.
-- `/` Toggle linecap.
-- `space` Mirror.
-- `escape` Remove control points.
-- `~` Toggle canvas size.
-
-### System
-
-- `ctrl+n` New canvas.
-- `ctrl+s` Export canvas.
-- `ctrl+z` Delete last segment.
-- `ctrl+shift+backspace` Reset.
-
-## Hacker Mode(Cheatmode)
-
-- `tab` Toggle interface.
-- `1204` Will add a control point at x:12,y:4.
+
## Extras
diff --git a/docs.js b/docs.js
deleted file mode 100644
index c6f0c0f..0000000
--- a/docs.js
+++ /dev/null
@@ -1,98 +0,0 @@
-function Docs()
-{
- this.generate = function(m)
- {
- var svg_html = "";
-
- for(id in this.layout){
- var key = this.layout[id];
- var acc = this.accelerator_for_key(key.name,m);
- svg_html += ``;
- svg_html += ``;
- svg_html += `${key.name.toUpperCase()}`;
- svg_html += acc && acc.basic ? `${acc.basic}` : '';
- svg_html += acc && acc.ctrl ? `${acc.ctrl}` : '';
- }
- return ``;
- }
-
- this.accelerator_for_key = function(key,menu)
- {
- var acc = {basic:null,ctrl:null}
- for(cat in menu){
- var options = menu[cat];
- for(id in options.submenu){
- var option = options.submenu[id];
- acc.basic = (option.accelerator.toLowerCase() == key.toLowerCase()) ? option.label.toUpperCase().replace("TOGGLE ","").substr(0,8).trim() : acc.basic;
- acc.ctrl = (option.accelerator.toLowerCase() == ("CmdOrCtrl+"+key).toLowerCase()) ? option.label.toUpperCase().replace("TOGGLE ","").substr(0,8).trim() : acc.ctrl;
- }
- }
- return acc;
- }
-
- this.layout = [
- {x:0, y:0, width:60, height:60, name:"esc"},
- {x:60, y:0, width:60, height:60, name:"1"},
- {x:120, y:0, width:60, height:60, name:"2"},
- {x:180, y:0, width:60, height:60, name:"3"},
- {x:240, y:0, width:60, height:60, name:"4"},
- {x:300, y:0, width:60, height:60, name:"5"},
- {x:360, y:0, width:60, height:60, name:"6"},
- {x:420, y:0, width:60, height:60, name:"7"},
- {x:480, y:0, width:60, height:60, name:"8"},
- {x:540, y:0, width:60, height:60, name:"9"},
- {x:600, y:0, width:60, height:60, name:"0"},
- {x:660, y:0, width:60, height:60, name:"-"},
- {x:720, y:0, width:60, height:60, name:"+"},
- {x:780, y:0, width:120, height:60, name:"backspace"},
- {x:0, y:60, width:90, height:60, name:"tab"},
- {x:90, y:60, width:60, height:60, name:"q"},
- {x:150, y:60, width:60, height:60, name:"w"},
- {x:210, y:60, width:60, height:60, name:"e"},
- {x:270, y:60, width:60, height:60, name:"r"},
- {x:330, y:60, width:60, height:60, name:"t"},
- {x:390, y:60, width:60, height:60, name:"y"},
- {x:450, y:60, width:60, height:60, name:"u"},
- {x:510, y:60, width:60, height:60, name:"i"},
- {x:570, y:60, width:60, height:60, name:"o"},
- {x:630, y:60, width:60, height:60, name:"p"},
- {x:690, y:60, width:60, height:60, name:"["},
- {x:750, y:60, width:60, height:60, name:"]"},
- {x:810, y:60, width:90, height:60, name:"|"},
- {x:0, y:120, width:105, height:60, name:"caps"},
- {x:105, y:120, width:60, height:60, name:"a"},
- {x:165, y:120, width:60, height:60, name:"s"},
- {x:225, y:120, width:60, height:60, name:"d"},
- {x:285, y:120, width:60, height:60, name:"f"},
- {x:345, y:120, width:60, height:60, name:"g"},
- {x:405, y:120, width:60, height:60, name:"h"},
- {x:465, y:120, width:60, height:60, name:"j"},
- {x:525, y:120, width:60, height:60, name:"k"},
- {x:585, y:120, width:60, height:60, name:"l"},
- {x:645, y:120, width:60, height:60, name:";"},
- {x:705, y:120, width:60, height:60, name:"'"},
- {x:765, y:120, width:135, height:60, name:"enter"},
- {x:0, y:180, width:135, height:60, name:"shift"},
- {x:135, y:180, width:60, height:60, name:"z"},
- {x:195, y:180, width:60, height:60, name:"x"},
- {x:255, y:180, width:60, height:60, name:"c"},
- {x:315, y:180, width:60, height:60, name:"v"},
- {x:375, y:180, width:60, height:60, name:"b"},
- {x:435, y:180, width:60, height:60, name:"n"},
- {x:495, y:180, width:60, height:60, name:"m"},
- {x:555, y:180, width:60, height:60, name:","},
- {x:615, y:180, width:60, height:60, name:"."},
- {x:675, y:180, width:60, height:60, name:"/"},
- {x:735, y:180, width:165, height:60, name:"capslock"},
- {x:0, y:240, width:90, height:60, name:"ctrl"},
- {x:90, y:240, width:90, height:60, name:"cmd"},
- {x:180, y:240, width:90, height:60, name:"alt"},
- {x:270, y:240, width:270, height:60, name:"space"},
- {x:810, y:240, width:90, height:60, name:"ctrl"},
- {x:720, y:240, width:90, height:60, name:"pn"},
- {x:630, y:240, width:90, height:60, name:"fn"},
- {x:540, y:240, width:90, height:60, name:"alt"}
- ]
-}
-
-module.exports = new Docs();
\ No newline at end of file
diff --git a/main.js b/main.js
index 9069305..25f5413 100644
--- a/main.js
+++ b/main.js
@@ -25,18 +25,6 @@ app.inject_menu = function(m)
Menu.setApplicationMenu(Menu.buildFromTemplate(m));
}
-app.generate_docs = function(m)
-{
- var fs = require('fs');
- var docs = require('./docs.js');
-
- dialog.showSaveDialog((fileName) => {
- if (fileName === undefined){ return; }
- fileName = fileName.substr(-4,4) != ".svg" ? fileName+".svg" : fileName;
- fs.writeFile(fileName, docs.generate(m));
- });
-}
-
app.win = null;
app.on('ready', () =>
diff --git a/sources/index.html b/sources/index.html
index 27adff9..1bd18e2 100644
--- a/sources/index.html
+++ b/sources/index.html
@@ -25,12 +25,7 @@
dotgrid = new Dotgrid(300,300,20,20,4,4, 10,"square","#000000");
dotgrid.install();
-
- document.addEventListener('mousedown', function(e){ dotgrid.mouse_down(e); }, false);
- document.addEventListener('mousemove', function(e){ dotgrid.mouse_move(e); }, false);
- document.addEventListener('mouseup', function(e){ dotgrid.mouse_up(e);}, false);
- document.addEventListener('copy', function(e){ dotgrid.copy(e);}, false);
- document.addEventListener('paste', function(e){ dotgrid.paste(e);}, false);
+