more fixes

This commit is contained in:
Luis Fernando Molina committed 2020-03-21 12:11:16 +01:00
1 parent d041d0e5f6
commit c0659a79fd
3 files changed
+13 -7

No files matched your search

+9 -3
View File
@@ -274,8 +274,8 @@ function newEdgeEditor () {
thisObject.container.frame.position.x = 0
thisObject.container.frame.position.y = 0
const MIN_WIDTH = 250
const MIN_HEIGHT = 120
const MIN_WIDTH = 200
const MIN_HEIGHT = 100
switch (whereIsMouseOver) {
case 'center': {
@@ -493,8 +493,14 @@ function newEdgeEditor () {
}
function snapScalarToGrid (scalar) {
let sign
if (scalar < 0) {
sign = -1
} else {
sign = 1
}
const GRID_SIZE = 10
return Math.trunc(scalar / GRID_SIZE) * GRID_SIZE + GRID_SIZE / 2
return Math.trunc(scalar / GRID_SIZE) * GRID_SIZE + GRID_SIZE / 2 * sign
}
}
+3 -3
View File
@@ -129,8 +129,8 @@ function newCodeEditor () {
thisObject.container.frame.position.x = 0
thisObject.container.frame.position.y = 0
thisObject.container.frame.width = thisObject.container.frame.radius * 1.8 * 2
thisObject.container.frame.height = thisObject.container.frame.radius * 1 * 2
thisObject.container.frame.width = thisObject.container.frame.radius * 1.8 * 1.5
thisObject.container.frame.height = thisObject.container.frame.radius * 1 * 1.5
let textAreaPosition = {
x: 0 - thisObject.container.frame.width / 2,
@@ -162,7 +162,7 @@ function newCodeEditor () {
position = thisObject.container.frame.frameThisPoint(position)
let radius = thisObject.container.frame.radius * 2
let radius = thisObject.container.frame.radius * 1.5
if (radius > 0.5) {
browserCanvasContext.beginPath()
+1 -1
View File
@@ -2,7 +2,7 @@
const FULL_LOG = true;
const LOG_FILE_CONTENT = false;
const ONE_DAY_IN_MILISECONDS = 24 * 60 * 60 * 1000;
const MODULE_NAME = "Trading Simulation -> " + bot.SESSION.name;
const GMT_SECONDS = ':00.000 GMT+0000';