highlights adjustments
This commit is contained in:
1 parent
db855a1b59
commit
7b3760a17d
2 files changed
+8
-4
No files matched your search
@@ -716,9 +716,13 @@ function newUiObject () {
|
||||
}
|
||||
}
|
||||
|
||||
function highlight () {
|
||||
function highlight (counter) {
|
||||
isHighlighted = true
|
||||
highlightCounter = 30
|
||||
if (counter !== undefined) {
|
||||
highlightCounter = counter
|
||||
} else {
|
||||
highlightCounter = 30
|
||||
}
|
||||
}
|
||||
|
||||
function runningAtBackend () {
|
||||
@@ -1718,7 +1722,7 @@ function newUiObject () {
|
||||
|
||||
if (isHighlighted === true) {
|
||||
VISIBLE_RADIUS = thisObject.container.frame.radius * 1
|
||||
let OPACITY = highlightCounter / 30
|
||||
let OPACITY = highlightCounter / 10
|
||||
|
||||
browserCanvasContext.beginPath()
|
||||
browserCanvasContext.arc(visiblePosition.x, visiblePosition.y, VISIBLE_RADIUS, 0, Math.PI * 2, true)
|
||||
|
||||
@@ -37,6 +37,6 @@ function newNodesHighlights () {
|
||||
if (node === undefined) { return }
|
||||
if (node.payload === undefined) { return }
|
||||
if (node.payload.uiObject === undefined) { return }
|
||||
node.payload.uiObject.highlight()
|
||||
node.payload.uiObject.highlight(10)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user