mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-04-24 11:50:17 +08:00
fix circle
This commit is contained in:
parent
1c27474776
commit
500888e839
@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
|
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||||
|
|
||||||
export interface CameraPreviewDimensions {
|
export interface CameraPreviewDimensions {
|
||||||
/** The width of the camera preview, default to window.screen.width */
|
/** The width of the camera preview, default to window.screen.width */
|
||||||
@ -131,12 +131,12 @@ export interface CameraPreviewPictureOptions {
|
|||||||
pluginName: 'CameraPreview',
|
pluginName: 'CameraPreview',
|
||||||
plugin: 'cordova-plugin-camera-preview',
|
plugin: 'cordova-plugin-camera-preview',
|
||||||
pluginRef: 'CameraPreview',
|
pluginRef: 'CameraPreview',
|
||||||
repo: 'https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview',
|
repo:
|
||||||
|
'https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview',
|
||||||
platforms: ['Android', 'iOS']
|
platforms: ['Android', 'iOS']
|
||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class CameraPreview extends IonicNativePlugin {
|
export class CameraPreview extends IonicNativePlugin {
|
||||||
|
|
||||||
FOCUS_MODE = {
|
FOCUS_MODE = {
|
||||||
FIXED: 'fixed',
|
FIXED: 'fixed',
|
||||||
AUTO: 'auto',
|
AUTO: 'auto',
|
||||||
@ -189,35 +189,45 @@ export class CameraPreview extends IonicNativePlugin {
|
|||||||
successIndex: 1,
|
successIndex: 1,
|
||||||
errorIndex: 2
|
errorIndex: 2
|
||||||
})
|
})
|
||||||
startCamera(options: CameraPreviewOptions): Promise<any> { return; }
|
startCamera(options: CameraPreviewOptions): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stops the camera preview instance. (iOS & Android)
|
* Stops the camera preview instance. (iOS & Android)
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
stopCamera(): Promise<any> { return; }
|
stopCamera(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Switch from the rear camera and front camera, if available.
|
* Switch from the rear camera and front camera, if available.
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
switchCamera(): Promise<any> { return; }
|
switchCamera(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hide the camera preview box.
|
* Hide the camera preview box.
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
hide(): Promise<any> { return; }
|
hide(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show the camera preview box.
|
* Show the camera preview box.
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
show(): Promise<any> { return; }
|
show(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Take the picture (base64)
|
* Take the picture (base64)
|
||||||
@ -228,7 +238,9 @@ export class CameraPreview extends IonicNativePlugin {
|
|||||||
successIndex: 1,
|
successIndex: 1,
|
||||||
errorIndex: 2
|
errorIndex: 2
|
||||||
})
|
})
|
||||||
takePicture(options?: CameraPreviewPictureOptions): Promise<any> { return; }
|
takePicture(options?: CameraPreviewPictureOptions): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -241,7 +253,9 @@ export class CameraPreview extends IonicNativePlugin {
|
|||||||
successIndex: 1,
|
successIndex: 1,
|
||||||
errorIndex: 2
|
errorIndex: 2
|
||||||
})
|
})
|
||||||
setColorEffect(effect: string): Promise<any> { return; }
|
setColorEffect(effect: string): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the zoom (Android)
|
* Set the zoom (Android)
|
||||||
@ -252,21 +266,27 @@ export class CameraPreview extends IonicNativePlugin {
|
|||||||
successIndex: 1,
|
successIndex: 1,
|
||||||
errorIndex: 2
|
errorIndex: 2
|
||||||
})
|
})
|
||||||
setZoom(zoom?: number): Promise<any> { return; }
|
setZoom(zoom?: number): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the maximum zoom (Android)
|
* Get the maximum zoom (Android)
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
getMaxZoom(): Promise<any> { return; }
|
getMaxZoom(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get current zoom (Android)
|
* Get current zoom (Android)
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
getZoom(): Promise<any> { return; }
|
getZoom(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the preview Size
|
* Set the preview Size
|
||||||
@ -277,14 +297,18 @@ export class CameraPreview extends IonicNativePlugin {
|
|||||||
successIndex: 1,
|
successIndex: 1,
|
||||||
errorIndex: 2
|
errorIndex: 2
|
||||||
})
|
})
|
||||||
setPreviewSize(dimensions?: CameraPreviewDimensions): Promise<any> { return; }
|
setPreviewSize(dimensions?: CameraPreviewDimensions): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get focus mode
|
* Get focus mode
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
getFocusMode(): Promise<any> { return; }
|
getFocusMode(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the focus mode
|
* Set the focus mode
|
||||||
@ -295,21 +319,27 @@ export class CameraPreview extends IonicNativePlugin {
|
|||||||
successIndex: 1,
|
successIndex: 1,
|
||||||
errorIndex: 2
|
errorIndex: 2
|
||||||
})
|
})
|
||||||
setFocusMode(focusMode?: string): Promise<any> { return; }
|
setFocusMode(focusMode?: string): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get supported focus modes
|
* Get supported focus modes
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
getSupportedFocusModes(): Promise<any> { return; }
|
getSupportedFocusModes(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the current flash mode
|
* Get the current flash mode
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
getFlashMode(): Promise<any> { return; }
|
getFlashMode(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the flashmode
|
* Set the flashmode
|
||||||
@ -320,35 +350,45 @@ export class CameraPreview extends IonicNativePlugin {
|
|||||||
successIndex: 1,
|
successIndex: 1,
|
||||||
errorIndex: 2
|
errorIndex: 2
|
||||||
})
|
})
|
||||||
setFlashMode(flashMode?: string): Promise<any> { return; }
|
setFlashMode(flashMode?: string): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get supported flash modes
|
* Get supported flash modes
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
getSupportedFlashModes(): Promise<any> { return; }
|
getSupportedFlashModes(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get supported picture sizes
|
* Get supported picture sizes
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
getSupportedPictureSizes(): Promise<any> { return; }
|
getSupportedPictureSizes(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get exposure mode
|
* Get exposure mode
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
getExposureMode(): Promise<any> { return; }
|
getExposureMode(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get exposure modes
|
* Get exposure modes
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
getExposureModes(): Promise<any> { return; }
|
getExposureModes(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set exposure mode
|
* Set exposure mode
|
||||||
@ -359,14 +399,18 @@ export class CameraPreview extends IonicNativePlugin {
|
|||||||
successIndex: 1,
|
successIndex: 1,
|
||||||
errorIndex: 2
|
errorIndex: 2
|
||||||
})
|
})
|
||||||
setExposureMode(lock?: string): Promise<any> { return; }
|
setExposureMode(lock?: string): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get exposure compensation (Android)
|
* Get exposure compensation (Android)
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
getExposureCompensation(): Promise<any> { return; }
|
getExposureCompensation(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set exposure compensation (Android)
|
* Set exposure compensation (Android)
|
||||||
@ -377,14 +421,18 @@ export class CameraPreview extends IonicNativePlugin {
|
|||||||
successIndex: 1,
|
successIndex: 1,
|
||||||
errorIndex: 2
|
errorIndex: 2
|
||||||
})
|
})
|
||||||
setExposureCompensation(exposureCompensation?: number): Promise<any> { return; }
|
setExposureCompensation(exposureCompensation?: number): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get exposure compensation range (Android)
|
* Get exposure compensation range (Android)
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
getExposureCompensationRange(): Promise<any> { return; }
|
getExposureCompensationRange(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set specific focus point. Note, this assumes the camera is full-screen.
|
* Set specific focus point. Note, this assumes the camera is full-screen.
|
||||||
@ -393,13 +441,16 @@ export class CameraPreview extends IonicNativePlugin {
|
|||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
tapToFocus(xPoint: number, yPoint: number): Promise<any> { return; }
|
tapToFocus(xPoint: number, yPoint: number): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a listener for the back event for the preview
|
* Add a listener for the back event for the preview
|
||||||
* @return {Promise<any>} if backbutton pressed
|
* @return {Promise<any>} if backbutton pressed
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
onBackButton(): Promise<any> { return; }
|
onBackButton(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user