Implementation of Parent Children Running
This commit is contained in:
1 parent
73f0188ba9
commit
468ef8d0c6
2 files changed
+11
-2
No files matched your search
@@ -183,7 +183,7 @@ function newFloatingObject () {
|
||||
let parent = thisObject.payload.chainParent
|
||||
if (parent !== undefined) {
|
||||
let distanceToChainParent = Math.sqrt(Math.pow(parent.payload.position.x - thisObject.container.frame.position.x, 2) + Math.pow(parent.payload.position.y - thisObject.container.frame.position.y, 2)) // ... we calculate the distance ...
|
||||
let parentChildren = canvas.strategySpace.workspace.nodeChildren.childrenCount(parent)
|
||||
let parentChildren = canvas.strategySpace.workspace.nodeChildren.childrenCount(parent, thisObject.payload.node)
|
||||
let axisCount = parentChildren.childrenCount
|
||||
let axisIndex = parentChildren.childIndex
|
||||
|
||||
|
||||
@@ -38,7 +38,16 @@ function newNodeChildren () {
|
||||
case 'Initial Definition': {
|
||||
return countChildrenInitialDefinition(parentNode, childNode)
|
||||
}
|
||||
case 'Event': {
|
||||
case 'Next Phase Event': {
|
||||
return countChildrenEvent(parentNode, childNode)
|
||||
}
|
||||
case 'Trigger On Event': {
|
||||
return countChildrenEvent(parentNode, childNode)
|
||||
}
|
||||
case 'Trigger Off Event': {
|
||||
return countChildrenEvent(parentNode, childNode)
|
||||
}
|
||||
case 'Take Position Event': {
|
||||
return countChildrenEvent(parentNode, childNode)
|
||||
}
|
||||
case 'Stop': {
|
||||
|
||||
Reference in new issue
Block a user