scandoc-ai-components 0.0.58 → 0.0.60

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11405,16 +11405,6 @@ class ExtractorVideo {
11405
11405
  await this.video.play().catch(e => {
11406
11406
  console.warn(`Error on video play: ${e}`);
11407
11407
  });
11408
- setTimeout(async () => {
11409
- const margins = await this.getCameraMargins();
11410
- const rectangle = document.querySelector('.desktopRectangle');
11411
- if (rectangle) {
11412
- rectangle.style.top = `${margins.topPct * 100}%`;
11413
- rectangle.style.bottom = `${margins.bottomPct * 100}%`;
11414
- rectangle.style.left = `${margins.leftPct * 100}%`;
11415
- rectangle.style.right = `${margins.rightPct * 100}%`;
11416
- }
11417
- }, 500);
11418
11408
  this.scanStartTime = Date.now(); // Reset timer
11419
11409
  setTimeout(() => this.analyzeVideoStream(), ExtractorVideo.FREQUENCY_MS);
11420
11410
  this.showMessage("Starting scanning");
@@ -11452,8 +11442,7 @@ class ExtractorVideo {
11452
11442
  <div class="desktopFeedback" id="ScanDocAIMessage"></div>
11453
11443
  <div class="desktopVideoArea">
11454
11444
  <div class="desktopVideoHolder">
11455
- <video id="video" autoplay playsinline style="object-fit: contain;"></video>
11456
- <canvas id="canvas" style="display: none;"></canvas>
11445
+ <video id="ScanDocAIVideoElement" class="desktopVideo" autoPlay muted playsInline></video>
11457
11446
  <div class="backgroundOverlay"></div>
11458
11447
  <div class="desktopRectangle dashedRectangle"></div>
11459
11448
  </div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "scandoc-ai-components",
3
3
  "author": "ScanDoc-AI",
4
- "version": "0.0.58",
4
+ "version": "0.0.60",
5
5
  "private": false,
6
6
  "description": "Pure JavaScript package for integrating ScanDoc-AI services.",
7
7
  "keywords": [