Git Product home page Git Product logo

dgrmjs's Introduction

dgrmjs's People

Contributors

alexeyboiko 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  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

dgrmjs's Issues

DgrmJS dispatch events, developers can use these events to implement their own logic, for example, make a JSON description of the workflow?

From your write up, it says

https://medium.com/codex/javascript-svg-diagram-editor-which-weighs-6-5-less-than-bootstrap-open-source-library-b753feaaf835

DgrmJS dispatch events, like ‘shape is selected’ or ‘shape is connecting to another shape’.
Developers can use these events to implement their own logic, for example, make a JSON description of the workflow.

Can please help to give an sample code on how to use these events?
Can please help to give an sample code on how to implement own logic to generate json description of the workflow?

Shape of links

Links sometimes "wiggle" so that it is not evident what they convey. I attach an example.

diagram

When node is dragged directly over the connected one, it jumps to another position

How to reproduce:

  1. Create 2 nodes
  2. Connect one to another (maybe optional)
  3. Drag one over another so that outgoing and incoming edge connectors are directly over each other
  • the node being dragged jumps 1000 pixels or so.
    Tested: latest Firefox
    Possible cause: division by zero.

I am not going to use the project, just wanted to report the issue randomly.

Arrow not working

ArrowNotWorking

Issues:

  1. Arrow not showing by default
  2. After selecting from settings, arrow rendering is not reflecting as per selected

Automatically update URL and save periodically

When my browser runs out of memory, and I click "SAVE" it crashes... and when I browse back, nothing.

What if the browser automatically reloaded with a URL like if you click share... and then automatically saved every few minutes? That would've saved me so many hours of work. Is it easy to implement?

todo: remove styles hard code

parent[delBtnSymbol].innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M17 6h5v2h-2v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8H2V6h5V3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v3zm1 2H6v12h12V8zm-9 3h2v6H9v-6zm4 0h2v6h-2v-6zM9 4v2h6V4H9z" fill="rgba(52,71,103,1)"/></svg>';

creating connected node when dragging the connection link

This is cool tool. is it possible to extend?
I need to create new connected node when Link is dragged or if user press tab key, new node is added to canvas with link.
could you give idea to extend the above feature if it is possible
image

Add palette

Hi.
Is there a way to add another palette? I have a list guard, trigger action, workflow. I just drag and drop text into the state and it will be stored in the json output.

Thanks for great lib

"app.dgrm.net has pro features"

Hi - very nice library.

Obviously its no problem to have pro features etc, but at the moment its a little unclear what is pro / what is in the github.

I found the github repo is missing the rectangles, and also has a different right-click behaviour.

What is in / out of scope for the github version?

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.