Skip to content

Commit

Permalink
chore: simplify import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
marstamm authored and philippfromme committed Mar 1, 2023
1 parent 7eac5e9 commit 2014bba
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions lib/command/CommandHandler.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import CommandHandler from '../../lib/command/CommandHandler';
import CommandHandler from './CommandHandler';

import Canvas from '../../lib/core/Canvas';
import Canvas from '../core/Canvas';

export class AddShapeHandler implements CommandHandler {
private _canvas: Canvas;
Expand Down
6 changes: 3 additions & 3 deletions lib/command/CommandInterceptor.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import CommandInterceptor from '../../lib/command/CommandInterceptor';
import CommandInterceptor from './CommandInterceptor';

import EventBus from '../../lib/core/EventBus';
import EventBus from '../core/EventBus';

import Modeling from '../../lib/features/modeling/Modeling';
import Modeling from '../features/modeling/Modeling';

export class AddShapeBehavior extends CommandInterceptor {
static $inject = [ 'eventBus', 'modeling' ];
Expand Down
6 changes: 3 additions & 3 deletions lib/command/CommandStack.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Diagram from '../../lib/Diagram';
import Diagram from '../Diagram';

import CommandModule from '../../lib/command';
import CommandStack from '../../lib/command/CommandStack';
import CommandModule from '.';
import CommandStack from './CommandStack';

import { AddShapeHandler } from './CommandHandler.spec';

Expand Down
4 changes: 2 additions & 2 deletions lib/core/Canvas.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Diagram from '../../lib/Diagram';
import Diagram from '../Diagram';

import CoreModule from '../../lib/core';
import CoreModule from '.';
import Canvas from './Canvas';
import ElementFactory from './ElementFactory';

Expand Down
6 changes: 3 additions & 3 deletions lib/core/ElementFactory.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Diagram from '../../lib/Diagram';
import Diagram from '../Diagram';

import CoreModule from '../../lib/core';
import ElementFactory from '../../lib/core/ElementFactory';
import CoreModule from '.';
import ElementFactory from './ElementFactory';

const diagram = new Diagram({
modules: [
Expand Down
2 changes: 1 addition & 1 deletion lib/core/ElementRegistry.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Diagram from '../../lib/Diagram';
import Diagram from '../Diagram';

import CoreModule from '.';
import ElementFactory from './ElementFactory';
Expand Down
2 changes: 1 addition & 1 deletion lib/core/EventBus.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Diagram from '../../lib/Diagram';
import Diagram from '../Diagram';

import CoreModule from '.';
import EventBus, { Event } from './EventBus';
Expand Down
2 changes: 1 addition & 1 deletion lib/core/GraphicsFactory.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Diagram from '../../lib/Diagram';
import Diagram from '../Diagram';

import CoreModule from '.';
import ElementFactory from './ElementFactory';
Expand Down
6 changes: 3 additions & 3 deletions lib/draw/BaseRenderer.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Base, Connection, Shape } from '../model';

import Diagram from '../../lib/Diagram';
import Diagram from '../Diagram';

import CoreModule from '../../lib/core';
import ElementFactory from '../../lib/core/ElementFactory';
import CoreModule from '../core';
import ElementFactory from '../core/ElementFactory';
import GraphicsFactory from '../core/GraphicsFactory';

import BaseRenderer from './BaseRenderer';
Expand Down
2 changes: 1 addition & 1 deletion lib/features/modeling/Modeling.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Diagram from '../../../lib/Diagram';
import Diagram from '../../Diagram';

import CoreModule from '.';
import ElementFactory from '../../core/ElementFactory';
Expand Down
2 changes: 1 addition & 1 deletion lib/features/overlays/Overlays.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Diagram from '../../../lib/Diagram';
import Diagram from '../../Diagram';

import CoreModule from '.';
import ElementFactory from '../../core/ElementFactory';
Expand Down

0 comments on commit 2014bba

Please sign in to comment.