door_models 5.4.7 → 5.4.8
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 +11 -66
- package/package.json +2 -2
- package/dist/index.cjs.js +0 -2374
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.esm.js +0 -2346
- package/dist/index.esm.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,70 +1,15 @@
|
|
|
1
|
-
#
|
|
1
|
+
# doorModelV2
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## What changed for performance
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
- Reduced radial segments on door handles, hinges, and keyholes to cut triangle counts without altering shapes or behavior. This helps exports (e.g., AutoCAD) and live rendering.
|
|
6
|
+
- Added an empty sourcemap at `node_modules/@mediapipe/tasks-vision/vision_bundle_mjs.js.map` to silence the upstream `@mediapipe/tasks-vision` warning. Recreate it after reinstalling dependencies or script it in postinstall.
|
|
7
|
+
- No functional or behavioral changes were made; only mesh density and build-noise adjustments. If you see breakage, capture the exact configuration for repro.
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
## Next steps to improve performance
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
The page will reload when you make changes.\
|
|
15
|
-
You may also see any lint errors in the console.
|
|
16
|
-
|
|
17
|
-
### `npm test`
|
|
18
|
-
|
|
19
|
-
Launches the test runner in the interactive watch mode.\
|
|
20
|
-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
|
21
|
-
|
|
22
|
-
### `npm run build`
|
|
23
|
-
|
|
24
|
-
Builds the app for production to the `build` folder.\
|
|
25
|
-
It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
26
|
-
|
|
27
|
-
The build is minified and the filenames include the hashes.\
|
|
28
|
-
Your app is ready to be deployed!
|
|
29
|
-
|
|
30
|
-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
|
31
|
-
|
|
32
|
-
### `npm run eject`
|
|
33
|
-
|
|
34
|
-
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
|
|
35
|
-
|
|
36
|
-
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
|
37
|
-
|
|
38
|
-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
|
|
39
|
-
|
|
40
|
-
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
|
|
41
|
-
|
|
42
|
-
## Learn More
|
|
43
|
-
|
|
44
|
-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
|
45
|
-
|
|
46
|
-
To learn React, check out the [React documentation](https://reactjs.org/).
|
|
47
|
-
|
|
48
|
-
### Code Splitting
|
|
49
|
-
|
|
50
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
|
|
51
|
-
|
|
52
|
-
### Analyzing the Bundle Size
|
|
53
|
-
|
|
54
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
|
|
55
|
-
|
|
56
|
-
### Making a Progressive Web App
|
|
57
|
-
|
|
58
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
|
|
59
|
-
|
|
60
|
-
### Advanced Configuration
|
|
61
|
-
|
|
62
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
|
|
63
|
-
|
|
64
|
-
### Deployment
|
|
65
|
-
|
|
66
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
|
|
67
|
-
|
|
68
|
-
### `npm run build` fails to minify
|
|
69
|
-
|
|
70
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
|
11
|
+
1) Profile scene geometry counts in typical configurations and identify other high-poly shapes (arches, fanlights, decorative trims) to reduce segments where visually acceptable.
|
|
12
|
+
2) Add level-of-detail (LOD) variants for handles/hinges and swap based on camera distance to keep close-ups crisp while distant meshes stay light.
|
|
13
|
+
3) Consider baking static elements (frame, panels) into merged geometries where possible to cut draw calls, while keeping movable parts separate.
|
|
14
|
+
4) Review texture sizes and compression (basis/ktx2) to reduce GPU upload cost without quality loss.
|
|
15
|
+
5) Add automated build check that recreates the placeholder sourcemap and optionally reports total triangle count per scene preset for regression tracking.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "door_models",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A reusable 3D door configurator for React.",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
|
-
"start": "react-scripts start",
|
|
12
|
+
"start": "PORT=7005 react-scripts start",
|
|
13
13
|
"rollup": "rollup -c",
|
|
14
14
|
"build": "DISABLE_ESLINT_PLUGIN=true react-scripts build",
|
|
15
15
|
"test": "react-scripts test",
|