|
|
@@ -1,5 +1,5 @@ |
|
|
|
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'; |
|
|
|
import { ModalController } from '@ionic/angular'; |
|
|
|
import { Location } from '@angular/common'; |
|
|
|
import { IJeelizFaceFilter } from 'vendors/jeelizFaceFilter/typescript/JeelizFaceFilterInterfaces'; |
|
|
|
import { SocialSharing } from '@ionic-native/social-sharing/ngx'; |
|
|
|
|
|
|
@@ -29,15 +29,15 @@ export class ArFanCamPage implements OnInit { |
|
|
|
glassesLensMeshLoaded: boolean = false; |
|
|
|
|
|
|
|
constructor( |
|
|
|
private modalController: ModalController, |
|
|
|
private socialSharing: SocialSharing |
|
|
|
private socialSharing: SocialSharing, |
|
|
|
private location: Location |
|
|
|
) { |
|
|
|
} |
|
|
|
|
|
|
|
back() { |
|
|
|
JEELIZFACEFILTER.destroy(); |
|
|
|
this.camLoaded = false; |
|
|
|
this.modalController.dismiss(); |
|
|
|
this.location.back(); |
|
|
|
} |
|
|
|
|
|
|
|
// AR Face detection and drawing |
|
|
@@ -229,10 +229,7 @@ export class ArFanCamPage implements OnInit { |
|
|
|
} |
|
|
|
|
|
|
|
approveImage() { |
|
|
|
|
|
|
|
this.modalController.dismiss({ |
|
|
|
imageData: this.tempImg |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|