mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
41 lines
851 B
JavaScript
41 lines
851 B
JavaScript
import BaseGraphHandler from '@baserow/modules/core/graph/baseGraphHandler'
|
|
|
|
export default class NodeGraphHandler extends BaseGraphHandler {
|
|
constructor(workflow) {
|
|
super(workflow)
|
|
}
|
|
|
|
getPointMap() {
|
|
return this.container.nodeMap
|
|
}
|
|
|
|
getNode(nodeId) {
|
|
return this.getPoint(nodeId)
|
|
}
|
|
|
|
hasNodes() {
|
|
return this.hasPoints()
|
|
}
|
|
|
|
getFirstNode() {
|
|
return this.getFirstPoint()
|
|
}
|
|
|
|
getNodeAtPosition(referenceNode, position, output) {
|
|
return this.getPointAtPosition(referenceNode, position, output)
|
|
}
|
|
|
|
getNodePosition(node) {
|
|
return this.getPointPosition(node)
|
|
}
|
|
|
|
// Returns only the head of each slot (no next-chain traversal).
|
|
getChildren(targetNode) {
|
|
return super.getChildren(targetNode)
|
|
}
|
|
|
|
getNextNodes(targetNode, output = null) {
|
|
return this.getNextPoints(targetNode, output)
|
|
}
|
|
}
|