Skip to content

Commit 6673fc4

Browse files
added angular 20 vite example (work in progress). Also updated manifold.worker.ts files to use v0.20.5 in examples. Also update import * as BufferGeometryUtils from "three/examples/jsm/utils/BufferGeometryUtils"; to import { mergeGeometries } from "three/examples/jsm/utils/BufferGeometryUtils.js"; as some build tools have problems, especially angular v20 :)
1 parent c41c642 commit 6673fc4

28 files changed

Lines changed: 9390 additions & 12 deletions

File tree

docs/learn/3d-bits/theme-app-extensions/bitbybit-viewer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Here's a glimpse of how the Viewer Editor looks within the "3D Bits" app environ
105105

106106
While our Viewer Editor is the recommended way to create and manage the Scene Config JSON, you can also edit the JSON directly using any text editor. For a better editing experience with features like syntax highlighting and autocompletion (intellisense), we provide a JSON schema.
107107

108-
* **JSON Schema:** You can find the schema [here](https://ik.imagekit.io/bitbybit/app/assets/start/shopify/viewer-scene-config-schema-0-20-2.json). (Note: This schema link points to version `0.20.2`. The schema may be updated in the future, so ensure you refer to the latest version compatible with your "3D Bits" app version.)
108+
* **JSON Schema:** You can find the schema [here](https://ik.imagekit.io/bitbybit/app/assets/start/shopify/viewer-scene-config-schema-0-20-5.json). (Note: This schema link points to version `0.20.5`. The schema may be updated in the future, so ensure you refer to the latest version compatible with your "3D Bits" app version.)
109109
Many modern code editors (like VS Code) can use this schema to provide validation and autocompletion as you edit the JSON.
110110

111111
## Video Tutorial: BITBYBIT VIEWER Block Setup

docs/learn/runners/intro-blockly.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Below are the `index.html` and `script.js` files you would use on StackBlitz or
6868
<meta charset="UTF-8" />
6969
<meta name="viewport" content="width=device-width" />
7070
<link rel="stylesheet" href="styles.css" />
71-
<script src="https://cdn.jsdelivr.net/gh/bitbybit-dev/bitbybit-assets@0.20.2/runner/bitbybit-runner-babylonjs.js"></script>
71+
<script src="https://cdn.jsdelivr.net/gh/bitbybit-dev/bitbybit-assets@0.20.5/runner/bitbybit-runner-babylonjs.js"></script>
7272
<script type="module" src="script.js"></script>
7373
</head>
7474
<body>

docs/learn/runners/table-configurator-blockly.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Below are the `index.html` and `script.js` files you would use on StackBlitz or
6666
<meta charset="UTF-8" />
6767
<meta name="viewport" content="width=device-width" />
6868
<link rel="stylesheet" href="styles.css" />
69-
<script src="https://cdn.jsdelivr.net/gh/bitbybit-dev/bitbybit-assets@0.20.2/runner/bitbybit-runner-babylonjs.js"></script>
69+
<script src="https://cdn.jsdelivr.net/gh/bitbybit-dev/bitbybit-assets@0.20.5/runner/bitbybit-runner-babylonjs.js"></script>
7070
<script type="module" src="script.js"></script>
7171
</head>
7272
<body>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.angular
2+
dist
3+
node_modules
4+
.env
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
There are some problems with the "fs", "path" and other node type modules with latest angular vite, and there are difference between how serve and build commands work. Use this angular.json to build for production:
2+
Another option is to use optimization: true in development configuration and always use this configuration (but this slows down rebuilds and isn't veyr convenient).
3+
4+
{
5+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
6+
"cli": {
7+
"analytics": "1e1de97b-a744-405a-8b5a-0397bb3d01ce"
8+
},
9+
"newProjectRoot": "projects",
10+
"projects": {
11+
"demo": {
12+
"architect": {
13+
"build": {
14+
"builder": "@angular/build:application",
15+
"configurations": {
16+
"development": {
17+
"extractLicenses": false,
18+
"namedChunks": true,
19+
"optimization": false,
20+
"sourceMap": true
21+
},
22+
"production": {
23+
"aot": true,
24+
"extractLicenses": true,
25+
"namedChunks": false,
26+
"optimization": true,
27+
"outputHashing": "all",
28+
"sourceMap": false
29+
}
30+
},
31+
"options": {
32+
"assets": [],
33+
"index": "src/index.html",
34+
"browser": "src/main.ts",
35+
"outputPath": "dist/demo",
36+
"polyfills": [
37+
"zone.js"
38+
],
39+
"scripts": [],
40+
"styles": [
41+
"src/global_styles.css"
42+
],
43+
"tsConfig": "tsconfig.app.json",
44+
"externalDependencies": [
45+
"fs",
46+
"module",
47+
"path",
48+
"crypto"
49+
]
50+
}
51+
},
52+
"serve": {
53+
"builder": "@angular/build:dev-server",
54+
"configurations": {
55+
"development": {
56+
"buildTarget": "demo:build:development"
57+
},
58+
"production": {
59+
"buildTarget": "demo:build:production"
60+
}
61+
},
62+
"defaultConfiguration": "development"
63+
}
64+
},
65+
"prefix": "app",
66+
"projectType": "application",
67+
"root": "",
68+
"schematics": {},
69+
"sourceRoot": "src"
70+
}
71+
},
72+
"version": 1
73+
}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"cli": {
4+
"analytics": "1e1de97b-a744-405a-8b5a-0397bb3d01ce"
5+
},
6+
"newProjectRoot": "projects",
7+
"projects": {
8+
"demo": {
9+
"architect": {
10+
"build": {
11+
"builder": "@angular/build:application",
12+
"configurations": {
13+
"development": {
14+
"extractLicenses": false,
15+
"namedChunks": true,
16+
"optimization": false,
17+
"sourceMap": true
18+
},
19+
"production": {
20+
"aot": true,
21+
"extractLicenses": true,
22+
"namedChunks": false,
23+
"optimization": true,
24+
"outputHashing": "all",
25+
"sourceMap": false
26+
}
27+
},
28+
"options": {
29+
"assets": [],
30+
"index": "src/index.html",
31+
"browser": "src/main.ts",
32+
"outputPath": "dist/demo",
33+
"polyfills": [
34+
"zone.js"
35+
],
36+
"scripts": [],
37+
"styles": [
38+
"src/global_styles.css"
39+
],
40+
"tsConfig": "tsconfig.app.json"
41+
}
42+
},
43+
"serve": {
44+
"builder": "@angular/build:dev-server",
45+
"configurations": {
46+
"development": {
47+
"buildTarget": "demo:build:development"
48+
},
49+
"production": {
50+
"buildTarget": "demo:build:production"
51+
}
52+
},
53+
"defaultConfiguration": "development"
54+
}
55+
},
56+
"prefix": "app",
57+
"projectType": "application",
58+
"root": "",
59+
"schematics": {},
60+
"sourceRoot": "src"
61+
}
62+
},
63+
"version": 1
64+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {};

0 commit comments

Comments
 (0)