removed unused code

This commit is contained in:
Frank Noirot
2021-02-25 21:26:25 -05:00
parent fa3141266e
commit 7fab53d200
4 changed files with 2 additions and 9 deletions

View File

@@ -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

View File

@@ -3,7 +3,6 @@ import CascadeController from 'src/helpers/cascadeController'
import IdeToolbar from 'src/components/IdeToolbar'
import { useEffect, useState } from 'react'
import { threejsViewport } from 'src/cascade/js/MainPage/CascadeState'
import { element } from 'prop-types'
import { uploadToCloudinary } from 'src/helpers/cloudinary'
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
saveCode({
input: {
code,
title: part?.title,
userId: currentUser?.sub,
description: part?.description,
mainImage: cloudinaryImg.public_id,
},
id: part?.id,

View File

@@ -114,6 +114,7 @@ const IdeToolbar = ({
aTag.style.display = 'none'
aTag.download = `CadHub_${ Date.now() }.jpg`
aTag.click()
document.body.removeChild(aTag)
}
const anchorOrigin = {

View File

@@ -25,7 +25,7 @@ class CascadeController {
}
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.updateProjectionMatrix();
environment.renderer.setSize(width, height);