Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paper vectors #42

Merged
merged 17 commits into from
Dec 8, 2024
32 changes: 32 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@
"dependencies": {
"@ant-design/icons": "^5.3.0",
"@types/lz-string": "^1.5.0",
"@types/paper": "^0.12.3",
"@yhattav/react-component-cursor": "0.1.0-beta.27",
"antd": "^5.15.0",
"framer-motion": "^11.11.11",
"lodash": "^4.17.21",
"lz-string": "^1.5.0",
"paper": "^0.12.18",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^5.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/GravityPoint/GravityPoint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const GravityPointComponent: React.FC<GravityPointComponentProps> = ({
isDraggingRef.current = true;
onDrag();
}}
initial={{ x: point.x, y: point.y }}
initial={{ x: point.position.x, y: point.position.y }}
onDragEnd={onDragEnd}
onPointerDown={disabled ? undefined : handlePointerDown}
onPointerUp={disabled ? undefined : handlePointerUp}
Expand Down
Loading
Loading