Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-opencv

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-opencv - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

36

bundles/ngx-opencv.umd.js

@@ -13,4 +13,4 @@ (function (global, factory) {

var OpenCvConfigToken = new i0.InjectionToken('OpenCV config object token');
var NgxOpenCvService = /** @class */ (function () {
function NgxOpenCvService(options, _ngZone) {
var NgxOpenCVService = /** @class */ (function () {
function NgxOpenCVService(options, _ngZone) {
this._ngZone = _ngZone;

@@ -36,3 +36,3 @@ this.cvState = new rxjs.BehaviorSubject({

*/
NgxOpenCvService.prototype.loadOpenCv = /**
NgxOpenCVService.prototype.loadOpenCv = /**
* load the OpenCV script

@@ -80,3 +80,3 @@ * @return {?}

*/
NgxOpenCvService.prototype.newState = /**
NgxOpenCVService.prototype.newState = /**
* generates a new state object

@@ -118,3 +118,3 @@ * @private

*/
NgxOpenCvService.prototype.generateConfigModule = /**
NgxOpenCVService.prototype.generateConfigModule = /**
* generates a config module for the global Module object

@@ -142,3 +142,3 @@ * @private

};
NgxOpenCvService.decorators = [
NgxOpenCVService.decorators = [
{ type: i0.Injectable, args: [{

@@ -149,3 +149,3 @@ providedIn: 'root'

/** @nocollapse */
NgxOpenCvService.ctorParameters = function () {
NgxOpenCVService.ctorParameters = function () {
return [

@@ -156,4 +156,4 @@ { type: undefined, decorators: [{ type: i0.Inject, args: [OpenCvConfigToken,] }] },

};
/** @nocollapse */ NgxOpenCvService.ngInjectableDef = i0.defineInjectable({ factory: function NgxOpenCvService_Factory() { return new NgxOpenCvService(i0.inject(OpenCvConfigToken), i0.inject(i0.NgZone)); }, token: NgxOpenCvService, providedIn: "root" });
return NgxOpenCvService;
/** @nocollapse */ NgxOpenCVService.ngInjectableDef = i0.defineInjectable({ factory: function NgxOpenCVService_Factory() { return new NgxOpenCVService(i0.inject(OpenCvConfigToken), i0.inject(i0.NgZone)); }, token: NgxOpenCVService, providedIn: "root" });
return NgxOpenCVService;
}());

@@ -165,4 +165,4 @@

*/
var NgxOpencvModule = /** @class */ (function () {
function NgxOpencvModule() {
var NgxOpenCVModule = /** @class */ (function () {
function NgxOpenCVModule() {
}

@@ -173,3 +173,3 @@ /**

*/
NgxOpencvModule.forRoot = /**
NgxOpenCVModule.forRoot = /**
* @param {?} config

@@ -180,7 +180,7 @@ * @return {?}

return {
ngModule: NgxOpencvModule,
ngModule: NgxOpenCVModule,
providers: [{ provide: OpenCvConfigToken, useValue: config }]
};
};
NgxOpencvModule.decorators = [
NgxOpenCVModule.decorators = [
{ type: i0.NgModule, args: [{

@@ -190,6 +190,6 @@ declarations: [],

exports: [],
providers: [NgxOpenCvService]
providers: [NgxOpenCVService]
},] }
];
return NgxOpencvModule;
return NgxOpenCVModule;
}());

@@ -207,4 +207,4 @@

exports.NgxOpencvModule = NgxOpencvModule;
exports.ɵb = NgxOpenCvService;
exports.NgxOpenCVModule = NgxOpenCVModule;
exports.ɵb = NgxOpenCVService;
exports.ɵa = OpenCvConfigToken;

@@ -211,0 +211,0 @@

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs")):"function"==typeof define&&define.amd?define("ngx-opencv",["exports","@angular/core","rxjs"],t):t(e["ngx-opencv"]={},e.ng.core,e.rxjs)}(this,function(e,n,o){"use strict";var r=new n.InjectionToken("OpenCV config object token"),i=function(){function e(e,t){this._ngZone=t,this.cvState=new o.BehaviorSubject({ready:!1,error:!1,loading:!0,state:"loading"}),e||(e={}),this.configModule=this.generateConfigModule(e),this.loadOpenCv()}return e.prototype.loadOpenCv=function(){var t=this;this.cvState.next(this.newState("loading")),window.Module=this.configModule;var e=document.createElement("script");e.setAttribute("async",""),e.setAttribute("type","text/javascript"),e.addEventListener("error",function(){var e=new Error("Failed to load "+t.configModule.scriptUrl);t.cvState.next(t.newState("error")),t.cvState.error(e)},{passive:!0}),e.src=this.configModule.scriptUrl;var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(e,n):document.head.appendChild(e)},e.prototype.newState=function(t){var n={ready:!1,loading:!1,error:!1,state:""};return Object.keys(n).forEach(function(e){"state"!==e&&(e===t?(n[e]=!0,n.state=e):n[e]=!1)}),n},e.prototype.generateConfigModule=function(e){var t=this;return{scriptUrl:e.openCVDirPath?e.openCVDirPath+"/opencv.js":"/assets/opencv/opencv.js",wasmBinaryFile:"opencv_js.wasm",usingWasm:!0,onRuntimeInitialized:function(){t._ngZone.run(function(){console.log("openCV Ready"),t.cvState.next(t.newState("ready")),e.runOnOpenCVInit&&e.runOnOpenCVInit()})}}},e.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:n.Inject,args:[r]}]},{type:n.NgZone}]},e.ngInjectableDef=n.defineInjectable({factory:function(){return new e(n.inject(r),n.inject(n.NgZone))},token:e,providedIn:"root"}),e}(),t=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[{provide:r,useValue:e}]}},t.decorators=[{type:n.NgModule,args:[{declarations:[],imports:[],exports:[],providers:[i]}]}],t}();e.NgxOpencvModule=t,e.ɵb=i,e.ɵa=r,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs")):"function"==typeof define&&define.amd?define("ngx-opencv",["exports","@angular/core","rxjs"],t):t(e["ngx-opencv"]={},e.ng.core,e.rxjs)}(this,function(e,n,o){"use strict";var r=new n.InjectionToken("OpenCV config object token"),i=function(){function e(e,t){this._ngZone=t,this.cvState=new o.BehaviorSubject({ready:!1,error:!1,loading:!0,state:"loading"}),e||(e={}),this.configModule=this.generateConfigModule(e),this.loadOpenCv()}return e.prototype.loadOpenCv=function(){var t=this;this.cvState.next(this.newState("loading")),window.Module=this.configModule;var e=document.createElement("script");e.setAttribute("async",""),e.setAttribute("type","text/javascript"),e.addEventListener("error",function(){var e=new Error("Failed to load "+t.configModule.scriptUrl);t.cvState.next(t.newState("error")),t.cvState.error(e)},{passive:!0}),e.src=this.configModule.scriptUrl;var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(e,n):document.head.appendChild(e)},e.prototype.newState=function(t){var n={ready:!1,loading:!1,error:!1,state:""};return Object.keys(n).forEach(function(e){"state"!==e&&(e===t?(n[e]=!0,n.state=e):n[e]=!1)}),n},e.prototype.generateConfigModule=function(e){var t=this;return{scriptUrl:e.openCVDirPath?e.openCVDirPath+"/opencv.js":"/assets/opencv/opencv.js",wasmBinaryFile:"opencv_js.wasm",usingWasm:!0,onRuntimeInitialized:function(){t._ngZone.run(function(){console.log("openCV Ready"),t.cvState.next(t.newState("ready")),e.runOnOpenCVInit&&e.runOnOpenCVInit()})}}},e.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:n.Inject,args:[r]}]},{type:n.NgZone}]},e.ngInjectableDef=n.defineInjectable({factory:function(){return new e(n.inject(r),n.inject(n.NgZone))},token:e,providedIn:"root"}),e}(),t=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[{provide:r,useValue:e}]}},t.decorators=[{type:n.NgModule,args:[{declarations:[],imports:[],exports:[],providers:[i]}]}],t}();e.NgxOpenCVModule=t,e.ɵb=i,e.ɵa=r,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ngx-opencv.umd.min.js.map

@@ -10,3 +10,3 @@ /**

export const OpenCvConfigToken = new InjectionToken('OpenCV config object token');
export class NgxOpenCvService {
export class NgxOpenCVService {
/**

@@ -112,3 +112,3 @@ * @param {?} options

}
NgxOpenCvService.decorators = [
NgxOpenCVService.decorators = [
{ type: Injectable, args: [{

@@ -119,12 +119,12 @@ providedIn: 'root'

/** @nocollapse */
NgxOpenCvService.ctorParameters = () => [
NgxOpenCVService.ctorParameters = () => [
{ type: undefined, decorators: [{ type: Inject, args: [OpenCvConfigToken,] }] },
{ type: NgZone }
];
/** @nocollapse */ NgxOpenCvService.ngInjectableDef = i0.defineInjectable({ factory: function NgxOpenCvService_Factory() { return new NgxOpenCvService(i0.inject(OpenCvConfigToken), i0.inject(i0.NgZone)); }, token: NgxOpenCvService, providedIn: "root" });
/** @nocollapse */ NgxOpenCVService.ngInjectableDef = i0.defineInjectable({ factory: function NgxOpenCVService_Factory() { return new NgxOpenCVService(i0.inject(OpenCvConfigToken), i0.inject(i0.NgZone)); }, token: NgxOpenCVService, providedIn: "root" });
if (false) {
/** @type {?} */
NgxOpenCvService.prototype.cvState;
NgxOpenCVService.prototype.cvState;
/** @type {?} */
NgxOpenCvService.prototype.configModule;
NgxOpenCVService.prototype.configModule;
/**

@@ -134,3 +134,3 @@ * @type {?}

*/
NgxOpenCvService.prototype._ngZone;
NgxOpenCVService.prototype._ngZone;
}

@@ -152,2 +152,2 @@ /**

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LW9wZW4tY3Yuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1vcGVuY3YvIiwic291cmNlcyI6WyJsaWIvbmd4LW9wZW4tY3Yuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLE1BQU0sRUFBRSxVQUFVLEVBQUUsY0FBYyxFQUFFLE1BQU0sRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN6RSxPQUFPLEVBQUMsZUFBZSxFQUFDLE1BQU0sTUFBTSxDQUFDOzs7QUFHckMsTUFBTSxPQUFPLGlCQUFpQixHQUFHLElBQUksY0FBYyxDQUFlLDRCQUE0QixDQUFDO0FBSy9GLE1BQU0sT0FBTyxnQkFBZ0I7Ozs7O0lBVTNCLFlBQXVDLE9BQXFCLEVBQVUsT0FBZTtRQUFmLFlBQU8sR0FBUCxP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dWxlIHtcclxuICBzY3JpcHRVcmw6IHN0cmluZztcclxuICB3YXNtQmluYXJ5RmlsZTogc3RyaW5nO1xyXG4gIHVzaW5nV2FzbTogYm9vbGVhbjtcclxuICBvblJ1bnRpbWVJbml0aWFsaXplZDogRnVuY3Rpb247XHJcbn1cclxuXHJcbiJdfQ==

@@ -6,4 +6,4 @@ /**

import { NgModule } from '@angular/core';
import { NgxOpenCvService, OpenCvConfigToken } from './ngx-open-cv.service';
export class NgxOpencvModule {
import { NgxOpenCVService, OpenCvConfigToken } from './ngx-open-cv.service';
export class NgxOpenCVModule {
/**

@@ -15,3 +15,3 @@ * @param {?} config

return {
ngModule: NgxOpencvModule,
ngModule: NgxOpenCVModule,
providers: [{ provide: OpenCvConfigToken, useValue: config }]

@@ -21,3 +21,3 @@ };

}
NgxOpencvModule.decorators = [
NgxOpenCVModule.decorators = [
{ type: NgModule, args: [{

@@ -27,5 +27,5 @@ declarations: [],

exports: [],
providers: [NgxOpenCvService]
providers: [NgxOpenCVService]
},] }
];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LW9wZW5jdi5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtb3BlbmN2LyIsInNvdXJjZXMiOlsibGliL25neC1vcGVuY3YubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQXNCLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUU1RCxPQUFPLEVBQUMsZ0JBQWdCLEVBQUUsaUJBQWlCLEVBQUMsTUFBTSx1QkFBdUIsQ0FBQztBQVUxRSxNQUFNLE9BQU8sZUFBZTs7Ozs7SUFDMUIsTUFBTSxDQUFDLE9BQU8sQ0FBQyxNQUFvQjtRQUNqQyxPQUFPO1lBQ0wsUUFBUSxFQUFFLGVBQWU7WUFDekIsU0FBUyxFQUFFLENBQUMsRUFBRSxPQUFPLEVB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G4gIHByb3ZpZGVyczogW05neE9wZW5DVlNlcnZpY2VdXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBOZ3hPcGVuQ1ZNb2R1bGUge1xyXG4gIHN0YXRpYyBmb3JSb290KGNvbmZpZzogT3BlbkNWQ29uZmlnKTogTW9kdWxlV2l0aFByb3ZpZGVycyB7XHJcbiAgICByZXR1cm4ge1xyXG4gICAgICBuZ01vZHVsZTogTmd4T3BlbkNWTW9kdWxlLFxyXG4gICAgICBwcm92aWRlcnM6IFt7IHByb3ZpZGU6IE9wZW5DdkNvbmZpZ1Rva2VuLCB1c2VWYWx1ZTogY29uZmlnIH1dXHJcbiAgICB9O1xyXG4gIH1cclxufVxyXG4iXX0=

@@ -8,4 +8,4 @@ /**

*/
export { NgxOpencvModule } from './public_api';
export { NgxOpenCvService as ɵb, OpenCvConfigToken as ɵa } from './lib/ngx-open-cv.service';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LW9wZW5jdi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1vcGVuY3YvIiwic291cmNlcyI6WyJuZ3gtb3BlbmN2LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSxnQ0FBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLGdCQUFnQixJQUFJLEVBQUUsRUFBQyxpQkFBaUIsSUFBSSxFQUFFLEVBQUMsTUFBTSwyQkFBMkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcblxuZXhwb3J0IHtOZ3hPcGVuQ3ZTZXJ2aWNlIGFzIMm1YixPcGVuQ3ZDb25maWdUb2tlbiBhcyDJtWF9IGZyb20gJy4vbGliL25neC1vcGVuLWN2LnNlcnZpY2UnOyJdfQ==
export { NgxOpenCVModule } from './public_api';
export { NgxOpenCVService as ɵb, OpenCvConfigToken as ɵa } from './lib/ngx-open-cv.service';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LW9wZW5jdi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1vcGVuY3YvIiwic291cmNlcyI6WyJuZ3gtb3BlbmN2LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSxnQ0FBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLGdCQUFnQixJQUFJLEVBQUUsRUFBQyxpQkFBaUIsSUFBSSxFQUFFLEVBQUMsTUFBTSwyQkFBMkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcblxuZXhwb3J0IHtOZ3hPcGVuQ1ZTZXJ2aWNlIGFzIMm1YixPcGVuQ3ZDb25maWdUb2tlbiBhcyDJtWF9IGZyb20gJy4vbGliL25neC1vcGVuLWN2LnNlcnZpY2UnOyJdfQ==

@@ -5,4 +5,4 @@ /**

*/
export { NgxOpencvModule } from './lib/ngx-opencv.module';
export { NgxOpenCVModule } from './lib/ngx-opencv.module';
export {} from './lib/models';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1vcGVuY3YvIiwic291cmNlcyI6WyJwdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFDQSxnQ0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxlQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIlxuZXhwb3J0ICogZnJvbSAnLi9saWIvbmd4LW9wZW5jdi5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbW9kZWxzJztcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1vcGVuY3YvIiwic291cmNlcyI6WyJwdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFDQSxnQ0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxlQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIlxyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9uZ3gtb3BlbmN2Lm1vZHVsZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL21vZGVscyc7XHJcbiJdfQ==

@@ -10,4 +10,4 @@ /**

export var OpenCvConfigToken = new InjectionToken('OpenCV config object token');
var NgxOpenCvService = /** @class */ (function () {
function NgxOpenCvService(options, _ngZone) {
var NgxOpenCVService = /** @class */ (function () {
function NgxOpenCVService(options, _ngZone) {
this._ngZone = _ngZone;

@@ -33,3 +33,3 @@ this.cvState = new BehaviorSubject({

*/
NgxOpenCvService.prototype.loadOpenCv = /**
NgxOpenCVService.prototype.loadOpenCv = /**
* load the OpenCV script

@@ -77,3 +77,3 @@ * @return {?}

*/
NgxOpenCvService.prototype.newState = /**
NgxOpenCVService.prototype.newState = /**
* generates a new state object

@@ -115,3 +115,3 @@ * @private

*/
NgxOpenCvService.prototype.generateConfigModule = /**
NgxOpenCVService.prototype.generateConfigModule = /**
* generates a config module for the global Module object

@@ -139,3 +139,3 @@ * @private

};
NgxOpenCvService.decorators = [
NgxOpenCVService.decorators = [
{ type: Injectable, args: [{

@@ -146,15 +146,15 @@ providedIn: 'root'

/** @nocollapse */
NgxOpenCvService.ctorParameters = function () { return [
NgxOpenCVService.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: Inject, args: [OpenCvConfigToken,] }] },
{ type: NgZone }
]; };
/** @nocollapse */ NgxOpenCvService.ngInjectableDef = i0.defineInjectable({ factory: function NgxOpenCvService_Factory() { return new NgxOpenCvService(i0.inject(OpenCvConfigToken), i0.inject(i0.NgZone)); }, token: NgxOpenCvService, providedIn: "root" });
return NgxOpenCvService;
/** @nocollapse */ NgxOpenCVService.ngInjectableDef = i0.defineInjectable({ factory: function NgxOpenCVService_Factory() { return new NgxOpenCVService(i0.inject(OpenCvConfigToken), i0.inject(i0.NgZone)); }, token: NgxOpenCVService, providedIn: "root" });
return NgxOpenCVService;
}());
export { NgxOpenCvService };
export { NgxOpenCVService };
if (false) {
/** @type {?} */
NgxOpenCvService.prototype.cvState;
NgxOpenCVService.prototype.cvState;
/** @type {?} */
NgxOpenCvService.prototype.configModule;
NgxOpenCVService.prototype.configModule;
/**

@@ -164,3 +164,3 @@ * @type {?}

*/
NgxOpenCvService.prototype._ngZone;
NgxOpenCVService.prototype._ngZone;
}

@@ -182,2 +182,2 @@ /**

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LW9wZW4tY3Yuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1vcGVuY3YvIiwic291cmNlcyI6WyJsaWIvbmd4LW9wZW4tY3Yuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLE1BQU0sRUFBRSxVQUFVLEVBQUUsY0FBYyxFQUFFLE1BQU0sRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN6RSxPQUFPLEVBQUMsZUFBZSxFQUFDLE1BQU0sTUFBTSxDQUFDOzs7QUFHckMsTUFBTSxLQUFPLGlCQUFpQixHQUFHLElBQUksY0FBYyxDQUFlLDRCQUE0QixDQUFDO0FBRS9GO0lBYUUsMEJBQXVDLE9BQXFCLEVBQVUsT0FBZTtRQUFmLFlBQU8sR0FBUCx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AgICAgICAgIH1cclxuICAgICAgICB9KTtcclxuICAgICAgfVxyXG4gICAgfTtcclxuICB9XHJcbn1cclxuXHJcbi8qKlxyXG4gKiBkZXNjcmliZXMgdGhlIGdsb2JhbCBNb2R1bGUgb2JqZWN0IHRoYXQgaXMgdXNlZCB0byBpbml0aWF0ZSBPcGVuQ1YuanNcclxuICovXHJcbmludGVyZmFjZSBPcGVuQ3ZDb25maWdNb2R1bGUge1xyXG4gIHNjcmlwdFVybDogc3RyaW5nO1xyXG4gIHdhc21CaW5hcnlGaWxlOiBzdHJpbmc7XHJcbiAgdXNpbmdXYXNtOiBib29sZWFuO1xyXG4gIG9uUnVudGltZUluaXRpYWxpemVkOiBGdW5jdGlvbjtcclxufVxyXG5cclxuIl19

@@ -6,5 +6,5 @@ /**

import { NgModule } from '@angular/core';
import { NgxOpenCvService, OpenCvConfigToken } from './ngx-open-cv.service';
var NgxOpencvModule = /** @class */ (function () {
function NgxOpencvModule() {
import { NgxOpenCVService, OpenCvConfigToken } from './ngx-open-cv.service';
var NgxOpenCVModule = /** @class */ (function () {
function NgxOpenCVModule() {
}

@@ -15,3 +15,3 @@ /**

*/
NgxOpencvModule.forRoot = /**
NgxOpenCVModule.forRoot = /**
* @param {?} config

@@ -22,7 +22,7 @@ * @return {?}

return {
ngModule: NgxOpencvModule,
ngModule: NgxOpenCVModule,
providers: [{ provide: OpenCvConfigToken, useValue: config }]
};
};
NgxOpencvModule.decorators = [
NgxOpenCVModule.decorators = [
{ type: NgModule, args: [{

@@ -32,8 +32,8 @@ declarations: [],

exports: [],
providers: [NgxOpenCvService]
providers: [NgxOpenCVService]
},] }
];
return NgxOpencvModule;
return NgxOpenCVModule;
}());
export { NgxOpencvModule };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LW9wZW5jdi5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtb3BlbmN2LyIsInNvdXJjZXMiOlsibGliL25neC1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UFTLEVBQUUsQ0FBQyxnQkFBZ0IsQ0FBQztpQkFDOUI7O0lBUUQsc0JBQUM7Q0FBQSxBQWRELElBY0M7U0FQWSxlQUFlIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtNb2R1bGVXaXRoUHJvdmlkZXJzLCBOZ01vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcbmltcG9ydCB7T3BlbkNWQ29uZmlnfSBmcm9tICcuL21vZGVscyc7XHJcbmltcG9ydCB7Tmd4T3BlbkNWU2VydmljZSwgT3BlbkN2Q29uZmlnVG9rZW59IGZyb20gJy4vbmd4LW9wZW4tY3Yuc2VydmljZSc7XHJcblxyXG5cclxuQE5nTW9kdWxlKHtcclxuICBkZWNsYXJhdGlvbnM6IFtdLFxyXG4gIGltcG9ydHM6IFtcclxuICBdLFxyXG4gIGV4cG9ydHM6IFtdLFxyXG4gIHByb3ZpZGVyczogW05neE9wZW5DVlNlcnZpY2VdXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBOZ3hPcGVuQ1ZNb2R1bGUge1xyXG4gIHN0YXRpYyBmb3JSb290KGNvbmZpZzogT3BlbkNWQ29uZmlnKTogTW9kdWxlV2l0aFByb3ZpZGVycyB7XHJcbiAgICByZXR1cm4ge1xyXG4gICAgICBuZ01vZHVsZTogTmd4T3BlbkNWTW9kdWxlLFxyXG4gICAgICBwcm92aWRlcnM6IFt7IHByb3ZpZGU6IE9wZW5DdkNvbmZpZ1Rva2VuLCB1c2VWYWx1ZTogY29uZmlnIH1dXHJcbiAgICB9O1xyXG4gIH1cclxufVxyXG4iXX0=

@@ -8,4 +8,4 @@ /**

*/
export { NgxOpencvModule } from './public_api';
export { NgxOpenCvService as ɵb, OpenCvConfigToken as ɵa } from './lib/ngx-open-cv.service';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LW9wZW5jdi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1vcGVuY3YvIiwic291cmNlcyI6WyJuZ3gtb3BlbmN2LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSxnQ0FBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLGdCQUFnQixJQUFJLEVBQUUsRUFBQyxpQkFBaUIsSUFBSSxFQUFFLEVBQUMsTUFBTSwyQkFBMkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcblxuZXhwb3J0IHtOZ3hPcGVuQ3ZTZXJ2aWNlIGFzIMm1YixPcGVuQ3ZDb25maWdUb2tlbiBhcyDJtWF9IGZyb20gJy4vbGliL25neC1vcGVuLWN2LnNlcnZpY2UnOyJdfQ==
export { NgxOpenCVModule } from './public_api';
export { NgxOpenCVService as ɵb, OpenCvConfigToken as ɵa } from './lib/ngx-open-cv.service';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LW9wZW5jdi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1vcGVuY3YvIiwic291cmNlcyI6WyJuZ3gtb3BlbmN2LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSxnQ0FBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLGdCQUFnQixJQUFJLEVBQUUsRUFBQyxpQkFBaUIsSUFBSSxFQUFFLEVBQUMsTUFBTSwyQkFBMkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcblxuZXhwb3J0IHtOZ3hPcGVuQ1ZTZXJ2aWNlIGFzIMm1YixPcGVuQ3ZDb25maWdUb2tlbiBhcyDJtWF9IGZyb20gJy4vbGliL25neC1vcGVuLWN2LnNlcnZpY2UnOyJdfQ==

@@ -5,4 +5,4 @@ /**

*/
export { NgxOpencvModule } from './lib/ngx-opencv.module';
export { NgxOpenCVModule } from './lib/ngx-opencv.module';
export {} from './lib/models';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1vcGVuY3YvIiwic291cmNlcyI6WyJwdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFDQSxnQ0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxlQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIlxuZXhwb3J0ICogZnJvbSAnLi9saWIvbmd4LW9wZW5jdi5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbW9kZWxzJztcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1vcGVuY3YvIiwic291cmNlcyI6WyJwdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFDQSxnQ0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxlQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIlxyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9uZ3gtb3BlbmN2Lm1vZHVsZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL21vZGVscyc7XHJcbiJdfQ==

@@ -10,3 +10,3 @@ import { Inject, Injectable, InjectionToken, NgZone, NgModule, defineInjectable, inject } from '@angular/core';

const OpenCvConfigToken = new InjectionToken('OpenCV config object token');
class NgxOpenCvService {
class NgxOpenCVService {
/**

@@ -112,3 +112,3 @@ * @param {?} options

}
NgxOpenCvService.decorators = [
NgxOpenCVService.decorators = [
{ type: Injectable, args: [{

@@ -119,7 +119,7 @@ providedIn: 'root'

/** @nocollapse */
NgxOpenCvService.ctorParameters = () => [
NgxOpenCVService.ctorParameters = () => [
{ type: undefined, decorators: [{ type: Inject, args: [OpenCvConfigToken,] }] },
{ type: NgZone }
];
/** @nocollapse */ NgxOpenCvService.ngInjectableDef = defineInjectable({ factory: function NgxOpenCvService_Factory() { return new NgxOpenCvService(inject(OpenCvConfigToken), inject(NgZone)); }, token: NgxOpenCvService, providedIn: "root" });
/** @nocollapse */ NgxOpenCVService.ngInjectableDef = defineInjectable({ factory: function NgxOpenCVService_Factory() { return new NgxOpenCVService(inject(OpenCvConfigToken), inject(NgZone)); }, token: NgxOpenCVService, providedIn: "root" });

@@ -130,3 +130,3 @@ /**

*/
class NgxOpencvModule {
class NgxOpenCVModule {
/**

@@ -138,3 +138,3 @@ * @param {?} config

return {
ngModule: NgxOpencvModule,
ngModule: NgxOpenCVModule,
providers: [{ provide: OpenCvConfigToken, useValue: config }]

@@ -144,3 +144,3 @@ };

}
NgxOpencvModule.decorators = [
NgxOpenCVModule.decorators = [
{ type: NgModule, args: [{

@@ -150,3 +150,3 @@ declarations: [],

exports: [],
providers: [NgxOpenCvService]
providers: [NgxOpenCVService]
},] }

@@ -170,4 +170,4 @@ ];

export { NgxOpencvModule, NgxOpenCvService as ɵb, OpenCvConfigToken as ɵa };
export { NgxOpenCVModule, NgxOpenCVService as ɵb, OpenCvConfigToken as ɵa };
//# sourceMappingURL=ngx-opencv.js.map

@@ -10,4 +10,4 @@ import { Inject, Injectable, InjectionToken, NgZone, NgModule, defineInjectable, inject } from '@angular/core';

var OpenCvConfigToken = new InjectionToken('OpenCV config object token');
var NgxOpenCvService = /** @class */ (function () {
function NgxOpenCvService(options, _ngZone) {
var NgxOpenCVService = /** @class */ (function () {
function NgxOpenCVService(options, _ngZone) {
this._ngZone = _ngZone;

@@ -33,3 +33,3 @@ this.cvState = new BehaviorSubject({

*/
NgxOpenCvService.prototype.loadOpenCv = /**
NgxOpenCVService.prototype.loadOpenCv = /**
* load the OpenCV script

@@ -77,3 +77,3 @@ * @return {?}

*/
NgxOpenCvService.prototype.newState = /**
NgxOpenCVService.prototype.newState = /**
* generates a new state object

@@ -115,3 +115,3 @@ * @private

*/
NgxOpenCvService.prototype.generateConfigModule = /**
NgxOpenCVService.prototype.generateConfigModule = /**
* generates a config module for the global Module object

@@ -139,3 +139,3 @@ * @private

};
NgxOpenCvService.decorators = [
NgxOpenCVService.decorators = [
{ type: Injectable, args: [{

@@ -146,8 +146,8 @@ providedIn: 'root'

/** @nocollapse */
NgxOpenCvService.ctorParameters = function () { return [
NgxOpenCVService.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: Inject, args: [OpenCvConfigToken,] }] },
{ type: NgZone }
]; };
/** @nocollapse */ NgxOpenCvService.ngInjectableDef = defineInjectable({ factory: function NgxOpenCvService_Factory() { return new NgxOpenCvService(inject(OpenCvConfigToken), inject(NgZone)); }, token: NgxOpenCvService, providedIn: "root" });
return NgxOpenCvService;
/** @nocollapse */ NgxOpenCVService.ngInjectableDef = defineInjectable({ factory: function NgxOpenCVService_Factory() { return new NgxOpenCVService(inject(OpenCvConfigToken), inject(NgZone)); }, token: NgxOpenCVService, providedIn: "root" });
return NgxOpenCVService;
}());

@@ -159,4 +159,4 @@

*/
var NgxOpencvModule = /** @class */ (function () {
function NgxOpencvModule() {
var NgxOpenCVModule = /** @class */ (function () {
function NgxOpenCVModule() {
}

@@ -167,3 +167,3 @@ /**

*/
NgxOpencvModule.forRoot = /**
NgxOpenCVModule.forRoot = /**
* @param {?} config

@@ -174,7 +174,7 @@ * @return {?}

return {
ngModule: NgxOpencvModule,
ngModule: NgxOpenCVModule,
providers: [{ provide: OpenCvConfigToken, useValue: config }]
};
};
NgxOpencvModule.decorators = [
NgxOpenCVModule.decorators = [
{ type: NgModule, args: [{

@@ -184,6 +184,6 @@ declarations: [],

exports: [],
providers: [NgxOpenCvService]
providers: [NgxOpenCVService]
},] }
];
return NgxOpencvModule;
return NgxOpenCVModule;
}());

@@ -206,4 +206,4 @@

export { NgxOpencvModule, NgxOpenCvService as ɵb, OpenCvConfigToken as ɵa };
export { NgxOpenCVModule, NgxOpenCVService as ɵb, OpenCvConfigToken as ɵa };
//# sourceMappingURL=ngx-opencv.js.map

@@ -5,3 +5,3 @@ import { InjectionToken, NgZone } from '@angular/core';

export declare const OpenCvConfigToken: InjectionToken<OpenCVConfig>;
export declare class NgxOpenCvService {
export declare class NgxOpenCVService {
private _ngZone;

@@ -8,0 +8,0 @@ cvState: BehaviorSubject<OpenCVState>;

import { ModuleWithProviders } from '@angular/core';
import { OpenCVConfig } from './models';
export declare class NgxOpencvModule {
export declare class NgxOpenCVModule {
static forRoot(config: OpenCVConfig): ModuleWithProviders;
}

@@ -5,2 +5,2 @@ /**

export * from './public_api';
export { NgxOpenCvService as ɵb, OpenCvConfigToken as ɵa } from './lib/ngx-open-cv.service';
export { NgxOpenCVService as ɵb, OpenCvConfigToken as ɵa } from './lib/ngx-open-cv.service';

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"NgxOpencvModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"declarations":[],"imports":[],"exports":[],"providers":[{"__symbolic":"reference","name":"ɵb"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"NgxOpencvModule"},"providers":[{"provide":{"__symbolic":"reference","name":"ɵa"},"useValue":{"__symbolic":"reference","name":"config"}}]}}}},"OpenCVConfig":{"__symbolic":"interface"},"OpenCVState":{"__symbolic":"interface"},"ɵa":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":37},"arguments":["OpenCV config object token"]},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":19,"character":15},"arguments":[{"__symbolic":"reference","name":"ɵa"}]}],null],"parameters":[{"__symbolic":"reference","name":"OpenCVConfig"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":19,"character":81}]}],"loadOpenCv":[{"__symbolic":"method"}],"newState":[{"__symbolic":"method"}],"generateConfigModule":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}}},"origins":{"NgxOpencvModule":"./lib/ngx-opencv.module","OpenCVConfig":"./lib/models","OpenCVState":"./lib/models","ɵa":"./lib/ngx-open-cv.service","ɵb":"./lib/ngx-open-cv.service"},"importAs":"ngx-opencv"}
{"__symbolic":"module","version":4,"metadata":{"NgxOpenCVModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"declarations":[],"imports":[],"exports":[],"providers":[{"__symbolic":"reference","name":"ɵb"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"NgxOpenCVModule"},"providers":[{"provide":{"__symbolic":"reference","name":"ɵa"},"useValue":{"__symbolic":"reference","name":"config"}}]}}}},"OpenCVConfig":{"__symbolic":"interface"},"OpenCVState":{"__symbolic":"interface"},"ɵa":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":37},"arguments":["OpenCV config object token"]},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":19,"character":15},"arguments":[{"__symbolic":"reference","name":"ɵa"}]}],null],"parameters":[{"__symbolic":"reference","name":"OpenCVConfig"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":19,"character":81}]}],"loadOpenCv":[{"__symbolic":"method"}],"newState":[{"__symbolic":"method"}],"generateConfigModule":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}}},"origins":{"NgxOpenCVModule":"./lib/ngx-opencv.module","OpenCVConfig":"./lib/models","OpenCVState":"./lib/models","ɵa":"./lib/ngx-open-cv.service","ɵb":"./lib/ngx-open-cv.service"},"importAs":"ngx-opencv"}
{
"name": "ngx-opencv",
"version": "1.0.3",
"version": "1.0.4",
"peerDependencies": {

@@ -5,0 +5,0 @@ "@angular/common": "^7.0.0",

@@ -25,7 +25,7 @@ # Ngx OpenCv

const openCVConfig: OpenCVConfig = {
openCvDirPath: '/assets/opencv'
openCVDirPath: '/assets/opencv'
};
@NgModule({ imports: [
NgxDocumentScannerModule.forRoot(openCVConfig)
NgxOpenCVModule.forRoot(openCVConfig)
],

@@ -45,3 +45,3 @@ bootstrap: [AppComponent]

Inject NgxOpenCVSerive to the constructor of your component / service etc. and subscribe to the cvState observable.
Inject NgxOpenCVService to the constructor of your component / service etc. and subscribe to the cvState observable.

@@ -54,3 +54,2 @@ constructor(private ngxOpenCv: NgxOpenCVService) {

this.cvState = cvState.state;
this.ready.emit(cvState.ready);
if (cvState.error) {

@@ -79,3 +78,3 @@ // handle errors

## Configuration Options
You can configure the service with the OpenCvConfig object
You can configure the service with the OpenCVConfig object

@@ -86,4 +85,4 @@ import {OpenCvConfig} from 'ngx-document-scanner';

|--|--|--|
|openCvDirPath| string | path to the directory containing the OpenCV files, in the form of `'/path/to/[opencv directory]'`. directory must contain `opencv.js` & `opencv_js.wasm`.|
|openCVDirPath| string | path to the directory containing the OpenCV files, in the form of `'/path/to/[opencv directory]'`. directory must contain `opencv.js` & `opencv_js.wasm`.|
|runOnOpenCVInit| Function| additional callback that will run when OpenCv has finished loading and parsing. callback runs in the angular zone in the context of the service.|

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc