chore: run formatting on all files
Some checks failed
🏗️ Build and Deploy / setup (push) Successful in 1m10s
🏗️ Build and Deploy / lint (push) Successful in 34s
🏗️ Build and Deploy / format (push) Successful in 38s
🏗️ Build and Deploy / typecheck (push) Successful in 33s
🏗️ Build and Deploy / build_and_deploy (push) Failing after 1m53s

This commit is contained in:
Max Richter
2026-02-02 17:33:01 +01:00
parent 3c168aa9b6
commit 9484b3599e
22 changed files with 527 additions and 56 deletions

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 39 KiB

View File

@@ -4,11 +4,11 @@ Nodarium
<a href="https://nodes.max-richter.dev/"><h2 align="center">Nodarium</h2></a> <a href="https://nodes.max-richter.dev/"><h2 align="center">Nodarium</h2></a>
<p align="center"> <p align="center">
Nodarium is a WebAssembly based visual programming language. Nodarium is a WebAssembly based visual programming language.
</p> </p>
<img src=".gitea/graphics/nodes.svg" width="80%"/> <img src=".gitea/graphics/nodes.svg" width="80%"/>
</div> </div>

View File

@@ -8,15 +8,16 @@ The visual programming language consists of so called `Nodes` which are stored a
```typescript ```typescript
type Node = { type Node = {
id: string, id: string;
outputs: string[], outputs: string[];
inputs: { inputs: {
[key:string]: NodeInput [key: string]: NodeInput;
} };
} };
``` ```
## How are the arguments defined? ## How are the arguments defined?
To define which arguments a nodes accepts we use JSON. This json is embeded into the `.wasm` file of our node. An example `definition.json` file could look like this: To define which arguments a nodes accepts we use JSON. This json is embeded into the `.wasm` file of our node. An example `definition.json` file could look like this:
```json ```json

View File

@@ -5,21 +5,23 @@
Plantarium encodes different types of data differently. Right now we have three types of data: Plantarium encodes different types of data differently. Right now we have three types of data:
### Path ### Path
[0, stem_depth, ... x,y,z,thickness, x,y,z,thickness...] [0, stem_depth, ... x,y,z,thickness, x,y,z,thickness...]
### Geometry ### Geometry
[1, vertex_amount, face_amount, ... faces in index_a, index_b, index_c ..., ... vertices in x,y,z,x,y,z ..., ... normals in x,y,z,x,y,z ...] [1, vertex_amount, face_amount, ... faces in index_a, index_b, index_c ..., ... vertices in x,y,z,x,y,z ..., ... normals in x,y,z,x,y,z ...]
### Instances ### Instances
[
2,
vertex_amount,
face_amount,
instance_amount,
stem_depth,
...faces...,
...vertices...,
...normals...,
...4x4 matrices for instances...
]
[
2,
vertex_amount,
face_amount,\
instance_amount,
stem_depth,
...faces...,
...vertices...,
...normals...,
...4x4 matrices for instances...
]

View File

@@ -11,8 +11,8 @@ crate-type = ["cdylib", "rlib"]
default = ["console_error_panic_hook"] default = ["console_error_panic_hook"]
[dependencies] [dependencies]
utils = { version = "0.1.0", path = "../../../../packages/utils" } console_error_panic_hook = { version = "0.1.7", optional = true }
macros = { version = "0.1.0", path = "../../../../packages/macros" } macros = { version = "0.1.0", path = "../../../../packages/macros" }
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
console_error_panic_hook = { version = "0.1.7", optional = true } utils = { version = "0.1.0", path = "../../../../packages/utils" }
web-sys = { version = "0.3.69", features = ["console"] } web-sys = { version = "0.3.69", features = ["console"] }

View File

@@ -8,5 +8,5 @@ edition = "2018"
crate-type = ["cdylib", "rlib"] crate-type = ["cdylib", "rlib"]
[dependencies] [dependencies]
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }
nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" } nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" }
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }

View File

@@ -8,5 +8,5 @@ edition = "2018"
crate-type = ["cdylib", "rlib"] crate-type = ["cdylib", "rlib"]
[dependencies] [dependencies]
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }
nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" } nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" }
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }

View File

@@ -8,6 +8,6 @@ edition = "2018"
crate-type = ["cdylib", "rlib"] crate-type = ["cdylib", "rlib"]
[dependencies] [dependencies]
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }
nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" }
glam = "0.30.10" glam = "0.30.10"
nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" }
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }

View File

@@ -8,6 +8,6 @@ edition = "2018"
crate-type = ["cdylib", "rlib"] crate-type = ["cdylib", "rlib"]
[dependencies] [dependencies]
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }
nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" }
glam = "0.30.10" glam = "0.30.10"
nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" }
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }

View File

@@ -9,29 +9,29 @@
}, },
"geometry": { "geometry": {
"type": "geometry", "type": "geometry",
"value": [0,0,0] "value": [0, 0, 0]
}, },
"amount": { "amount": {
"type": "integer" "type": "integer"
}, },
"lowestInstance": { "lowestInstance": {
"type": "float", "type": "float",
"min":0, "min": 0,
"max":1, "max": 1,
"value": 0.5, "value": 0.5,
"hidden": true "hidden": true
}, },
"highestInstance": { "highestInstance": {
"type": "float", "type": "float",
"min":0, "min": 0,
"max":1, "max": 1,
"value":1, "value": 1,
"hidden": true "hidden": true
}, },
"depth": { "depth": {
"type":"integer", "type": "integer",
"min": 1, "min": 1,
"max":10, "max": 10,
"value": 1, "value": 1,
"hidden": true "hidden": true
} }

View File

@@ -8,5 +8,5 @@ edition = "2018"
crate-type = ["cdylib", "rlib"] crate-type = ["cdylib", "rlib"]
[dependencies] [dependencies]
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }
nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" } nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" }
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }

View File

@@ -8,7 +8,6 @@ edition = "2018"
crate-type = ["cdylib", "rlib"] crate-type = ["cdylib", "rlib"]
[dependencies] [dependencies]
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }
nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" } nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" }
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }
noise = "0.9.0" noise = "0.9.0"

View File

@@ -8,5 +8,5 @@ edition = "2018"
crate-type = ["cdylib", "rlib"] crate-type = ["cdylib", "rlib"]
[dependencies] [dependencies]
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }
nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" } nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" }
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }

View File

@@ -7,7 +7,6 @@ edition = "2018"
[lib] [lib]
crate-type = ["cdylib", "rlib"] crate-type = ["cdylib", "rlib"]
[dependencies] [dependencies]
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }
nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" } nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" }
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }

View File

@@ -8,7 +8,7 @@ edition = "2018"
crate-type = ["cdylib", "rlib"] crate-type = ["cdylib", "rlib"]
[dependencies] [dependencies]
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }
nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" }
serde = { version = "1.0", features = ["derive"] }
glam = "0.30.10" glam = "0.30.10"
nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" }
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }
serde = { version = "1.0", features = ["derive"] }

View File

@@ -8,5 +8,5 @@ edition = "2018"
crate-type = ["cdylib", "rlib"] crate-type = ["cdylib", "rlib"]
[dependencies] [dependencies]
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }
nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" } nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" }
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }

View File

@@ -8,5 +8,5 @@ edition = "2018"
crate-type = ["cdylib", "rlib"] crate-type = ["cdylib", "rlib"]
[dependencies] [dependencies]
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }
nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" } nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" }
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }

View File

@@ -8,7 +8,6 @@ edition = "2018"
crate-type = ["cdylib", "rlib"] crate-type = ["cdylib", "rlib"]
[dependencies] [dependencies]
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }
nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" } nodarium_macros = { version = "0.1.0", path = "../../../../packages/macros" }
nodarium_utils = { version = "0.1.0", path = "../../../../packages/utils" }
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }

View File

@@ -3,8 +3,8 @@
"postinstall": "pnpm run -r --filter 'ui' build", "postinstall": "pnpm run -r --filter 'ui' build",
"build": "pnpm build:nodes && pnpm build:app", "build": "pnpm build:nodes && pnpm build:app",
"lint": "pnpm run -r --parallel lint", "lint": "pnpm run -r --parallel lint",
"format": "pnpm run -r format", "format": "pnpm dprint fmt",
"format:check": "pnpm run -r format:check", "format:check": "pnpm dprint check",
"check": "pnpm run -r check", "check": "pnpm run -r check",
"build:story": "pnpm -r --filter 'ui' story:build", "build:story": "pnpm -r --filter 'ui' story:build",
"build:app": "BASE_PATH=/ui pnpm -r --filter 'ui' build && pnpm -r --filter 'app' build", "build:app": "BASE_PATH=/ui pnpm -r --filter 'ui' build && pnpm -r --filter 'app' build",

View File

@@ -2,8 +2,8 @@ packages:
- app - app
- packages/* - packages/*
- nodes/** - nodes/**
- '!**/.template/**' - "!**/.template/**"
- '!**/pkg/**' - "!**/pkg/**"
catalog: catalog:
chokidar-cli: github:open-cli-tools/chokidar-cli#semver:v4.0.0 chokidar-cli: github:open-cli-tools/chokidar-cli#semver:v4.0.0