-
-
Notifications
You must be signed in to change notification settings - Fork 683
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
chore: port SnapCentertoCursor to experimental branch #1599
base: experimental
Are you sure you want to change the base?
Conversation
|
a946bd3
to
96e60bf
Compare
@clauderic Does the |
You should be able to add a story here: apps/stories/stories/react/Draggable/Modifiers/Modifiers.stories.tsx Something like: export const SnapToCursor: Story = {
name: 'Snap to cursor',
args: {
modifiers: [SnapCenterToCursor],
},
}; |
Co-authored-by: Claudéric Demers <[email protected]>
There is an issue w/ the typing when I apply the
The code runs correctly but typescript complains. I'm using |
@khuezy There are two DragDropManager, one is from You can refer to |
The |
@@ -8,15 +8,15 @@ import { | |||
} from '@dnd-kit/abstract'; | |||
|
|||
interface Options { | |||
size: number | {x: number; y: number}; | |||
size: number | { x: number; y: number }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why your editor isn't respecting the prettier settings, it should be:
{
"bracketSpacing": false,
"singleQuote": true,
"semi": true,
"trailingComma": "es5"
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea that's really strange. I see the prettier loading .prettierrc
but it's not applying those settings.
When I run bun format
, it picks up 28 file changes... Should I include that or just leave everything as it is for you to format.
Co-authored-by: Claudéric Demers <[email protected]>
No description provided.