fix: revert dragger name (#8020)

This commit is contained in:
Beka Westberg
2024-04-11 20:22:17 +00:00
committed by GitHub
parent 613c7335ee
commit a0f821a239
3 changed files with 7 additions and 3 deletions

View File

@@ -139,4 +139,4 @@ export class Dragger implements IDragger {
}
}
registry.register(registry.Type.DRAGGER, registry.DEFAULT, Dragger);
registry.register(registry.Type.BLOCK_DRAGGER, registry.DEFAULT, Dragger);

View File

@@ -360,7 +360,7 @@ export class Gesture {
workspace: WorkspaceSvg,
): IDragger {
const DraggerClass = registry.getClassFromOptions(
registry.Type.DRAGGER,
registry.Type.BLOCK_DRAGGER,
this.creatorWorkspace.options,
true,
);

View File

@@ -95,7 +95,11 @@ export class Type<_T> {
static METRICS_MANAGER = new Type<IMetricsManager>('metricsManager');
static DRAGGER = new Type<IDragger>('dragger');
/**
* Type for an IDragger. Formerly behavior was mostly covered by
* BlockDraggeers, which is why the name is inaccurate.
*/
static BLOCK_DRAGGER = new Type<IDragger>('blockDragger');
/** @internal */
static SERIALIZER = new Type<ISerializer>('serializer');