Aug 3, 2017
-
Jeff Gay
First, see Issue #76The last reorganization of libraries makes this more possible but there are still some issues to overcome.
Originally shared by ****
Hello! I'm trying to import a class defined in another file, but neither import nor require seem to be support by OpenJSCAD. Is this correct? I want to be able to use ECMAScript 2015 classes with inheritence etc
one comment
1
no plus ones
no shares
Shared publiclyJeff Gay It depends. You can use any of the JSCAD libraries with any other libraries via NODEJS. That may help get things started. Browsers are different. Require is not standard yet, not Import. Also, browses impose security around what can be loaded into worker threads. This is the main issue to overcome if you want to use another library. openjscad.org - OpenJSCAD.org only imports what's necessary.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login