Merge branch 'main' into kurt/customizer-start-320

This commit is contained in:
Davor Hrg
2021-08-03 21:34:56 +02:00
3 changed files with 5 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ export const makeStlDownloadHandler =
}: makeStlDownloadHandlerArgs) => }: makeStlDownloadHandlerArgs) =>
() => { () => {
const makeStlBlobFromMesh = flow( const makeStlBlobFromMesh = flow(
(mesh) => new Scene().add(mesh), (...meshes) => new Scene().add(...meshes),
(scene) => new STLExporter().parse(scene), (scene) => new STLExporter().parse(scene),
(stl) => (stl) =>
new Blob([stl], { new Blob([stl], {
@@ -60,7 +60,7 @@ export const makeStlDownloadHandler =
) { ) {
saveFile(makeStlBlobFromGeo(geometry)) saveFile(makeStlBlobFromGeo(geometry))
} else if (ideType == 'jscad') { } else if (ideType == 'jscad') {
saveFile(makeStlBlobFromMesh(geometry)) saveFile(makeStlBlobFromMesh(...geometry))
} else { } else {
thunkDispatch((dispatch, getState) => { thunkDispatch((dispatch, getState) => {
const state = getState() const state = getState()

View File

@@ -24,7 +24,7 @@ Open the IDE for the Cad package to match your script, in this case OpenSCAD.
<Image img={openscadSelect} style={{backgroundSize: 'contain', paddingBottom: '2rem', width: '400px', margin: '0 auto'}} /> <Image img={openscadSelect} style={{backgroundSize: 'contain', paddingBottom: '2rem', width: '400px', margin: '0 auto'}} />
Click the share button in the top right, then select the "external srcipt" tab. Click the share button in the top right, then select the "external script" tab.
<Image img={externalScript1} style={{backgroundSize: 'contain', paddingBottom: '2rem', width: '400px', margin: '0 auto'}} /> <Image img={externalScript1} style={{backgroundSize: 'contain', paddingBottom: '2rem', width: '400px', margin: '0 auto'}} />

View File

@@ -94,12 +94,12 @@ module.exports = {
docs: { docs: {
sidebarPath: require.resolve('./sidebars.js'), sidebarPath: require.resolve('./sidebars.js'),
editUrl: editUrl:
'https://github.com/facebook/docusaurus/edit/master/website/', 'https://github.com/Irev-Dev/cadhub/blob/main/docs/',
}, },
blog: { blog: {
showReadingTime: true, showReadingTime: true,
editUrl: editUrl:
'https://github.com/facebook/docusaurus/edit/master/website/blog/', 'https://github.com/Irev-Dev/cadhub/blob/main/docs/',
}, },
theme: { theme: {
customCss: require.resolve('./src/css/custom.css'), customCss: require.resolve('./src/css/custom.css'),