Comments (7)
This will be the next feature I am going to work on. Should be done in the next few days, at least in the @next channel (dev branch).
from baklavajs.
Yeah had separate maps/objects in earlier versions but for most use-cases it was just a hassle, so I decided to merge them into a single object. What I can do (and probably will do, but it's a breaking change, so it may take more time due to testing) is to give interfaces an additional name
property, that is independent of the key in the interfaces
object. This will also allow multiple input interfaces or multiple output interfaces with the same name, which might come in handy.
from baklavajs.
I agree completely. I have a few things that benefit from expanding input/output interfaces, but having to rename them on each one makes it look a bit odd. Also, my system uses an execution flow, so the input and output nodes are named Execute
. Except, of course, I can't do that, so I went with Execute
and Completed
except sometimes when I can't because it doesn't make sense..
from baklavajs.
Any updates to this? Any way I can help development on this?
from baklavajs.
Implemented in a17cacf using the new additional property displayName
. Example: https://github.com/newcat/baklavajs/blob/dev/packages/baklavajs-playground/src/MathNode.ts#L4
from baklavajs.
@newcat So how would I do this - make the interface name nameOut
and nameIn
and set displayName to name
?
from baklavajs.
Correct, it should work like that.
from baklavajs.
Related Issues (20)
- Input with `allowMultipleConnections: true` not handled correctly when made into a Subgraph HOT 1
- Unable to use in Nest.js HOT 5
- Serious problem:The calculation speed is very, very slow. HOT 3
- SelectionBox: Wrong nodes get selected when zoomed/panned
- Subgraphs are not cleanup on loading of editor state HOT 1
- Using with the <script setup> format. HOT 2
- Argument of type '<T>(intf: NodeInterface<T>, type: NodeInterfaceType<T>) => void' is not assignable to parameter of type 'NodeInterfaceMiddleware<number, HOT 1
- Help with extending functionality. HOT 1
- Connection Line Issue HOT 3
- https://v1.baklava.tech/baklavajs/api/index.html is missing HOT 1
- Example code doesn't work in documentation
- renderer_vue.umd.js file related HOT 1
- Can we have bidirectional ports? HOT 1
- Undo/redo only partially working in the demo HOT 1
- Feature request : Backdrop node HOT 1
- How to get the number of computational processes (or named functions, algorithms) in a graph HOT 2
- An Error happen when i create subgraph
- Feature request : Prohibit editing. HOT 1
- [V2] How to give extra props to component used in custom NodeInterface HOT 2
- [v2] Custom NodeInterface component can't inject Temporary Connection Handler
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 baklavajs.