Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "ngx-opencv", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "@angular/common": "^7.0.0", |
@@ -50,13 +50,14 @@ # Ngx OpenCv | ||
(cvState: OpenCVState) => { | ||
// do something with the state string | ||
this.cvState = cvState.state; | ||
this.ready.emit(cvState.ready); | ||
if (cvState.error) { | ||
// handle errors | ||
} else if (cvState.loading) { | ||
// e.g. show loading indicator | ||
} else if (cvState.ready) { | ||
// do image processing stuff | ||
} | ||
// do something with the state string | ||
this.cvState = cvState.state; | ||
this.ready.emit(cvState.ready); | ||
if (cvState.error) { | ||
// handle errors | ||
} else if (cvState.loading) { | ||
// e.g. show loading indicator | ||
} else if (cvState.ready) { | ||
// do image processing stuff | ||
} | ||
}); | ||
} | ||
@@ -63,0 +64,0 @@ **Note that loading and parsing of the OpenCV library is done synchronously, and might take some time while blocking execution of other processes, depending on client's device.** Therefore it's recommended to bind a loading indicator to the state observable. |
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
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
85
11113