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 rollup
-
Old version of rollup
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 ; done
I 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 fuctionrender
into 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-Object
@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-Object
@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
demo
in the filedemo.html
with my model. So my task is done. But I'm a software developer, so I'd like to use ES-6 standardimport
thanrequire
. -
RE: Using JScad just to display 3D-Object
@z3dev
yes! It works fine for a proof of conceptand Nodejs's
require()
. Now I try to use the modules in manner of ES-6import
by using// in main.js import myModelFunction from "myModel.js"; // do setup as in demo.html // ...
and in
myModel.js
I would like to use ES-6import
to import@jscad/modeling
and@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-Object
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