Giter Site home page Giter Site logo

How can I disable zooming? about ngx-graph HOT 5 CLOSED

swimlane avatar swimlane commented on May 19, 2024
How can I disable zooming?

from ngx-graph.

Comments (5)

isaacplmann avatar isaacplmann commented on May 19, 2024

No, but I would like this feature too. I'd welcome a PR. A simple enableZoom input that is checked inside the onZoom function should do it. If you can't make a PR, I'll get to it when I can.

from ngx-graph.

gergo0206 avatar gergo0206 commented on May 19, 2024

I created a pull request for this feature.
It can be found here: #64

from ngx-graph.

CoreyCole avatar CoreyCole commented on May 19, 2024

It is now possible

<ngx-graph [enableZoom]="false"></ngx-graph>

This works to disable zoom on the graph, but now the scroll wheel does nothing. I have other content on the page above my graph and I cannot scroll up to it. @gergo0206 do you know about this or am I doing something wrong? I've also disabled panning and dragging, but the cursor can't hover for info on a ngx-chart that I have above my ngx-graph because the cursor is stuck in that panning mode.

Is there some CSS properties that I can give to the ngx-graph so that it stays put and can scroll normally in the page, like ngx-charts do? Or is ngx-graph not designed to be used alongside other components in the page?

from ngx-graph.

CoreyCole avatar CoreyCole commented on May 19, 2024

I opened a different issue about this scrolling problem #110

from ngx-graph.

assafsun avatar assafsun commented on May 19, 2024

l'm closing this issue because it seems that the open issue from this thread is tracked in #110

Let me know if I missed something.

from ngx-graph.

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.