How about version policy? I see that in the branch V3 the main package.json has the version 2.0.0, some other packages have version 3.0.1-alpha.0. So if I correctly understand: each package should have a version of itself, shouldn't it?
Latest posts made by hpb-htw
-
RE: Old version of rollupposted in General Discussions
-
Old version of rollupposted in General Discussions
Why does JSCAD use the very old version of rollup? By runing
for pf in `find -name 'package.json' | grep -v node_modules`; do echo $pf; grep 'rollup' $pf ; doneI get the version 2.79.1. I don't have problem with old version of a software, as long as it works and I can find the document of the old version.
Let me explain the background why I need to use rollup.
I want to extend the document with embedded running examples. So I make a small static JS-file to use it in each JSDoc generated HTML-files to display example. This static JS file should import the same JS modules in the repository, show I can automatically keep it consistent with versions of JSCAD:// filename web-render.es.js import { cameras, commands, controls, entitiesFromSolids, prepareRender } from "@jscad/regl-renderer" export const render = (shapes, domId) => { // .... Do something here }This file is then converted into
web-render.js, which exposes the fuctionrenderinto global scope, and can be easily used as<script src="web-render"></script> <!-- some where in the doc: --> <div id="sphere-demo"></div> <script> render(model, "sphere-demo") </script>My questions:
- Why JSCAD does use the old version of rollup?
- Where can I find the old document of the used rollup version?
- If the document does not exist anymore, how much effort does it take to port the old version to the new of rollup?
-
RE: Using JScad just to display 3D-Objectposted in General Discussions
@z3dev Yes, I'd like to try the version 3. For me it is very comfortable to use the standard.
-
RE: Using JScad just to display 3D-Objectposted in General Discussions
@hrgdavor My Model is very simple: One is an extruding, one is a model of H2O with 3 Atoms. I construct them in JavaScript. Principal I am happy with replacement the function
demoin the filedemo.htmlwith my model. So my task is done. But I'm a software developer, so I'd like to use ES-6 standardimportthanrequire. -
RE: Using JScad just to display 3D-Objectposted in General Discussions
@z3dev
yes! It works fine for a proof of concept
and Nodejs's require(). Now I try to use the modules in manner of ES-6importby using// in main.js import myModelFunction from "myModel.js"; // do setup as in demo.html // ...and in
myModel.jsI would like to use ES-6importto import@jscad/modelingand@jscad/regl-renderer.
How do you think about it? Is my approach ok or I should only use the Nodejsrequire()-Function? -
Using JScad just to display 3D-Objectposted in General Discussions
Hi there,
I would like to use JSCAD to display 3D Objects in a webpage automatically as soon as the page loaded, without any modification around the objects.
I have read/tried the file
packages/web/demo.{html,js}. They are designed as an online IDE, but not as a display-tool.I have some experience with JavaScript, so for the first help I just need to know where I find example/document so far.
Thanks for response/answer

Hong-Phuc Bui