JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Dunk Fordyce
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 9
    • Best 0
    • Controversial 0
    • Groups 0

    Dunk Fordyce

    @Dunk Fordyce

    0
    Reputation
    3
    Profile views
    9
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Dunk Fordyce Unfollow Follow

    Latest posts made by Dunk Fordyce

    • RE: Shape generator

      I have had similar thoughts about getting a drawing tool like this into jscad, I believe it could not only be useful for extruding simple shapes, but also, if constraints are possible, for the layout of all sorts of things.

      This project looks interesting https://github.com/IjzerenHein/kiwi.js .. though I admit I dont quite understand how you would get anything complicated into the calculations.

      posted in Development Discussions
      Dunk Fordyce
      Dunk Fordyce
    • RE: Beginner Questions

      @hrgdavor wow! thats a lot of cool things in the same place hehe thanks!

      posted in General Discussions
      Dunk Fordyce
      Dunk Fordyce
    • RE: Beginner Questions

      @z3dev a desktop viewer requires a whole lot of desktop whereas a web viewer can be viewed from any machine on the same network trivially. I'm guessing here: a web server setup is going to be alot smaller than requesting electron or whatever else is used. I'd go even further and say that the desktop viewer should always just be the web viewer wrapped up in electron with any features that cant be done in a browser.

      Having the CLI tools there would certainly be good, I had forgotten about those.

      posted in General Discussions
      Dunk Fordyce
      Dunk Fordyce
    • RE: Beginner Questions

      @z3dev

      I didnt get very far...

      {
        "name": "machinez1",
        "version": "1.0.0",
        "description": "",
        "main": "index.js",
        "scripts": {
          "run": "...cmd to launch a webserver with the viewer"
        },
        "author": "",
        "license": "ISC",
        "dependencies": {
          "@jscad/modeling": "^2.0.0-alpha.9"
        },
        "devDependencies": {
          "@jscad/web": "^2.0.0-alpha.9"
        }
      }
      
      • scripts: is there a command that runs a web server with a viewer? I know about npm run dev in the www package but that's not what we want.
      • dependencies: It seems correct to include this so that is a totally valid package, but perhaps it should just include the typescript definitions. I'm not sure
      • devDependencies: a viewer seems like a good thing for development, certainly for a template
      posted in General Discussions
      Dunk Fordyce
      Dunk Fordyce
    • RE: Beginner Questions

      @z3dev Ok, I just wondered if I was missing something.

      Personally it seems a shame that the defaults are tied to the parameters function instead of where they should be ie:

      const main = ({radius=10}) => { }
      // or
      const main = (radius=10)  => {}
      // etc
      

      But how that would work with parameter definitions is a another thing...

      posted in General Discussions
      Dunk Fordyce
      Dunk Fordyce
    • RE: Beginner Questions

      Also:

      • how can I use the parameter defaults from another file? It seems getParameterValuesFromParameters should be exposed somewhere?
      posted in General Discussions
      Dunk Fordyce
      Dunk Fordyce
    • RE: Beginner Questions

      Ok, I have the following questions, is here appropriate to ask?

      • whats happening with the vue components I've seen in your vue-components repo ( I like vue )
      • will you support js import/export statement instead of require?
      • i want to add a vector type to the params, is there anything wrong with adding that into packages/web/src/ui/views/parameterControls.js or are your vue controls about to make it obsolete?
      • I understand how the project structure is meant to be now but is there, or could there be, a template git repo with the correct files included for linting and other nice to have things?
      posted in General Discussions
      Dunk Fordyce
      Dunk Fordyce
    • RE: Beginner Questions

      @z3dev Thanks!

      This works great!

      Is there a discord or slack or even IRC channel for jscad?

      posted in General Discussions
      Dunk Fordyce
      Dunk Fordyce
    • Beginner Questions

      Hello,

      I have recently started using V2 with great success (and enjoyment!) but I have some questions..

      I have been running the demo in the web package and then copying and pasting from VSCode to the inbuilt editor. Is there a better way? I have tried the cli package but thats not really what I wanted. I have also tried the 2 extensions I found for VSCode but they both have issues. This has also become a problem because I want to split my source into separate files but I cant copy and paste multiple files to the web package.

      Thanks

      posted in General Discussions
      Dunk Fordyce
      Dunk Fordyce