chore: port SnapCentertoCursor to experimental branch#1599
chore: port SnapCentertoCursor to experimental branch#1599khuezy wants to merge 4 commits intoclauderic:experimentalfrom
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 <clauderic.d@gmail.com>
|
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 |
|
|
||
| interface Options { | ||
| size: number | {x: number; y: number}; | ||
| size: number | { x: number; y: number }; |
There was a problem hiding this comment.
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.
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 <clauderic.d@gmail.com>
No description provided.