Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7417

GraphObject getDocumentPoint throws error

$
0
0

@Nimesh wrote:

Hi GoJS Team,

I want to retrieve all TextNode and its view port location so I have function as below to get all textnode objects.

var objs = [];
var wrapObjects = dia.findObjectsIn(rect, function(o) {
if (o instanceof go.TextBlock) objs.push(o);
console.log("Name", o.name);
return o.name === "messageWrapShape";
}, function(o) {
return console.log(o);
}, true);

then want to call transformDocToView to get point i m interested on but when trying to call objs[0].getDocumentPoint() for each object, I got below error -- please, help.

go.js:103 Uncaught TypeError: Cannot read property 'x' of undefined
at z.set.z.set (go.js:103)
at Lh.G.getDocumentPoint.G.Wa (go.js:1019)
at :1:5

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7417

Trending Articles