Quantcast
Channel: GoJS - Northwoods Software
Viewing all 6977 articles
Browse latest View live

How can i delete a group without deleting his childrens?

$
0
0

@itayh wrote:

Hi guys,

I need to delete the group without the childrens using the “del” key, so i’m guessing “deleteSelection” should be involved somehow.

Is there a simple fix for this or i should override and implement it my self?
Thanks.

Posts: 2

Participants: 2

Read full topic


Disable dragSelectingTool

$
0
0

@dreamweiver wrote:

Hi Team,

I am working on a prototype with Gojs Diagram and I want to disable the dragSelectingTool which is activated on the diagram by default with magenta coloured window.

I searched through the forum and docs, didnt find any help.

I also tried following, but nothing worked

  • dragSelectingTool : “”

  • dragSelectingTool: {}

any quick help would be really appreciated.

regards,
Manoj Kumar Lakshman

Posts: 1

Participants: 1

Read full topic

How to get function on Ctrl-- on a node

$
0
0

@biswa wrote:

How to get function on Ctrl-- on a node?

Default is zoom decrease. But After selecting a node when press Ctrl-- it should rotate the node to an angle( Like: 90º)

Posts: 1

Participants: 1

Read full topic

How to do undo right after 'LinkDrawn' event is fired?

$
0
0

@dasguptarupak wrote:

Hi Team,

I want to remove a link right after a ‘LinkDrawn’ event is fired based on that link’s from property.
Kindly help me to solve this problem.

Thanks

Posts: 3

Participants: 2

Read full topic

Drop a node on to a node

$
0
0

@biswa wrote:

We want Drop a node on to a node nodes should not be overlapped.
How to achieve this?

I am using

layout: $(ParallelLayout, { nodeSpacing: 3, isOngoing: false, angle: 0,nodeSpacing: 10, layerSpacing: 30, setsPortSpot :false, setsChildPortSpot : false }),

Posts: 3

Participants: 2

Read full topic

How to keep a node position fixed in tree

$
0
0

@jalendra wrote:

I have a requirement where particular node with specific key will be at the end(right side) of the level.

When I add link data it adds the node at last position always. Is there any way i can add the node/link before some node.

Posts: 3

Participants: 2

Read full topic

GoJS Org Chart Editor - Divide the canvas area into multiple sections

$
0
0

@chintu538 wrote:

Hello,

Our actual requirement is to divide the gojs org chart editor canvas area into three sections which is not supported by default in GoJs. I couldn’t find direct solution for customizing the canvas area. Could you please help me how to customize and how to drag and drop the nodes from one section to another. Please find the screenshot below,

image

Please let me know if any additional information is required. Thank you for your support in advance.

Posts: 5

Participants: 2

Read full topic

Can I get the link count between two nodes?

$
0
0

@biswa wrote:

How can I get the link count between two nodes?
we have function to implement more that one link can not be allowed between two nodes when drop a node into a node?

Posts: 1

Participants: 1

Read full topic


How can we get link lowest end point

Do not allow the nodes to leave the pool

Resize document bounds

$
0
0

@or.madipor wrote:

Hey,

My diagram is listening to “InitialLayoutCompleted” event.
What I’m trying to do is position the diagram at the center of div horizontally and vertically.
Another thing, the diagram can’t be in the top 50 pixels of the div. please see the following example:

The problem starts when the size of the diagram (documentBounds) is larger than the size of the div.
In this case, I would like to change the height of the diagram. smaller than the height of the div.

How do I change the diagram size (documentBounds) and fit the zoom to the new size?

this.diagram.addDiagramListener(‘InitialLayoutCompleted’, this.centralizOnLoad);

centralizOnLoad(): void {
let divHeight = this.diagram.div.clientHeight;
let documentHeigth = this.diagram.documentBounds.height;
if (divHeight < documentHeigth) {
this.diagram.documentBounds.height = divHeight - 50;
this.diagram.zoomToFit();
this.diagram.position = new go.Point(paddingFromLeft, -50);
this.diagram.requestUpdate();
}
}

Thank you

Posts: 2

Participants: 2

Read full topic

Add Button to diagram

$
0
0

@chintu538 wrote:

Hi Walter, I’m trying to add a icon (button) inside canvas and when user clicks on that button it should open a new browser window.

Posts: 2

Participants: 2

Read full topic

Properties for the "last parents" need to be the "last second parent"

Genogram Identical Twin Layout Issue

$
0
0

@YosuaSalim wrote:

I’m developing twin and identical twin nodes in VueJS based Genogram.
I read a topic in this forum (Mixing orthogonal and normal linking) and tried implementing it. It works perfectly for twin nodes, but not for identical twin nodes.


First identical twin is generated correctly, but second identical twin is not

Is there a settings that I should configure to fix the layout problem ?

Here is the identical twin setup code (similar with the one in the forum)

    var T1 = myDiagram.findNodeForKey(identicalTwin[0].key);
    var T2 = myDiagram.findNodeForKey(identicalTwin[1].key);
    var TPL1 = T1.findTreeParentLink();
    var TPL2 = T2.findTreeParentLink();
    var TLN1 = $(go.Node);
    TLN1.labeledLink = TPL1;
    TLN1.segmentIndex = -2;
    TLN1.segmentFraction = .5;
    myDiagram.add(TLN1);
    var TLN2 = $(go.Node);
    TLN2.labeledLink = TPL2;
    TLN2.segmentIndex = -2;
    TLN2.segmentFraction = .5;
    myDiagram.add(TLN2);
    var TL = $(go.Link, {
      isLayoutPositioned: false,
      isTreeLink: false
    }, $(go.Shape, {
      strokeWidth: 2,
      stroke: "black"
    }));
    TL.fromNode = TLN1;
    TL.toNode = TLN2;
    myDiagram.add(TL);

Posts: 2

Participants: 2

Read full topic

Not able to resize panel containing ports properly


Queries in tree mapper

$
0
0

@no_one345 wrote:

i m using this sample as base diagram
https://gojs.net/latest/samples/treeMapper.html
1-> i need to increase the spacing between node but when i increase node spacing it only works on same level children the spacing between first child and parent remain the same for reference consider the following fig
Screenshot%20from%202018-11-01%2013-17-55
i need spacing between alerts-allergy-agent code

2-> i need to make the main nodes that contain the tree to be of fixed size and induce scroll for overflow if it happens
right now the scroll is on the main div of diagram i need it to go away rather than the scroll in the 2 nodes in left and right for reference

Posts: 1

Participants: 1

Read full topic

BackgroundDoubleClicked not working with Freehand

CommandHandler.deleteSelection giving me error

Link are connected wrongly

$
0
0

@biswa wrote:

Link are not responsively connected.
Please check the image
link

I want like the following image
link

It is happening when node is rotating.

how I can do this?

Posts: 9

Participants: 2

Read full topic

After Drag an element onto a element

$
0
0

@biswa wrote:

After Drag an element onto a element , how to move new node?
How to avoid override on nodes?
How to separate them in different position?
Is there any solution for this?

Posts: 2

Participants: 2

Read full topic

Viewing all 6977 articles
Browse latest View live


Latest Images