I was trying to follow the example of using an OrgChartEditor and when I try to call findObject on a go.GraphObject, the function is not on that object.
Here is an example
import * as go from ‘gojs’
mouseDragEnter: function (e, node:go.GraphObject, prev) {
const diagram = node.diagram;
const selectedNode = diagram.selection.first();
const shape = node.findObject(“SHAPE”)
}
The error message says: Property findObject does not exist on GraphObject
I thought node was suppose to be a graph object ? Should I cast it to any instead ?