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
The following TS
export default await base .input({ $metadata: { title: "Input", visual: { // x: 0, // y: 0, collapsed: true, }, }, }).to(base.output()) .serialize({ title: "Foo" });
produces this JSON
{ "title": "Foo", "edges": [ { "from": "input-50", "to": "output-51", "out": "*", "in": "" } ], "nodes": [ { "id": "input-50", "type": "input", "configuration": {}, "metadata": { "title": "Input", "visual": { "collapsed": true } } }, { "id": "output-51", "type": "output", "configuration": {} } ] }
which is rendered like: which when copied out of the editor yields:
{ "title": "Foo", "metadata": { "comments": [] }, "edges": [ { "from": "input-50", "to": "output-51", "out": "*", "in": "" } ], "nodes": [ { "id": "input-50", "type": "input", "configuration": {}, "metadata": { "title": "Input", "visual": { "x": null, "y": null, "collapsed": true } } }, { "id": "output-51", "type": "output", "configuration": {}, "metadata": { "visual": { "x": 60, "y": 0, "collapsed": false } } } ] }
Which is then rendered without the Input node in the GUI.
So, there is probably an issue with the loading of the board, as the serialisation looks fine. But also the bullish values could be handled by BB Web
The text was updated successfully, but these errors were encountered:
[visual-editor] Default node x & y to 0 if not set (#2407)
7bdb5a2
Fixes #2330
This was a fun one to track down!
The following TS
produces this JSON
which is rendered like:
![CleanShot 2024-06-27 at 11 24 48](https://cdn.statically.io/img/private-user-images.githubusercontent.com/1331872/343734382-0d59091c-b451-49eb-b985-df2414b1336f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyNjY5NzMsIm5iZiI6MTcyMTI2NjY3MywicGF0aCI6Ii8xMzMxODcyLzM0MzczNDM4Mi0wZDU5MDkxYy1iNDUxLTQ5ZWItYjk4NS1kZjI0MTRiMTMzNmYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MThUMDEzNzUzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjFiMjA4ZTU0ZmNhYWQ3MjgwNjE3MjA5NjQ3MWJiNWVmY2RkZGI4M2M5NGNkZmRiZTBmZGRhZDk0NTljNGVlNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.pQr4FiRAPGnm38YYC07Tw2NvNGN_UP-WV-YAiZf0hiY)
which when copied out of the editor yields:
Which is then rendered without the Input node in the GUI.
So, there is probably an issue with the loading of the board, as the serialisation looks fine. But also the bullish values could be handled by BB Web
The text was updated successfully, but these errors were encountered: