Code Monkey home page Code Monkey logo

knode's People

Contributors

bimbo1989 avatar marcodiiga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

knode's Issues

Fix scale between map/wrapper

Fix the scale for good: either create the wrappers at map's creation or control the scale directly from a parent div.

E.g.

<div style="overflow: hidden; width:470px; height:450px; border: 2px solid black;">
    <div id="wrapper" style="transform-origin: 0% 0%; transform: scale(0.6);
      overflow: hidden; height: 800px; width:800px;">
     <div id="map">
     </div>
    </div>
</div>

animateToStaticPosition() is continuously called even when timeout has been fired

The animateToStaticPosition call (just to finalize connectors) is causing an endless loop even when the subtree has reached equilibrium and/or timeout has been fired

this.stabilityTimeout = setTimeout(function () {
  thisNode.$map.rootNode.stopSubtreeMoving = true;
  thisNode.$map.rootNode.animateToStaticPosition (); // causing recursion
  console.log ("MOVEMENT STOPPED TIMEOUT"); // debug
}, MOVEMENT_TIMEOUT * 1000);

Add borders repulsion

It would be nice to have a border repulsion for nodes relative to the parent container (so that they never disappear from the map)

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.