Coder Social home page Coder Social logo

n-yousefi / connect-it Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 2.0 164 KB

<connect-it> is a web component that allows you to create various types of diagrams, such as flowcharts, mind maps, network diagrams, org charts, and flow diagrams.

License: Apache License 2.0

JavaScript 100.00%
arrow diagram graph javascript line svg web-component connect-it digraph tree

connect-it's People

Contributors

n-yousefi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

connect-it's Issues

Not working graph

Hello. I have linked your library to my project like this:

  1. Run the npm command ($ npm install connect-it).
  2. Transferred all root files and folders dist and src to your project.
  3. Connected the connect-it/dist/connect-it.js script.
  4. In the required php file, I inserted into my div block:
<connect-it>
    <nodes>
        <div class="rs" id="node_0">
            <span class="view-element-text">First</span>
        </div>
        <div class="rs" id="node_1">
            <span class="view-element-text">Second</span>
        </div>
   </nodes>

    <shapes>
        <shape name="shape_triangle" type="triangle" size="10" color="#333"></shape>
    </shapes>

    <edges>
         <edge from="node_0" to="node_1" color="#333" marker-end="shape_triangle"></edge>
    </edges>
</connect-it>

When I view the page, I get the following error:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'x')
    at d (Calc.js:76:14)
    at f (Calc.js:87:10)
    at VDOM.js:30:22
    at Array.forEach (<anonymous>)
    at VDOM.js:29:22
    at Array.forEach (<anonymous>)
    at l.getLinks (VDOM.js:28:16)
    at new l (VDOM.js:10:23)
    at Main.js:13:19
    at Main.js:32:7
d @ Calc.js:76
f @ Calc.js:87
(анонимная) @ VDOM.js:30
(анонимная) @ VDOM.js:29
getLinks @ VDOM.js:28
l @ VDOM.js:10
(анонимная) @ Main.js:13
(анонимная) @ Main.js:32
Объект Promise.then (асинхронный)
onLoad @ Main.js:31
m @ Main.js:11
(анонимная) @ Main.js:42
(анонимная) @ Main.js:42

Maybe you need to include also the old library: https://github.com/n-yousefi/Arg-Graph?
Please tell me what am I doing wrong.

P.S.: And I also didn’t quite understand if there is a refresh command in this library.

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.