scandit-cordova-datacapture-text
Advanced tools
Comparing version 6.25.0 to 6.26.0-beta.1
@@ -9,8 +9,17 @@ import { Quadrilateral, QuadrilateralJSON } from 'scandit-datacapture-frameworks-core'; | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
export declare class CapturedText { | ||
private _value; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
get value(): string; | ||
private _location; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
get location(): Quadrilateral; | ||
private static fromJSON; | ||
} |
@@ -11,8 +11,29 @@ import { CameraSettings } from 'scandit-datacapture-frameworks-core'; | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
export declare class TextCapture extends DefaultSerializeable implements DataCaptureMode { | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
get isEnabled(): boolean; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
set isEnabled(isEnabled: boolean); | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
get context(): DataCaptureContext | null; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
static get recommendedCameraSettings(): CameraSettings; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
get feedback(): TextCaptureFeedback; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
set feedback(feedback: TextCaptureFeedback); | ||
@@ -27,6 +48,18 @@ private type; | ||
private isInListenerCallback; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
static forContext(context: DataCaptureContext | null, settings: TextCaptureSettings): TextCapture; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
applySettings(settings: TextCaptureSettings): Promise<void>; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
addListener(listener: TextCaptureListener): void; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
removeListener(listener: TextCaptureListener): void; | ||
} |
@@ -15,10 +15,25 @@ import { CapturedText, CapturedTextJSON } from './CapturedText'; | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
export declare class TextCaptureSession { | ||
private _newlyCapturedTexts; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
get newlyCapturedTexts(): CapturedText[]; | ||
private _frameSequenceID; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
get frameSequenceID(): number; | ||
private static fromJSON; | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
export interface TextCaptureListener { | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
didCaptureText?(textCapture: TextCapture, session: TextCaptureSession): void; | ||
@@ -29,4 +44,13 @@ } | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
export declare class TextCaptureFeedback extends DefaultSerializeable { | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
success: Feedback; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
static get default(): TextCaptureFeedback; | ||
@@ -37,2 +61,5 @@ } | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
export declare class TextCaptureOverlay extends DefaultSerializeable implements DataCaptureOverlay { | ||
@@ -44,13 +71,40 @@ private type; | ||
private _viewfinder; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
static get defaultBrush(): Brush; | ||
private _brush; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
get brush(): Brush; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
set brush(newBrush: Brush); | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
get viewfinder(): Viewfinder | null; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
set viewfinder(newViewfinder: Viewfinder | null); | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
get shouldShowScanAreaGuides(): boolean; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
set shouldShowScanAreaGuides(shouldShow: boolean); | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
static withTextCapture(textCapture: TextCapture): TextCaptureOverlay; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
static withTextCaptureForView(textCapture: TextCapture, view: DataCaptureView | null): TextCaptureOverlay; | ||
private constructor(); | ||
} |
import { Direction } from 'scandit-datacapture-frameworks-core'; | ||
import { LocationSelection } from 'scandit-datacapture-frameworks-core'; | ||
import { DefaultSerializeable } from 'scandit-datacapture-frameworks-core'; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
export declare class TextCaptureSettings extends DefaultSerializeable { | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
duplicateFilter: number; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
locationSelection: LocationSelection | null; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
recognitionDirection: Direction; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
static fromJSON(json: { | ||
@@ -9,0 +24,0 @@ [key: string]: any; |
@@ -53,6 +53,15 @@ var scanditCordovaDatacaptureCore = require('scandit-cordova-datacapture-core.Core'); | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
class CapturedText { | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
get value() { | ||
return this._value; | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
get location() { | ||
@@ -62,2 +71,3 @@ return this._location; | ||
static fromJSON(json) { | ||
console.warn('Text Capture mode is deprecated.'); | ||
const text = new CapturedText(); | ||
@@ -99,6 +109,15 @@ text._value = json.value; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
class TextCaptureSession { | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
get newlyCapturedTexts() { | ||
return this._newlyCapturedTexts; | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
get frameSequenceID() { | ||
@@ -115,18 +134,41 @@ return this._frameSequenceID; | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
class TextCaptureFeedback extends scanditDatacaptureFrameworksCore.DefaultSerializeable { | ||
constructor() { | ||
super(...arguments); | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
this.success = scanditDatacaptureFrameworksCore.Feedback.defaultFeedback; | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
static get default() { | ||
console.warn('Text Capture mode is deprecated.'); | ||
return new TextCaptureFeedback(); | ||
} | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
class TextCaptureOverlay extends scanditDatacaptureFrameworksCore.DefaultSerializeable { | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
static get defaultBrush() { | ||
console.warn('Text Capture mode is deprecated.'); | ||
return new scanditDatacaptureFrameworksCore.Brush(Cordova.defaults.TextCapture.TextCaptureOverlay.DefaultBrush.fillColor, Cordova.defaults.TextCapture.TextCaptureOverlay.DefaultBrush.strokeColor, Cordova.defaults.TextCapture.TextCaptureOverlay.DefaultBrush.strokeWidth); | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
get brush() { | ||
return this._brush; | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
set brush(newBrush) { | ||
@@ -136,5 +178,11 @@ this._brush = newBrush; | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
get viewfinder() { | ||
return this._viewfinder; | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
set viewfinder(newViewfinder) { | ||
@@ -144,5 +192,11 @@ this._viewfinder = newViewfinder; | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
get shouldShowScanAreaGuides() { | ||
return this._shouldShowScanAreaGuides; | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
set shouldShowScanAreaGuides(shouldShow) { | ||
@@ -152,5 +206,11 @@ this._shouldShowScanAreaGuides = shouldShow; | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
static withTextCapture(textCapture) { | ||
return TextCaptureOverlay.withTextCaptureForView(textCapture, null); | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
static withTextCaptureForView(textCapture, view) { | ||
@@ -170,2 +230,3 @@ const overlay = new TextCaptureOverlay(); | ||
this._brush = TextCaptureOverlay.defaultBrush; | ||
console.warn('Text Capture mode is deprecated.'); | ||
} | ||
@@ -260,2 +321,5 @@ } | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
class TextCapture extends scanditDatacaptureFrameworksCore.DefaultSerializeable { | ||
@@ -271,5 +335,11 @@ constructor() { | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
get isEnabled() { | ||
return this._isEnabled; | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
set isEnabled(isEnabled) { | ||
@@ -280,11 +350,23 @@ var _a; | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
get context() { | ||
return this._context; | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
static get recommendedCameraSettings() { | ||
return new scanditDatacaptureFrameworksCore.CameraSettings(Cordova.defaults.TextCapture.RecommendedCameraSettings); | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
get feedback() { | ||
return this._feedback; | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
set feedback(feedback) { | ||
@@ -294,3 +376,7 @@ this._feedback = feedback; | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
static forContext(context, settings) { | ||
console.warn('Text Capture mode is deprecated.'); | ||
const textCapture = new TextCapture(); | ||
@@ -304,2 +390,5 @@ textCapture.settings = settings; | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
applySettings(settings) { | ||
@@ -309,2 +398,5 @@ this.settings = settings; | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
addListener(listener) { | ||
@@ -316,2 +408,5 @@ if (this.listeners.includes(listener)) { | ||
} | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
removeListener(listener) { | ||
@@ -343,3 +438,9 @@ if (!this.listeners.includes(listener)) { | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
class TextCaptureSettings extends scanditDatacaptureFrameworksCore.DefaultSerializeable { | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
static fromJSON(json) { | ||
@@ -354,5 +455,15 @@ const settings = new TextCaptureSettings(); | ||
super(); | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
this.duplicateFilter = Cordova.defaults.TextCapture.TextCaptureSettings.duplicateFilter; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
this.locationSelection = null; | ||
/** | ||
* @deprecated Text Capture mode is deprecated. | ||
*/ | ||
this.recognitionDirection = Cordova.defaults.TextCapture.TextCaptureSettings.recognitionDirection; | ||
console.warn('Text Capture mode is deprecated.'); | ||
} | ||
@@ -359,0 +470,0 @@ } |
{ | ||
"name": "scandit-cordova-datacapture-text", | ||
"version": "6.25.0", | ||
"version": "6.26.0-beta.1", | ||
"description": "Scandit Data Capture SDK for Cordova", | ||
@@ -24,4 +24,4 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"scandit-cordova-datacapture-core": "6.25.0", | ||
"scandit-datacapture-frameworks-core": "6.25.0" | ||
"scandit-cordova-datacapture-core": "6.26.0-beta.1", | ||
"scandit-datacapture-frameworks-core": "6.26.0-beta.1" | ||
}, | ||
@@ -28,0 +28,0 @@ "devDependencies": {}, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
102851
750
2
+ Addedscandit-cordova-datacapture-core@6.26.0-beta.1(transitive)
+ Addedscandit-datacapture-frameworks-core@6.26.0-beta.1(transitive)
- Removedscandit-cordova-datacapture-core@6.25.0(transitive)
- Removedscandit-datacapture-frameworks-core@6.25.0(transitive)