Open drom opened 6 years ago
Do you mean encoding the content
of the jscad script(s) into the url ?
Or just shareable urls pointing to a specific design ?
If the first, then I do not think this is very realistic given the potential complexity of the scripts (you would end up with unmanageable urls), if the second one, I have been exploring (nothing public for now) possibilities for self hosted, peer to peer designs etc which would work like that.
Agree, it can be bulky, but maybe OK for some small code tweets. https://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers
https://gist.github.com is public. Some projects using gist: https://bl.ocks.org https://jsbin.com/help/import-gists http://requirebin.com
I use require.bin all the time, so I get the appeal :)
@kaosat-dev I ❤️ dat
. Let's do dat
love the idea, but hard to implement in practice, especially with data that is essentially unlimited code.
Feature request:
Ability to embed OpenJSCAD code by encoding it together with URL. This way URL can be shareable.
Example:
http://wavedrom.com/editor.html?%7B%20%22signal%22%20%3A%20%5B%0A%20%20%7B%20%22name%22%3A%20%22clk%22%2C%20%20%22wave%22%3A%20%22P......%22%20%7D%2C%0A%20%20%7B%20%22name%22%3A%20%22bus%22%2C%20%20%22wave%22%3A%20%22x.%3D%3D.%3Dx%22%2C%20%22data%22%3A%20%5B%22head%22%2C%20%22body%22%2C%20%22tail%22%2C%20%22data%22%5D%20%7D%2C%0A%20%20%7B%20%22name%22%3A%20%22wire%22%2C%20%22wave%22%3A%20%220.1..0.%22%20%7D%0A%5D%7D%0A
Opens editor with specific code block.