GithubHelp home page GithubHelp logo

Resizable Nodes about flume HOT 3 OPEN

chrisjpatty avatar chrisjpatty commented on June 9, 2024
Resizable Nodes

from flume.

Comments (3)

chrisjpatty avatar chrisjpatty commented on June 9, 2024 1

@numso I think a drag handle on each node to allow it to be resized at least horizontally is the right approach. That puts it in line with the comments doesn't depend on the presence of a textarea. There's some considerations for handling resizing with max and min values, but I think that's probably the right approach.

from flume.

PhilGarb avatar PhilGarb commented on June 9, 2024

Maybe this should be discussed as part of any upcoming theming approach #18? I think the NodeEditor, Nodes, Lines and Ports should be as configurable as possible. This of course includes resizing across the board.

from flume.

numso avatar numso commented on June 9, 2024

I'm not sure this fits under theming. I'll try to better explain what I was thinking but please let me know if I'm missing something obvious!

As I'm using the editor I've found that I want my nodes (even of the same NodeType) to be sized differently based on the entered content and, therefore, want the ability to resize those nodes at edit time. I'd want this ability regardless of how the editor was themed or appeared. Take the following example:

image

I am able to resize my comments depending on the size and type of text entered. I am unable to do the same for nodes.

Currently you can resize a textarea vertically and the node grows accordingly. One solution might be to allow the textarea to also be resized horizontally and grow the node that way as well. However, the textarea's size isn't persisted and wouldn't survive a refresh. I'm not sure how easy it would be to fix that.

Another option could be to add a drag-handle to the bottom right corner of nodes like the ones that exist for comments. I imagine this would be fairly trivial as this resizing code already exists and would just have to be adapted to nodes.

Thoughts?

from flume.

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.