JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Aug 3, 2017

    Archives (Google+)
    1
    1
    781
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • z3dev
      z3dev last edited by

      Jeff Gay
      First, see Issue #76

      The 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 publicly

      Jeff 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.
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB | Contributors