sonic-widget 2.6.6 → 2.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +5 -5
  2. package/dist/index.js +96 -96
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
  Use this script tag to get access to the widget:
13
13
 
14
14
  ```html
15
- <script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.6.6/dist/index.min.js"></script>
15
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.6.7/dist/index.min.js"></script>
16
16
  ```
17
17
 
18
18
  or
@@ -39,7 +39,7 @@ and adding path in `angular.json`
39
39
  2. Use this script tag to get access to the widget at initial html page:
40
40
 
41
41
  ```html
42
- <script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.6.6/dist/index.min.js"></script>
42
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.6.7/dist/index.min.js"></script>
43
43
  ```
44
44
 
45
45
  or
@@ -234,7 +234,7 @@ it can be added in `angular.json` by installing the npm package
234
234
  4. Add a Script tag to the head tag or body tag. And use the latest version.
235
235
 
236
236
  ```html
237
- <script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.6.6/dist/index.min.js"></script>
237
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.6.7/dist/index.min.js"></script>
238
238
  ```
239
239
 
240
240
  5. Next, add the script tag at a necessary place. But add below the widget script.
@@ -267,7 +267,7 @@ it can be added in `angular.json` by installing the npm package
267
267
  blinkThreshold: number, // threshold used to calculate the user blinked or not, with range limit 0-1(default value is 0.4)
268
268
  objectPersonThreshold: number, // used for object Person score threshold with range limit 0-1(default value is 0.925)
269
269
  objectPhoneThreshold: number, // used for object Phone score threshold with range limit 0-1(default value is 0.5)
270
- grayscalePercentageThreshold: number, // used for black&white percentage score threshold with range limit 0-100(default value is 90)
270
+ grayscalePercentageThreshold: number, // used for black&white percentage score threshold with range limit 0-100(default value is 80)
271
271
  onMessage: function (data) {}, // callback function, when api response message or error or any other actions
272
272
  };
273
273
  // get the element used in the action button
@@ -320,7 +320,7 @@ Check with **`data.code`**_
320
320
  - _**`blinkThreshold`** is used to pass a numerical value. It is used to check the user blinks (range 0-1 and default 0.5)._
321
321
  - _**`objectPersonThreshold`** is used to pass a numerical value. It is used to check the image person as object found with required score as threshold (range 0-1 and default 0.925)._
322
322
  - _**`objectPhoneThreshold`** is used to pass a numerical value. It is used to check the image phone/laptop as object found with required score as threshold (range 0-1 and default 0.5)._
323
- - _**`grayscalePercentageThreshold`** is used to pass a numerical value for percentage. It is used to check the image color as black&white found with required percentage as threshold (range 0-100 and default 90)._
323
+ - _**`grayscalePercentageThreshold`** is used to pass a numerical value for percentage. It is used to check the image color as black&white found with required percentage as threshold (range 0-100 and default 80)._
324
324
  - _**`onMessage`** is a callback function. It is getting called when the API gives a message or at any configuration error. Return data is an object with its API endpoint and result._
325
325
 
326
326