capacitor-plugin-dynamsoft-barcode-reader
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -231,2 +231,34 @@ { | ||
{ | ||
"name": "setEngineResourcePath", | ||
"signature": "(path: string) => Promise<void>", | ||
"parameters": [ | ||
{ | ||
"name": "path", | ||
"docs": "", | ||
"type": "string" | ||
} | ||
], | ||
"returns": "Promise<void>", | ||
"tags": [], | ||
"docs": "", | ||
"complexTypes": [], | ||
"slug": "setengineresourcepath" | ||
}, | ||
{ | ||
"name": "setDefaultUIElementURL", | ||
"signature": "(url: string) => Promise<void>", | ||
"parameters": [ | ||
{ | ||
"name": "url", | ||
"docs": "", | ||
"type": "string" | ||
} | ||
], | ||
"returns": "Promise<void>", | ||
"tags": [], | ||
"docs": "", | ||
"complexTypes": [], | ||
"slug": "setdefaultuielementurl" | ||
}, | ||
{ | ||
"name": "addListener", | ||
@@ -233,0 +265,0 @@ "signature": "(eventName: 'onFrameRead', listenerFunc: onFrameReadListener) => Promise<PluginListenerHandle> & PluginListenerHandle", |
@@ -60,2 +60,4 @@ import { PluginListenerHandle } from "@capacitor/core"; | ||
destroy(): Promise<void>; | ||
setEngineResourcePath(path: string): Promise<void>; | ||
setDefaultUIElementURL(url: string): Promise<void>; | ||
addListener(eventName: 'onFrameRead', listenerFunc: onFrameReadListener): Promise<PluginListenerHandle> & PluginListenerHandle; | ||
@@ -62,0 +64,0 @@ addListener(eventName: 'onPlayed', listenerFunc: onPlayedListener): Promise<PluginListenerHandle> & PluginListenerHandle; |
@@ -66,2 +66,4 @@ import { WebPlugin } from '@capacitor/core'; | ||
}>; | ||
setEngineResourcePath(path: string): Promise<void>; | ||
setDefaultUIElementURL(url: string): Promise<void>; | ||
} |
@@ -5,4 +5,4 @@ import { WebPlugin } from '@capacitor/core'; | ||
import { CameraEnhancer } from 'dynamsoft-camera-enhancer'; | ||
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.0.0/dist/"; | ||
CameraEnhancer.defaultUIElementURL = "https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@2.3.1/dist/dce.ui.html"; | ||
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.2.13/dist/"; | ||
CameraEnhancer.defaultUIElementURL = "https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@3.0.1/dist/dce.ui.html"; | ||
export class DBRWeb extends WebPlugin { | ||
@@ -82,3 +82,3 @@ constructor() { | ||
}); | ||
await this.enhancer.setUIElement("https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@2.3.1/dist/dce.ui.html"); | ||
await this.enhancer.setUIElement(CameraEnhancer.defaultUIElementURL); | ||
this.enhancer.getUIElement().getElementsByClassName("dce-btn-close")[0].remove(); | ||
@@ -274,3 +274,9 @@ this.enhancer.getUIElement().getElementsByClassName("dce-sel-camera")[0].remove(); | ||
} | ||
async setEngineResourcePath(path) { | ||
BarcodeReader.engineResourcePath = path; | ||
} | ||
async setDefaultUIElementURL(url) { | ||
CameraEnhancer.defaultUIElementURL = url; | ||
} | ||
} | ||
//# sourceMappingURL=web.js.map |
@@ -23,4 +23,4 @@ 'use strict'; | ||
dynamsoftJavascriptBarcode.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.0.0/dist/"; | ||
dynamsoftCameraEnhancer.CameraEnhancer.defaultUIElementURL = "https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@2.3.1/dist/dce.ui.html"; | ||
dynamsoftJavascriptBarcode.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.2.13/dist/"; | ||
dynamsoftCameraEnhancer.CameraEnhancer.defaultUIElementURL = "https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@3.0.1/dist/dce.ui.html"; | ||
class DBRWeb extends core.WebPlugin { | ||
@@ -100,3 +100,3 @@ constructor() { | ||
}); | ||
await this.enhancer.setUIElement("https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@2.3.1/dist/dce.ui.html"); | ||
await this.enhancer.setUIElement(dynamsoftCameraEnhancer.CameraEnhancer.defaultUIElementURL); | ||
this.enhancer.getUIElement().getElementsByClassName("dce-btn-close")[0].remove(); | ||
@@ -292,2 +292,8 @@ this.enhancer.getUIElement().getElementsByClassName("dce-sel-camera")[0].remove(); | ||
} | ||
async setEngineResourcePath(path) { | ||
dynamsoftJavascriptBarcode.BarcodeReader.engineResourcePath = path; | ||
} | ||
async setDefaultUIElementURL(url) { | ||
dynamsoftCameraEnhancer.CameraEnhancer.defaultUIElementURL = url; | ||
} | ||
} | ||
@@ -294,0 +300,0 @@ |
@@ -18,4 +18,4 @@ var capacitorDBR = (function (exports, core, dynamsoftJavascriptBarcode, dynamsoftCameraEnhancer) { | ||
dynamsoftJavascriptBarcode.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.0.0/dist/"; | ||
dynamsoftCameraEnhancer.CameraEnhancer.defaultUIElementURL = "https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@2.3.1/dist/dce.ui.html"; | ||
dynamsoftJavascriptBarcode.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.2.13/dist/"; | ||
dynamsoftCameraEnhancer.CameraEnhancer.defaultUIElementURL = "https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@3.0.1/dist/dce.ui.html"; | ||
class DBRWeb extends core.WebPlugin { | ||
@@ -95,3 +95,3 @@ constructor() { | ||
}); | ||
await this.enhancer.setUIElement("https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@2.3.1/dist/dce.ui.html"); | ||
await this.enhancer.setUIElement(dynamsoftCameraEnhancer.CameraEnhancer.defaultUIElementURL); | ||
this.enhancer.getUIElement().getElementsByClassName("dce-btn-close")[0].remove(); | ||
@@ -287,2 +287,8 @@ this.enhancer.getUIElement().getElementsByClassName("dce-sel-camera")[0].remove(); | ||
} | ||
async setEngineResourcePath(path) { | ||
dynamsoftJavascriptBarcode.BarcodeReader.engineResourcePath = path; | ||
} | ||
async setDefaultUIElementURL(url) { | ||
dynamsoftCameraEnhancer.CameraEnhancer.defaultUIElementURL = url; | ||
} | ||
} | ||
@@ -289,0 +295,0 @@ |
{ | ||
"name": "capacitor-plugin-dynamsoft-barcode-reader", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "A capacitor plugin for Dynamsoft Barcode Reader", | ||
@@ -77,5 +77,5 @@ "main": "dist/plugin.cjs.js", | ||
"@types/node": "^16.11.7", | ||
"dynamsoft-camera-enhancer": "^2.3.1", | ||
"dynamsoft-javascript-barcode": "^9.0.0" | ||
"dynamsoft-camera-enhancer": "3.0.1", | ||
"dynamsoft-javascript-barcode": "9.2.13" | ||
} | ||
} |
@@ -55,2 +55,4 @@ # capacitor-plugin-dynamsoft-barcode-reader | ||
* [`destroy()`](#destroy) | ||
* [`setEngineResourcePath(...)`](#setengineresourcepath) | ||
* [`setDefaultUIElementURL(...)`](#setdefaultuielementurl) | ||
* [`addListener(...)`](#addlistener) | ||
@@ -269,2 +271,28 @@ * [`addListener(...)`](#addlistener) | ||
### setEngineResourcePath(...) | ||
```typescript | ||
setEngineResourcePath(path: string) => Promise<void> | ||
``` | ||
| Param | Type | | ||
| ---------- | ------------------- | | ||
| **`path`** | <code>string</code> | | ||
-------------------- | ||
### setDefaultUIElementURL(...) | ||
```typescript | ||
setDefaultUIElementURL(url: string) => Promise<void> | ||
``` | ||
| Param | Type | | ||
| --------- | ------------------- | | ||
| **`url`** | <code>string</code> | | ||
-------------------- | ||
### addListener(...) | ||
@@ -271,0 +299,0 @@ |
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
Sorry, the diff of this file is not supported yet
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
150834
1476
403
+ Addeddm-fabric@5.1.17(transitive)
+ Addeddynamsoft-camera-enhancer@3.0.1(transitive)
+ Addeddynamsoft-javascript-barcode@9.2.13(transitive)
- Removeddynamsoft-camera-enhancer@2.3.23.3.10-beta-202404222209(transitive)
- Removeddynamsoft-javascript-barcode@9.6.42(transitive)