Set data to model ,TreeLayout will modify loc property of node
@chengwei wrote: i use tree layout,when i set data to model,it will modify the loc properties of nodes. before data: { "class": "go.GraphLinksModel", "linkFromPortIdProperty": "fromPort",...
View ArticleRight padding to panel
@jkarhu wrote: Sooo... what kind of a magic trick do I need to do to add a right padding to a panel? Posts: 4 Participants: 2 Read full topic
View ArticleIs there a guide for positioning Panels/Shapes?
@jkarhu wrote: ...I find positioning of objects very confusing. Is there a guide for positioning somewhere? Posts: 3 Participants: 2 Read full topic
View ArticleCentering the diagram based on node
@jkarhu wrote: I try to center the diagram in the middle of the viewport based on the clicked node. I have tried to achieve this by getting some values that I could use for proper calculation. Is...
View ArticleHaving “visible overflow” inside of a node or graphObject
@jkarhu wrote: I want to have a shape inside of a node, which would be partly out of the boundaries of the node. Meaning, -10px top and left of the parent element. Right now I have rectangle and a...
View ArticleChange nodes
@Curry wrote: Hello, I use GoJS and the TreeModel. Each node in my tree has a property called "level" that simply is a number that shows its level in the tree. When I move a sub-graph the value of...
View ArticleLink Shape.fromArrow/toArrow Two way binding not working
@JP wrote: Hi, In this example https://plnkr.co/edit/26aFUK26bokOdweo8tFA?p=preview, After clicking click here button I am trying to modify the Link shape.fromArrow and toArrow to "". But it not...
View ArticleGet key from after ungrouped a node
@JP wrote: Hi, After ungrouping a node how to get key of that node? Posts: 2 Participants: 2 Read full topic
View ArticleDropping Html element on Node
@JP wrote: From this sample https://gojs.net/latest/samples/dragOutFields.html, instead of dropping gojs fields in html. Can we drag and drop html element on top of node and that element value will be...
View ArticleSave data to MySQL
@mrpink007 wrote: I see that GoJS get and save data with JSON format.But my mission must do it on MySQLSo i use ajax to get data from MySQL (a php file will get data and convert it to json format,...
View ArticleThe page will scroll down automatically if i click diagram region
@chengwei wrote: i open my page in chrome,if i click the diagram region,the page will scroll down . Posts: 6 Participants: 2 Read full topic
View ArticleAdd groups to JSON feed
@kasga wrote: Hi guys,first of all, thank you for a great library, I think it really fulfills all of my needs for my next project ... hopefully;) I've set up the Flowchart example, and would like to...
View ArticleUpgrading GoJS from 1.6.2 to 1.6.19
@amitraturi wrote: Hi, Recently we have upgraded to license version from trial v1.6.2 to --> version v1.6.19. Earlier we were able to get correct relative location for e.g....
View ArticleHow to display different picture inside palette?
@rauf wrote: excuse me, i want to make a planogram and i want to display different picture inside pallete based on myDiagram.model. but i'm still get the same picture i'm following here for my...
View ArticleHow to overide delete event a node by key Delete
@sontd wrote: I want to catch event and overide when delete a note by hot key Delete, help me please! Posts: 2 Participants: 2 Read full topic
View ArticleCustomization of Dragging tool: how to implement validation before drop?
@Yefim wrote: Hi, there is a method doDropOnto() which is called after the drop.What is the right way to implement validation before drop and reject it if necessary? Thank you Posts: 3 Participants: 2...
View ArticleExternal Drag handling
@JJR wrote: Hello, I looked through the forums here and think this may not be possible, but I'll ask anyways. I have an external table/grid and want to drag its items over the GoJS diagram and have...
View ArticleLink the dynamic spots that comes on mouse click by giving them unique portId
@akash1 wrote: Here is my code : function init() { var $ = go.GraphObject.make; myDiagram = $(go.Diagram, "myDiagramDiv", { initialContentAlignment: go.Spot.Center, "undoManager.isEnabled": true });...
View ArticlePinch zoom in steps
@JEE wrote: Hi. This is a 'how to' question. Scenario: I have a gojs canvas displaying an image. I control the 'zoom depth' that the user can select. I do this because I want to show different quality...
View ArticleI want to catch drawing link event before the drawing has finished
@chengwei wrote: i want to catch drawing link event before the drawing has finished.And how to cancel drawing link event? Posts: 1 Participants: 1 Read full topic
View Article