Hi Walter,
Thank you so much for the reply. I am using version 5.6.0. Just tested it in Chrome, IE, and Firefox and all seem to be having the same behavior.
I’m still familiarizing myself with the project, but I think I narrowed it down to this chunk of code that is hiding the nodes:
return $(go.Link, { curve: go.Link.Bezier, adjusting: go.Link.None, reshapable: true, relinkableFrom: false, relinkableTo: false, toShortLength: 3, textEditable: false, }, new go.Binding("opacity", "", (data, node) => { const { hidden, showHidden } = data; return showHidden && hidden ? 0.5 : 1; }), new go.Binding("visible", "", (data, node) => { const { hidden, showHidden } = data; return !(!showHidden && hidden); }),
I believe that go-debug.js is enabled because I did see errors for a separate issue, but I don’t see any errors for this.
We aren’t using groups, but I believe diagram.layout has been set. I think this is what sets it (sorry, very new to this)?
`
generateDiagram() {
let diagram = generateDiagramTemplate({ goJSElement: this._goJS });
this.diagram = diagram;
this.diagram.animationManager.isInitial = false;
const nodeTemplateOptions = {
onCollapse: this.onCollapse,
onExpandOrCollapseAllOfType: this.onExpandOrCollapseAllOfType,
findIfAllAreCollapsedOrExpanded: this.findIfAllAreCollapsedOrExpanded,
onHide: this.onHide,
onShiftClick: this.onShiftClick
};
diagram.nodeTemplateMap.add("ROOT", nodeRootTemplate(nodeTemplateOptions));
diagram.nodeTemplateMap.add("COMPOSITE", nodeCompositeTemplate(nodeTemplateOptions));
diagram.nodeTemplateMap.add("ATOM", nodeAtomTemplate(nodeTemplateOptions));
diagram.nodeTemplateMap.add("SAY", nodeSayTemplate(nodeTemplateOptions));
diagram.linkTemplateMap.add("IN", linkInTemplate);
diagram.linkTemplateMap.add("FOLLOWS", linkFollowsTemplate);
diagram.linkTemplateMap.add("NAMED", linkNamedTemplate);
diagram.linkTemplateMap.add("IN_TEXT", linkInTextTemplate);
diagram.linkTemplateMap.add("FOLLOWS_TEXT", linkFollowsTextTemplate);
diagram.linkTemplateMap.add("NAMED_TEXT", linkNamedTextTemplate);
let { normalizedTrace }: { normalizedTrace: NormalizedTrace } = this.props;
diagram.layout = generateLayoutTemplate({ traceLayout: normalizedTrace.layout });
this.postGenerateDiagram();
if (!this.state.diagramInitialized) { this.setState({ diagramInitialized: true }); }
}`