Code Monkey home page Code Monkey logo

graph's People

Contributors

logicalerror avatar oliversalzburg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

graph's Issues

After GraphControl.Click is fired, FocusElement is inconsistent

// in ExampleForm()
graphControl.Click+=new EventHandler(graphControl_Click);

// elsewhere
void graphControl_Click(object sender, EventArgs e)
{
SystemSounds.Beep.Play();
if (graphControl.FocusElement != null)
lblFocus.Text = graphControl.FocusElement.ToString();
else
lblFocus.Text = string.Empty;
}

You will see that the value of FocusElement will not be correct. NodeSelection when nothing is active or selected. Node after clicking away from a node to deselect it.

Save Schematic

Hello, Nice work but i have one problem.

Cannot serialize graph nodes to the file.
i saw this error:

"GraphNode" is not marked serializable.
But when i marked serializable class and removed read only item,
I have serialized the node but if node have a connection i got a crash whit same problem

Have a idea how to fix this bug?

Unable to create connections between nodes

Hello,

I am attempting to use the Graph library for an event editor for a video game. However, I am unable to make connections between nodes via the viewport. I can still create connections programmatically.

This is the case even when the compatibility strategy is set to AlwaysCompatible. I have tried to use TagTypeCompatibility and I fumbled around with my own TagValueCompatibility, but to no avail.

I was unable to find a solution to the issue by looking at the example project given with the library.

This is how I initialize the graph context.

I have custom Nodes, which you can see here and here.

I might also add that I am using this within a WPF project via a WindowsFormHost; that may be a crucial detail.

Any ideas about how to solve this issue would be appreciated.

Thank you

Doesnt look like you were giving much gratitude for the project files, I just wanted to say thank you an have a great day.

MouseDown action fires MouseUp as well

Added this to test how focusing works:

'''
//in ExampleForm()
graphControl.MouseUp += new MouseEventHandler(graphControl_MouseUp);

//elsewhere
void graphControl_MouseUp(object sender, MouseEventArgs e)
{
SystemSounds.Beep.Play();
if (graphControl.FocusElement != null)
lblFocus.Text = graphControl.FocusElement.ToString();
else
lblFocus.Text = string.Empty;

    }

'''

When you click and hold, you will hear a beep, and another when you let go.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.