Compare commits

..

1 Commits

Author SHA1 Message Date
Pleymor 1cad79a9ed
Merge 05a265315d into 3899993261 2023-11-28 20:18:08 +01:00
3 changed files with 16 additions and 7687 deletions

View File

@ -60,10 +60,12 @@ function Model({ gltfModel, ...props }) {
const maxSize = Math.max(sizeModel.x, sizeModel.y, sizeModel.z); const maxSize = Math.max(sizeModel.x, sizeModel.y, sizeModel.z);
const scale = Math.min(size.width, size.height) / maxSize; const scale = Math.min(size.width, size.height) / maxSize;
console.log("scaling factor is ", scale) console.log("scaling factor is ", scale)
// Apply the scaling factor to the model // Apply the scaling factor to the model
modelRef.current.scale.set(scale, scale, scale); modelRef.current.scale.set(scale, scale, scale);
const boxAfterScaling = new Box3().setFromObject(modelRef.current); const boxAfterScaling = new Box3().setFromObject(modelRef.current);
const sizeModelAfterScaling = new Vector3(); const sizeModelAfterScaling = new Vector3();
boxAfterScaling.getSize(sizeModelAfterScaling); boxAfterScaling.getSize(sizeModelAfterScaling);

View File

@ -10,11 +10,6 @@ module.exports = {
protocol: "https", protocol: "https",
hostname: "pbxt.replicate.delivery", hostname: "pbxt.replicate.delivery",
}, },
{
protocol: "https",
hostname: "replicate.delivery",
pathname: '/pbxt/**',
},
], ],
}, },
// async headers() { // async headers() {
@ -26,6 +21,7 @@ module.exports = {
// key: 'Content-Security-Policy', // key: 'Content-Security-Policy',
// value: "default-src 'self'; img-src 'self' blob: https://replicate.com https://pbxt.replicate.delivery; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; worker-src 'self' blob:; connect-src 'self' blob:;" // value: "default-src 'self'; img-src 'self' blob: https://replicate.com https://pbxt.replicate.delivery; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; worker-src 'self' blob:; connect-src 'self' blob:;"
// } // }
// ], // ],
// }, // },
// ]; // ];

7669
package-lock.json generated

File diff suppressed because it is too large Load Diff