dwt 18.1.0 → 18.1.1
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.
|
@@ -24,12 +24,6 @@
|
|
|
24
24
|
*/
|
|
25
25
|
/// Dynamsoft JavaScript Core, version 6.1.15 20221208163105
|
|
26
26
|
|
|
27
|
-
/**
|
|
28
|
-
* dynamsoft-javascript-barcode is the package for Dynamsoft WASM-based Barcode Reader.
|
|
29
|
-
* It's used as part of the barcode add-on when required.
|
|
30
|
-
*/
|
|
31
|
-
import DSBarcodeReader from "dynamsoft-javascript-barcode";
|
|
32
|
-
|
|
33
27
|
var bNode=!!("object"==typeof global&&global.process&&global.process.release&&global.process.release.name&&"undefined"==typeof HTMLCanvasElement),globalThis=bNode?global:self||{},Dynamsoft=globalThis.Dynamsoft||{Lib:{}};!function(o){o.Lib||(o.Lib={}),o.DWT||(o.DWT={});o=o.Lib;o.bNode=bNode,o.noop=function(){},o._defaultAgent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36",o._defaultPlatform="Win64",globalThis&&(globalThis.Dynamsoft=Dynamsoft)}(Dynamsoft);!function(){"use strict";var e=globalThis.Dynamsoft,z=!0;function t(e,t){var i,s,n,o,e=e.toLowerCase(),t=t.toLowerCase(),r=/harmonyos/g.test(e),a=("linux"==t&&0<=e.indexOf("windows nt")&&(t="harmonyos",r=!0),!r&&/cros/.test(e)),d=!r&&/android/g.test(e)||/android/g.test(t),b=/iphone/g.test(e)||/iphone/g.test(t),c=/macintosh/.test(e),l=navigator.maxTouchPoints||0,c=/ipad/g.test(e)||(c||"macintel"==t)&&1<l,l=/ucweb|ucbrowser/g.test(e),f=!l&&/nexus/g.test(e)&&/version\/[\d.]+.*safari\//g.test(e),g=/playbook/g.test(e),x=/hp-tablet/g.test(e),m=/blackberry|bb10/g.test(e),w=/symbian/g.test(e),O=/windows phone/g.test(e),h=/mobile/g.test(e),u=/arm64|aarch64/g.test(e),p=/mips64/g.test(e),v=/huaweibrowser/g.test(e),y=/jsdom/g.test(e),x=g||c||x,h=!x&&!a&&(b||f||m||w||O||d||r||h),S=!h&&!x&&!a,L=S&&/win32|win64|windows/.test(t),U=L&&/win64|x64/.test(e),M=S&&/mac68k|macppc|macintosh|macintel/.test(e),S=S&&/linux/.test(t),t="win64"==t||/wow64|x86_64|win64|x64/.test(e)||u||p,D=/wow64/g.test(e),A=!1,C=/opera|opr/g.test(e),V=/360se/g.test(e),_=/maxthon/g.test(e),j=/tencenttraveler|qqbrowser/g.test(e),F=/the world/g.test(e),N=/metasr/g.test(e),q=/avant/g.test(e),E=/firefox|fxios/g.test(e),J=/gecko/g.test(e),I=!(E||v)&&/edge\/|edga\/|edgios\/|edg\//g.test(e),k=!(m||g||l||C||I||v||y)&&/chrome|crios/g.test(e),P=h||x,T=!1,B="",W=0,G=0,H="";return!L||I||E||k||(s=e.indexOf("msie "),n=e.indexOf("trident"),o=e.indexOf("rv:"),T=-1!=s||-1!=n||-1!=o),!(M||b||c||L||m||g||f)||l||C||I||T||E||(i=e.match(/version\/([\d.]+).*safari\//))&&(m||g||f||(k=!(A=z)),H=i[1]),I?(-1<(s=e.indexOf("edge/"))?s+=5:-1<(s=e.indexOf("edg/"))?s+=4:-1<(s=e.indexOf("edga/"))?s+=5:-1<(s=e.indexOf("edgios/"))&&(s+=7),-1<s&&-1<(i=(H=e.slice(s)).indexOf(" "))&&(H=H.slice(0,i)),P=z):E?(i=e.indexOf("firefox/"),P=z,-1<i?(i=-1<(n=(H=i=-1<(n=(i=e.slice(i+8)).indexOf(" "))?i.slice(0,n):i).indexOf("."))?H.slice(0,n):i)<27&&(P=!1):(b||c)&&-1<(i=e.indexOf("fxios/"))&&(H=i=(i=e.slice(i+6)).slice(0,i.indexOf(" ")))):T?(o=e.indexOf("msie "),m=e.indexOf("trident"),g=e.indexOf("rv:"),-1!=o?B=i=(i=e.slice(o+5)).slice(0,i.indexOf(";")):-1!=g?B=i=(i=(i=e.slice(g+3)).slice(0,i.indexOf(";"))).slice(0,i.indexOf(")")):-1!=m&&(B=i=(i=e.slice(m+7)).slice(0,i.indexOf(";"))),(""===B||10<=parseInt(B))&&(P=z),H=i):A?(i=H.indexOf("."),P=z,-1<i&&(i=H.slice(0,i))<7&&(P=!1)):l?(-1<(i=e.indexOf("ucweb"))?H=e.slice(i+5):-1<(i=e.indexOf("ucbrowser/"))&&-1<(i=(H=e.slice(i+10)).indexOf(" "))&&(H=H.slice(0,i)),P=z):C?(-1<(i=e.indexOf("version/"))?H=e.slice(i+8):-1<(i=e.indexOf("opr/"))&&(H=e.slice(i+4)),P=z):w?(-1<(i=e.indexOf("browserng/"))&&(H=e.slice(i+10)),P=z):O?(-1<(i=e.indexOf("iemobile/"))&&(H=e.slice(i+9)),P=z):k?(-1<(s=e.indexOf("chrome/"))?-1<(i=(H=e.slice(s+7)).indexOf(" "))&&(H=H.slice(0,i)):-1<(s=e.indexOf("crios/"))&&-1<(i=(H=e.slice(s+6)).indexOf(" "))&&(H=H.slice(0,i)),P=z,-1<(i=H.indexOf("."))&&(i=H.slice(0,i))<27&&(P=!1)):v?(-1<(n=e.indexOf("huaweibrowser"))&&-1<(i=(H=e.slice(n+14)).indexOf(" "))&&(H=H.slice(0,i)),P=z):y&&(-1<(o=e.indexOf("jsdom"))&&-1<(i=(H=e.slice(o+6)).indexOf(" "))&&(H=H.slice(0,i)),P=z),(I||T)&&((g=window&&window.document)&&g.documentMode?W=g.documentMode:(W=5,g.compatMode&&"CSS1Compat"==g.compatMode&&(W=7)),T&&(G=parseInt(H))),(M||S)&&(t=!0,M&&(i=e.match(/mac os x (\d+)(_|\.)(\d+)/))&&3<i.length&&(10==i[1]&&i[3]<14||i[1]<10)&&(t=!1)),{bUseUserAgent:!0,bWin:L,bMac:M,bLinux:S,bMobile:h=L||M||S||u||p?h:!0,bPad:x,bChromeOS:a,bHarmonyOS:r,bArm64:u,bMips64:p,bEmbed:u||p,bAndroid:d,biPhone:b,biPad:c,bWin64:U,bWOW64:D,bOSx64:t,bIE:T,bEdge:I,bChrome:k,bFirefox:E,bSafari:A,bOpera:C,bNexus:f,bUC:l,b360SE:V,bMaxthon:_,bTencentTraveler:j,bTheWorld:F,bMetaSr:N,bAvant:q,bHuaWeiBrowser:v,bJSDom:y,bGecko:J,bHTML5Edition:P,strBrowserVersion:H,IEVersion:G,IEMode:W}}function i(){}var s,n,o,r,a=e.Lib,d=navigator;a.bNode?(a.win=global,r=t(a._defaultAgent,a._defaultPlatform),e.navInfo=r):("object"==typeof window?(a.win=window,a.doc=window.document):a.win={},b=!0,o=void 0,"userAgentData"in d&&(n=[],(s=d.userAgentData).platform&&""!=s.platform&&("brands"in s&&Array.isArray(s.brands)&&0<s.brands.length?n=s.brands:"uaList"in s&&Array.isArray(s.uaList)&&0<s.uaList.length&&(n=s.uaList),0<n.length&&(b=!1,o=s.platform.toLowerCase(),r=function(e,t,i){for(var s,n,o,r,a,d=!1,b=!1,c=!1,l=e.mobile,f=!1,g="",x=navigator.maxTouchPoints||0,m=t.length,w=0;w<m;w++){var O=t[w].brand.toLowerCase();if(0<=O.indexOf("chrome")){c=!0,g=t[w].version;break}if(0<=O.indexOf("edge")){d=!0,g=t[w].version;break}if(0<=O.indexOf("opera")){b=!0,g=t[w].version;break}}return c||d||b||(c=!0,g="100"),{bUseUserAgent:!1,bWin:s=/windows/g.test(i),bMac:/mac/g.test(i),bLinux:n=/linux/g.test(i),bAndroid:o=/android/g.test(i),bHarmonyOS:r=/harmony/g.test(i),bChromeOS:/(chromeos|chrome\sos)/g.test(i),bIE:!1,bEdge:d,bUC:!1,bPlaybook:!1,bBlackBerry:!1,bHuaWeiBrowser:!1,bOpera:b,bFirefox:!1,bChrome:c,bJSDom:!1,biPhone:a=/iphone/g.test(i),biPad:f=s||o||n||a?f:/macintel/g.test(i)&&1<x,bPad:o&&!e.mobile,bSafari:!1,bMobile:l=o||r||a||f?!0:l,strBrowserVersion:g,bHTML5Edition:!0,IEVersion:0,IEMode:0}}(s,n,o)))),b&&(r=t(d.userAgent.toLowerCase(),o=d.platform.toLowerCase()),e.navInfo=r)),a.doc||(a.doc={getElementById:i,getElementsByTagName:i,styleSheets:[]});var b=(b=null==(n=null==(s=a.win)?void 0:s.location)?void 0:n.protocol)||"http:";r.protocol=b,r.bSSL="https:"===b,r.bFileSystem="https:"!==b&&"http:"!==b,e.navInfoSync=r}();if(Dynamsoft.navInfoSync.bIE){
|
|
34
28
|
/* @preserve
|
|
35
29
|
* The MIT License (MIT)
|
|
@@ -327,7 +327,7 @@ export interface DynamsoftViewer {
|
|
|
327
327
|
* [Description] Create a Dynamsoft Viewer instance and bind it to the WebTwain instance.
|
|
328
328
|
* @param element Specify an HTML element to create the viewer.
|
|
329
329
|
*/
|
|
330
|
-
bind(element: HTMLDivElement | HTMLElement
|
|
330
|
+
bind(element: HTMLDivElement | HTMLElement): boolean;
|
|
331
331
|
/**
|
|
332
332
|
* [Scope] Main viewer
|
|
333
333
|
* [Description] Show the viewer (Main viewer, ImageEditor, ThumbnailViewer, CustomElement).
|
|
@@ -839,25 +839,7 @@ export interface Area {
|
|
|
839
839
|
right: number;
|
|
840
840
|
bottom: number;
|
|
841
841
|
}
|
|
842
|
-
|
|
843
|
-
/**
|
|
844
|
-
* Save button click event
|
|
845
|
-
*/
|
|
846
|
-
onSaveFunc?: () => void;
|
|
847
|
-
/**
|
|
848
|
-
* Upload button click event
|
|
849
|
-
*/
|
|
850
|
-
onUploadFunc?: () => void;
|
|
851
|
-
/**
|
|
852
|
-
* Remove button click event
|
|
853
|
-
*/
|
|
854
|
-
onRemoveSelectedFunc?: () => void;
|
|
855
|
-
onExitFunc?: () => void;
|
|
856
|
-
/**
|
|
857
|
-
* Get CustomElement. Can display save & upload viewer in CustomElement.
|
|
858
|
-
*/
|
|
859
|
-
getCustomElement(): CustomElement;
|
|
860
|
-
}
|
|
842
|
+
|
|
861
843
|
export interface CheckboxSettings {
|
|
862
844
|
visibility?: string; //"visible":hidden", default:"hidden"
|
|
863
845
|
width?: number | string; //default: "24px", number unit: px, string value: "24px"/"10%", relative to parent container
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dwt",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.1",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Dynamsoft",
|
|
6
6
|
"url": "https://www.dynamsoft.com"
|
|
7
7
|
},
|
|
8
8
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"dynamsoft-javascript-barcode": "9.2.13"
|
|
11
10
|
},
|
|
12
11
|
"description": "Dynamic Web TWAIN is a TWAIN/ICA/SANE-based scanning SDK software specifically designed for web applications running on Windows/macOS/Linux. With just a few lines of code, you can develop robust applications to scan documents from TWAIN/ICA/SANE-compatible scanners, edit the scanned images and save them to a local/server file system or document repository.",
|
|
13
12
|
"devDependencies": {},
|