@marin wrote:
I've tried to use the addAdornment function to programatically add an adornment to a node. This is the adornment template:
$(go.Adornment, 'Auto', { layerName: "Background", selectable: false, isInDocumentBounds: false, desiredSize: new go.Size(400, 400) }, $(go.Shape, "Circle", { fill: $(go.Brush, "Radial", {0.0: "blue", 1.0: "white"}), stroke: null }), $(go.Placeholder)//, {alignment: go.Spot.Center, alignmentFocus: go.Spot.Center}) );However, I get an exception. As far as I can tell, the exception is caused by: $(go.Placeholder).
This is the exception: TypeError: Cannot read property 'fb' of null
When I remove the placeholder, no exception is thrown, but also no adornment is visible.AddAdornment is called inside a transaction.
What am I doing wrong?
Posts: 1
Participants: 1