| @@ -1 +0,0 @@ | |||
| <p>magnetic-recycling-queen works!</p> | |||
| @@ -1,25 +0,0 @@ | |||
| import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | |||
| import { MagneticRecyclingQueenComponent } from './magnetic-recycling-queen.component'; | |||
| describe('MagneticRecyclingQueenComponent', () => { | |||
| let component: MagneticRecyclingQueenComponent; | |||
| let fixture: ComponentFixture<MagneticRecyclingQueenComponent>; | |||
| beforeEach(async(() => { | |||
| TestBed.configureTestingModule({ | |||
| declarations: [ MagneticRecyclingQueenComponent ] | |||
| }) | |||
| .compileComponents(); | |||
| })); | |||
| beforeEach(() => { | |||
| fixture = TestBed.createComponent(MagneticRecyclingQueenComponent); | |||
| component = fixture.componentInstance; | |||
| fixture.detectChanges(); | |||
| }); | |||
| it('should create', () => { | |||
| expect(component).toBeTruthy(); | |||
| }); | |||
| }); | |||
| @@ -1,15 +0,0 @@ | |||
| import { Component, OnInit } from '@angular/core'; | |||
| @Component({ | |||
| selector: 'app-magnetic-recycling-queen', | |||
| templateUrl: './magnetic-recycling-queen.component.html', | |||
| styleUrls: ['./magnetic-recycling-queen.component.css'] | |||
| }) | |||
| export class MagneticRecyclingQueenComponent implements OnInit { | |||
| constructor() { } | |||
| ngOnInit(): void { | |||
| } | |||
| } | |||
| @@ -1,6 +1,4 @@ | |||
| import { Component, OnInit } from '@angular/core'; | |||
| import * as jspdf from 'jspdf'; | |||
| import html2canvas from 'html2canvas'; | |||
| export type Star = 0 | 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 4.5 | 5; | |||
| export const STAR_CLASS_MAP = { | |||
| @@ -205,23 +203,6 @@ export class ResumeComponent implements OnInit { | |||
| ngOnInit(): void { | |||
| } | |||
| public captureScreen() { | |||
| debugger; | |||
| let data = document.getElementById('contentToConvert'); | |||
| html2canvas(data).then(canvas => { | |||
| // Few necessary setting options | |||
| let imgWidth = 208; | |||
| let pageHeight = 295; | |||
| let imgHeight = canvas.height * imgWidth / canvas.width; | |||
| let heightLeft = imgHeight; | |||
| const contentDataURL = canvas.toDataURL('image/png') | |||
| let pdf = new jspdf('p', 'mm', 'a4'); // A4 size page of PDF | |||
| let position = 0; | |||
| pdf.addImage(contentDataURL, 'PNG', 0, position, imgWidth, imgHeight) | |||
| pdf.save('MYPdf.pdf'); // Generated PDF | |||
| }); | |||
| } | |||
| getStarClass(starCount: Star, starIndex: number) { | |||
| const starSizes: number[] = []; | |||