Skip to content

Commit

Permalink
🥕 v0.17.0-b19 🌱 ThreeD: Home Design
Browse files Browse the repository at this point in the history
  • Loading branch information
marty-mcgee committed Jan 8, 2025
1 parent 53e1b27 commit 0d2f4cd
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 🥕 ThreeD Garden

[WebGL 3D Environment Interface for Next.JS React TypeScript Three.JS React-Three Physics, 2D Paper.JS, APIs: WordPress, Apollo GraphQL, Leva Control GUI, Radix-UI, Tailwind CSS, FarmBot React 3D (beta)](https://github.com/marty-mcgee/threed-garden/)
[🥕 ThreeD Garden: WebGL 3D Environment Interface for Next.JS React TypeScript Three.JS React-Three Physics, 2D Paper.JS, APIs: Apollo GraphQL, WordPress, CSS: Tailwind, Radix-UI, Libraries: FarmBot React 3D, Open.AI](https://github.com/marty-mcgee/threed-garden/)

## Live Demo (v0.17.0-x)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "threed-garden",
"version": "0.17.0-beta.19",
"description": "ThreeD Garden: WebGL 3D Environment Interface for Next.JS React TypeScript Three.JS React-Three Physics, 2D Paper.JS, APIs: WordPress, Apollo GraphQL, Leva Control GUI, Radix-UI, Tailwind CSS, FarmBot React 3D (beta)",
"description": "ThreeD Garden: 🥕 ThreeD Garden: WebGL 3D Environment Interface for Next.JS React TypeScript Three.JS React-Three Physics, 2D Paper.JS, APIs: Apollo GraphQL, WordPress, CSS: Tailwind, Radix-UI, Libraries: FarmBot React 3D, Open.AI",
"author": "Marty McGee <mcgee.marty@gmail.com> (https://github.com/marty-mcgee)",
"license": "MIT",
"repository": {
Expand Down
66 changes: 33 additions & 33 deletions src/lib/threed/HomeDesign.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6373,7 +6373,7 @@ export default function ThreeDHomeDesign({
// )
// }
if (draggingThreedIcon) {
// console.debug('draggingThreedIcon', draggingThreedIcon)
console.debug('draggingThreedIcon', draggingThreedIcon)
var widthT, heightOh
widthT = draggingThreedRectangle.bounds.width
heightOh = draggingThreedRectangle.bounds.height
Expand Down Expand Up @@ -6506,38 +6506,38 @@ export default function ThreeDHomeDesign({
// END: document.onmousemove = function (e: any) {}


// ** HEY HEY HEY [MM] NEEDS ATTENTION [MM]
// ** CAN WE DO THIS WITHIN A SUB "TOOL" MODE? Yes please.
document.onmouseup = function (e: any) {
// ** MOVED TO threedTool.pointer
draggingThreedIcon = false

// **
if (verticalSliderDragging) {
verticalSliderDragging = false
}
if (horizontalSliderLeftDragging) {
horizontalSliderLeftDragging = false
}
if (horizontalSliderRightDragging) {
horizontalSliderRightDragging = false
}

// ** [MM] CLOSER.. NOT EVEN CLOSE -- DON't DO THIS UNTIL YOU HAVE IT AS A threedTool.pointer
if (draggingThreedItem) {
// @ ts-expect-error
// addThreed(e, draggingThreedItem, canvasStateThreeDVar().state.scene)
// addThreed(e, draggingThreedItem, useCanvasStateThreeDVar.state.scene)
void (draggingNewGuide && (draggingNewGuide = false))
}

// ** RETURN ???
// return (
// null
// )
return
}
// END: document.onmouseup = function (e: any) {}
// // ** HEY HEY HEY [MM] NEEDS ATTENTION [MM]
// // ** CAN WE DO THIS WITHIN A SUB "TOOL" MODE? Yes please.
// document.onmouseup = function (e: any) {
// // ** MOVED TO threedTool.pointer
// draggingThreedIcon = false

// // **
// if (verticalSliderDragging) {
// verticalSliderDragging = false
// }
// if (horizontalSliderLeftDragging) {
// horizontalSliderLeftDragging = false
// }
// if (horizontalSliderRightDragging) {
// horizontalSliderRightDragging = false
// }

// // ** [MM] CLOSER.. NOT EVEN CLOSE -- DON't DO THIS UNTIL YOU HAVE IT AS A threedTool.pointer
// if (draggingThreedItem) {
// // @ ts-expect-error
// // addThreed(e, draggingThreedItem, canvasStateThreeDVar().state.scene)
// // addThreed(e, draggingThreedItem, useCanvasStateThreeDVar.state.scene)
// void (draggingNewGuide && (draggingNewGuide = false))
// }

// // ** RETURN ???
// // return (
// // null
// // )
// return
// }
// // END: document.onmouseup = function (e: any) {}


}, []) // end load data useEffect (client)
Expand Down

1 comment on commit 0d2f4cd

@vercel
Copy link

@vercel vercel bot commented on 0d2f4cd Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.