Collapsing implemented at Trading System only

This commit is contained in:
Luis Fernando Molina committed 2019-07-13 14:18:56 +02:00
1 parent 589e2a594a
commit 64e154d165
3 files changed
+50 -2

No files matched your search

+6 -1
View File
@@ -137,6 +137,8 @@ function newStrategyPart () {
}
function getContainer (point) {
if (thisObject.payload.floatingObject.isCollapsed === true && thisObject.payload.floatingObject.collapsedManually === false) { return }
let container
if (isDragging === false && thisObject.isOnFocus === true) {
@@ -379,7 +381,7 @@ function newStrategyPart () {
function detachingPhysics () {
if (isDragging !== true) { return }
if (thisObject.isFrozen === true) { return }
if (thisObject.payload.floatingObject.isFrozen === true) { return }
if (rightDragging === false) { return }
let distanceToChainParent = Math.sqrt(Math.pow(thisObject.payload.position.x - thisObject.payload.targetPosition.x, 2) + Math.pow(thisObject.payload.position.y - thisObject.payload.targetPosition.y, 2))
@@ -520,6 +522,7 @@ function newStrategyPart () {
}
function drawBackground () {
if (thisObject.payload.floatingObject.isCollapsed === true && thisObject.payload.floatingObject.collapsedManually === false) { return }
if (thisObject.isOnFocus === false) {
drawConnectingLine()
@@ -530,6 +533,7 @@ function newStrategyPart () {
}
function drawMiddleground () {
if (thisObject.payload.floatingObject.isCollapsed === true && thisObject.payload.floatingObject.collapsedManually === false) { return }
if (thisObject.isOnFocus === false) {
drawValue()
drawText()
@@ -538,6 +542,7 @@ function newStrategyPart () {
}
function drawForeground () {
if (thisObject.payload.floatingObject.isCollapsed === true && thisObject.payload.floatingObject.collapsedManually === false) { return }
if (thisObject.isOnFocus === false) {
drawBodyAndPicture()
if (isDragging === false) {