-
Notifications
You must be signed in to change notification settings - Fork 555
-
|
test integration is available https://cadhub.xyz/dev-ide/jscad https://cadhub.xyz/ is aiming to create a community of people that enjoy to code CAD. @z3dev I have implemented a prototype integration using the prototype render-worker. This will also pinpoint important requirements that a render worker for jscad should have so people can integrate jscad into their website. After a prototype is working I will prepare code suitable for master branch (scrappy code in prototype will need rework after proof of concept ) I am communicating with https://github.com/Irev-Dev the owner of the https://github.com/Irev-Dev/cadhub
update 2021-09-12it is live ! |
Beta Was this translation helpful? Give feedback.
All reactions
-
1
Replies: 8 comments 7 replies
-
|
Hey, Hopefully CadHub is able to contribute to much of the social and sharing aspects. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
I think this is a great idea. I started working on something similar at http://community.mrfantsypants.com/ with the intention of posting both complete jscad models, and importable modules/libraries. For libraries, it handles targeting specific versions, plus version wildcards (2.4.*), which I think is a valuable capability. If cadhub can fill the need, I'm more than happy to share what I've built so far, and move on to other ideas. Currently, jscad seems to not be able to import web-based modules/libraries. The syntax const { screw } = require('https://openjscad.xyz/remote.pl?url=http://community.mrfantsypants.com/screwhole.js')
should work, but does not. I've not had enough time to understand the underlying code, and debug. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
The reason is pretty simple: edit: it should work on https://openjscad.xyz without the header, but such script would not work on a different website evaluating jscad scripts (like cadhub) .... so yes, there is also a bug in openjscad.xyz importable modules should be hosted in NPM and/or github, or at least somewhere where they have |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
It's not that simple. There's no support for remote loading of scripts. This has been requested for years and there's no easy solution. Just filter the issues for "Collaboration" |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
It would not be hard to add. But support for remote scripts would be counter productive in the long run. Websites come and go, but npm and git are not likely to disappear just like that. A tutorial on how to make a jsdad module and publish on npm is something we could add. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
so, we could host the module metadata and drive discoverabilty on cadhub, etc, host the scripts themselves on github/npm. I don't think code-hosting itself is critical to improve jscad adoption. Object discoverability is. |
Beta Was this translation helpful? Give feedback.
All reactions
-
1
-
|
Live here. |
Beta Was this translation helpful? Give feedback.
All reactions
-
1
-
|
The above customizer is now working at https://cadhub.xyz/dev-ide/jscad too. |
Beta Was this translation helpful? Give feedback.
All reactions
-
1
-
|
updated version is live with grid and Z=UP |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
This is all great stuff! From the JSCAD project standpoint, there should be and are various ways to wrap the JSCAD components, and create applications. I'm glad to see another example. I'm just now getting back into the swing of things and will try out the latest and greatest cadhub. Sadly, I won't have much time to work on this as there are plenty of fixes / enhancements to complete on the JSCAD components. But I will try to add some thoughts on this discussion and more. @hrgdavor thanks again for taking a big part. if there are some reusable pieces or changes to JSCAD components then please let us know. This is the place to discuss changes. @Irev-Dev thanks for adding JSCAD support. hopefully, it wasn't too hard. ;) |
Beta Was this translation helpful? Give feedback.
All reactions
-
1
-
|
@z3dev this PR #891 is something I would like to have integrated into cadhub, currently the demo integration uses official version jscad and copy of the script that does the new parameter definition parsing. Also the worker used to run the the jscad scripts in cadhub is also the prototype I am working on for some time that is intended to be added to jscad in a PR (hopefuly soon I will clean it to be presentable). Regarding the cadhub integration part, I will gladly take-over whatever is needed in cadhub for jscad. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Our pleasure @z3dev, and @hrgdavor definitely deserves most of the credit for making the integration work. Because I wanted to wait until we heard back from you, we got the integration working in our IDE, but without allowing projects to be saved, so we'll progress with that now and will report back when it's fully released. It would be good to get some examples from the community on CadHub at that point :) |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
it is live !!! |
Beta Was this translation helpful? Give feedback.
All reactions
-
1
-
|
We wanted to add "about" info for the packages we support and @franknoirot has added a badge in the top right hand corner of the editor opens a tab with some information. |
Beta Was this translation helpful? Give feedback.