-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
form main, allow calling module methods, not just worker methods
- Loading branch information
Showing
4 changed files
with
29 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import * as jscad from '@jscad/modeling' | ||
|
||
export const main =({// @jscad-params | ||
mesh,// {type:"file"} | ||
check=false, | ||
bla='test', | ||
bla1='test', // {type:'choice', values:["a","b"]} | ||
})=>{ | ||
return mesh ? mesh : jscad.primitives.sphere() | ||
|
||
} | ||
|
||
export const cube = async ()=>{ | ||
console.log('cube 5') | ||
return jscad.primitives.cube() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters