Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
fix(core): fix circular dep
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Apr 21, 2021
1 parent ef61623 commit b04273d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 47 deletions.
6 changes: 2 additions & 4 deletions packages/core/lines/src/lib/line-loop/line-loop.directive.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { ThreeObject3d } from '@angular-three/core';
import { ThreeLine } from '@angular-three/core/lines';
import { Directive } from '@angular/core';
import { LineLoop } from 'three';
import { ThreeLine } from '../abstracts';

@Directive({
selector: 'ngt-lineLoop',
exportAs: 'ngtLineLoop',
providers: [
{ provide: ThreeObject3d, useExisting: LineLoopDirective },
],
providers: [{ provide: ThreeObject3d, useExisting: LineLoopDirective }],
})
export class LineLoopDirective extends ThreeLine<LineLoop> {
lineType = LineLoop;
Expand Down
18 changes: 5 additions & 13 deletions packages/core/lines/src/lib/line-loop/line-loop.module.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { LineLoopDirective } from './line-loop.directive';



@NgModule({
declarations: [
LineLoopDirective
],
imports: [
CommonModule
],
exports: [
LineLoopDirective
]
declarations: [LineLoopDirective],
imports: [CommonModule],
exports: [LineLoopDirective],
})
export class LineLoopModule { }
export class LineLoopModule {}
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { ThreeObject3d } from '@angular-three/core';
import { ThreeLine } from '@angular-three/core/lines';
import { Directive } from '@angular/core';
import { LineSegments } from 'three';
import { ThreeLine } from '../abstracts';

@Directive({
selector: 'ngt-lineSegments',
exportAs: 'ngtLineSegments',
providers: [
{ provide: ThreeObject3d, useExisting: LineSegmentsDirective },
],
providers: [{ provide: ThreeObject3d, useExisting: LineSegmentsDirective }],
})
export class LineSegmentsDirective extends ThreeLine<LineSegments> {
lineType = LineSegments;
Expand Down
18 changes: 5 additions & 13 deletions packages/core/lines/src/lib/line-segments/line-segments.module.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { LineSegmentsDirective } from './line-segments.directive';



@NgModule({
declarations: [
LineSegmentsDirective
],
imports: [
CommonModule
],
exports: [
LineSegmentsDirective
]
declarations: [LineSegmentsDirective],
imports: [CommonModule],
exports: [LineSegmentsDirective],
})
export class LineSegmentsModule { }
export class LineSegmentsModule {}
18 changes: 5 additions & 13 deletions packages/core/lines/src/lib/line/line.module.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { LineDirective } from './line.directive';



@NgModule({
declarations: [
LineDirective
],
imports: [
CommonModule
],
exports: [
LineDirective
]
declarations: [LineDirective],
imports: [CommonModule],
exports: [LineDirective],
})
export class LineModule { }
export class LineModule {}

0 comments on commit b04273d

Please sign in to comment.