Skip to content

Commit

Permalink
XIVY-15900 fix repositioning marquee elements
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy-jh committed Feb 10, 2025
1 parent bb8c9ec commit 485c873
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 30 deletions.
7 changes: 5 additions & 2 deletions packages/editor/src/di.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ import ivyZorderModule from './zorder/di.config';

import './colors.css';
import './toastify.css';
import { IvyMarqueeUtil } from './ui-tools/tool-bar/marquee-behavior';

//import { IvyMarqueeUtil } from './ui-tools/tool-bar/marquee-behavior';
//import { ivyAccessibilityModule } from './accessibility/di.config';


export default function createContainer(widgetId: string, ...containerConfiguration: ContainerConfiguration): Container {
const container = initializeDiagramContainer(
Expand Down Expand Up @@ -91,7 +94,7 @@ export default function createContainer(widgetId: string, ...containerConfigurat
alignmentElementFilter: element => !(element instanceof LaneNode) && DEFAULT_ALIGNABLE_ELEMENT_FILTER(element)
});

bindOrRebind(container, MarqueeUtil).to(IvyMarqueeUtil).inSingletonScope();
bindOrRebind(container, MarqueeUtil).to(MarqueeUtil).inSingletonScope();
bindOrRebind(container, TYPES.IMarqueeBehavior).toConstantValue({ entireEdge: true, entireElement: true });
bindOrRebind(container, TYPES.ICommandStack).to(IvyGLSPCommandStack).inSingletonScope();
bindOrRebind(container, TYPES.ILogger).to(ConsoleLogger).inSingletonScope();
Expand Down
27 changes: 0 additions & 27 deletions packages/editor/src/ui-tools/tool-bar/marquee-behavior.ts

This file was deleted.

2 changes: 1 addition & 1 deletion playwright/tests/standalone/tool-bar/marquee.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function markAndAssert(page: Page, processEditor: ProcessEditor) {
await page.mouse.move(10, 60);
await page.mouse.down();
await page.mouse.move(400, 200);
await expect(page.locator('g.selected')).toHaveCount(6);
await expect(page.locator('g.selected')).toHaveCount(3);
await expect(processEditor.quickAction().locator()).toBeHidden();
}

Expand Down

0 comments on commit 485c873

Please sign in to comment.