forma-dsl 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/package.json +2 -2
- package/src/lang/builtins.js +1 -1
package/README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# forma-dsl
|
|
2
2
|
|
|
3
|
-
[](https://github.com/kalpak44/forma-dsl/actions/workflows/release.yml)
|
|
4
4
|
[](https://www.npmjs.com/package/forma-dsl)
|
|
5
5
|
|
|
6
6
|
A declarative DSL for 3D modeling and scene composition, with reusable components and live
|
|
7
7
|
previews.
|
|
8
8
|
|
|
9
|
-
Models are written as text — blocks, attributes and expressions in
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Models are written as text — blocks, attributes and expressions in an HCL-like syntax —
|
|
10
|
+
parsed and solved by the [Manifold](https://github.com/elalish/manifold) CSG kernel compiled
|
|
11
|
+
to WebAssembly. It runs unchanged in Node and in the browser.
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
14
|
npm install forma-dsl
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "forma-dsl",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "A declarative DSL for 3D modeling and scene composition, reusable components, and live previews.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cad",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"src"
|
|
40
40
|
],
|
|
41
41
|
"engines": {
|
|
42
|
-
"node": ">=
|
|
42
|
+
"node": ">=22.13.0"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"test": "node --test",
|
package/src/lang/builtins.js
CHANGED
|
@@ -557,6 +557,6 @@ export const CONSTANTS = { pi: Math.PI, e: Math.E };
|
|
|
557
557
|
|
|
558
558
|
/**
|
|
559
559
|
* Type names are ordinary identifiers that stand for themselves, so `type = number` in a
|
|
560
|
-
* param block needs no keyword and no quoting — the same trade
|
|
560
|
+
* param block needs no keyword and no quoting — the same trade HCL makes.
|
|
561
561
|
*/
|
|
562
562
|
export const TYPE_NAMES = ['number', 'string', 'bool', 'vector', 'list', 'angle'];
|