'use strict';
This commit is contained in:
parent
8dae514ebf
commit
d1e1bce3e9
@ -1,3 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
function Cursor()
|
||||
{
|
||||
this.pos = {x:0,y:0};
|
||||
|
@ -1,3 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
function Dotgrid(width,height,grid_x,grid_y,block_x,block_y)
|
||||
{
|
||||
this.controller = null;
|
||||
@ -126,7 +128,7 @@ function Dotgrid(width,height,grid_x,grid_y,block_x,block_y)
|
||||
|
||||
// Basics
|
||||
|
||||
this.set_size = function(size = {width:300,height:300},interface = true,scale = 1)
|
||||
this.set_size = function(size = {width:300,height:300},ui = true,scale = 1)
|
||||
{
|
||||
size = { width:clamp(step(size.width,15),105,1080),height:clamp(step(size.height,15),120,1080)}
|
||||
|
||||
@ -135,7 +137,7 @@ function Dotgrid(width,height,grid_x,grid_y,block_x,block_y)
|
||||
|
||||
try{
|
||||
let win = require('electron').remote.getCurrentWindow();
|
||||
win.setSize((size.width+100)*scale,(size.height+100+(interface ? 10 : 0))*scale,true);
|
||||
win.setSize((size.width+100)*scale,(size.height+100+(ui ? 10 : 0))*scale,true);
|
||||
}
|
||||
catch(err){
|
||||
console.log("No window")
|
||||
|
@ -1,3 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
function Generator(layer,style)
|
||||
{
|
||||
this.layer = layer;
|
||||
|
@ -1,3 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
function Guide()
|
||||
{
|
||||
this.el = document.createElement("canvas");
|
||||
|
@ -1,3 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
function Interface()
|
||||
{
|
||||
this.el = document.createElement("div");
|
||||
|
@ -1,3 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
function Controller()
|
||||
{
|
||||
this.menu = {default:{}};
|
||||
|
@ -1,3 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
function History()
|
||||
{
|
||||
this.index = 0;
|
||||
|
@ -1,3 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
function Theme()
|
||||
{
|
||||
let app = this;
|
||||
|
@ -1,3 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
function Picker()
|
||||
{
|
||||
this.memory = "";
|
||||
|
@ -1,3 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
function Renderer()
|
||||
{
|
||||
// Create SVG parts
|
||||
|
@ -1,3 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
function Tool()
|
||||
{
|
||||
this.index = 0;
|
||||
|
@ -1,3 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
document.onkeyup = (e) =>
|
||||
{
|
||||
let ch = e.key.toLowerCase();
|
||||
|
Loading…
Reference in New Issue
Block a user