@scandit/web-datacapture-core 7.4.1 → 7.5.0-beta.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.
- package/build/js/{Camera-wG9iakev.d.ts → Camera-BoUtNCzS.d.ts} +48 -2
- package/build/js/Camera.d.ts +4 -1
- package/build/js/Camera.js +1 -1
- package/build/js/CameraAccess.d.ts +4 -1
- package/build/js/CameraRelated.d.ts +4 -1
- package/build/js/DataCaptureContext.d.ts +4 -1
- package/build/js/DataCaptureContext.js +1 -1
- package/build/js/DataCaptureContextRelated.d.ts +5 -2
- package/build/js/DataCaptureVersion.js +1 -1
- package/build/js/DataCaptureView.d.ts +4 -1
- package/build/js/DataCaptureView.js +1 -1
- package/build/js/Defaults.d.ts +4 -1
- package/build/js/FrameData.d.ts +5 -2
- package/build/js/ImageFrameSource.d.ts +4 -1
- package/build/js/NotificationPresenter/NotificationBuilder.d.ts +25 -0
- package/build/js/NotificationPresenter/NotificationBuilder.js +1 -0
- package/build/js/NotificationPresenter/NotificationConfiguration.d.ts +24 -0
- package/build/js/NotificationPresenter/NotificationConfiguration.js +1 -0
- package/build/js/NotificationPresenter/NotificationPresenter.d.ts +14 -0
- package/build/js/NotificationPresenter/NotificationPresenter.js +0 -0
- package/build/js/NotificationPresenter/NotificationStyle.d.ts +9 -0
- package/build/js/NotificationPresenter/NotificationStyle.js +1 -0
- package/build/js/NotificationPresenter/index.d.ts +25 -0
- package/build/js/NotificationPresenter/index.js +1 -0
- package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.d.ts +32 -0
- package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.js +1 -0
- package/build/js/NotificationPresenter/private/presets.d.ts +31 -0
- package/build/js/NotificationPresenter/private/presets.js +1 -0
- package/build/js/ScanditIcon.js +1 -1
- package/build/js/ScanditIconBuilder.js +1 -1
- package/build/js/SingleImageUploader.d.ts +4 -1
- package/build/js/chunks/chunk-3MEGNPVU.js +1 -0
- package/build/js/chunks/{chunk-GDUWHYYI.js → chunk-3RIR7ALE.js} +1 -1
- package/build/js/chunks/chunk-43NA46NY.js +11 -0
- package/build/js/chunks/chunk-6CGCPUUS.js +1 -0
- package/build/js/chunks/chunk-6YZS76QW.js +1 -0
- package/build/js/chunks/{chunk-NA6AZIR5.js → chunk-72A5262S.js} +1 -1
- package/build/js/chunks/{chunk-FKIR44OY.js → chunk-CGHQBWDT.js} +1 -1
- package/build/js/chunks/chunk-EKY4M37S.js +5 -0
- package/build/js/chunks/{chunk-ZF7CDMAC.js → chunk-FFTRSHP6.js} +1 -1
- package/build/js/chunks/{chunk-RWDRTV7B.js → chunk-FPCLZS52.js} +1 -1
- package/build/js/chunks/chunk-GGMX65YP.js +1 -0
- package/build/js/chunks/{chunk-XLFQMCQP.js → chunk-HNUWDILZ.js} +1 -1
- package/build/js/chunks/chunk-J3PS3NRY.js +21 -0
- package/build/js/chunks/chunk-KUVVZN66.js +1 -0
- package/build/js/chunks/{chunk-2T36DQ52.js → chunk-L3SHJKNC.js} +1 -1
- package/build/js/chunks/chunk-NPIPIS7X.js +1 -0
- package/build/js/chunks/{chunk-Q24GE5CE.js → chunk-OFNRGDFQ.js} +1 -1
- package/build/js/chunks/{chunk-MDSBSLWV.js → chunk-PFC2HW6V.js} +1 -1
- package/build/js/chunks/{chunk-OH5WXZBN.js → chunk-RMKJUHZW.js} +1 -1
- package/build/js/chunks/chunk-RXT3JWWR.js +1 -0
- package/build/js/chunks/chunk-SNP4G4KV.js +0 -0
- package/build/js/chunks/chunk-SQBLTG2X.js +1 -0
- package/build/js/chunks/{chunk-7B2VPGLP.js → chunk-TCJPGGHY.js} +1 -1
- package/build/js/chunks/{chunk-THEE4TYK.js → chunk-UDFHSIR5.js} +1 -1
- package/build/js/chunks/{chunk-QQXPUJCE.js → chunk-UGUDXT2N.js} +1 -1
- package/build/js/chunks/{chunk-I2LMKSHH.js → chunk-UUGROS73.js} +1 -1
- package/build/js/chunks/chunk-VXNI7DDR.js +1 -0
- package/build/js/index.d.ts +6 -2
- package/build/js/index.js +3 -3
- package/build/js/private/CameraAccess.d.ts +4 -1
- package/build/js/private/CameraManager.d.ts +4 -1
- package/build/js/private/CameraManager.js +1 -1
- package/build/js/private/CanvasDrawerWithMetrics.d.ts +6 -3
- package/build/js/private/CoreModuleLicenseTextProvider.d.ts +7 -4
- package/build/js/private/DataCaptureContextRelated.d.ts +4 -1
- package/build/js/private/FrameReaders/FrameReader.d.ts +4 -1
- package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +4 -1
- package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +4 -1
- package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
- package/build/js/private/FrameReaders/index.d.ts +4 -1
- package/build/js/private/FrameReaders/index.js +1 -1
- package/build/js/private/NormalizedConfigureOptions.d.ts +5 -1
- package/build/js/private/ViewControls+related.js +1 -1
- package/build/js/private/ViewControls_related.d.ts +5 -1
- package/build/js/private/ViewsRegistry.d.ts +4 -1
- package/build/js/private/ui/atoms/AimerSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowDownSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowLeftSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowRightSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowUpSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowsUp.js +1 -1
- package/build/js/private/ui/atoms/Backdrop.js +1 -1
- package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraSwitchSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Card.js +1 -1
- package/build/js/private/ui/atoms/CardList.js +1 -1
- package/build/js/private/ui/atoms/CheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronDownSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronLeftSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronRightSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronUpSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CrossSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Dot5xSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/GlassSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/HandLensCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/KeyboardSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/LowStockSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/OnexSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/PrinterSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ProgressBar.js +1 -1
- package/build/js/private/ui/atoms/QuestionMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RestartSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedCrossSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ShutterButton.d.ts +7 -4
- package/build/js/private/ui/atoms/ShutterButton.js +6 -22
- package/build/js/private/ui/atoms/StarFilledSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarOutlinedSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/SvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ToPickSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Toast.d.ts +9 -3
- package/build/js/private/ui/atoms/Toast.js +1 -1
- package/build/js/private/ui/atoms/TwoxSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/WrongItemSvgIcon.js +1 -1
- package/build/js/private/ui/molecules/HintPresenter.d.ts +6 -43
- package/build/js/private/ui/molecules/HintPresenter.js +1 -1
- package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
- package/build/js/private/utils/index.js +1 -1
- package/build/js/private/utils/quadrilateralUtils.d.ts +2 -1
- package/build/js/private/utils/quadrilateralUtils.js +1 -1
- package/build/js/private/utils/replaceImagesInViewUtils.d.ts +17 -0
- package/build/js/sdk.d.ts +6 -3
- package/build/js/worker/WorkerMain.d.ts +4 -1
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/coreCapture.inlineWorker.d.ts +4 -1
- package/build/js/worker/coreCapture.inlineWorker.js +1 -1
- package/build/js/worker/dataCaptureEngine.d.ts +5 -2
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/build/js/worker/dataCaptureLoader.d.ts +5 -2
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +4 -1
- package/build/js/worker/index.d.ts +4 -1
- package/build/js/worker/index.js +1 -1
- package/package.json +11 -12
- package/build/js/chunks/chunk-NBFWXBYG.js +0 -1
- package/build/js/chunks/chunk-OWJGO7ET.js +0 -1
- package/build/js/chunks/chunk-P3OK36HL.js +0 -21
- package/build/js/chunks/chunk-Q2O4RKVG.js +0 -1
- package/build/js/chunks/chunk-QYACFUV3.js +0 -5
- package/build/js/chunks/chunk-S2VISKOY.js +0 -1
- package/build/js/chunks/chunk-TUQETICB.js +0 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-72A5262S.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var t=class t extends a{static create(){return document.createElement(t.tag)}static register(){a$1({[t.tag]:t});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${t.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-72A5262S.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var t=class t extends a{static create(){return document.createElement(t.tag)}static register(){a$1({[t.tag]:t});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${t.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as RoundedCheckSvgIcon}from'../../../chunks/chunk-
|
|
1
|
+
export{a as RoundedCheckSvgIcon}from'../../../chunks/chunk-FPCLZS52.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-72A5262S.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var e=class e extends a{static create(){return document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${e.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as RoundedExclamationMarkSvgIcon}from'../../../chunks/chunk-
|
|
1
|
+
export{a as RoundedExclamationMarkSvgIcon}from'../../../chunks/chunk-UUGROS73.js';
|
|
@@ -9,11 +9,9 @@ declare const VARIANTS: {
|
|
|
9
9
|
type Variant<T = typeof VARIANTS> = T[keyof T];
|
|
10
10
|
declare class ShutterButton extends ScanditHTMLElement {
|
|
11
11
|
static readonly tag: "scandit-shutter-button";
|
|
12
|
-
private _variant;
|
|
13
12
|
private _button;
|
|
14
13
|
private _mainSVGCircle;
|
|
15
|
-
|
|
16
|
-
private _pulse;
|
|
14
|
+
shadowRoot: ShadowRoot;
|
|
17
15
|
constructor();
|
|
18
16
|
static get observedAttributes(): string[];
|
|
19
17
|
set variant(newState: Variant);
|
|
@@ -24,7 +22,12 @@ declare class ShutterButton extends ScanditHTMLElement {
|
|
|
24
22
|
get rotating(): boolean;
|
|
25
23
|
static register(): void;
|
|
26
24
|
static create(): ShutterButton;
|
|
27
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Only handle side effect of attribute changes here, or you may create a loop.
|
|
27
|
+
* See https://web.dev/articles/custom-elements-best-practices#avoid_reentrancy_issues
|
|
28
|
+
*/
|
|
29
|
+
attributeChangedCallback(name: string): void;
|
|
30
|
+
private checkVariant;
|
|
28
31
|
private refreshButtonWidth;
|
|
29
32
|
private connectedCallback;
|
|
30
33
|
private isValidState;
|
|
@@ -1,38 +1,22 @@
|
|
|
1
|
-
import {a as a$1}from'../../../chunks/chunk-
|
|
1
|
+
import {a as a$1}from'../../../chunks/chunk-EV4OEANA.js';import {a as a$2}from'../../../chunks/chunk-3A4KLILV.js';import {a}from'../../../chunks/chunk-MU6SADSF.js';import {a as a$4}from'../../../chunks/chunk-LSZZVJ6B.js';import {a as a$3}from'../../../chunks/chunk-XR65N6EG.js';var c="play",p="pause",b=a`
|
|
2
2
|
<svg viewBox="0 0 100 100">
|
|
3
3
|
<defs>
|
|
4
|
-
<mask id="${
|
|
4
|
+
<mask id="${c}">
|
|
5
5
|
<rect width="100" height="100" fill="white" />
|
|
6
6
|
<path
|
|
7
7
|
d="M40 59.4416V40.5584C40 39.8297 40.7543 39.3457 41.4167 39.6493L62.0166 49.0909C62.7944 49.4474 62.7944 50.5526 62.0166 50.9091L41.4167 60.3507C40.7543 60.6543 40 60.1703 40 59.4416Z"
|
|
8
8
|
fill="black"
|
|
9
9
|
/>
|
|
10
10
|
</mask>
|
|
11
|
-
<mask id="${
|
|
11
|
+
<mask id="${p}">
|
|
12
12
|
<rect width="100" height="100" fill="white" />
|
|
13
13
|
<rect x="40" y="38" width="8" height="24" rx="2" fill="black" />
|
|
14
14
|
<rect x="52" y="38" width="8" height="24" rx="2" fill="black" />
|
|
15
15
|
</mask>
|
|
16
16
|
</defs>
|
|
17
17
|
<g class="">
|
|
18
|
-
<circle
|
|
19
|
-
|
|
20
|
-
class="center"
|
|
21
|
-
cx="50"
|
|
22
|
-
cy="50"
|
|
23
|
-
r="40"
|
|
24
|
-
fill="white"
|
|
25
|
-
mask="url(#${h})"
|
|
26
|
-
/>
|
|
27
|
-
<circle
|
|
28
|
-
class="border"
|
|
29
|
-
cx="50"
|
|
30
|
-
cy="50"
|
|
31
|
-
r="48"
|
|
32
|
-
fill="none"
|
|
33
|
-
stroke-width="3"
|
|
34
|
-
stroke="white"
|
|
35
|
-
/>
|
|
18
|
+
<circle id="main-circle" class="center" cx="50" cy="50" r="40" fill="white" mask="url(#${c})" />
|
|
19
|
+
<circle class="border" cx="50" cy="50" r="48" fill="none" stroke-width="3" stroke="white" />
|
|
36
20
|
</g>
|
|
37
21
|
</svg>
|
|
38
|
-
`;function
|
|
22
|
+
`;function g(){return a$4`:host{--button-width:0px;display:inline-block;touch-action:manipulation}:host([hidden]){display:none}button{background:none;border:none;border-radius:100%;line-height:0;margin:0;padding:0;touch-action:manipulation}button.pulse{animation:pulsate 2s infinite;animation-delay:.3s;border-radius:100%;box-shadow:0 0 0 0 hsla(0,0%,100%,.5)}svg{position:relative;width:100%}@keyframes pulsate{0%{transform:scale(1)}5%{box-shadow:0 0 0 0 hsla(0,0%,100%,.5);transform:scale(.9)}20%{transform:scale(1)}to{box-shadow:0 0 0 calc(var(--button-width)/2) hsla(0,0%,100%,0)}}`}function m(){return a$4`.rotating .border{stroke-dasharray:302 301;animation-direction:normal;animation-duration:4s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:rotating-stroke;animation-timing-function:linear;transform-origin:center}@keyframes rotating-stroke{0%{stroke-dasharray:302 301;transform:rotate(0)}50%{stroke-dasharray:1 301}51%{stroke-dasharray:0 291 10}to{stroke-dasharray:0 1 301;transform:rotate(-2turn)}}`}var d={default:"default",play:"play",pause:"pause"},i=class i extends a$1{constructor(){super();this._mainSVGCircle=null;this.shadowRoot||this.attachShadow({mode:"open"});}static get observedAttributes(){return ["variant","pulse","rotating"]}set variant(t){this.checkVariant(t)&&this.setAttribute("variant",t);}get variant(){var t;return (t=this.getAttribute("variant"))!=null?t:"default"}set pulse(t){t?this.setAttribute("pulse",""):this.removeAttribute("pulse");}get pulse(){return this.hasAttribute("pulse")}set rotating(t){t?this.setAttribute("rotating",""):this.removeAttribute("rotating");}get rotating(){return this.hasAttribute("rotating")}static register(){a$2({[i.tag]:i});}static create(){return document.createElement(i.tag)}attributeChangedCallback(t){var e,s,n;if(t==="variant"){if(!this.checkVariant(this.getAttribute("variant"))){this.variant="default";return}this._button&&(this.refreshButtonWidth(),this._button.classList.add(this.variant),(e=this._mainSVGCircle)==null||e.setAttribute("mask",`url(#${this.variant})`));}t==="pulse"&&(this.refreshButtonWidth(),(s=this._button)==null||s.classList.toggle("pulse",this.pulse)),t==="rotating"&&((n=this._button)==null||n.classList.toggle("rotating",this.rotating));}checkVariant(t){return this.isValidState(t)?true:(a$3.warn(`Invalid variant: "${t}". Must be one of ${Object.values(d).toString()}`),false)}refreshButtonWidth(){var e;let{width:t}=this.getBoundingClientRect();(e=this._button)==null||e.style.setProperty("--button-width",`${t}px`);}connectedCallback(){var t;this.hasAttribute("variant")||(this.variant="default"),this._button||(this._button=document.createElement("button"),this._button.innerHTML=b,this._button.classList.add(this.variant),this._button.classList.toggle("pulse",this.pulse),this._button.classList.toggle("rotating",this.rotating),this.shadowRoot.append(this._button),this.appendStyle(),this._mainSVGCircle=this._button.querySelector("#main-circle"),(t=this._mainSVGCircle)==null||t.setAttribute("mask",`url(#${this.variant})`),this.refreshButtonWidth());}isValidState(t){return t==null?false:Object.values(d).includes(t)}appendStyle(){var t;this.shadowRoot.append(g().cloneNode(true)),(t=this.shadowRoot.querySelector("svg"))==null||t.prepend(m().cloneNode(true));}};i.tag="scandit-shutter-button";var r=i;r.register();export{r as ShutterButton,d as VARIANTS};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-72A5262S.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var t=class t extends a{static create(){return document.createElement(t.tag)}static register(){a$1({[t.tag]:t});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${t.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-72A5262S.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var t=class t extends a{static create(){return document.createElement(t.tag)}static register(){a$1({[t.tag]:t});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${t.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-72A5262S.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var t=class t extends a{static create(){return document.createElement(t.tag)}static register(){a$1({[t.tag]:t});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${t.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SvgIcon}from'../../../chunks/chunk-
|
|
1
|
+
export{a as SvgIcon}from'../../../chunks/chunk-72A5262S.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-72A5262S.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var e=class e extends a{static create(){return document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${e.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import { ScanditHTMLElement } from '../../utils/ScanditHTMLElement.js';
|
|
3
|
-
import {
|
|
4
|
-
import '
|
|
3
|
+
import { ScanditIcon } from '../../../ScanditIcon.js';
|
|
4
|
+
import { Z as GenericHint } from '../../../Camera-BoUtNCzS.js';
|
|
5
5
|
import '../../../Common.js';
|
|
6
|
+
import '../../Serializable.js';
|
|
6
7
|
import '../../FrameReaders/WatermarkStack.js';
|
|
7
8
|
import '../../../tsHelper.js';
|
|
8
|
-
import '../../../ScanditIcon.js';
|
|
9
9
|
import '../../../DataCaptureContextSettings.js';
|
|
10
10
|
import '../../../DataCaptureViewPlusRelated.js';
|
|
11
|
+
import '../../../NotificationPresenter/NotificationPresenter.js';
|
|
12
|
+
import '../../../NotificationPresenter/NotificationConfiguration.js';
|
|
13
|
+
import '../../../NotificationPresenter/NotificationStyle.js';
|
|
11
14
|
import '../../../ViewControls.js';
|
|
12
15
|
import '../../CustomLocationsView.js';
|
|
13
16
|
import '../../View.js';
|
|
@@ -37,6 +40,7 @@ declare class Toast extends ScanditHTMLElement {
|
|
|
37
40
|
static readonly tag: "scandit-toast-hint";
|
|
38
41
|
private toast;
|
|
39
42
|
private _hintStyle;
|
|
43
|
+
private _customIcon;
|
|
40
44
|
private currentAnimation;
|
|
41
45
|
private _exclamationIcon;
|
|
42
46
|
private _checkIcon;
|
|
@@ -45,6 +49,8 @@ declare class Toast extends ScanditHTMLElement {
|
|
|
45
49
|
private static createStyleElement;
|
|
46
50
|
get hintStyle(): GenericHint["hintStyle"] | null;
|
|
47
51
|
set hintStyle(hintStyle: GenericHint["hintStyle"]);
|
|
52
|
+
get customIcon(): ScanditIcon | null;
|
|
53
|
+
set customIcon(icon: ScanditIcon | null);
|
|
48
54
|
private get showAnimation();
|
|
49
55
|
private get hideAnimation();
|
|
50
56
|
static create(): Toast;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as Toast,a as ToastEvents}from'../../../chunks/chunk-
|
|
1
|
+
export{b as Toast,a as ToastEvents}from'../../../chunks/chunk-43NA46NY.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-72A5262S.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var t=class t extends a{static create(){return document.createElement(t.tag)}static register(){a$1({[t.tag]:t});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${t.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-72A5262S.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var e=class e extends a{static create(){return document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${e.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { ScanditHTMLElement } from '../../utils/ScanditHTMLElement.js';
|
|
3
|
-
import { Rect } from '../../../Common.js';
|
|
4
|
-
import { Y as DataCaptureCallbackMessage } from '../../../Camera-wG9iakev.js';
|
|
5
2
|
import '../../../ScanditIcon.js';
|
|
3
|
+
import '../../utils/ScanditHTMLElement.js';
|
|
4
|
+
import '../../../Common.js';
|
|
5
|
+
export { U as HintPresenter, bv as HintPresenterEvents } from '../../../Camera-BoUtNCzS.js';
|
|
6
6
|
import '../../Serializable.js';
|
|
7
7
|
import '../../FrameReaders/WatermarkStack.js';
|
|
8
8
|
import '../../../tsHelper.js';
|
|
9
9
|
import '../../../DataCaptureContextSettings.js';
|
|
10
10
|
import '../../../DataCaptureViewPlusRelated.js';
|
|
11
|
+
import '../../../NotificationPresenter/NotificationPresenter.js';
|
|
12
|
+
import '../../../NotificationPresenter/NotificationConfiguration.js';
|
|
13
|
+
import '../../../NotificationPresenter/NotificationStyle.js';
|
|
11
14
|
import '../../../ViewControls.js';
|
|
12
15
|
import '../../CustomLocationsView.js';
|
|
13
16
|
import '../../View.js';
|
|
@@ -18,43 +21,3 @@ import '../../HtmlElementState.js';
|
|
|
18
21
|
import '../../../worker/OverrideState.js';
|
|
19
22
|
import '../../../logger.js';
|
|
20
23
|
import '../../../LoadingStatus.js';
|
|
21
|
-
|
|
22
|
-
declare enum HintPresenterEvents {
|
|
23
|
-
Update = "hintpresenterupdate"
|
|
24
|
-
}
|
|
25
|
-
declare class HintPresenter extends ScanditHTMLElement {
|
|
26
|
-
static readonly tag: "scandit-hints";
|
|
27
|
-
private intervalId;
|
|
28
|
-
private root;
|
|
29
|
-
private _viewFinderRect;
|
|
30
|
-
private onDidToastHideHandler;
|
|
31
|
-
private orientationObserver;
|
|
32
|
-
private onOrientationChangeHandler;
|
|
33
|
-
constructor();
|
|
34
|
-
private static createStyleElement;
|
|
35
|
-
static register(): void;
|
|
36
|
-
static create(): HintPresenter;
|
|
37
|
-
connectedCallback(): void;
|
|
38
|
-
disconnectedCallback(): void;
|
|
39
|
-
setViewFinderRect(rect: Rect | null): void;
|
|
40
|
-
handleMessage(message: DataCaptureCallbackMessage): void;
|
|
41
|
-
private onDidToastHide;
|
|
42
|
-
private showToast;
|
|
43
|
-
private hideToast;
|
|
44
|
-
private showGuidance;
|
|
45
|
-
private hideGuidance;
|
|
46
|
-
private startUpdateTimer;
|
|
47
|
-
private stopUpdateTimer;
|
|
48
|
-
private idFromHint;
|
|
49
|
-
private onOrientationChange;
|
|
50
|
-
}
|
|
51
|
-
declare global {
|
|
52
|
-
interface HTMLElementTagNameMap {
|
|
53
|
-
[HintPresenter.tag]: HintPresenter;
|
|
54
|
-
}
|
|
55
|
-
interface HTMLElementEventMap {
|
|
56
|
-
[HintPresenterEvents.Update]: CustomEvent<void>;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export { HintPresenter, HintPresenterEvents };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as HintPresenter,a as HintPresenterEvents}from'../../../chunks/chunk-
|
|
1
|
+
export{b as HintPresenter,a as HintPresenterEvents}from'../../../chunks/chunk-EKY4M37S.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as LoadingOverlay}from'../../../chunks/chunk-
|
|
1
|
+
export{a as LoadingOverlay}from'../../../chunks/chunk-RMKJUHZW.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as
|
|
1
|
+
export{a as wait}from'../../chunks/chunk-UZWBB65W.js';export{a as waitTransitionEndForElement}from'../../chunks/chunk-2HTI5D6Y.js';export{a as throttle}from'../../chunks/chunk-T3AOBMAS.js';export{a as Timeout}from'../../chunks/chunk-Q7JWDX4U.js';export{a as ScanditHTMLElement}from'../../chunks/chunk-EV4OEANA.js';export{a as clamp}from'../../chunks/chunk-L2STPTEN.js';export{a as defineCustomElements}from'../../chunks/chunk-3A4KLILV.js';export{a as html}from'../../chunks/chunk-MU6SADSF.js';export{a as unknownErrorToString}from'../../chunks/chunk-AIRWHLJH.js';export{a as isObject}from'../../chunks/chunk-FGO2SSRS.js';export{a as isWorkerScope}from'../../chunks/chunk-QCRFVRSS.js';export{a as Deferred}from'../../chunks/chunk-O7TZTIHO.js';export{a as css}from'../../chunks/chunk-LSZZVJ6B.js';export{a as debounce}from'../../chunks/chunk-R6E4CT22.js';
|
|
@@ -4,5 +4,6 @@ import '../Serializable.js';
|
|
|
4
4
|
|
|
5
5
|
declare function calculateWidth(quadrilateral: Quadrilateral): number;
|
|
6
6
|
declare function calculateHeight(quadrilateral: Quadrilateral): number;
|
|
7
|
+
declare function calculateArea(quadrilateral: Quadrilateral): number;
|
|
7
8
|
|
|
8
|
-
export { calculateHeight, calculateWidth };
|
|
9
|
+
export { calculateArea, calculateHeight, calculateWidth };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function c(t,o){let e=o.x-t.x,n=o.y-t.y;return Math.hypot(e,n)}function h(t){return (c(t.topLeft,t.topRight)+c(t.bottomLeft,t.bottomRight))/2}function f(t){return (c(t.topRight,t.bottomRight)+c(t.bottomLeft,t.topLeft))/2}function i(t){let o=[t.topLeft,t.topRight,t.bottomRight,t.bottomLeft],e=0;for(let n=0;n<o.length;n++){let m=(n+1)%o.length;e+=o[n].x*o[m].y,e-=o[m].x*o[n].y;}return Math.abs(e)/2}export{i as calculateArea,f as calculateHeight,h as calculateWidth};
|
|
@@ -2,8 +2,25 @@
|
|
|
2
2
|
import { Size } from '../../Common.js';
|
|
3
3
|
import { Optional } from '../../tsHelper.js';
|
|
4
4
|
import '../../ScanditIcon.js';
|
|
5
|
+
import '../../Camera-BoUtNCzS.js';
|
|
5
6
|
import '../Serializable.js';
|
|
6
7
|
import './ScanditHTMLElement.js';
|
|
8
|
+
import '../FrameReaders/WatermarkStack.js';
|
|
9
|
+
import '../../DataCaptureContextSettings.js';
|
|
10
|
+
import '../../DataCaptureViewPlusRelated.js';
|
|
11
|
+
import '../../NotificationPresenter/NotificationPresenter.js';
|
|
12
|
+
import '../../NotificationPresenter/NotificationConfiguration.js';
|
|
13
|
+
import '../../NotificationPresenter/NotificationStyle.js';
|
|
14
|
+
import '../../ViewControls.js';
|
|
15
|
+
import '../CustomLocationsView.js';
|
|
16
|
+
import '../View.js';
|
|
17
|
+
import '../AnchorPositions.js';
|
|
18
|
+
import '../nativeHandle.js';
|
|
19
|
+
import '../../license/OpenSourceSoftwareLicenseInfo.js';
|
|
20
|
+
import '../HtmlElementState.js';
|
|
21
|
+
import '../../worker/OverrideState.js';
|
|
22
|
+
import '../../logger.js';
|
|
23
|
+
import '../../LoadingStatus.js';
|
|
7
24
|
|
|
8
25
|
type Encoding = "charset=utf-8";
|
|
9
26
|
type SvgMimeType = "image/svg+xml";
|
package/build/js/sdk.d.ts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import { LoadingStatus } from './LoadingStatus.js';
|
|
3
|
-
import { D as DataCaptureLoader } from './Camera-wG9iakev.js';
|
|
4
3
|
import './ScanditIcon.js';
|
|
5
|
-
import './
|
|
4
|
+
import { D as DataCaptureLoader } from './Camera-BoUtNCzS.js';
|
|
6
5
|
import './Common.js';
|
|
6
|
+
import './private/Serializable.js';
|
|
7
|
+
import './private/utils/ScanditHTMLElement.js';
|
|
7
8
|
import './private/FrameReaders/WatermarkStack.js';
|
|
8
9
|
import './tsHelper.js';
|
|
9
10
|
import './DataCaptureContextSettings.js';
|
|
10
11
|
import './DataCaptureViewPlusRelated.js';
|
|
12
|
+
import './NotificationPresenter/NotificationPresenter.js';
|
|
13
|
+
import './NotificationPresenter/NotificationConfiguration.js';
|
|
14
|
+
import './NotificationPresenter/NotificationStyle.js';
|
|
11
15
|
import './ViewControls.js';
|
|
12
16
|
import './private/CustomLocationsView.js';
|
|
13
17
|
import './private/View.js';
|
|
@@ -17,7 +21,6 @@ import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
|
17
21
|
import './private/HtmlElementState.js';
|
|
18
22
|
import './worker/OverrideState.js';
|
|
19
23
|
import './logger.js';
|
|
20
|
-
import './private/utils/ScanditHTMLElement.js';
|
|
21
24
|
|
|
22
25
|
interface SDKGlobals {
|
|
23
26
|
configurePhase: "done" | "started" | "unconfigured";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import {
|
|
2
|
+
import { X as DataCaptureEngine, Y as Module, _ as AnyDataCaptureActionMessage, $ as AugmentedWorker, a0 as ModuleHandler, a1 as DataCaptureCallbackMessage, a2 as DataCaptureActionMessageKey, a3 as EngineWorkerResponse } from '../Camera-BoUtNCzS.js';
|
|
3
3
|
import '../private/Serializable.js';
|
|
4
4
|
import '../Common.js';
|
|
5
5
|
import '../private/FrameReaders/WatermarkStack.js';
|
|
@@ -8,6 +8,9 @@ import '../ScanditIcon.js';
|
|
|
8
8
|
import '../private/utils/ScanditHTMLElement.js';
|
|
9
9
|
import '../DataCaptureContextSettings.js';
|
|
10
10
|
import '../DataCaptureViewPlusRelated.js';
|
|
11
|
+
import '../NotificationPresenter/NotificationPresenter.js';
|
|
12
|
+
import '../NotificationPresenter/NotificationConfiguration.js';
|
|
13
|
+
import '../NotificationPresenter/NotificationStyle.js';
|
|
11
14
|
import '../ViewControls.js';
|
|
12
15
|
import '../private/CustomLocationsView.js';
|
|
13
16
|
import '../private/View.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as WorkerMain}from'../chunks/chunk-
|
|
1
|
+
export{a as WorkerMain}from'../chunks/chunk-CGHQBWDT.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import {
|
|
2
|
+
import { X as DataCaptureEngine, Y as Module } from '../Camera-BoUtNCzS.js';
|
|
3
3
|
import { WorkerMain } from './WorkerMain.js';
|
|
4
4
|
import '../private/Serializable.js';
|
|
5
5
|
import '../Common.js';
|
|
@@ -9,6 +9,9 @@ import '../ScanditIcon.js';
|
|
|
9
9
|
import '../private/utils/ScanditHTMLElement.js';
|
|
10
10
|
import '../DataCaptureContextSettings.js';
|
|
11
11
|
import '../DataCaptureViewPlusRelated.js';
|
|
12
|
+
import '../NotificationPresenter/NotificationPresenter.js';
|
|
13
|
+
import '../NotificationPresenter/NotificationConfiguration.js';
|
|
14
|
+
import '../NotificationPresenter/NotificationStyle.js';
|
|
12
15
|
import '../ViewControls.js';
|
|
13
16
|
import '../private/CustomLocationsView.js';
|
|
14
17
|
import '../private/View.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as InlineWorker,a as workerInstance}from'../chunks/chunk-
|
|
1
|
+
export{b as InlineWorker,a as workerInstance}from'../chunks/chunk-SQBLTG2X.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export {
|
|
2
|
+
export { bf as CreateContextParameters, X as DataCaptureEngine, be as LoadLibraryParameters, bi as ProcessFrameParameters, bj as ReportCameraPropertiesParameters, bh as SetFrameSourceParameters, bg as UpdateContextParameters, bk as WorkerFunctions } from '../Camera-BoUtNCzS.js';
|
|
3
3
|
import './OverrideState.js';
|
|
4
4
|
import '../LoadingStatus.js';
|
|
5
5
|
import '../Common.js';
|
|
@@ -7,8 +7,12 @@ import '../ScanditIcon.js';
|
|
|
7
7
|
import '../private/Serializable.js';
|
|
8
8
|
import '../private/FrameReaders/WatermarkStack.js';
|
|
9
9
|
import '../tsHelper.js';
|
|
10
|
+
import '../private/utils/ScanditHTMLElement.js';
|
|
10
11
|
import '../DataCaptureContextSettings.js';
|
|
11
12
|
import '../DataCaptureViewPlusRelated.js';
|
|
13
|
+
import '../NotificationPresenter/NotificationPresenter.js';
|
|
14
|
+
import '../NotificationPresenter/NotificationConfiguration.js';
|
|
15
|
+
import '../NotificationPresenter/NotificationStyle.js';
|
|
12
16
|
import '../ViewControls.js';
|
|
13
17
|
import '../private/CustomLocationsView.js';
|
|
14
18
|
import '../private/View.js';
|
|
@@ -17,4 +21,3 @@ import '../private/nativeHandle.js';
|
|
|
17
21
|
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
18
22
|
import '../private/HtmlElementState.js';
|
|
19
23
|
import '../logger.js';
|
|
20
|
-
import '../private/utils/ScanditHTMLElement.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureEngine}from'../chunks/chunk-
|
|
1
|
+
export{a as DataCaptureEngine}from'../chunks/chunk-VXNI7DDR.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import './OverrideState.js';
|
|
3
|
-
export { D as DataCaptureLoader, S as DataCaptureLoaderOptions } from '../Camera-
|
|
3
|
+
export { D as DataCaptureLoader, S as DataCaptureLoaderOptions } from '../Camera-BoUtNCzS.js';
|
|
4
4
|
import '../logger.js';
|
|
5
5
|
import '../LoadingStatus.js';
|
|
6
6
|
import '../ScanditIcon.js';
|
|
@@ -8,8 +8,12 @@ import '../private/Serializable.js';
|
|
|
8
8
|
import '../Common.js';
|
|
9
9
|
import '../private/FrameReaders/WatermarkStack.js';
|
|
10
10
|
import '../tsHelper.js';
|
|
11
|
+
import '../private/utils/ScanditHTMLElement.js';
|
|
11
12
|
import '../DataCaptureContextSettings.js';
|
|
12
13
|
import '../DataCaptureViewPlusRelated.js';
|
|
14
|
+
import '../NotificationPresenter/NotificationPresenter.js';
|
|
15
|
+
import '../NotificationPresenter/NotificationConfiguration.js';
|
|
16
|
+
import '../NotificationPresenter/NotificationStyle.js';
|
|
13
17
|
import '../ViewControls.js';
|
|
14
18
|
import '../private/CustomLocationsView.js';
|
|
15
19
|
import '../private/View.js';
|
|
@@ -17,4 +21,3 @@ import '../private/AnchorPositions.js';
|
|
|
17
21
|
import '../private/nativeHandle.js';
|
|
18
22
|
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
19
23
|
import '../private/HtmlElementState.js';
|
|
20
|
-
import '../private/utils/ScanditHTMLElement.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import '../Common.js';
|
|
3
|
-
export {
|
|
3
|
+
export { as as AddNativeOverlayAction, _ as AnyDataCaptureActionMessage, $ as AugmentedWorker, aW as CaptureModeDeserializerInstance, ab as CreateContextDataCaptureAction, a2 as DataCaptureActionMessageKey, a1 as DataCaptureCallbackMessage, au as DataCaptureCallbackMessageKeys, aO as DataCaptureContext, aV as DataCaptureContextDeserializer, aU as DataCaptureContextDeserializerResult, aP as DataCaptureImageBufferFrameSource, aS as DataCaptureView, aM as DataCaptureWorker, af as DeleteFrameDataDataCaptureAction, aB as DidTapTrackedBarcode, aj as DisposeDataCaptureAction, aN as EmscriptenClassHandle, a3 as EngineWorkerResponse, an as ExtractCentaurusLicenseDataCaptureAction, a4 as ExtractCentaurusLicenseResponse, ak as FlushAnalyticsDataCaptureAction, Z as GenericHint, aQ as GestureListener, aR as GestureRecognizer, ar as GetOpenSourceSoftwareLicenseInfoAction, a8 as GetOpenSourceSoftwareLicenseInfoResponse, a7 as GetViewfinderInfo, aq as GetViewfinderInfoAction, b8 as GuidanceHint, b6 as GuidanceHintAnchor, b7 as GuidanceHintStyle, aI as HideGuidanceMessage, az as HideHintWorkerMessage, aG as HideToastMessage, b4 as HintAnchor, b2 as HintCornerStyle, a_ as HintFont, b1 as HintHeight, b3 as HintIcon, bc as HintPresenterV2, ap as HintPresenterV2updateAction, b5 as HintStyle, a$ as HintTextAlignment, b0 as HintWidth, ah as IsFeatureSupportedAction, ay as IsFeatureSupportedMessage, a6 as IsFeatureSupportedResponse, aT as JSONParseable, bb as LicensedFeature, aa as LoadLibraryDataCaptureAction, Y as Module, a0 as ModuleHandler, aX as ModuleMirrorAxis, aD as OnFrameProcessingFinishedMessage, aC as OnFrameProcessingStartedMessage, aE as OnFrameSkippedMessage, ao as OnTapAction, aL as PayloadForCommand, W as PerformanceMetrics, aA as PerformanceMetricsReportMessage, bd as PlatformHintPresenter, ad as ProcessFrameDataCaptureAction, at as RemoveNativeOverlayAction, al as ReportCameraPropertiesDataCaptureAction, ae as RequestFrameDataDataCaptureAction, a5 as RequestFrameDataResponse, ac as SetFrameSourceDataCaptureAction, am as SetLogLevelDataCaptureAction, aH as ShowGuidanceMessage, aw as ShowHintWorkerMessage, aF as ShowToastMessage, aJ as StartUpdateTimerMessage, aK as StopUpdateTimerMessage, av as SuccessFeedbackWorkerMessage, ba as ToastHint, b9 as ToastHintStyle, ai as UpdateContextDataCaptureAction, ax as UpdateHintWorkerMessage, aY as Vector, ag as VisibilityChangeAction, aZ as WasmFrameData, a9 as WorkerResponse } from '../Camera-BoUtNCzS.js';
|
|
4
4
|
import '../LoadingStatus.js';
|
|
5
5
|
import '../logger.js';
|
|
6
6
|
import '../private/Serializable.js';
|
|
@@ -10,6 +10,9 @@ import '../ScanditIcon.js';
|
|
|
10
10
|
import '../private/utils/ScanditHTMLElement.js';
|
|
11
11
|
import '../DataCaptureContextSettings.js';
|
|
12
12
|
import '../DataCaptureViewPlusRelated.js';
|
|
13
|
+
import '../NotificationPresenter/NotificationPresenter.js';
|
|
14
|
+
import '../NotificationPresenter/NotificationConfiguration.js';
|
|
15
|
+
import '../NotificationPresenter/NotificationStyle.js';
|
|
13
16
|
import '../ViewControls.js';
|
|
14
17
|
import '../private/CustomLocationsView.js';
|
|
15
18
|
import '../private/View.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
export { WorkerMain } from './WorkerMain.js';
|
|
3
|
-
export {
|
|
3
|
+
export { as as AddNativeOverlayAction, _ as AnyDataCaptureActionMessage, $ as AugmentedWorker, aW as CaptureModeDeserializerInstance, ab as CreateContextDataCaptureAction, bf as CreateContextParameters, a2 as DataCaptureActionMessageKey, a1 as DataCaptureCallbackMessage, au as DataCaptureCallbackMessageKeys, aO as DataCaptureContext, aV as DataCaptureContextDeserializer, aU as DataCaptureContextDeserializerResult, X as DataCaptureEngine, aP as DataCaptureImageBufferFrameSource, D as DataCaptureLoader, S as DataCaptureLoaderOptions, aS as DataCaptureView, aM as DataCaptureWorker, af as DeleteFrameDataDataCaptureAction, aB as DidTapTrackedBarcode, aj as DisposeDataCaptureAction, aN as EmscriptenClassHandle, a3 as EngineWorkerResponse, an as ExtractCentaurusLicenseDataCaptureAction, a4 as ExtractCentaurusLicenseResponse, ak as FlushAnalyticsDataCaptureAction, Z as GenericHint, aQ as GestureListener, aR as GestureRecognizer, ar as GetOpenSourceSoftwareLicenseInfoAction, a8 as GetOpenSourceSoftwareLicenseInfoResponse, a7 as GetViewfinderInfo, aq as GetViewfinderInfoAction, b8 as GuidanceHint, b6 as GuidanceHintAnchor, b7 as GuidanceHintStyle, aI as HideGuidanceMessage, az as HideHintWorkerMessage, aG as HideToastMessage, b4 as HintAnchor, b2 as HintCornerStyle, a_ as HintFont, b1 as HintHeight, b3 as HintIcon, bc as HintPresenterV2, ap as HintPresenterV2updateAction, b5 as HintStyle, a$ as HintTextAlignment, b0 as HintWidth, ah as IsFeatureSupportedAction, ay as IsFeatureSupportedMessage, a6 as IsFeatureSupportedResponse, aT as JSONParseable, bb as LicensedFeature, aa as LoadLibraryDataCaptureAction, be as LoadLibraryParameters, Y as Module, a0 as ModuleHandler, aX as ModuleMirrorAxis, aD as OnFrameProcessingFinishedMessage, aC as OnFrameProcessingStartedMessage, aE as OnFrameSkippedMessage, ao as OnTapAction, aL as PayloadForCommand, W as PerformanceMetrics, aA as PerformanceMetricsReportMessage, bd as PlatformHintPresenter, ad as ProcessFrameDataCaptureAction, bi as ProcessFrameParameters, at as RemoveNativeOverlayAction, al as ReportCameraPropertiesDataCaptureAction, bj as ReportCameraPropertiesParameters, ae as RequestFrameDataDataCaptureAction, a5 as RequestFrameDataResponse, ac as SetFrameSourceDataCaptureAction, bh as SetFrameSourceParameters, am as SetLogLevelDataCaptureAction, aH as ShowGuidanceMessage, aw as ShowHintWorkerMessage, aF as ShowToastMessage, aJ as StartUpdateTimerMessage, aK as StopUpdateTimerMessage, av as SuccessFeedbackWorkerMessage, ba as ToastHint, b9 as ToastHintStyle, ai as UpdateContextDataCaptureAction, bg as UpdateContextParameters, ax as UpdateHintWorkerMessage, aY as Vector, ag as VisibilityChangeAction, aZ as WasmFrameData, bk as WorkerFunctions, a9 as WorkerResponse } from '../Camera-BoUtNCzS.js';
|
|
4
4
|
import '../private/Serializable.js';
|
|
5
5
|
import '../Common.js';
|
|
6
6
|
import '../private/FrameReaders/WatermarkStack.js';
|
|
@@ -9,6 +9,9 @@ import '../ScanditIcon.js';
|
|
|
9
9
|
import '../private/utils/ScanditHTMLElement.js';
|
|
10
10
|
import '../DataCaptureContextSettings.js';
|
|
11
11
|
import '../DataCaptureViewPlusRelated.js';
|
|
12
|
+
import '../NotificationPresenter/NotificationPresenter.js';
|
|
13
|
+
import '../NotificationPresenter/NotificationConfiguration.js';
|
|
14
|
+
import '../NotificationPresenter/NotificationStyle.js';
|
|
12
15
|
import '../ViewControls.js';
|
|
13
16
|
import '../private/CustomLocationsView.js';
|
|
14
17
|
import '../private/View.js';
|
package/build/js/worker/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureLoader}from'../chunks/chunk-VGSPU525.js';export{a as WorkerMain}from'../chunks/chunk-
|
|
1
|
+
export{a as DataCaptureLoader}from'../chunks/chunk-VGSPU525.js';export{a as WorkerMain}from'../chunks/chunk-CGHQBWDT.js';export{a as DataCaptureEngine}from'../chunks/chunk-VXNI7DDR.js';export{h as GuidanceHintAnchor,i as GuidanceHintStyle,g as HintAnchor,e as HintCornerStyle,a as HintFont,d as HintHeight,f as HintIcon,b as HintTextAlignment,c as HintWidth,k as LicensedFeature,j as ToastHintStyle}from'../chunks/chunk-L7TY4UEP.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scandit/web-datacapture-core",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.5.0-beta.1",
|
|
4
4
|
"description": "Scandit Data Capture SDK for the Web",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -107,7 +107,6 @@
|
|
|
107
107
|
"sdc-lib/"
|
|
108
108
|
],
|
|
109
109
|
"scripts": {
|
|
110
|
-
"dev": "NODE_ENV=debug concurrently -n build,tsc,http-server \"npm run build-watch\" \"npm run types-watch\" \"http-server build -m '{\"application/wasm\": [\"wasm\"]}'\"",
|
|
111
110
|
"types-watch": "tsc -p tsconfig.json -w --noEmit --preserveWatchOutput",
|
|
112
111
|
"types-check": "tsc -p tsconfig.json --noEmit",
|
|
113
112
|
"build": "npx tsup",
|
|
@@ -133,15 +132,15 @@
|
|
|
133
132
|
}
|
|
134
133
|
},
|
|
135
134
|
"dependencies": {
|
|
136
|
-
"@types/emscripten": "
|
|
137
|
-
"@types/howler": "
|
|
138
|
-
"@types/js-cookie": "
|
|
139
|
-
"@types/offscreencanvas": "
|
|
140
|
-
"@types/ua-parser-js": "
|
|
141
|
-
"csstype": "
|
|
142
|
-
"howler": "
|
|
143
|
-
"js-cookie": "
|
|
144
|
-
"ua-parser-js": "
|
|
145
|
-
"wasm-feature-detect": "
|
|
135
|
+
"@types/emscripten": "1.40.1",
|
|
136
|
+
"@types/howler": "2.2.12",
|
|
137
|
+
"@types/js-cookie": "3.0.6",
|
|
138
|
+
"@types/offscreencanvas": "2019.7.3",
|
|
139
|
+
"@types/ua-parser-js": "0.7.39",
|
|
140
|
+
"csstype": "3.1.3",
|
|
141
|
+
"howler": "2.2.4",
|
|
142
|
+
"js-cookie": "3.0.5",
|
|
143
|
+
"ua-parser-js": "1.0.40",
|
|
144
|
+
"wasm-feature-detect": "1.8.0"
|
|
146
145
|
}
|
|
147
146
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-XLFQMCQP.js';import {d as d$1}from'./chunk-4D2BPF6X.js';import {a as a$2}from'./chunk-IYYM2J7I.js';import {a}from'./chunk-XR65N6EG.js';import {f as f$1,g as g$1}from'./chunk-OPX62GWU.js';var S=(t=>(t.Idle="idle",t.Pressed="pressed",t))(S||{}),d=class{constructor(e,t){this.state="idle";this.isHover=false;this.control=e,this.domHost=t,this.onTouchStartListener=this.onTouchStart.bind(this),this.onMouseEnterListener=this.onMouseEnter.bind(this),this.onMouseLeaveListener=this.onMouseLeave.bind(this),this.onClickListener=this.onClick.bind(this),this.setup();}get frameSource(){var e,t;return (t=(e=this.control.view)==null?void 0:e.getContext())==null?void 0:t.frameSource}get context(){var e;return (e=this.control.view)==null?void 0:e.getContext()}async install(){this.button||this.setup();let e=await this.canShow();return e?(this.updateButtonBackground(this.button,this.getImageFromState()),this.show()):this.hide(),e}remove(e=false){e&&this.button?(this.button.removeEventListener("mouseenter",this.onMouseEnterListener),this.button.removeEventListener("mouseleave",this.onMouseLeaveListener),this.button.removeEventListener("touchstart",this.onTouchStartListener),this.button.removeEventListener("click",this.onClickListener),this.button.remove(),this.isHover=false,this.button=void 0):this.hide();}hide(){this.button&&(this.button.style.display="none");}show(){this.button&&(this.button.style.display="block");}setupButton(){let e=document.createElement("button");return e.type="button",e.style.display="none",e.className=`scandit-control-widget scandit-control-widget-${this.control.type}`,this.updateButtonBackground(e,this.getImageFromState()),this.domHost.append(e),e.addEventListener("mouseenter",this.onMouseEnterListener),e.addEventListener("mouseleave",this.onMouseLeaveListener),a$2.isDesktopDevice()||e.addEventListener("touchstart",this.onTouchStartListener),e.addEventListener("click",this.onClickListener),e.setAttribute("aria-pressed",String(this.state==="pressed")),this.button=e,this.button}setup(){this.setupButton();}onTouchStart(){var e,t;(e=this.button)==null||e.removeEventListener("mouseenter",this.onMouseEnterListener),(t=this.button)==null||t.removeEventListener("mouseleave",this.onMouseLeaveListener);}onMouseEnter(){this.isHover=true,this.updateButtonBackground(this.button,this.getImageFromState());}onMouseLeave(){this.isHover=false,this.updateButtonBackground(this.button,this.getImageFromState());}onClick(){var e;this.state=this.state==="pressed"?"idle":"pressed",this.buttonClicked(),this.updateButtonBackground(this.button,this.getImageFromState()),(e=this.button)==null||e.setAttribute("aria-pressed",String(this.state==="pressed"));}updateButtonBackground(e,t){t!=null&&e!=null&&(e.style.backgroundImage=`url(${JSON.stringify(t)})`);}},C=class extends d{constructor(e,t){super(e,t);}async buttonClicked(){await this.frameSource.setDesiredTorchState(this.retrieveTorchState()==="on"?"off":"on");}async canShow(){return this.isTorchAvailable()}getImageFromState(){return this.retrieveTorchState()==="on"?this.isHover?this.control.torchOnPressedImage:this.control.torchOnImage:this.isHover?this.control.torchOffPressedImage:this.control.torchOffImage}setup(){if(this.control.torchOffImage==null||this.control.torchOnImage==null){a.log(a.Level.Warn,"TorchSwitchControl icon is not set or is empty, the control will not be rendered.");return}super.setup();}async isTorchAvailable(){return f$1(this.frameSource)?this.frameSource.isTorchAvailable():false}retrieveTorchState(){return f$1(this.frameSource)?this.frameSource.getDesiredTorchState():"off"}},f=class o extends d{constructor(e,t){super(e,t);}static get CameraAccess(){return d$1}static get Camera(){return a$1}async canShow(){return (await o.CameraAccess.getCameras()).length>1}getImageFromState(){return this.isHover?this.control.pressedImage:this.control.idleImage}async buttonClicked(){if(this.isTransitioning)return;let e=await this.getNextDeviceCamera();e&&await this.switchCameras(e);}setup(){if(this.control.idleImage==null){a.log(a.Level.Warn,"CameraSwitchControl idle icon is not set or is empty, the control will not be rendered.");return}super.setup();}async getNextDeviceCamera(){var s,n;let e=await o.CameraAccess.getCameras(),t=this.frameSource?this.frameSource:null,i=(s=t==null?void 0:t.cameraManager.activeCamera)==null?void 0:s.deviceId,r=e.findIndex(c=>c.deviceId===i);return r>-1?(n=e[r+1])!=null?n:e[0]:e.length>0?e[0]:null}async switchCameras(e){var n,c,u;this.isTransitioning=true;let t=(n=this.context)==null?void 0:n.frameSource,i,r;t!=null&&(i=new g$1(t.settings),r=t.desiredState),await(t==null?void 0:t.switchToDesiredState("off"));let s=o.Camera.fromDeviceCamera(e);i!=null&&await s.applySettings(i),await((c=this.context)==null?void 0:c.setFrameSource(s)),await((u=this.context)==null?void 0:u.frameSource).switchToDesiredState(r!=null?r:"on"),this.isTransitioning=false;}},g=class o extends d{constructor(e,t){super(e,t);}static get Camera(){return a$1}static get CameraAccess(){return d$1}async install(){let e=await super.install();return e&&await this.setInitialCamera(),e}async canShow(){return !a$2.isIOSDeviceWithExtendedCameraAccess()||!f$1(this.frameSource)?false:d$1.isIOSBackDualWideCameraLabel(this.frameSource.label)||d$1.isIOSBackCameraLabel(this.frameSource.label)||d$1.isIOSUltraWideBackCameraLabel(this.frameSource.label)}getImageFromState(){return this.isUltraWideBackCamera()?this.isHover?this.control.cameraFOVUltraWidePressedImage:this.control.cameraFOVUltraWideImage:this.isHover?this.control.cameraFOVWidePressedImage:this.control.cameraFOVWideImage}async buttonClicked(){if(this.isTransitioning)return;let e=await this.getAlternativeDeviceCamera();e&&await this.switchCameras(e);}setup(){if(this.control.cameraFOVUltraWideImage==null||this.control.cameraFOVWideImage==null){a.log(a.Level.Warn,"CameraFOVSwitchControl icon is not set or is empty, the control will not be rendered.");return}super.setup();}async setInitialCamera(){var e,t;if(!this.isTransitioning&&!d$1.isIOSBackCameraLabel((t=(e=this.frameSource)==null?void 0:e.label)!=null?t:"")){let r=(await o.CameraAccess.getCameras()).find(s=>d$1.isIOSBackCameraLabel(s.label));r&&await this.switchCameras(r);}}isUltraWideBackCamera(){return f$1(this.frameSource)?d$1.isIOSUltraWideBackCameraLabel(this.frameSource.label):false}async getAlternativeDeviceCamera(){return (await o.CameraAccess.getCameras()).find(t=>this.isUltraWideBackCamera()?d$1.isIOSBackCameraLabel(t.label):d$1.isIOSUltraWideBackCameraLabel(t.label))}async switchCameras(e){var n,c,u;this.isTransitioning=true;let t=(n=this.context)==null?void 0:n.frameSource,i,r;t!=null&&(i=new g$1(t.settings),r=t.desiredState),await(t==null?void 0:t.switchToDesiredState("off"));let s=o.Camera.fromDeviceCamera(e);i!=null&&await s.applySettings(i),await((c=this.context)==null?void 0:c.setFrameSource(s)),await((u=this.context)==null?void 0:u.frameSource).switchToDesiredState(r!=null?r:"on"),this.isTransitioning=false;}};export{S as a,C as b,f as c,g as d};
|