Code Monkey home page Code Monkey logo

gojs-react-basic's Issues

get model data after change event

Is this possible to get model data after the diagram is changed? What I try to do is handle onModelChange event for ReactDiagram component. It returns data of go.IncrementalData type which should return me modelData but I never receive it. I receive all other properties like insertedNodeKeys, modifiedNodeData etc. I could build up an updated model using those data but I assume that model should be already available using modelData property, am I right?

clone gojs-react-basic project, when i use a list data in nodeDataArray, "Maximum update depth exceeded" happen, how can i fix this???

this.state = {
nodeDataArray: [
{ key: 0, text: "Alpha", color: "lightblue", loc: "0 0", strokeDashArray: [10, 20] },
{ key: 1, text: "Beta", color: "orange", loc: "150 0", strokeDashArray: [10, 20] },
{ key: 2, text: "Gamma", color: "lightgreen", loc: "0 150", strokeDashArray: [10, 20] },
{ key: 3, text: "Delta", color: "pink", loc: "150 150", strokeDashArray: [10, 20] },
],
linkDataArray: [
{ key: -1, from: 0, to: 1 },
{ key: -2, from: 0, to: 2 },
{ key: -3, from: 1, to: 1 },
{ key: -4, from: 2, to: 3 },
{ key: -5, from: 3, to: 0 },
],
modelData: {
canRelink: true,
},
selectedData: null,
skipsDiagramUpdate: false,
};

Maximum update depth exceeded in react

`new go.Binding("strokeDashArray", "strokeDashArray").makeTwoWay()

\\\\\
{ key: 0, text: "Alpha", color: "lightblue", loc: "0 0", strokeDashArray: [10, 20] },

`

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.