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

When I resize modal Overview update


Node location not changing when change width of canvas

Custom Text Editor in React

$
0
0

@ryanfan wrote:

Hi All,

I am trying to reproduce this example in my React Application.
https://gojs.net/latest/samples/customTextEditingTool.html

I have looked at the gojs-react, but that only has the implementation of Diagram and Palette.
The example from gojs-react-basic doesn’t have an example of how to use extensions either.

I want to have a select in my Diagram, but I don’t think the document.createElement(‘select’) is working in React.

Thanks!

Posts: 2

Participants: 2

Read full topic

Add/Play video on each added node

$
0
0

@anilactiknow wrote:

I am new in GoJS and I need your help regarding add/upload video or play video on any node. Is it possible or not? Please suggest me the solution. So that I can implement in my gojs diagram and save json data into the database to edit.

Posts: 2

Participants: 2

Read full topic

Tree Mapper Mapping Link not working

$
0
0

@Dev1792 wrote:

Hi, I am trying to use make a demo of Tree Mapper using angular 8 but while doing so, I could not map the nodes as it says the error which has been attached in a screenshot. Is there a way to overcome this?

The Mapping Link Code:
image

image

Posts: 1

Participants: 1

Read full topic

Find part from coordinates in diagram

$
0
0

@Yogesh.Mohan wrote:

Hi,
I need to find the part or the lane in which I am dropping my new node because I am using group property for my multiple lanes and need to place that particular node in that lane in which I am dropping my node

Can you please let me know how do I get that particular lane in which I am dropping my node so that I can get the lane key and set it into my node group.

var newlanedata = {
category: “Lane”,
text: “New Lane”,
color: “white”,
isGroup: true,
loc: go.Point.stringify(new go.Point(lane.location.x, lane.location.y + 1)),
size: go.Size.stringify(size),
group: “Lane-01”
};
// and add it to the model
Diagram.model.addNodeData(newlanedata);

Posts: 1

Participants: 1

Read full topic

How to add outline color to textBlock text, not font color?

$
0
0

@Phoenixsxy wrote:

How to add outline color to textBlock text,not font color?Currently, textBlock’s attribution “stroke” is to change font color ,not for the outline of the font.

Posts: 1

Participants: 1

Read full topic

Diagram export as PDF

$
0
0

@diego wrote:

Guys,

I know there has been a lot of questions regarding export a diagram to .pdf and is usually third party libraries. do you guys have any advice or new knowledge as of June 2020 on getting this done?

Thanks

Posts: 1

Participants: 1

Read full topic


Virtual Infinite Scroll Mode

$
0
0

@soumyajit wrote:

I want the documentBounds to always be a little bigger than the visible bounds. This is mainly so when there is only one / two shapes that can be contained within the visible area dragging them beyond the canvas space sort of shifts the visible bounds making it feel like it’s did not move.

Is there we can simulate the dragging-beyong-the-visible-bounds behaviour from InfiniteScroll mode in without enabling the InfiniteScroll mode?

Infinite Scroll would have worked if they had scrollbars (which is not possible).

Is there a sample or example that does this? I could not find one in the examples.

Posts: 1

Participants: 1

Read full topic

Get Diagram object from Electron MenuItem

$
0
0

@cacheq wrote:

I have an Electron app with GoJS. When I invoke a menu item in the Electron app, I want to modify my GoJS diagram, but I can’t figure out how to get a handle on the myDiagram object. How would I do that?

Posts: 1

Participants: 1

Read full topic

Scrollbar not appear in edge browser

$
0
0

@sunilwarke wrote:

Hello,

We are using gojs to generate hierarchical tree view. In edge browser when we do zoom in and when diagram overflow div element scrollbar does not appear automatically. while in other browsers like chrome, firefox, opera same scenario works fine and scrollbar appear when diagram overflow div element.

Is there any solution for edge browser?

Posts: 2

Participants: 2

Read full topic

Hierarchical model data update using setDataProperty

Dynamic Implementation on tree view mapper

$
0
0

@Dev1792 wrote:

I am trying to make the tree mapper https://gojs.net/2.0.21/samples/treeMapper.html implementation dynamic with the data:
recordSrc : Record[] = [
{
type: ‘entry’,
name: ‘Record 12’,
color: “lightblue”,
group: -1,
info: “”,
fields: [
{type: ‘entry’, color:"", name: ‘field11A’, info: “”, group: -1, links:[], fields: []},
{type: ‘entry’, color:"", name: ‘field11B’, info: “”, group: -1, links: [], fields: []},
],
links: []
}
];

recordTgt : Record[] = [
{
type: ‘entry’,
name: ‘Record 21’,
color: “lightblue”,
group: -2,
info: “”,
fields: [
{type: ‘entry’, color:"", name: ‘field21A’, info: “”, group: -2, links:[], fields: []},
{type: ‘entry’, color:"", name: ‘field21B’, info: “”, group: -2, links: [], fields: []},
],
links: []
}
];

I want to have Record 12 of recordSrc variable as a node with fields as its child nodes and similarly with the recordTgt.

Can anyone tell me a reference or a soultion to do the same?

Posts: 5

Participants: 2

Read full topic

Drop location after drag and drop

How to update linklabels of selectedlink?

$
0
0

@kumar1 wrote:

   const linkTextValidation = ((textblock, oldstr, newstr) => {
 
      this.dia.model.commit((m) => {
        var data = m.linkDataArray[0];  // get the first link data
      }
      );
      return result;
    });```
in the above one i'm getting error linkDataArray not exist.

Posts: 1

Participants: 1

Read full topic


Gojs-angular: enable draggingTool.isGridSnapEnabled on nodes but not on textblock

$
0
0

@james1 wrote:

Hi friends,
There is a way to enable toolManager.draggingTool.isGridSnapEnabled on any node but text block?

I want that the text block will be ‘free’ on dragging, but I want the grid snap on other nodes…
Thanks

Posts: 4

Participants: 2

Read full topic

GoJS version 2.1.19

Changing visibility and affecting location

$
0
0

@roryfaber wrote:

Hi,

Taking a look at the KanBan example. If I was to have different nodes with different colours.

I would like to toggle the visibilty of each one of a certain color, this I can do no problem. What I have an issue with is retaining the position of each one where it should be. For example if I hide all but the blue color, all the blue colored ones will naturally move to the top and that is expected, as I bring the others back into view so they’re all showing again, I notice that the position for them will be different.

Is there a way to retain the location during the showing and hiding?

Thanks

Posts: 2

Participants: 2

Read full topic

Nodes without position information overlapping

$
0
0

@jcaruso wrote:

I’m attempting to layout nodes, using the tree layout, based on the data I get from a server. I successfully get all nodes and link information. The majority of the nodes have x and y coordinates which are positioned correctly. Once these nodes are positioned I set the isLayoutPositioned attribute to false in order to keeps these nodes in place.

A few of the nodes do not have any x and y coordinates. I would like gojs to automatically place these nodes within the diagram with the links and separated. (Note: I’m not setting the isLayoutPositined value to false). The issue I’m encountering is that all these nodes are placed on top of each other with all the links. I need these nodes to be separated on the diagram. Any suggestions are welcomed.

Posts: 2

Participants: 2

Read full topic

GoJS tooltip questions

$
0
0

@swang92 wrote:

I am currently using toolManager.linkingTool.linkValidation to fire a tool tip on the diagram if the connection is invalid. However, putting

const tt = ( 'ToolTip', { 'Border.stroke': 'red' }, (
go.TextBlock,
{ margin: 4 },
message here
)
)
myDiagram.toolManager.showToolTip(tt, toport)

only allows the tool tip to fire once (the first time a connection between two ports has been made). The user will have to stop the link and re-attempt the link to see the error again. Is it possible to make it fire every time a link to a port has been made?

Additionally, the tooltip auto hides after roughly 10 seconds. Is it possible to make it so that it hides only when the mouse has been moved?

similar to: Increase Tooltip delay
but for gojs?

Posts: 2

Participants: 2

Read full topic

Viewing all 6926 articles
Browse latest View live