File tree Expand file tree Collapse file tree 1 file changed +19
-12
lines changed Expand file tree Collapse file tree 1 file changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,20 @@ All planned features can be found in the [GitHub Projects](https://github.com/sw
38
38
39
39
## Usage
40
40
41
+ ### Script tag
42
+
43
+ 1 . Import:
44
+
45
+ ``` html
46
+ <script src =" sketchbook.min.js" ></script >
47
+ ```
48
+
49
+ 2 . Load a glb scene defined in Blender:
50
+
51
+ ``` javascript
52
+ const world = new Sketchbook.World (' scene.glb' );
53
+ ```
54
+
41
55
### NPM
42
56
43
57
1 . Install:
@@ -46,23 +60,16 @@ All planned features can be found in the [GitHub Projects](https://github.com/sw
46
60
npm i sketchbook
47
61
```
48
62
49
- 2 . Import and load a glb scene defined in Blender :
63
+ 2 . Import:
50
64
51
65
``` javascript
52
- import * as Sketchbook from ' sketchbook' ;
53
-
54
- const world = new Sketchbook.World (' scene.glb' );
66
+ import { World } from ' sketchbook' ;
55
67
```
56
68
57
- ### Script tag
69
+ 3 . Load a glb scene defined in Blender:
58
70
59
- Import and load a glb scene defined in Blender:
60
-
61
- ``` html
62
- <script src =" sketchbook.min.js" ></script >
63
- <script >
64
- const world = new Sketchbook.World (' scene.glb' );
65
- </script >
71
+ ``` javascript
72
+ const world = new World (' scene.glb' );
66
73
```
67
74
68
75
## Contributing
You can’t perform that action at this time.
0 commit comments