Socket
Socket
Sign inDemoInstall

cube-dynamsoft-camera-enhancer

Package Overview
Dependencies
1
Maintainers
4
Versions
440
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.20220915100428.0 to 0.20220928143753.0

51

dist/types/class/cameraenhancer.d.ts

@@ -10,3 +10,3 @@ import { PlayCallbackInfo } from '../interface/playcallbackinfo';

import { Warning } from '../interface/warning';
import { EnumPixelFormat } from '../enum/enumPixelFormat';
declare type PixelFormat = "grey" | "grey32" | "rgba" | "rbga" | "grba" | "gbra" | "brga" | "bgra";
export default class CameraEnhancer implements ImageSource {

@@ -50,2 +50,8 @@ private static _jsVersion;

static isStorageAvailable(type: string): boolean;
/**
* See:
* https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getSupportedConstraints
* @returns
*/
static getSupportedConstraints(): MediaTrackSupportedConstraints;
/** @ignore */

@@ -147,13 +153,19 @@ static isDCEFrame(value: any): boolean;

private styleEls;
private _frameColorMode;
private _defaultFrameColorMode;
/**
* Set 'getFrame()' target color mode.
* Supported vaule: 'rgba', 'rbga', 'grba', 'gbra', 'brga', 'bgra', 'grey'.
* @deprecated
*/
set frameColorMode(value: string);
get frameColorMode(): string;
set frameColorMode(value: PixelFormat);
get frameColorMode(): PixelFormat;
private _framePixelFormat;
private _defaultFramePixelFormat;
/**
* Set 'getFrame()' target color mode.
* Supported vaule: 'rgba', 'rbga', 'grba', 'gbra', 'brga', 'bgra', 'grey'.
*/
set framePixelFormat(value: PixelFormat);
get framePixelFormat(): PixelFormat;
private mapPixelFormatString_Enum;
private mapPixelFormatEnum_String;
private currentFSColorMode;
private shaderPixelFormat;
ifReuseArrayBufferView: boolean;

@@ -169,4 +181,2 @@ maxVideoCvsLength: number;

private _softwareScale;
private _updateScaledImgTimeoutId;
private _bufferContainer;
private _recordedStates;

@@ -184,3 +194,7 @@ playCallbackInfo: PlayCallbackInfo;

readonly isCameraEnhancer: boolean;
/**
* @deprecated
*/
readonly isDisposed: boolean;
readonly disposed: boolean;
/**

@@ -239,3 +253,3 @@ * Set src to video element to play static video.

*/
_showEleClassName(): void;
_showElClassName(): void;
/**

@@ -245,3 +259,3 @@ * For debug.

*/
_hideEleClassName(): void;
_hideElClassName(): void;
/** @ignore */

@@ -514,2 +528,4 @@ _cvsScanRegion: HTMLCanvasElement;

static createInstance(config?: any): Promise<CameraEnhancer>;
private static playVideo;
private static findBestRearCamera;
/**

@@ -584,3 +600,3 @@ *

*/
getAllCameras(notForceGet?: boolean): Promise<VideoDeviceInfo[]>;
getAllCameras(force?: boolean): Promise<VideoDeviceInfo[]>;
private _renderSelCameraInfo;

@@ -636,3 +652,3 @@ /**

*/
getResolutions(forceGet?: boolean): Promise<Array<Array<number>>>;
getResolutions(force?: boolean): Promise<Array<Array<number>>>;
private readonly mapCameraEvents;

@@ -702,8 +718,2 @@ /**

/**
* See:
* https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getSupportedConstraints
* @returns
*/
getSupportedConstraints(): MediaTrackSupportedConstraints;
/**
* Get the camera capabilities. Unavailable in Firefox.

@@ -906,3 +916,3 @@ * Only available when the camera is open.

region?: Region;
pixelFormat?: EnumPixelFormat;
pixelFormat?: PixelFormat;
scale?: number;

@@ -978,2 +988,3 @@ }): DCEFrame;

}
export {};
//# sourceMappingURL=cameraenhancer.d.ts.map

@@ -16,3 +16,3 @@ import { Note } from '../../interface/Note';

protected mapEvents: Map<string, Function[]>;
protected _notes: Array<Note>;
protected mapNoteName_Content: Map<string, Array<any>>;
readonly isDrawingItem: boolean;

@@ -25,9 +25,8 @@ constructor(fabricObject: fabric.Object, styleId?: number);

_setEditable(editable: boolean): void;
hasNote(noteOrNoteName: Note | string): boolean;
addNote(note: Note, force?: boolean): void;
addNoteContent(name: string, content: any): void;
addNotes(notes: Array<Note>): void;
hasNote(name: string): boolean;
addNote(note: Note, replace?: boolean): void;
getNote(name: string): Note;
getNotes(): Array<Note>;
updateNote(name: string, content: any): boolean;
updateNote(name: string, content: any, mergeContent?: boolean): void;
deleteNote(name: string): void;
clearNotes(): void;

@@ -37,4 +36,4 @@ protected _extendSet(property: string, value: any): boolean;

set(property: string, value: any): void;
get(property: any): any;
get(property: string): any;
}
//# sourceMappingURL=drawingitem.d.ts.map
import { fabric } from "dm-fabric";
import { DrawingItem } from "./drawingItem";
import { DrawingStyle } from "../interface/drawingstyle";
import { Note } from "../interface/Note";
export default class DrawingLayer {

@@ -53,8 +52,3 @@ fabricCanvas: fabric.Canvas;

setDrawingItems(drawingItems: Array<DrawingItem>): void;
getDrawingItems(conditions?: {
mediaType?: string;
styleSelector?: string;
note?: Note;
noteName?: string;
}): Array<DrawingItem>;
getDrawingItems(filter?: ((item: DrawingItem) => boolean)): Array<DrawingItem>;
getSelectedDrawingItems(): Array<DrawingItem>;

@@ -61,0 +55,0 @@ hasDrawingItem(drawingItem: DrawingItem): boolean;

import { Region } from './region';
export interface DCEFrame {
import { DSImage } from './dsimage';
export interface DCEFrame extends DSImage {
data: Uint8Array;

@@ -9,3 +10,8 @@ region: Region;

height: number;
stride?: number;
/**
* @deprecated
*/
colorMode: string;
pixelFormat: string;
timeSpent: number;

@@ -12,0 +18,0 @@ timeStamp: number;

@@ -5,4 +5,5 @@ export interface DSImage {

height: number;
stride?: number;
pixelFormat: string;
}
//# sourceMappingURL=dsimage.d.ts.map

@@ -8,6 +8,6 @@ export declare class Matrix3 {

static identity(): number[];
static translation(matrix: Array<number>, tx: number, ty: number): number[];
static rotation(matrix: Array<number>, angleInRadians: number): number[];
static scaling(matrix: Array<number>, sx: number, sy: number): number[];
static translate(matrix: Array<number>, tx: number, ty: number): number[];
static rotate(matrix: Array<number>, angleInRadians: number): number[];
static scale(matrix: Array<number>, sx: number, sy: number): number[];
}
//# sourceMappingURL=Matrix3.d.ts.map
{
"name": "cube-dynamsoft-camera-enhancer",
"version": "0.20220915100428.0",
"version": "0.20220928143753.0",
"description": "Allow your website to easily control cameras on desktop and mobile devices.",

@@ -36,4 +36,6 @@ "private": false,

"test": "echo \"Error: no test specified\" && exit 1",
"build-dev": "rollup -c --environment BUILD:development",
"build": "rollup -c --environment BUILD:production",
"rollup-dev": "rollup -c --environment BUILD:development",
"rollup": "rollup -c --environment BUILD:production",
"build-dev": "python ./build-dev.py",
"build": "python ./build.py",
"build:doc": "typedoc"

@@ -40,0 +42,0 @@ },

@@ -54,3 +54,3 @@ # Dynamsoft Camera Enhancer for Your Website

[Download the JavaScript Package](https://www.dynamsoft.com/camera-enhancer/downloads/1000021-confirmation/?utm_source=guide)
[Download the JavaScript Package](https://www.dynamsoft.com/camera-enhancer/downloads/1000021-confirmation/?utm_source=zip)

@@ -57,0 +57,0 @@ * yarn

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

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

Sorry, the diff of this file is not supported yet

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