-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
feat: split gridSize
from enabled state & support custom gridStep
#8364
Conversation
…Step`
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
When shift dragging, i.e. changing the grid steps by a step size of 5, I find it to be a bit too "sensitive" still. In the context of grids, changing We could either reduce the step size or take both sensitivity and step size into account so that sensitivity gets reduced when shift dragged. But this is really minor and probably not worth fussing over atm. |
# Conflicts: # packages/excalidraw/actions/actionCanvas.tsx
Yeah, though it would require |
fix #8244
Adding support to customize grid step (the bold lines). We could allow customizing grid cell size (currently 20px), but it feels less useful and I don't think it was ever even requested, so for simplicity's sake, we're not allowing it that now.
gridStep
from the stats menu (tracked asappState.gridStep
, previously hardcoded). Clamped to<1, 100>
, integer.gridStep
input in Stats only when grid mode enabledgridSize
from enabled state, which is now tracked separately asappState.gridModeEnabled
gridSize
&gridStep
props.gridModeEnabled
is now independent fromappState
and doesn't override it (previously it was overridinggridSize
)gridStep=1
<DragInput>
now also takessensitivity
to allow to reduce pointer px sensitivitygridSize
,gridStep,
andzoom.value
now properly normalized on restoreround(value, precision)