moved graphs component to lib
This commit is contained in:
|
Before Width: | Height: | Size: 223 B After Width: | Height: | Size: 223 B |
@@ -21,22 +21,21 @@ import * as Shape from 'd3-shape';
|
|||||||
import * as Random from 'd3-random';
|
import * as Random from 'd3-random';
|
||||||
import * as Drag from 'd3-drag';
|
import * as Drag from 'd3-drag';
|
||||||
|
|
||||||
import { environment as env } from '../../environments/environment';
|
import { Graph } from './../models/graph.model';
|
||||||
import { Graph } from './../../../projects/nls-guilloche/src/lib/models/graph.model';
|
import { Config } from './../models/config.model';
|
||||||
import { Config } from './../../../projects/nls-guilloche/src/lib/models/config.model';
|
import { Point } from './../models/point.model';
|
||||||
import { Point } from './../../../projects/nls-guilloche/src/lib/models/point.model';
|
import { NlsCanvasService } from './../services/canvas.service';
|
||||||
import { NlsCanvasService } from './../../../projects/nls-guilloche/src/lib/services/canvas.service';
|
import { NlsHistoryService } from './../services/history.service';
|
||||||
import { NlsHistoryService } from './../../../projects/nls-guilloche/src/lib/services/history.service';
|
import { NlsMathService } from './../services/math.service';
|
||||||
import { NlsMathService } from './../../../projects/nls-guilloche/src/lib/services/math.service';
|
import { NlsGuillocheDirective } from './../directives/guilloche.directive';
|
||||||
import { NlsGuillocheDirective } from './../../../projects/nls-guilloche/src/lib/directives/guilloche.directive';
|
import { NlsGraphService } from './../services/graph.service';
|
||||||
import { NlsGraphService } from './../../../projects/nls-guilloche/src/lib/services/graph.service';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-graphs',
|
selector: 'nls-graphs',
|
||||||
templateUrl: './graphs.component.html',
|
templateUrl: './graphs.component.html',
|
||||||
styleUrls: ['./graphs.component.scss']
|
styleUrls: ['./graphs.component.scss']
|
||||||
})
|
})
|
||||||
export class GraphsComponent implements OnChanges, OnInit {
|
export class NlsGraphsComponent implements OnChanges, OnInit {
|
||||||
|
|
||||||
public canvas: any | null;
|
public canvas: any | null;
|
||||||
public matrix: any | null;
|
public matrix: any | null;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
<app-graphs [config]="config" [restoredHistory]="restoredHistory" (svgChange)="prepareSvgExport($event)" [animation]="animationActive"></app-graphs>
|
<nls-graphs [config]="config" [restoredHistory]="restoredHistory" (svgChange)="prepareSvgExport($event)" [animation]="animationActive"></nls-graphs>
|
||||||
|
|
||||||
<aside class="col-sm-4 col-lg-3 col-xl-3">
|
<aside class="col-sm-4 col-lg-3 col-xl-3">
|
||||||
<div class="aside-inner">
|
<div class="aside-inner">
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import { ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|||||||
import { MomentModule } from 'ngx-moment';
|
import { MomentModule } from 'ngx-moment';
|
||||||
|
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
import { GraphsComponent } from './components/graphs.component';
|
import { NlsGraphsComponent } from './../../projects/nls-guilloche/src/lib/components/graphs.component';
|
||||||
import { NlsGuillocheDirective } from './../../projects/nls-guilloche/src/lib/directives/guilloche.directive';
|
import { NlsGuillocheDirective } from './../../projects/nls-guilloche/src/lib/directives/guilloche.directive';
|
||||||
import { NlsCanvasService } from './../../projects/nls-guilloche/src/lib/services/canvas.service';
|
import { NlsCanvasService } from './../../projects/nls-guilloche/src/lib/services/canvas.service';
|
||||||
import { NlsHistoryService } from './../../projects/nls-guilloche/src/lib/services/history.service';
|
import { NlsHistoryService } from './../../projects/nls-guilloche/src/lib/services/history.service';
|
||||||
@@ -32,12 +32,11 @@ import { NlsGraphService } from './../../projects/nls-guilloche/src/lib/services
|
|||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
AppComponent,
|
AppComponent,
|
||||||
GraphsComponent,
|
NlsGraphsComponent,
|
||||||
NlsGuillocheDirective
|
NlsGuillocheDirective
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
// BrowserAnimationsModule,
|
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
MomentModule,
|
MomentModule,
|
||||||
|
|||||||
Reference in New Issue
Block a user