add git ignores

master
howard 2021-04-10 05:24:52 -07:00
parent 51f53bf752
commit 7d5325156c
7 changed files with 171227 additions and 203 deletions

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
node_modules/ node_modules/
dist/*bundle.js* dist/*bundle.js*
dist/index.css dist/app.css
stats.json

196
dist/app.css vendored
View File

@ -1,196 +0,0 @@
/* @tailwind base; */
.bg-gray-50 {
--tw-bg-opacity: 1;
background-color: rgba(249, 250, 251, var(--tw-bg-opacity));
}
.flex {
display: flex;
}
.table {
display: table;
}
.flex-col {
flex-direction: column;
}
.items-center {
align-items: center;
}
.justify-center {
justify-content: center;
}
.justify-between {
justify-content: space-between;
}
.h-full {
height: 100%;
}
.p-2 {
padding: 0.5rem;
}
* {
--tw-shadow: 0 0 #0000;
}
* {
--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: rgba(59, 130, 246, 0.5);
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
}
.visible {
visibility: visible;
}
.w-auto {
width: auto;
}
.w-full {
width: 100%;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
@keyframes ping {
75%, 100% {
transform: scale(2);
opacity: 0;
}
}
@keyframes pulse {
50% {
opacity: .5;
}
}
@keyframes bounce {
0%, 100% {
transform: translateY(-25%);
animation-timing-function: cubic-bezier(0.8,0,1,1);
}
50% {
transform: none;
animation-timing-function: cubic-bezier(0,0,0.2,1);
}
}
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
box-sizing: border-box;
}
body {
margin: 0;
height: 100%;
font-family: sans-serif;
overflow: hidden;
--topNavH: 48px;
--sideNavW: 200px;
}
#c {
position: absolute;
width: calc(100% - var(--sideNavW));
height: calc(100% - var(--topNavH));
bottom: 0;
right: 0;
}
.topNav {
position: absolute;
height: var(--topNavH);
left:0;
right:0;
top:0;
}
.sideNav {
position: absolute;
top: var(--topNavH);
left: 0;
bottom: 0;
width: var(--sideNavW);
}
#labels > div {
position: absolute;
border: solid 1px black;
}
.btn {
cursor: pointer;
--tw-bg-opacity: 1;
background-color: rgba(243, 244, 246, var(--tw-bg-opacity));
}
.btn:hover {
--tw-bg-opacity: 1;
background-color: rgba(229, 231, 235, var(--tw-bg-opacity));
}
.btn {
fill: currentColor;
--tw-text-opacity: 1;
color: rgba(5, 150, 105, var(--tw-text-opacity));
}
.btn:hover {
--tw-text-opacity: 1;
color: rgba(4, 120, 87, var(--tw-text-opacity));
}
.tooltip {
position: fixed;
display: block;
background-color: black;
color: #fff;
text-align: center;
border-radius: 4px;
padding: 4px;
visibility: hidden;
}
.arrow {
position: absolute;
bottom: 100%;
left: 50%;
margin-left: -6px;
border: solid 6px transparent;
border-bottom-color: black;
border-top: none;
}
@media (min-width: 640px) {
}
@media (min-width: 768px) {
}
@media (min-width: 1024px) {
}
@media (min-width: 1280px) {
}
@media (min-width: 1536px) {
}

171221
dist/index.css vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -53,7 +53,6 @@ export function onHover(e) {
if (idx.length) { // after filtering, if hovered objs still exists if (idx.length) { // after filtering, if hovered objs still exists
console.log(hoverPts)
if (hoverPts[idx[0]].object != this.hovered[0]) { // if the previous hovered obj is not the same as current if (hoverPts[idx[0]].object != this.hovered[0]) { // if the previous hovered obj is not the same as current
for (let x = 0; x < this.hovered.length; x++) { // first clear old hovers that are not selected for (let x = 0; x < this.hovered.length; x++) { // first clear old hovers that are not selected

View File

@ -32,6 +32,9 @@ export const NavBar = () => {
activeSketchId ? activeSketchId ?
[MdDone, () => { [MdDone, () => {
treeEntries.byId[activeSketchId].deactivate() treeEntries.byId[activeSketchId].deactivate()
dispatch({ type: 'update-descendents', sketch})
sc.activeSketch = null sc.activeSketch = null
// sc.activeDim = this.activeSketch.obj3d.children[1].children // sc.activeDim = this.activeSketch.obj3d.children[1].children
}, 'Finish'] : }, 'Finish'] :
@ -45,7 +48,6 @@ export const NavBar = () => {
const [m1, m2] = sc.selected const [m1, m2] = sc.selected
const mesh = sc.subtract(m1, m2) const mesh = sc.subtract(m1, m2)
console.log(mesh, 'meshres')
dispatch({ type: 'rx-boolean', mesh, deps: [m1.name, m2.name] }) dispatch({ type: 'rx-boolean', mesh, deps: [m1.name, m2.name] })
sc.render() sc.render()
forceUpdate() forceUpdate()
@ -61,7 +63,7 @@ export const NavBar = () => {
return <div className='topNav flex justify-center items-center bg-gray-800'> return <div className='topNav flex justify-center items-center bg-gray-800'>
{ {
btnz.map(([Icon, fcn, txt, shortcut], idx) => ( btnz.map(([Icon, fcn, txt, shortcut], idx) => (
<Icon className="btn w-auto h-full p-3" tooltip={txt} <Icon className="btn w-auto h-full p-3.5" tooltip={txt}
onClick={fcn} key={idx} onClick={fcn} key={idx}
/> />
)) ))

View File

@ -5,8 +5,6 @@
import { LineSegments, LineBasicMaterial, Float32BufferAttribute, BufferGeometry } from '../node_modules/three/src/Three' import { LineSegments, LineBasicMaterial, Float32BufferAttribute, BufferGeometry } from '../node_modules/three/src/Three'
import {} from '../node_modules/three/examples/jsm/lines/LineGeometry'
import {} from '../node_modules/three/examples/jsm/lines/LineMaterial'
class AxesHelper extends LineSegments { class AxesHelper extends LineSegments {

File diff suppressed because one or more lines are too long