Socket
Socket
Sign inDemoInstall

scandit-datacapture-frameworks-core

Package Overview
Dependencies
1
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.21.2 to 6.22.0-beta.1

dist/dts/context/controller/DataCaptureContextController.d.ts

4

dist/dts/camera/Camera.d.ts

@@ -29,2 +29,6 @@ import { DataCaptureContext } from "../context";

getIsTorchAvailable(): Promise<boolean>;
/**
* @deprecated
*/
get isTorchAvailable(): boolean;
addListener(listener: FrameSourceListener | null): void;

@@ -31,0 +35,0 @@ removeListener(listener: FrameSourceListener | null): void;

3

dist/dts/camera/CameraController.d.ts

@@ -8,2 +8,3 @@ import { Camera } from "./Camera";

getCurrentCameraState(position: CameraPosition): Promise<FrameSourceState>;
switchCameraToDesiredState(desiredStateJson: string): Promise<void>;
isTorchAvailable(position: CameraPosition): Promise<boolean>;

@@ -13,3 +14,2 @@ registerListenerForCameraEvents(): void;

subscribeDidChangeState(): void;
unsubscribeDidChangeState(): void;
}

@@ -27,4 +27,5 @@ export declare class CameraController {

getIsTorchAvailable(): Promise<boolean>;
switchCameraToDesiredState(desiredState: FrameSourceState): Promise<void>;
subscribeListener(): void;
unsubscribeListener(): void;
}

@@ -7,2 +7,4 @@ import { DefaultSerializeable } from "../serializable";

private view;
private anchor;
private offset;
get torchOffImage(): string | null;

@@ -9,0 +11,0 @@ set torchOffImage(torchOffImage: string | null);

@@ -7,2 +7,4 @@ import { DefaultSerializeable } from "../serializable";

private view;
private anchor;
private offset;
get zoomedOutImage(): string | null;

@@ -9,0 +11,0 @@ set zoomedOutImage(zoomedOutImage: string | null);

@@ -5,3 +5,3 @@ import { BaseDataCaptureView } from "../view";

import { DataCaptureComponent } from "./DataCaptureComponent";
import { DataCaptureContextController } from "./DataCaptureContextController";
import { DataCaptureContextController } from "./controller/DataCaptureContextController";
import { DataCaptureContextCreationOptions } from "./DataCaptureContextCreationOptions";

@@ -14,4 +14,4 @@ import { DataCaptureContextListener } from "./DataCaptureContextListener";

private deviceName;
private framework;
private frameworkVersion;
private get framework();
private get frameworkVersion();
private settings;

@@ -21,3 +21,2 @@ private _frameSource;

private modes;
private components;
private controller;

@@ -28,2 +27,6 @@ private listeners;

static get deviceID(): string | null;
/**
* @deprecated
*/
get deviceID(): string | null;
static forLicenseKey(licenseKey: string): DataCaptureContext;

@@ -43,3 +46,2 @@ static forLicenseKeyWithSettings(licenseKey: string, settings: DataCaptureContextSettings | null): DataCaptureContext;

private update;
private addComponent;
}

@@ -54,3 +56,2 @@ export interface PrivateDataCaptureContext {

initialize(): void;
addComponent: (component: DataCaptureComponent) => Promise<void>;
}

@@ -6,3 +6,3 @@ export { ContextStatus } from "./ContextStatus";

export { DataCaptureContext } from "./DataCaptureContext";
export { DataCaptureContextProxy, DataCaptureContextEvents } from "./DataCaptureContextController";
export { DataCaptureContextProxy, DataCaptureContextEvents } from "./controller/DataCaptureContextController";
export { DataCaptureMode } from "./DataCaptureMode";

@@ -9,0 +9,0 @@ export { DataCaptureContextListener } from "./DataCaptureContextListener";

export { Vibration, WaveFormVibration } from "./Vibration";
export { VibrationType } from "./VibrationType";
export { Sound } from "./Sound";

@@ -3,0 +4,0 @@ export { Feedback } from "./Feedback";

import { DefaultSerializeable } from "../serializable";
import { VibrationType } from "./VibrationType";
export interface VibrationJSON {

@@ -15,11 +16,6 @@ type: string;

static get successHapticFeedback(): Vibration;
static get impactHapticFeedback(): Vibration;
private static fromJSON;
protected constructor(type: VibrationType);
}
export declare enum VibrationType {
default = "default",
selectionHaptic = "selectionHaptic",
successHaptic = "successHaptic",
waveForm = "waveForm"
}
export declare class WaveFormVibration extends Vibration {

@@ -26,0 +22,0 @@ private _timings;

@@ -6,2 +6,3 @@ import { FrameSourceState } from "./FrameSourceState";

getCurrentCameraState(position: CameraPosition): Promise<FrameSourceState>;
switchCameraToDesiredState(desiredStateJson: string): Promise<void>;
registerListenerForEvents(): void;

@@ -18,4 +19,5 @@ unregisterListenerForEvents(): void;

getCurrentState(): Promise<FrameSourceState>;
switchCameraToDesiredState(desiredStateJson: string): Promise<void>;
subscribeListener(): void;
unsubscribeListener(): void;
}

@@ -7,4 +7,4 @@ export { FrameSource } from "./FrameSource";

export { ImageFrameSource } from "./ImageFrameSource";
export { ImageFrameSourceProxy } from "./ImageFrameSourceController";
export { ImageFrameSourceProxy, } from "./ImageFrameSourceController";
export { PrivateImageBuffer, ImageBufferJSON } from "./ImageBuffer";
export { PrivateFrameData, FrameDataJSON } from "./FrameData";
import { BaseDataCaptureView } from "./DataCaptureView";
import { Anchor, PointWithUnit } from "../common";
export interface Control {

@@ -6,2 +7,4 @@ }

view: BaseDataCaptureView | null;
anchor: Anchor | null;
offset: PointWithUnit | null;
}

@@ -0,3 +1,4 @@

import { Serializeable } from "../serializable";
import { BaseDataCaptureView } from "./DataCaptureView";
export interface DataCaptureOverlay {
export interface DataCaptureOverlay extends Serializeable {
}

@@ -4,0 +5,0 @@ export interface PrivateDataCaptureOverlay {

@@ -16,9 +16,23 @@ import { DefaultSerializeable } from "../serializable";

private get coreDefaults();
scanAreaMargins: MarginsWithUnit;
pointOfInterest: PointWithUnit;
logoAnchor: Anchor;
logoOffset: PointWithUnit;
focusGesture: FocusGesture | null;
zoomGesture: ZoomGesture | null;
logoStyle: LogoStyle;
private _scanAreaMargins;
get scanAreaMargins(): MarginsWithUnit;
set scanAreaMargins(newValue: MarginsWithUnit);
private _pointOfInterest;
get pointOfInterest(): PointWithUnit;
set pointOfInterest(newValue: PointWithUnit);
private _logoAnchor;
get logoAnchor(): Anchor;
set logoAnchor(newValue: Anchor);
private _logoOffset;
get logoOffset(): PointWithUnit;
set logoOffset(newValue: PointWithUnit);
private _focusGesture;
get focusGesture(): FocusGesture | null;
set focusGesture(newValue: FocusGesture | null);
private _zoomGesture;
get zoomGesture(): ZoomGesture | null;
set zoomGesture(newValue: ZoomGesture | null);
private _logoStyle;
get logoStyle(): LogoStyle;
set logoStyle(newValue: LogoStyle);
overlays: DataCaptureOverlay[];

@@ -38,2 +52,3 @@ private controls;

addControl(control: Control): void;
addControlWithAnchorAndOffset(control: Control, anchor: Anchor, offset: PointWithUnit): void;
removeControl(control: Control): void;

@@ -40,0 +55,0 @@ controlUpdated(): void;

import { Point, Quadrilateral } from "../common";
import { BaseDataCaptureView } from "./DataCaptureView";
import { BaseController } from "../BaseController";
import { DataCaptureOverlay } from "./DataCaptureOverlay";
export interface DataCaptureViewProxy {

@@ -13,2 +14,7 @@ viewPointForFramePoint(pointJson: string): Promise<string>;

hide(): Promise<void>;
createView(viewJson: string): Promise<void>;
updateView(viewJson: string): Promise<void>;
addOverlay(overlayJson: string): Promise<void>;
removeOverlay(overlayJson: string): Promise<void>;
removeAllOverlays(): Promise<void>;
}

@@ -27,5 +33,10 @@ export declare enum DataCaptureViewEvents {

hide(): Promise<void>;
private createView;
updateView(): Promise<void>;
dispose(): void;
addOverlay(overlay: DataCaptureOverlay): Promise<void>;
removeOverlay(overlay: DataCaptureOverlay): Promise<void>;
removeAllOverlays(): Promise<void>;
subscribeListener(): void;
unsubscribeListener(): void;
}
{
"name": "scandit-datacapture-frameworks-core",
"version": "6.21.2",
"version": "6.22.0-beta.1",
"description": "Core common package",

@@ -13,4 +13,6 @@ "author": {

"scripts": {
"prebuild": "npm run clean",
"build": "rollup -c rollup.config.js --bundleConfigAsCjs",
"clean": "rimraf .rollup.cache dist"
"clean": "rimraf .rollup.cache dist",
"prepack": "npm run build"
},

@@ -17,0 +19,0 @@ "dependencies": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc