@shivani wrote:
i am using method Diagram.LicenseKeyForDLL("provided Key") in my module .
but on my build machine the watermark is still visible .
just wanted to confirm if this is the right way to do it .thanks
Posts: 6
Participants: 2
@shivani wrote:
i am using method Diagram.LicenseKeyForDLL("provided Key") in my module .
but on my build machine the watermark is still visible .
just wanted to confirm if this is the right way to do it .thanks
Posts: 6
Participants: 2
@wpegg wrote:
Hi,
I've customised a fair bit of my diagram to have its own layout algorithm, and to virtualize similar to how the sample suggests. However I am still using the default routing algorithm, with the behaviour set to AvoidsNodes. This algorithm is clearly routing based on the visible parts, meaning that as I scroll other nodes into view, they appear on top of links. Is it possible for me to customise this algorithm to take my virtualized information about the node bounds rather than from the physical model?
Thanks,
Will
Posts: 4
Participants: 2
@Yefim wrote:
Hi,
I need to get a collection of nodes to be dragged at the beginning of the process (if someone curious why - on a large diagram with many links, in order to improve performance, I am finding all links related to the move and hide them for the time of dragging).
If user makes a selection and starts dragging a fraction of a second later, it works. In case of "button down and immediate move" at the time of doStart() method is called diagram.selection is still empty. As I understand, initial button down event is not processed yet. Is there a way to set some kind of a delay before doStart() is called?
Posts: 4
Participants: 2
@Denis wrote:
Is there any way to figure out that we are moving a single point of the orthogonal GoLink (the moment
before we will move the point) and that fact we have just finished moving it?
Maybe some event or method that I could override.
Many thanks
Posts: 1
Participants: 1
@manasagarwal wrote:
As you can see in the diagram many links are crossing the nodes which looks dirty (NODE1, NODE2, RAM1, SSD3), I want to send all the links lines backward.
Please let me know how to achieve this by setting link template setting attributes. Currently I am using the following linkTemplate-
diagram.linkTemplate =
$(go.Link,
{routing: go.Link.AvoidsNodes, corner: 4, curve: go.Link.JumpOver, reshapable: true, resegmentable: true, relinkableFrom: true, relinkableTo: true, }, $(go.Shape, { strokeWidth: 1.0 }), $(go.Shape, { toArrow: "OpenTriangle" }) );
Look forward to hear from you..
Posts: 5
Participants: 2
@Doogal wrote:
Hi
I'm just wondering what is the best approach for drawing shapes with a double border? Our users can add various different shapes to the diagram and we let them set the border width to none, single, thick or double. The first three are easily achieved, but I'm wondering how I can add the double border?
I was thinking adding another shape that is slightly smaller might be the way to go, but I am not sure what would happen when I then hide that shape for the other settings of border width (I'm guessing any child objects would also disappear?)
I spotted pathPattern and I've seen the example with links. Should this work with shapes other than links? I tried it out but without any luck
Posts: 3
Participants: 2
@nadeemparvez.ak wrote:
Hello I am implementing concepts of records containing tree.
so I am creating two groups in node Data Array
{ isGroup: true, key: -2, text: "Device Model", xy: "300 0" },
{isGroup:true,key:-3,text:"test",xy:"626 50"}{isGroup:true,key:-3,text:"test",xy:"626 50"}
and the text is binded to key
$(go.TextBlock,
new go.Binding("text", "key", function(s) { return s; }))now my problem is when ever i use the same key name and push it to the linkDataArray although they are in different groups. My tree link breaks up .
is there a way to differentiate linkDataArray.push with groups ?
Posts: 3
Participants: 2
@rustyaussie wrote:
I have managed to get most things working, admittedly I've copied most of it from the DynamicPorts demo.
However, I keep getting this error whenever I try and connect two ports i get the following error:
"Override InsertLink(NodeType, PortKey, NodeType, PortKey) to support creating a new link"See images attached..
Can anyone please point me to what I might be doing wrong?
Seeing as though I have copied the code from the Dynamic Ports example I cant see why I would be missing anything but I might be missing the "Override InsertLink(NodeType, PortKey, NodeType, PortKey) to support creating a new link" part
![]()
Posts: 4
Participants: 2
@walter wrote:
Changes for 1.6.8:
- Fixed how Diagram.findNodesByExample and Diagram.findLinksByExample compared Arrays
- Fixed link routing in some cases where there was a TwoWay Binding on Link.points with non-trivial conversions.
- Improved link routing when Link.adjusting is Link.Scale after the route is computed to be less than one unit long.
- Fixed unintended modification of model data involving TwoWay Bindings upon an undo after calling or causing Diagram.rebuildParts.
- Fixed rare cases of wrong link routes after undo of a drag.For older changes, see https://forum.nwoods.com/t/gojs-version-1-6-7/6932.
Posts: 2
Participants: 1
@shivani wrote:
When opening large Diagram with ForceDirectedLayout the view automatically scrolls to bottom.
is there any way to stop it and let the user see the top view of the diagram.Thanks in advance
Regards,
Shivani
Posts: 2
Participants: 2
@ebbnormal wrote:
Hello. I am trying to add an Event Listener which would be called everytime
diagram.lastInput
's value is changed.It would probably look like:
diagram.addModelChangedListener()
except this would be listening to changes on the
Diagram
itself and not just the diagram model.P.s. the reason why I want to capture everytime
lastInput
changes is to create a handler for hovering over a particulartargetObject
which is returned and set to theInputEvent
register indiagram.lastInput
if that helps give you a larger context.
Posts: 3
Participants: 2
@SimonBrodtmann wrote:
Hi,
I want to restrict relinking only to other ports on the same node.
So I tried to use link validation:diagram.toolManager.relinkingTool.linkValidation = function(fromnode, fromport, tonode, toport, link) { return tonode == link.toNode; };
But this only works for the end of a link. For the beginning I should compare fromnode with link.fromNode.
The Problem is: I don't know which side of the link I am dragging.
Is there a way to get that information?Thanks in advance.
Posts: 4
Participants: 2
@lipuabhishek wrote:
I have a very big diagram where few nodes are out of view on the canvas. I have implemented a node search functionality which works well for selecting the target node.
Is there any way I can slide the diagram to bring the selected node to center of the canvas ?
Posts: 2
Participants: 2
@shameer.sheik wrote:
Hi,
I can notice that the rhombus that is used for segment creation is not present in the start segment and the end segment , how can i make this appear ?
Posts: 5
Participants: 3
@estesbubba wrote:
In our mobile app I'm using makeSvg() to display an image of our diagram. This was working just fine 1.6.1 and with 1.6.9 I'm seeing these issues. The only options given to makeSvg() is scale: 1.0.
- The SVG looks to be a scale of 2 instead of 1.
- The TextBlock's text is longer than the size and it doesn't clip it. It has a grey background but you scan see the text overflows outside the size.
Now if I change the code from makeSvg() to makeImage() keeping scale: 1.0 is works just fine.
The problem with makeSvg() happens on Chrome desktop, iPhone, and iPad and I haven't tried any other browsers. Has anything with the API changed from 1.6.1 to 1.6.9 that I need to make in my code for makeSvg()?
Posts: 6
Participants: 2
@ernestjessee wrote:
I would like to add a mouseDrop method to my node template and know 2 things when that drop method is called: what was dropped and what it was dropped on. for the latter, I mean what specific instance of the template including any information that I may have added to the node when I created the graph model. I am passed 2 arguments. I expect that one is an event and one is the dropped object. Is the item dropped upon buried somewhere in the event?
Thanks for your help
Posts: 4
Participants: 2
@Archie wrote:
Hi,
I am using GoJs (V1.4.6) graphs to create layered and layered-horizontal layouts. I have ensured that my layout settings are identical to what has been shown here : https://gojs.net/latest/samples/ldLayout.html.
Below is my code for "Layered" layout.layout = make(go.LayeredDigraphLayout, {
direction: 0,
aggressiveOption: go.LayeredDigraphLayout.AggressiveLess,
cycleRemoveOption: go.LayeredDigraphLayout.CycleDepthFirst,
initializeOption: go.LayeredDigraphLayout.InitDepthFirstIn,
iterations: 4,
layeringOption: go.LayeredDigraphLayout.LayerLongestPathSource,
packOption: go.LayeredDigraphLayout.PackStraighten,
columnSpacing: 10,
layerSpacing: 35,
setsPortSpots: true
});
and I end up with the graph layoutI was expecting the node (with house like icon) to appear on the right-hand side of the transaction-like node( $ icon). What am I missing?. The first 3 levels appear OK but not there after.
Note : I have similar problem with "layered-horizontal" layout as well.
.Any help is highly appreciated.
Cheers,
Archie
Posts: 1
Participants: 1
@wpegg wrote:
Hi,
I'm trying to layout some groups stacked as vertical swimlanes, then within those I have nodes laid out vertically downwards from the top. I've got my layout working, and that calculates the correct co-ordinates every time. I then have an option to "hide" a group, which collapses its subgraph and changes its dimensions so that it is very thin. Upon unhide I have to relayout my diagram in order to reposition swimlanes to the right of the group, however when I run the layout I initially see the new "unhidden" nodes in the top left of the graph, before they quickly reposition to the group's location. This causes a strange jumping effect for my group.
I turned animation on in order to try to see what is happening, and it looks as though the nodes are moving from their old location, to where the group is initially positioned (in the top left), then the group is moving to its location after that. This would be fine, but I don't want animation, I just want the nodes in the place I told them to be.
So I seem to be getting some intermediary steps of the layout process being drawn on the screen as it lays out (despite animations being off). Is there some way to delay any rendering taking effect until the entire layout has been calculated? It's worth noting that the way I'm doing this is that there is a diagram layout that positions each group, and each group has a layout positioning its nodes within it. At the moment the only solution I have is to put a loading image in front of the diagram before a layout and hide it upon layout completion, however this causes the whole diagram to flicker if the layout is quick.
Thanks,
Will
Posts: 3
Participants: 2
@LDLKM wrote:
I am running a SharePoint 2010 Farm and trying to create a visual webpart with a GoView control. I am using the Framework 3.5 version of the control as SharePoint 2010 does not support higher Frameworks.
I have made sure that the GoWeb.js is included in the webpart and have set the SessionStarted event in the PageLoad of the control to point to the InitializeDocument as in the example source codeMyView.SessionStarted += new EventHandler(InitializeDocument);
. Additionally, I have added the GoWebImage.axd handler to the web.config.
The issues are that the InitializeDocument method specified on the SessionStarted Event never gets called, and even when I force it. The GoWebImage.axd handler call returns an http 200 but no response data.Any thoughts?
Posts: 7
Participants: 4