@ahmetgundogdu wrote:
When I resize modal Can I update Overview?
I used this code but it failed
this.myOverview.requestUpdate();
Posts: 2
Participants: 2
@ahmetgundogdu wrote:
When I resize modal Can I update Overview?
I used this code but it failed
this.myOverview.requestUpdate();
Posts: 2
Participants: 2
@kumar1 wrote:
in the above picture canvas occupied all space. canvas resized automatically when show the right section. but node still there as shown in below pic
is there any possibility to relocate the node ?
Posts: 2
Participants: 2
@ryanfan wrote:
Hi All,
I am trying to reproduce this example in my React Application.
https://gojs.net/latest/samples/customTextEditingTool.htmlI 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
@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
@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:
Posts: 1
Participants: 1
@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 nodeCan 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
@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
@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
@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
@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
@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
@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
@diego wrote:
Currently developing a drag and drop based on example: https://gojs.net/latest/samples/htmldragdrop.html
I’m trying to understand how the drop location is calculated. is the value of “window.PIXELRATIO” a constant or how is this value calculated?
Posts: 3
Participants: 2
@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
@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
@walter wrote:
Changes for 2.1.19
- Fixed changing Placeholder.padding to remeasure its Group or Adornment.
- Fixed Diagram.initialPosition and Diagram.initialScale sometimes not showing scrollbars on initialization.
- Fixed not recording a transaction that was empty until a “CommittingTransaction” Transaction-type ChangedEvent caused some ChangedEvents to made, a regression from 2.1.16.
For the previous release see GoJS version 2.1.18
Posts: 2
Participants: 1
@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
@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
@swang92 wrote:
I am currently using
toolManager.linkingTool.linkValidation
to fire a tool tip on the diagram if the connection is invalid. However, puttingconst 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