Code Monkey home page Code Monkey logo

Comments (14)

Ni55aN avatar Ni55aN commented on August 27, 2024

Yes, use a custom Node.vue
retejs/rete#209 (comment)
#9 (comment)

from examples.

borja010 avatar borja010 commented on August 27, 2024

Thank you for the quick response.

Im actually using rete-alight-render-plugin since the vue-render-plugin is not properly making the connections. By any chance do you know if there is a way with rete-alight-render-plugin or are you planning to update with the connections working properly?

from examples.

Ni55aN avatar Ni55aN commented on August 27, 2024

What exactly is wrong with the connection? Render plugins do not affect connections

from examples.

borja010 avatar borja010 commented on August 27, 2024

The connections are not matching.

image

from examples.

Ni55aN avatar Ni55aN commented on August 27, 2024

What version of rete-connection-plugin?

from examples.

borja010 avatar borja010 commented on August 27, 2024

Im using the same example that you uploaded. I just do a npm install and try it.

"rete": "^1.0.0-beta.5",
"rete-connection-plugin": "^0.2.4",
"rete-vue-render-plugin": "^0.2.4",

from examples.

Ni55aN avatar Ni55aN commented on August 27, 2024

You need the latest version of rete-connection-plugin (v0.3.1)

from examples.

borja010 avatar borja010 commented on August 27, 2024

I just tried with the latest version and it still the same. When you tried by yourself, is working properly? Are you trying it on chrome?

from examples.

Ni55aN avatar Ni55aN commented on August 27, 2024

Yes, just checked in Chrome 68. https://codepen.io/Ni55aN/pen/xzgQYq

I had a similar issue when SVG width and height are less than 12px. I still do not know exactly the reason for such strange behavior. Try to define the next styles:

svg.connection {
  width: auto;
  height: auto;
}

from examples.

borja010 avatar borja010 commented on August 27, 2024

I just tried now and its working like a charm.

Thank you very much for the assistance.

Is the example provided for Angular? Im trying to follow the information from https://github.com/retejs/vue-render-plugin and the example but I dont have access to this.data.render and the CustomNodeComponent.

from examples.

Ni55aN avatar Ni55aN commented on August 27, 2024

Is the example provided for Angular?

yes, in retejs/examples repo

from examples.

borja010 avatar borja010 commented on August 27, 2024

Good evening,

I was already able to create my own component and do the necessary changes. The only problem that I have right now is that everytime that I click a node, the canvas is created and it return the node to the initial status. How can I avoid this?

I removed this function:

editor.on('nodeselected', () => {
        editor.nodes.map(update);
    });

And now, there are some instances where the seleceted() get stuck on previous selected nodes.

Thank you for the help.

from examples.

Ni55aN avatar Ni55aN commented on August 27, 2024

the canvas is created and it return the node to the initial status

can you describe in detail?

from examples.

borja010 avatar borja010 commented on August 27, 2024

I was already able to fix it by adding a container in the creation of the personalized node. Thank you for the reply and the follow up. Ill be closing this issue since by being able to create my own node, it opens a lot of possibilities.

from examples.

Related Issues (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.