Giter Site home page Giter Site logo

Comments (6)

philogb avatar philogb commented on August 23, 2024

What browser/platform are you in?

from jit.

gossi avatar gossi commented on August 23, 2024

FF 3.6.6 on OSX and Ubuntu.
As an additional Note: The edges grow and get thicker and thinner, the nodes flow away but the edges do not stay connected with the node. In the end there are gaps between edges and nodes; they stay isolated from each other.

from jit.

philogb avatar philogb commented on August 23, 2024

Here's a test with firefox 3.6.6 in OSX. Everything seems to be working fine. Nodes, Edges and Labels are scaled correctly. Edges are always shown (there are some small artifacts in the video, but they are related with the screencast and not the visualization itself). http://www.youtube.com/watch?v=ntcu7vnBVeU

from jit.

gossi avatar gossi commented on August 23, 2024

The issue occurs in a SpaceTree. Try here: http://einradfahren.de/index.php?module=mod_trixionary&action=graph

from jit.

philogb avatar philogb commented on August 23, 2024

I've seen what the problem is. Currently you're styling HTML node labels which aren't scaled by default in the visualization. Only "canvas" nodes and text is scaled by the visualization. All DOM-elements are left with their original dimensions. This is due to the fact that I don't really know what the user expects as behavior for DOM elements when the canvas is scaled. This can be customizable, although it won't be trivial. I suggest you join the google group to discuss this problem: http://groups.google.com/group/javascript-information-visualization-toolkit .
A video with Spacetree scaling right can be seen here: http://www.youtube.com/watch?v=aphiI7BuOMY . This approach renders the node completely in canvas. Another approach would be to resize "manually" the labels and text when scaling. This can be discussed in the group.

from jit.

paulinosantos avatar paulinosantos commented on August 23, 2024

I'm using this code to scale labels simultaneously with the canvas. I call this function onMouseWheel() and onBeforePlotNode().

            function setLabelScaling() {
                var x = st.canvas.scaleOffsetX,
                y = st.canvas.scaleOffsetY;
                $(".node").css("-moz-transform", "scale(" + x +"," +  y + ")");
                $(".node").css("-webkit-transform", "scale(" + x +"," + y + ")");
                $(".node").css("-ms-transform", "scale(" + x +"," +  y + ")");
                $(".node").css("-o-transform", "scale(" + x +"," +  y + ")");
            }

from jit.

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.