scandit-cordova-datacapture-core
Advanced tools
Comparing version 6.28.1 to 6.28.2
import { Anchor, Control, DataCaptureOverlay, DataCaptureViewListener, MarginsWithUnit, Point, PointWithUnit, Quadrilateral, Rect } from 'scandit-datacapture-frameworks-core'; | ||
import { DataCaptureContext } from 'scandit-datacapture-frameworks-core'; | ||
import { FocusGesture, LogoStyle, ZoomGesture } from 'scandit-datacapture-frameworks-core'; | ||
export declare class HTMLElementState { | ||
isShown: boolean; | ||
position: { | ||
top: number; | ||
left: number; | ||
} | null; | ||
size: { | ||
width: number; | ||
height: number; | ||
} | null; | ||
shouldBeUnderContent: boolean; | ||
get isValid(): boolean; | ||
didChangeComparedTo(other: HTMLElementState): boolean; | ||
} | ||
export declare class DataCaptureView { | ||
@@ -19,0 +5,0 @@ private baseDataCaptureView; |
@@ -11,2 +11,2 @@ export * from './Cordova/CommonCordova'; | ||
export { DataCaptureVersion } from './DataCaptureVersion'; | ||
export { DataCaptureView, HTMLElementState } from './DataCaptureView'; | ||
export { DataCaptureView } from './DataCaptureView'; |
@@ -426,21 +426,2 @@ var core = require('scandit-cordova-datacapture-core.Core'); | ||
class HTMLElementState { | ||
constructor() { | ||
this.isShown = false; | ||
this.position = null; | ||
this.size = null; | ||
this.shouldBeUnderContent = false; | ||
} | ||
get isValid() { | ||
return this.isShown !== undefined && this.isShown !== null | ||
&& this.position !== undefined && this.position !== null | ||
&& this.size !== undefined && this.size !== null | ||
&& this.shouldBeUnderContent !== undefined && this.shouldBeUnderContent !== null; | ||
} | ||
didChangeComparedTo(other) { | ||
return this.position !== other.position | ||
|| this.size !== other.size | ||
|| this.shouldBeUnderContent !== other.shouldBeUnderContent; | ||
} | ||
} | ||
class DataCaptureView { | ||
@@ -536,3 +517,3 @@ get context() { | ||
this.htmlElement = null; | ||
this._htmlElementState = new HTMLElementState(); | ||
this._htmlElementState = new core.HTMLElementState(); | ||
this.scrollListener = this.elementDidChange.bind(this); | ||
@@ -553,3 +534,3 @@ this.domObserver = new MutationObserver(this.elementDidChange.bind(this)); | ||
this.htmlElement = element; | ||
this.htmlElementState = new HTMLElementState(); | ||
this.htmlElementState = new core.HTMLElementState(); | ||
// Initial update | ||
@@ -624,9 +605,9 @@ this.elementDidChange(); | ||
if (!this.htmlElement) { | ||
this.htmlElementState = new HTMLElementState(); | ||
this.htmlElementState = new core.HTMLElementState(); | ||
return; | ||
} | ||
const newState = new HTMLElementState(); | ||
const newState = new core.HTMLElementState(); | ||
const boundingRect = this.htmlElement.getBoundingClientRect(); | ||
newState.position = { top: boundingRect.top, left: boundingRect.left }; | ||
newState.size = { width: boundingRect.width, height: boundingRect.height }; | ||
newState.position = new core.HtmlElementPosition(boundingRect.top, boundingRect.left); | ||
newState.size = new core.HtmlElementSize(boundingRect.width, boundingRect.height); | ||
newState.shouldBeUnderContent = parseInt(this.htmlElement.style.zIndex || '1', 10) < 0 | ||
@@ -780,5 +761,4 @@ || parseInt(getComputedStyle(this.htmlElement).zIndex || '1', 10) < 0; | ||
exports.DataCaptureView = DataCaptureView; | ||
exports.HTMLElementState = HTMLElementState; | ||
exports.cordovaExec = cordovaExec; | ||
exports.initializePlugin = initializePlugin; | ||
exports.pluginsMetadata = pluginsMetadata; |
{ | ||
"name": "scandit-cordova-datacapture-core", | ||
"version": "6.28.1", | ||
"version": "6.28.2", | ||
"description": "Scandit Data Capture SDK for Cordova", | ||
@@ -25,3 +25,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"scandit-datacapture-frameworks-core": "6.28.1" | ||
"scandit-datacapture-frameworks-core": "6.28.2" | ||
}, | ||
@@ -28,0 +28,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
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
515240
3882
+ Addedscandit-datacapture-frameworks-core@6.28.2(transitive)
- Removedscandit-datacapture-frameworks-core@6.28.1(transitive)