Comments (3)
@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.
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.
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:
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)
- Facing an issue on "TypeError: engine.resolveRootNode is not a function" HOT 1
- Selectable nodes by drag and drop?
- is this project still in development? HOT 1
- [Question] Vanilla JS usage ? HOT 2
- Type 'string' is not comparable to type 'NodeType' HOT 2
- Support for "any" datatype on ports
- Saving/loading of paths HOT 1
- I can't add nodetypes dynamic
- Clone of version v0.8.2 but version compatibility problem on installation HOT 1
- Bug: Cannot read properties of null (reading 'setAttribute')
- Connecting nodes to already connected input?
- Branching logic
- Getting and setting pan and zoom HOT 1
- Theming documentation missing closing backtick
- Animated connections
- How to actually extract context?
- Rendering custom components in nodes
- Flume for NEXT.js v14
- Support mobile? (ipad)
- Well done! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flume.