initial commit with full-size image, but broken OpenSCAD image source size.

This commit is contained in:
Frank Noirot
2021-03-13 20:37:02 -05:00
parent df3f492aee
commit 785025fca8
4 changed files with 39 additions and 17 deletions

View File

@@ -17,11 +17,12 @@ let lastCameraSettings = {
}
export const render = async ({ code, settings }) => {
console.log('from render', settings)
const body = JSON.stringify({
settings: {
size: {
x: 500,
y: 500,
x: settings.viewerSize?.width,
y: settings.viewerSize?.height,
},
camera: settings.camera || lastCameraSettings,
},