feat: have the gesture use a dragger for blocks (#7972)

* feat: have block use drag strategy

* fix: gesture to use dragger for blocks

* chore: register dragger

* chore: remove getInsertionMarkers and pull logic into workspace
This commit is contained in:
Beka Westberg
2024-03-29 00:38:58 +00:00
committed by GitHub
parent 75fc4704da
commit da8a83b925
5 changed files with 38 additions and 49 deletions

View File

@@ -12,6 +12,7 @@ import {Coordinate} from '../utils/coordinate.js';
import {WorkspaceSvg} from '../workspace_svg.js';
import {ComponentManager} from '../component_manager.js';
import {IDeleteArea} from '../interfaces/i_delete_area.js';
import * as registry from '../registry.js';
export class Dragger implements IDragger {
private startLoc: Coordinate;
@@ -137,3 +138,5 @@ export class Dragger implements IDragger {
return result;
}
}
registry.register(registry.Type.DRAGGER, registry.DEFAULT, Dragger);