removed unused code
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
<svg width="14" height="17" viewBox="0 0 14 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M13 9.9271C13 13.189 10.3137 15.8333 7 15.8333C3.68629 15.8333 1 13.189 1 9.9271C1 6.66517 3.68629 4.02085 7 4.02085C9 4.02085 10.986 4.99917 12 5.77084M12 5.77084L8.33333 7.08334M12 5.77084L10.6667 1.83334" stroke="#434190" stroke-width="2" stroke-linecap="round"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 379 B |
@@ -3,7 +3,6 @@ import CascadeController from 'src/helpers/cascadeController'
|
|||||||
import IdeToolbar from 'src/components/IdeToolbar'
|
import IdeToolbar from 'src/components/IdeToolbar'
|
||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
import { threejsViewport } from 'src/cascade/js/MainPage/CascadeState'
|
import { threejsViewport } from 'src/cascade/js/MainPage/CascadeState'
|
||||||
import { element } from 'prop-types'
|
|
||||||
import { uploadToCloudinary } from 'src/helpers/cloudinary'
|
import { uploadToCloudinary } from 'src/helpers/cloudinary'
|
||||||
|
|
||||||
const defaultExampleCode = `// Welcome to Cascade Studio! Here are some useful functions:
|
const defaultExampleCode = `// Welcome to Cascade Studio! Here are some useful functions:
|
||||||
@@ -82,10 +81,6 @@ const IdeCascadeStudio = ({ part, saveCode, loading }) => {
|
|||||||
// Save the screenshot as the mainImage
|
// Save the screenshot as the mainImage
|
||||||
saveCode({
|
saveCode({
|
||||||
input: {
|
input: {
|
||||||
code,
|
|
||||||
title: part?.title,
|
|
||||||
userId: currentUser?.sub,
|
|
||||||
description: part?.description,
|
|
||||||
mainImage: cloudinaryImg.public_id,
|
mainImage: cloudinaryImg.public_id,
|
||||||
},
|
},
|
||||||
id: part?.id,
|
id: part?.id,
|
||||||
|
|||||||
@@ -114,6 +114,7 @@ const IdeToolbar = ({
|
|||||||
aTag.style.display = 'none'
|
aTag.style.display = 'none'
|
||||||
aTag.download = `CadHub_${ Date.now() }.jpg`
|
aTag.download = `CadHub_${ Date.now() }.jpg`
|
||||||
aTag.click()
|
aTag.click()
|
||||||
|
document.body.removeChild(aTag)
|
||||||
}
|
}
|
||||||
|
|
||||||
const anchorOrigin = {
|
const anchorOrigin = {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class CascadeController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
capture(environment) {
|
capture(environment) {
|
||||||
let width = 512, height = 384;
|
let width = 512, height = 384; // These can be adjusted to the best size for the Part Profile.
|
||||||
environment.camera.aspect = width / height;
|
environment.camera.aspect = width / height;
|
||||||
environment.camera.updateProjectionMatrix();
|
environment.camera.updateProjectionMatrix();
|
||||||
environment.renderer.setSize(width, height);
|
environment.renderer.setSize(width, height);
|
||||||
|
|||||||
Reference in New Issue
Block a user