hello walter, I would like to know if it is possible to have a search engine by id and by label in a flowchart (Interactive Diagram for Building Flowcharts | GoJS Diagramming Library) and if gojs offers a search engine or should i just use a normal search engine component and implement some functions to search?
You might be interested in using Diagram.findNodesByExample, Diagram | GoJS API
However, that’s really not any better than you doing your own search for text in your model data. The only index that GoJS holds is the “key” of the node data objects in the Model.
ok I will implement my own search engine and I will search for them in the nodeDataArray of the model, however I asked once I find the node in question how do I make the diagram redirect me to that node and highlight it because sometimes the diagrams are very large and this would improve the user experience?
The basic answer is to call CommandHandler.scrollToPart. CommandHandler | GoJS API
If you want an example that I think goes a bit overboard in focusing attention on a particular node, take a look at: Animated Scrolling and Zooming Attention to Node | GoJS Diagramming Library