Merge pull request #44 from eelfroth/master

Grid(H) fixes
This commit is contained in:
Лu Лinveгa 2018-12-25 06:41:19 +12:00 committed by GitHub
commit 3413c4c984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,7 @@ DOTGRID.Guide = function () {
this.toggle = function () {
this.show_extras = !this.show_extras
this.update()
DOTGRID.interface.update(true)
}
this.resize = function (size) {
@ -57,6 +58,8 @@ DOTGRID.Guide = function () {
}
this.draw_mirror = function () {
if (!this.show_extras) { return }
if (DOTGRID.tool.style().mirror_style === 0) { return }
const middle = { x: DOTGRID.tool.settings.size.width + (DOTGRID.grid_width), y: DOTGRID.tool.settings.size.height + (2 * DOTGRID.grid_height) }