Git Product home page Git Product logo

Comments (7)

joepavitt avatar joepavitt commented on June 24, 2024 1

Not something I've had much experience with actually. @cstns anything like this crossed your desk before?

from node-red-dashboard.

cstns avatar cstns commented on June 24, 2024 1

Haven't worked with gestures that much I'm afraid, but I'm familiar with the vueuse library and see no harm in using it.

from node-red-dashboard.

bartbutenaers avatar bartbutenaers commented on June 24, 2024

That Vue UseGesture library is not maintained anymore the last 3 years, so might not be my best choice for a new ui node ;-(

from node-red-dashboard.

bartbutenaers avatar bartbutenaers commented on June 24, 2024

From this StackOverflow discussion I understand that VueJs supports all these mouse and touch events out of the box, but that you need to use Vue UseGesture for special things like dragging, swiping, ... So I assume I cannot do stuff like panning, zooming, ... with VueJs out of the box?

from node-red-dashboard.

bartbutenaers avatar bartbutenaers commented on June 24, 2024

At the moment I think that the Vueuse is the best option at the moment.
Because their Github repo has quite some impressive statistics:

  • 18.7K stars
  • 2.4K fors
  • 272 releases
  • used by 177K applications
  • 614 contributors

That same group offers a well maintained library @vueuse.gesture for all kind of interactivity.

From their getting started page I assume that this gestureplugin needs to be loaded by the Flowfuse dashboard (i.e. not by my own svg ui node?) in the main.mjs file. Can anybody confirm whether that is correct?

Would be nice to get some thoughts about this. And whether such a proposal (to load this plugin by the flowfuse dashboard) would be accepted or not? Not sure whether other ui nodes could benefit from this feature. Otherwise I need to look for another solution...

About the size of the gesture library. I see this in their dist folder:

image

Note that I have not tested any of this at the moment.

from node-red-dashboard.

bartbutenaers avatar bartbutenaers commented on June 24, 2024

I assume that this gestureplugin needs to be loaded by the Flowfuse dashboard (i.e. not by my own svg ui node?)

I think I was talking nononse, because I have also my own main.js file where an app is created. So I assume I need to load my own plugin(s) ...

from node-red-dashboard.

bartbutenaers avatar bartbutenaers commented on June 24, 2024

I have also my own main.js file where an app is created. So I assume I need to load my own plugin(s)

Talking nononse again, when looking at the default comment in my main.js file:

image

Will pause this feature, until somebody with Vue knowledge jumps in.

from node-red-dashboard.

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.