Skip to content

Commit

Permalink
chore: register dragger
Browse files Browse the repository at this point in the history
  • Loading branch information
BeksOmega committed Mar 28, 2024
1 parent a85fb35 commit 72b1c24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/blockly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import * as comments from './comments.js';
import * as Css from './css.js';
import {DeleteArea} from './delete_area.js';
import * as dialog from './dialog.js';
import {Dragger} from './dragging/dragger.js';
import {DragTarget} from './drag_target.js';
import * as dropDownDiv from './dropdowndiv.js';
import * as Events from './events/events.js';
Expand Down Expand Up @@ -466,6 +467,7 @@ export {ContextMenuRegistry};
export {comments};
export {Cursor};
export {DeleteArea};
export {Dragger};
export {DragTarget};
export const DropDownDiv = dropDownDiv;
export {Field, FieldConfig, FieldValidator, UnattachedFieldError};
Expand Down
3 changes: 3 additions & 0 deletions core/dragging/dragger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -137,3 +138,5 @@ export class Dragger implements IDragger {
return result;
}
}

registry.register(registry.Type.DRAGGER, registry.DEFAULT, Dragger);

0 comments on commit 72b1c24

Please sign in to comment.