Skip to content

Commit

Permalink
Change to ViewportRootElementImpl in viewport test
Browse files Browse the repository at this point in the history
Change-Id: If030a1469895acfe69a0792ffba2be09cb6cf2e5
  • Loading branch information
planger authored and spoenemann committed Oct 5, 2023
1 parent 8676c8e commit 6488b8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sprotty/src/features/viewport/viewport.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { ConsoleLogger } from '../../utils/logging';
import { AnimationFrameSyncer } from '../../base/animations/animation-frame-syncer';
import { CommandExecutionContext } from '../../base/commands/command';
import { SetViewportCommand } from './viewport';
import { ViewportRootElement } from './viewport-root';
import { ViewportRootElementImpl } from './viewport-root';
import defaultModule from '../../base/di.config';
import { SetViewportAction, Viewport, almostEquals } from 'sprotty-protocol';
import { IModelFactory } from '../../base/model/smodel-factory';
Expand All @@ -40,7 +40,7 @@ describe('BoundsAwareViewportCommand', () => {
const graphFactory = container.get<IModelFactory>(TYPES.IModelFactory);

const viewportData: Viewport = { scroll: { x: 0, y: 0 }, zoom: 1 };
const viewport: ViewportRootElement = graphFactory.createRoot({ id: 'viewport1', type: 'graph', children: [] }) as ViewportRootElement;
const viewport: ViewportRootElementImpl = graphFactory.createRoot({ id: 'viewport1', type: 'graph', children: [] }) as ViewportRootElementImpl;
viewport.zoom = viewportData.zoom;
viewport.scroll = viewportData.scroll;

Expand Down

0 comments on commit 6488b8f

Please sign in to comment.