Questions tagged [gojs]

GoJS is a JavaScript library for implementing interactive diagrams

GoJS (Graphical object JavaScript) is a feature-rich JavaScript library for implementing interactive diagrams, graphs, and charts in web browsers on desktop and touch devices. GoJS makes it easy to construct diagrams of complex nodes, links, and groups with customizable templates and layouts, using models and data binding.


Useful links


Related tags

431 questions
3
votes
2 answers

Can't find canvas element created inside div

I'm trying to create a canvas element which does not show on UI and draw GoJS data to it const divElement: HTMLDivElement = document.createElement('div') divElement.id='pngCanvas'; divElement.style.height='1000px'; …
3
votes
3 answers

Element does not move within canvas

I am tyring to move element within canvas but somehow it is not happening. Code I tried : Actions actions = new Actions(driver); actions.moveToElement(flowCanvas, 434, 177); actions.clickAndHold(); …
Helping Hands
  • 5,292
  • 9
  • 60
  • 127
3
votes
1 answer

GoJS get parent Node from TextBlock click handler

Is there a way to get to the parent Node or the parent GraphObject's in general in GoJS? I'm inside a TextBlock and need access to the model data in the click handler. Panel.findObject(id) only works from top to botton in the object hierarchy and a…
xander
  • 1,780
  • 9
  • 16
3
votes
1 answer

Make Gojs FlowCart working on AngularJS

For my current project, I'm using this amazing library "GoJS", that offers many awesome diagrams. The problem is that the library is based on Javascript, and does not have any AngularJS wrapper. The only angular code I found, is the based diagram…
Hicham ELG
  • 73
  • 1
  • 9
3
votes
1 answer

Is there any way putting dropdown in gojs panel?

Is there any way we can integrate HTML controls like dropdown in goJS panel. I can see we can have text box inside panel and checkboxes as well. But i can't find dropdown.
Qamar
  • 33
  • 3
3
votes
1 answer

GO JS Undo Showing Error

Salaamun Alekum While I Am Using GOJS Undo Operation Using Command Of My Code diag.commandHandler.undo(); It Is Showing Me Following Mentioned Error In Console Of Browser property set error: Error: Picture.element must be an instance of Image,…
Ali Jamal
  • 844
  • 11
  • 19
3
votes
1 answer

How to filter nodes in gojs in the UI?

I am working on an org chart with go.js. One thing I am not able to figure out is, how do I filter on particular nodes? Is it possible to have a UI for searching nodes in go.js?
xfscrypt
  • 16
  • 5
  • 28
  • 59
3
votes
1 answer

GoJS: use more than one parameter in a conversion function

I need to use two properties of a node in GoJS to perform a particular operation. Here is my current code: $(go.Picture, { //some properties }, new go.Binding("source", "item_status", getIcon)), //.... function…
Notaras
  • 611
  • 1
  • 14
  • 44
3
votes
0 answers

How to set drop target on high density display

I am working on a code base that uses GoJS. On a high display density display, such as a macbook pro with retina display, the drop detection is off, but on a normal display the dragover and drop detection is correct. Is there a setting or way to…
adeady
  • 467
  • 1
  • 4
  • 19
3
votes
1 answer

How to remove border of diagram when clicking it?

I searched the documentation of GoJS, but nothing was found. Is it possible?
DANG Fan
  • 854
  • 11
  • 21
2
votes
1 answer

GraphObject.make requires a class function or GoJS class name or name of an object builder, not: undefined

I'm following the tutorial of the library go.js: https://www.youtube.com/watch?v=EyseUD_i6Dw&list=PLOiCuGu6tcUSvKsqFnemvGTfdT97wVLsX&index=3. I reached this point without problems, but at this point I'm getting this error: GraphObject.make requires…
patatafly
  • 144
  • 10
2
votes
1 answer

Why do I have to use NaN in a constructor and can't use null? typescript

I'm using the library GoJS in my Angular project. When I want to return a new Size() from gojs with only one parameter, the other one has to be NaN: I'm doing something like new Size(NaN, height) The constructor of Size() looks like this:…
madidas
  • 23
  • 2
2
votes
1 answer

gojs apply parameter only when part of group

Using gojs, I would like to apply parameters only when the object is placed inside another object. for example a panel should only have the padding added (or change value, from 0 to 25) when placed inside a H Group. is this possible? looking at…
art vanderlay
  • 2,341
  • 4
  • 35
  • 64
2
votes
1 answer

How to remove the light blue frame in gojs's example "productionProcess"?

The url of the "productionProcess" example is: https://gojs.net/latest/samples/productionProcess.html The process chart is placed into one div whose id is "myDiagramDiv". Whenever you click any place with the left mouse in the div, a light blue…
fengnix
  • 85
  • 6
2
votes
1 answer

How to set the key value on a Go.js Node to create links

I'm using Go.js to create a canvas a user can draw straight lines on. From the documentation, I've been able to create nodes. Node creation code looks like: const node = this.goMake(go.Node, 'Horizontal', { position: new go.Point(point[0],…
Brant
  • 1,764
  • 11
  • 18
1
2
3
28 29