Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

FindObject not available

$
0
0

@mru22 wrote:

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 ?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles