Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off grid by deafult on start #7

Open
sujeet-agrahari opened this issue Sep 23, 2020 · 3 comments
Open

Turn off grid by deafult on start #7

sujeet-agrahari opened this issue Sep 23, 2020 · 3 comments

Comments

@sujeet-agrahari
Copy link

sujeet-agrahari commented Sep 23, 2020

How can I turn off grid by default.
In grid.js , tried setting values to toggle but it doen't work

(function grid() { //Code isolation

	var toggle=1; //grid on by default
	var msg = {
		"type": "grid",
		"id":"",
		"toggle":toggle
	};
..............

Also, can you please explain what's this is doing if($("#menu").width()>Tools.menu_width+3)return; in each tool?

@shabashev-ivan
Copy link

How can I turn off grid by default.
In grid.js , tried setting values to toggle but it doen't work

(function grid() { //Code isolation

	var toggle=1; //grid on by default
	var msg = {
		"type": "grid",
		"id":"",
		"toggle":toggle
	};

Hello. Just change
var toogle=1;
New:
var toogle=0;

@shabashev-ivan
Copy link

Also, can you please explain what's this is doing if($("#menu").width()>Tools.menu_width+3)return; in each tool?
I'm not sure, I did not delve into the project, but I think that if the submenu is open, then do not draw on the board, but close the submenu

@sujeet-agrahari
Copy link
Author

sujeet-agrahari commented Oct 1, 2020

How can I turn off grid by default.
In grid.js , tried setting values to toggle but it doen't work

(function grid() { //Code isolation

	var toggle=1; //grid on by default
	var msg = {
		"type": "grid",
		"id":"",
		"toggle":toggle
	};

Hello. Just change
var toogle=1;
New:
var toogle=0;

As I already mentioned I tried setting those values to toggle, but that didn't work, but as a workaround I had to change the initial fill for board to white than to grid in board.html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants