scandit-capacitor-datacapture-core 6.28.0 → 6.28.2
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/ScanditCapacitorDatacaptureCore.podspec +1 -1
- package/android/build.gradle +1 -1
- package/dist/core.js +48 -1
- package/dist/core.js.map +1 -1
- package/dist/dts/definitions.d.ts +1 -1
- package/dist/dts/index.d.ts +1 -1
- package/dist/dts/ts/DataCaptureView.d.ts +0 -14
- package/dist/index.js +11 -28
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -10,7 +10,7 @@ export { Brush, NoViewfinder } from 'scandit-datacapture-frameworks-core';
|
|
|
10
10
|
export { Camera, CameraSettings, CameraPosition, FocusGestureStrategy, FocusRange, FrameData, FrameSource, FrameSourceState, FrameSourceListener, ImageFrameSource, TorchState, VideoResolution, ImageBuffer } from 'scandit-datacapture-frameworks-core';
|
|
11
11
|
export { Feedback, Sound, Vibration } from 'scandit-datacapture-frameworks-core';
|
|
12
12
|
export { DataCaptureContext, DataCaptureContextSettings, DataCaptureContextCreationOptions, DataCaptureMode, DataCaptureContextListener, ContextStatus, DataCaptureComponent } from 'scandit-datacapture-frameworks-core';
|
|
13
|
-
export { DataCaptureView
|
|
13
|
+
export { DataCaptureView } from './ts/DataCaptureView';
|
|
14
14
|
export { SwipeToZoom, TapToFocus, FocusGesture, ZoomGesture } from 'scandit-datacapture-frameworks-core';
|
|
15
15
|
export { DataCaptureVersion, } from './ts/DataCaptureVersion';
|
|
16
16
|
export { VolumeButtonObserver, } from './ts/VolumeButtonObserver';
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './definitions';
|
|
2
2
|
export * from './web';
|
|
3
3
|
export { Capacitor as CapacitorCore } from './ts/Capacitor/Capacitor';
|
|
4
|
-
export { DataCaptureView
|
|
4
|
+
export { DataCaptureView } from './ts/DataCaptureView';
|
|
5
5
|
export { BlockingModeListenerResult } from './ts/Capacitor/CommonCapacitor';
|
|
6
6
|
export { doReturnWithFinish } from './ts/Capacitor/CommonCapacitor';
|
|
7
7
|
export { capacitorExec } from './ts/Capacitor/CommonCapacitor';
|
|
@@ -3,20 +3,6 @@ import { DataCaptureContext, Control, DataCaptureOverlay } from 'scandit-datacap
|
|
|
3
3
|
import { FocusGesture, LogoStyle, ZoomGesture } from 'scandit-datacapture-frameworks-core';
|
|
4
4
|
import { DataCaptureViewListener } from 'scandit-datacapture-frameworks-core';
|
|
5
5
|
import { Optional } from '../definitions';
|
|
6
|
-
export declare class HTMLElementState {
|
|
7
|
-
isShown: boolean;
|
|
8
|
-
position: Optional<{
|
|
9
|
-
top: number;
|
|
10
|
-
left: number;
|
|
11
|
-
}>;
|
|
12
|
-
size: Optional<{
|
|
13
|
-
width: number;
|
|
14
|
-
height: number;
|
|
15
|
-
}>;
|
|
16
|
-
shouldBeUnderContent: boolean;
|
|
17
|
-
get isValid(): boolean;
|
|
18
|
-
didChangeComparedTo(other: HTMLElementState): boolean;
|
|
19
|
-
}
|
|
20
6
|
export declare class DataCaptureView {
|
|
21
7
|
private baseDataCaptureView;
|
|
22
8
|
private get overlays();
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseDataCaptureView, ignoreFromSerialization, loadCoreDefaults, getCoreDefaults, BaseNativeProxy, DataCaptureContextEvents, ContextStatus, DataCaptureViewEvents, FactoryMaker, FrameSourceListenerEvents, Feedback, Camera, Color, DataCaptureContext, DataCaptureContextSettings, MarginsWithUnit, NumberWithUnit, Point, PointWithUnit, Quadrilateral, RadiusLocationSelection, Rect, RectWithUnit, RectangularLocationSelection, Size, SizeWithAspect, SizeWithUnit, SizeWithUnitAndAspect, Brush, LaserlineViewfinder, RectangularViewfinder, LaserlineViewfinderStyle, RectangularViewfinderAnimation, RectangularViewfinderLineStyle, RectangularViewfinderStyle, AimerViewfinder, CameraPosition, CameraSettings, FrameSourceState, TorchState, VideoResolution, FocusRange, FocusGestureStrategy, Anchor, TorchSwitchControl, ZoomSwitchControl, TapToFocus, SwipeToZoom, Direction, Orientation, MeasureUnit, NoneLocationSelection, SizingMode, Sound, NoViewfinder, Vibration, LicenseInfo, ImageFrameSource } from './core.js';
|
|
1
|
+
import { HTMLElementState, BaseDataCaptureView, HtmlElementPosition, HtmlElementSize, ignoreFromSerialization, loadCoreDefaults, getCoreDefaults, BaseNativeProxy, DataCaptureContextEvents, ContextStatus, DataCaptureViewEvents, FactoryMaker, FrameSourceListenerEvents, Feedback, Camera, Color, DataCaptureContext, DataCaptureContextSettings, MarginsWithUnit, NumberWithUnit, Point, PointWithUnit, Quadrilateral, RadiusLocationSelection, Rect, RectWithUnit, RectangularLocationSelection, Size, SizeWithAspect, SizeWithUnit, SizeWithUnitAndAspect, Brush, LaserlineViewfinder, RectangularViewfinder, LaserlineViewfinderStyle, RectangularViewfinderAnimation, RectangularViewfinderLineStyle, RectangularViewfinderStyle, AimerViewfinder, CameraPosition, CameraSettings, FrameSourceState, TorchState, VideoResolution, FocusRange, FocusGestureStrategy, Anchor, TorchSwitchControl, ZoomSwitchControl, TapToFocus, SwipeToZoom, Direction, Orientation, MeasureUnit, NoneLocationSelection, SizingMode, Sound, NoViewfinder, Vibration, LicenseInfo, ImageFrameSource } from './core.js';
|
|
2
2
|
export { ImageBuffer, LogoStyle, ScanIntention } from './core.js';
|
|
3
3
|
|
|
4
4
|
/******************************************************************************
|
|
@@ -40,25 +40,6 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
40
40
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
class HTMLElementState {
|
|
44
|
-
constructor() {
|
|
45
|
-
this.isShown = false;
|
|
46
|
-
this.position = null;
|
|
47
|
-
this.size = null;
|
|
48
|
-
this.shouldBeUnderContent = false;
|
|
49
|
-
}
|
|
50
|
-
get isValid() {
|
|
51
|
-
return this.isShown !== undefined && this.isShown !== null
|
|
52
|
-
&& this.position !== undefined && this.position !== null
|
|
53
|
-
&& this.size !== undefined && this.size !== null
|
|
54
|
-
&& this.shouldBeUnderContent !== undefined && this.shouldBeUnderContent !== null;
|
|
55
|
-
}
|
|
56
|
-
didChangeComparedTo(other) {
|
|
57
|
-
return this.position !== other.position
|
|
58
|
-
|| this.size !== other.size
|
|
59
|
-
|| this.shouldBeUnderContent !== other.shouldBeUnderContent;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
43
|
class DataCaptureView {
|
|
63
44
|
get overlays() {
|
|
64
45
|
return this.baseDataCaptureView.overlays;
|
|
@@ -169,7 +150,10 @@ class DataCaptureView {
|
|
|
169
150
|
this.baseDataCaptureView.removeNativeView();
|
|
170
151
|
}
|
|
171
152
|
setFrame(frame, isUnderContent = false) {
|
|
172
|
-
return this
|
|
153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
+
yield this.baseDataCaptureView.createNativeView();
|
|
155
|
+
return this.baseDataCaptureView.setFrame(frame, isUnderContent);
|
|
156
|
+
});
|
|
173
157
|
}
|
|
174
158
|
show() {
|
|
175
159
|
if (this.htmlElement) {
|
|
@@ -227,8 +211,8 @@ class DataCaptureView {
|
|
|
227
211
|
}
|
|
228
212
|
const newState = new HTMLElementState();
|
|
229
213
|
const boundingRect = this.htmlElement.getBoundingClientRect();
|
|
230
|
-
newState.position =
|
|
231
|
-
newState.size =
|
|
214
|
+
newState.position = new HtmlElementPosition(boundingRect.top, boundingRect.left);
|
|
215
|
+
newState.size = new HtmlElementSize(boundingRect.width, boundingRect.height);
|
|
232
216
|
newState.shouldBeUnderContent = parseInt(this.htmlElement.style.zIndex || '1', 10) < 0
|
|
233
217
|
|| parseInt(getComputedStyle(this.htmlElement).zIndex || '1', 10) < 0;
|
|
234
218
|
const isDisplayed = getComputedStyle(this.htmlElement).display !== 'none'
|
|
@@ -271,7 +255,7 @@ __decorate([
|
|
|
271
255
|
|
|
272
256
|
class DataCaptureVersion {
|
|
273
257
|
static get pluginVersion() {
|
|
274
|
-
return '6.28.
|
|
258
|
+
return '6.28.2';
|
|
275
259
|
}
|
|
276
260
|
}
|
|
277
261
|
|
|
@@ -1255,7 +1239,7 @@ class NativeCameraProxy {
|
|
|
1255
1239
|
getLastFrame() {
|
|
1256
1240
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1257
1241
|
const frameDataJSONString = yield window.Capacitor.Plugins[Capacitor$1.pluginName][CapacitorFunction.GetLastFrame]();
|
|
1258
|
-
const parsedData = frameDataJSONString.data ?
|
|
1242
|
+
const parsedData = frameDataJSONString.data ? frameDataJSONString.data : frameDataJSONString;
|
|
1259
1243
|
return parsedData;
|
|
1260
1244
|
});
|
|
1261
1245
|
}
|
|
@@ -1265,7 +1249,7 @@ class NativeCameraProxy {
|
|
|
1265
1249
|
if (frameDataJSONString == null) {
|
|
1266
1250
|
return null;
|
|
1267
1251
|
}
|
|
1268
|
-
const parsedData = frameDataJSONString.data ?
|
|
1252
|
+
const parsedData = frameDataJSONString.data ? frameDataJSONString.data : frameDataJSONString;
|
|
1269
1253
|
return parsedData;
|
|
1270
1254
|
});
|
|
1271
1255
|
}
|
|
@@ -1412,7 +1396,6 @@ class ScanditCaptureCorePluginImplementation {
|
|
|
1412
1396
|
DataCaptureVersion,
|
|
1413
1397
|
Direction,
|
|
1414
1398
|
Orientation,
|
|
1415
|
-
HTMLElementState,
|
|
1416
1399
|
MeasureUnit,
|
|
1417
1400
|
NoneLocationSelection,
|
|
1418
1401
|
SizingMode,
|
|
@@ -1443,5 +1426,5 @@ registerPlugin(corePluginName, {
|
|
|
1443
1426
|
// tslint:disable-next-line:variable-name
|
|
1444
1427
|
const ScanditCaptureCorePlugin = new ScanditCaptureCorePluginImplementation();
|
|
1445
1428
|
|
|
1446
|
-
export { AimerViewfinder, Anchor, Brush, Camera, CameraPosition, CameraSettings, Capacitor$1 as CapacitorCore, Color, ContextStatus, DataCaptureContext, DataCaptureContextSettings, DataCaptureVersion, DataCaptureView, Direction, Feedback, FocusGestureStrategy, FocusRange, FrameSourceState,
|
|
1429
|
+
export { AimerViewfinder, Anchor, Brush, Camera, CameraPosition, CameraSettings, Capacitor$1 as CapacitorCore, Color, ContextStatus, DataCaptureContext, DataCaptureContextSettings, DataCaptureVersion, DataCaptureView, Direction, Feedback, FocusGestureStrategy, FocusRange, FrameSourceState, ImageFrameSource, LaserlineViewfinder, LaserlineViewfinderStyle, MarginsWithUnit, MeasureUnit, NoViewfinder, NoneLocationSelection, NumberWithUnit, Orientation, Point, PointWithUnit, Quadrilateral, RadiusLocationSelection, Rect, RectWithUnit, RectangularLocationSelection, RectangularViewfinder, RectangularViewfinderAnimation, RectangularViewfinderLineStyle, RectangularViewfinderStyle, ScanditCaptureCorePlugin, ScanditCaptureCorePluginImplementation, Size, SizeWithAspect, SizeWithUnit, SizeWithUnitAndAspect, SizingMode, Sound, SwipeToZoom, TapToFocus, TorchState, TorchSwitchControl, Vibration, VideoResolution, VolumeButtonObserver, ZoomSwitchControl, capacitorExec, doReturnWithFinish };
|
|
1447
1430
|
//# sourceMappingURL=index.js.map
|