-
-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
draw2d.io.Reader.unmarshal doesn't work properly for Hub components #249
Comments
for me, the bus and hub is working well. maybe you do not serialize the "anchor". can you share the code? working example: https://electra.academy/simulator/?global=/signal-demo/VerticalBus.brain Most of the coding is to handle the signal reading/writing of the simulator and not the layout of the ports. The Bus only allow "output", because this is the intention of my implementation. I removed the decoration and set the FanIn to "0" to avoid input connections. |
We use JSON input to load the components. Here is the sample example I have tried.
|
I found this is the important part for the hybrid port of the hub. src/shape/node/Hub.js : Line 77
But when we load from the JSON, the setPersistentAttributes function does not correctly set those values. Thus, I have opened a PR, adding those two attributes to the PersistentAttributes in the JSON output. #251 For my local functions, this issue has been fixed. I am currently using a local build draw.js file with my implementation. |
Description
When the draw2d.io.Reader.unmarshal function retrieves a JSON document, the ports are incorrectly mapped to the hub component. All the connections focus on the central port on the hub.
The text was updated successfully, but these errors were encountered: