kopia lustrzana https://github.com/Tldraw/Tldraw
Stickies: Kickout occluded shapes after nudge (frames and stickies) (#3360)
This PR kicks out occluded shapes after nudging. This affects frames as well as stickies. ### Change Type <!-- ❗ Please select a 'Scope' label ❗️ --> - [x] `sdk` — Changes the tldraw SDK - [x] `dotcom` — Changes the tldraw.com web app - [ ] `docs` — Changes to the documentation, examples, or templates. - [ ] `vs code` — Changes to the vscode plugin - [ ] `internal` — Does not affect user-facing stuff <!-- ❗ Please select a 'Type' label ❗️ --> - [x] `bugfix` — Bug fix - [ ] `feature` — New feature - [ ] `improvement` — Improving existing features - [ ] `chore` — Updating dependencies, other boring stuff - [ ] `galaxy brain` — Architectural changes - [ ] `tests` — Changes to any test code - [ ] `tools` — Changes to infrastructure, CI, internal scripts, debugging tools, etc. - [ ] `dunno` — I don't know ### Test Plan 1. Add a step-by-step description of how to test your PR here. 2. - [ ] Unit Tests - [ ] End to end tests ### Release Notes - Add a brief release note for your PR here.pull/3370/head
rodzic
574724be57
commit
8683c642d3
|
@ -628,7 +628,9 @@ export class Idle extends StateNode {
|
|||
? MAJOR_NUDGE_FACTOR
|
||||
: MINOR_NUDGE_FACTOR
|
||||
|
||||
this.editor.nudgeShapes(this.editor.getSelectedShapeIds(), delta.mul(step))
|
||||
const selectedShapeIds = this.editor.getSelectedShapeIds()
|
||||
this.editor.nudgeShapes(selectedShapeIds, delta.mul(step))
|
||||
kickoutOccludedShapes(this.editor, selectedShapeIds)
|
||||
}
|
||||
|
||||
private canInteractWithShapeInReadOnly(shape: TLShape) {
|
||||
|
|
Ładowanie…
Reference in New Issue