Quantcast
Channel: Northwoods Software - Latest topics
Viewing all 7420 articles
Browse latest View live

Increasing Table Group's size when placeholder size increases

$
0
0

@3.141592 wrote:

My Group is a Table, which contains 3 columns of Panels: A table panel of ports, an auto panel for the body, and another table panel of ports.

The auto panel is as follows:

$(go.Panel, "Auto", {
    column: 1,
    stretch: go.GraphObject.Fill,
    contextMenu: nodeContextMenu
  },
  $(go.Shape, "RoundedRectangle", {
    //geometryStretch: go.GraphObject.Fill,
    fill: "white"
  }),
  $(go.Panel, "Horizontal", {},
    $(go.TextBlock, new go.Binding("text", "name"))
  ),
  $(go.Placeholder)
)

The behavior I see now is that the auto panel expands to be either larger than the Placeholder, OR the table panels of ports, but not both.

Without any modifier properties, the default behavior will be for the Auto panel to expand to be larger than the placeholder.

Putting a { stretch: go.GraphObject.Fill } on the panel, or a { geometryStretch: go.GraphObject.Fill } on the shape will cause the Auto panel/shape to expand to encompass the placeholder, but not expand to the height of the neighboring columns.

The behavior I want is for the Auto panel to expand to be larger than the size of the placeholder && size of the table panels of ports.

What can I do to get my desired behavior?

Posts: 2

Participants: 2

Read full topic


Downstream and upstream button inside the nodes

$
0
0

@venkadesr wrote:

Hi,
Is it possible to have a Downstream and upstream button inside the nodes as shown in the screenshot?

If so, kindly provide me the input on how to do it.

Regards,
R.Venkades

Posts: 4

Participants: 2

Read full topic

Links break from nodes

$
0
0

@shameer.sheik wrote:

Hi,

Is there a way where I can tell the graph to always stay connected ?

for example ,i create the following graph with nodesize(140,140)

then i change the node size (140,50)

the link breaks .

I can get it to connect to the ports by not specifying points ,

what I want is to check if the links are connected properly to the nodes , if it is not connected , connect them automatically. I want to give high priority to the ports than the points (path that the link takes ) ? is this possible ?

Posts: 8

Participants: 2

Read full topic

Horizontal scrolling

$
0
0

@shameer.sheik wrote:

Hi,

if i have a single node(there is no graph on the left or right side) and try to horizontal scroll , the node scrolls to the end of left side , i want the scrolling to take place only if there is graph that is not displayed in the view port , how can i achieve this

in the flowchart example http://gojs.net/latest/samples/flowchart.html , i had a single node and tried horizontal scroll , the node flies in the direction even thought there is nothing more to show

Posts: 3

Participants: 2

Read full topic

Links between a group and its members

$
0
0

@Yefim wrote:

As I recall (but cannot find in the change log), you improved routing of links between a group and its members to be "internal" without going outside of this group. I see this working if a group has just one member, but starting with a second member routing goes outside the group.

Posts: 2

Participants: 2

Read full topic

Setting text baseline

How can I set this?

$
0
0

@st wrote:

var mynodeResizeW =
$(go.Adornment, "Spot",
// { locationSpot: go.Spot.Right },
$(go.Placeholder),
$(go.Shape, { alignment: go.Spot.Top, cursor: "n-resize", desiredSize: new go.Size(6, 6), fill:null, stroke: null }),
$(go.Shape, { alignment: go.Spot.Left, cursor: "w-resize", desiredSize: new go.Size(6, 6), fill: "lightblue", stroke: "deepskyblue" }),
$(go.Shape, { alignment: go.Spot.Right, cursor: "e-resize", desiredSize: new go.Size(6, 6), fill: "lightblue", stroke: "deepskyblue" }),
$(go.Shape, { alignment: go.Spot.Bottom, cursor: "s-resize", desiredSize: new go.Size(6, 6), fill:null, stroke: null }),
$(go.TextBlock, // show the width as text
{ alignment: go.Spot.Top, alignmentFocus: new go.Spot(0.5, 1, 0, -2),
stroke: "whitesmoke" },
new go.Binding("text", "adornedObject",
function(shp) { return shp.naturalBounds.width.toFixed(0) + "px";}).ofObject())
);

myDiagram.nodeTemplateMap.add("mymeasure",
$(go.Node, "Spot",
{//
selectionAdornmentTemplate:
$(go.Adornment, "Auto",
$(go.Shape, "RoundedRectangle",
{ fill: null }),
$(go.Placeholder)
) // end Adornment
},
{ resizable: true,
resizeObjectName: "SHAPE",
resizeAdornmentTemplate: mynodeResizeW,selectionAdorned: false
},
new go.Binding("location", "loc", go.Point.parse).makeTwoWay(go.Point.stringify),
new go.Binding("desiredSize", "size", go.Size.parse).makeTwoWay(go.Size.stringify),
$(go.Panel, "Auto",
{ name: "PANEL" },
$(go.Shape, "Capacitor",
{ fill: null, stroke: "pink", strokeWidth: 1}),
$(go.TextBlock,
{ name:"mmmmm",text: "w",font: "bold 13pt Helvetica, Arial, sans-serif", stroke:"whitesmoke", editable: true,alignment: go.Spot.TopCenter},
new go.Binding("text", "Cname").makeTwoWay())
)//end panel "auto"
)// end go.Node, "Spot"
);

Posts: 2

Participants: 2

Read full topic

Components in tree mapper links

$
0
0

@arielschwindt wrote:

Hi, is it possible to put some component (like a square for example) on the links created in the tree mapper sample. Do you have a sample code to do that?
Thanks in advance

Posts: 6

Participants: 2

Read full topic


Getting mouse events over GoJS surface

$
0
0

@catface wrote:

hi,

since I upgraded to goJS 1.6.1 document level mouse events don't work if they happen over the GoJS surface... is this a new thing?... can it be turned off?... my guess is goJS marks those events as handled or something... :-S

I have 2 scenarios that suffer from this... one is a context menu that doesn't hide when you click on goJS surface... and one is dragging and dropping from a "toolbox" that just stops when entering the goJS surface...

both those scenarios used to work fine in 1.5.5... and that upgrade is the only big thing that we changed... as far as I know.

thanks,
cAndrei

Posts: 4

Participants: 2

Read full topic

Groups in Palettes

$
0
0

@spd_e_gonzales wrote:

Hello,
I'm evaluating gojs for use in creating workflows and as part of the workflow creation process my users are able to create groups.

What I'm wondering is if it is possible to take the groups that are created and add them to a palette so that the user can re-use these groups.

Posts: 2

Participants: 2

Read full topic

GoJS version 1.6.5

$
0
0

@walter wrote:

Changes for 1.6.5:

For older changes, see https://forum.nwoods.com/t/gojs-version-1-6-4/6834

Posts: 1

Participants: 1

Read full topic

UML class (inspector)

$
0
0

@zeineb wrote:

How can i update every attribute(visibility,field,type) of an UML class from an inspector ?
thank you

Posts: 7

Participants: 2

Read full topic

Dash link possibilities on TreeModel?

Customer handle

$
0
0

@David wrote:

hi

I have a question about Handle.

I made a BoundingHandle on my Drawing Object.
It is located directly in front of the upper right handle (size : 10 X 10)
I would like to use it as a button.
I implement the overring method 'AddSelectionHandle' and made a Boundinghandle.
The source code is shown below.

How to recognize recognize this handle when hovering mouse.
and how to use mouseDown Event at this moment and get this Handle.

I would like to operation resize handle.


public class MyDrawing : GoDrawing
{
public override void AddSelectionHandles(GoSelection sel, GoObject selectedObj)
{
base.RemoveSelectionHandles(sel);
base.AddSelectionHandles(sel, selectedObj);

        GoShape selectedShape = selectedObj as GoShape;
        IGoHandle handle = sel.CreateBoundingHandle(this, selectedObj);
        GoShape shape = handle.GoObject as GoShape;

        if (shape != null)
        {
            shape.Bounds = new RectangleF(selectedObj.Position.X + selectedObj.Width - 20, selectedObj.Position.Y - 5 , 10, 10);
            shape.BrushColor = Color.Red;
            shape.PenColor = Color.Black;
            shape.PenWidth = 1;
        }
    }

}


please some advices or example code.

thanks.

Posts: 2

Participants: 2

Read full topic

Is there an equivalent of OnExternalOjbectsDropReject for a GoView?

$
0
0

@jpeddy wrote:

I see that there is a drop reject for background selection and object selection. Is there one for external objects? I need this feature to undo markup of the diagram (highlighting of items for example). Note that I am not dragging and dropping GoObjects.

Thanks,
John

Posts: 4

Participants: 2

Read full topic


How get the Zoom-to-fit effect when I initial the graph?

$
0
0

@Z.Tom wrote:

Everytime I intitial the graph,the graph's position is terrible,Is there any way that I can get the zoom-to-fit effect when I intial the graph?

Posts: 2

Participants: 2

Read full topic

Dropped Item

$
0
0

@roberto wrote:

Hello ,
I would buy gojs but are now being tested.

My question is:
1. you can not count items dragged so that they disappear from the palette
or make them "no selectable"?

  1. objects and arrows are programmable for the adapter?

  2. how can implement a contextmenu?

thanks for the answer

@roberto

Posts: 6

Participants: 2

Read full topic

Problems with GoLink

$
0
0

@Denis wrote:

Hello!
Before I ask you my questions, I would like to describe my project requirements briefly.
Our view can have several types of objects on it.
Those objects can be connected with each other with their conectors.
The connectors implemented as GoLink descendants (It is MyLink class in the attached example).

Every object must be aligned by a view grid with its center.
Every connector must be orthogonal, its every point must be aligned by a view grid.
I've prepared a simple example to illustrate my questions. To simplify the example I didn't include objects that must be connected with connectors, there are only links (connectors) which can be connected with each other by relinking.
To be connected, the links have ports at the ends. You can drag one of a connector end to
another connector end to connect them. (To show ports, define conditional compilation symbol SHOW_PORTS for the whole project or only just for MyLink.cs).

Example link: https://yadi.sk/d/1VYC1jk4rJsW7

  1. Why do the ends of MyLink have offsets? Look at the pic1.png. I expect the first and last
    connector point coords are aligned by grid, but they are not. There is offset of 0.5. Ports have no size. Because of the offset I have a bit curved lines that connect objects and it looks not very good.

  2. How can I achieve every connector (not only its ends) point to be aligned by grid? I need it when a connector is moving or relinking.
    This issue illustrated by pic2.png

  3. When I move any intermediate connector point, sometimes I have situation when a link segments are not orthogonal to each other (pic3.png). How can I retain orthogonality moving intermediate connector points?

P.S. I use GoDiagram 5.1.0.4. My company has OEM License. I can send you the license information if needed.

Posts: 1

Participants: 1

Read full topic

Placing node parts

$
0
0

@emadden wrote:

How do I place node parts more precisely? I want a node that displays the name (category), a port, and a Panel/PanelExpanderButton, but the Panel types I'm using aren't working how I expected them to. Can someone help?

templateMap.add("Entry",
        $(go.Node, "Auto",
            new go.Binding("location", "loc", go.Point.parse).makeTwoWay(go.Point.stringify),
            $(go.Shape, "RoundedRectangle",
                {
                    fill: "lime",
                    width: 75,
                    height: 75
                }),
           $(go.Panel, "Vertical",
               $(go.TextBlock,
                   new go.Binding("text", "category"),
                   {
                       editable: false
                   })),
                $(go.Panel, "Horizontal",
                    $("PanelExpanderButton", "details"),
                    $(go.Panel, "Vertical",
                        {
                            name: "details",
                            itemTemplate:
                                $(go.Panel, "Horizontal",
                                    $(go.Shape, "Rectangle", {fill: "white", width: 40, height: 40}),
                                    $(go.TextBlock, new go.Binding("text", "prop")),
                                    $(go.TextBlock, new go.Binding("text", "val"))
                                )
                        })
                ),
            makePort("R", go.Spot.Right)
        ));

Where makePort() just returns a small square with port properties set.
This is how my node looks

The textBlock and port shape are organized how I want, but why isn't the panel and panel expander button positioned vertically under it? Should I maybe just use a table?

Posts: 6

Participants: 2

Read full topic

How to make a Link in a Palette non-draggable

$
0
0

@zeineb wrote:

i want to make a link none draggable from the palette but when i click on the link ,it actives a listener on all the classes in the diagram waiting for me to point on the first class and then to target the second one .
Any one can help me please,thank you

Posts: 2

Participants: 2

Read full topic

Viewing all 7420 articles
Browse latest View live