Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Commit 5b75bf0

Browse files
authored
Merge pull request #4 from Dynamsoft/_dev
Dev
2 parents 2778d3b + 86d9474 commit 5b75bf0

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

1.explore-the-features.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@2.3.2/dist/dce.js"></script>
6+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@3.0.0/dist/dce.js"></script>
77
<title>1.explore-the-features</title>
88
<style>
99
* {
@@ -200,6 +200,7 @@
200200
// create a DCE instance and bind the callback
201201
let pReady = (async()=>{
202202
enhancer = await Dynamsoft.DCE.CameraEnhancer.createInstance();
203+
await enhancer.setUIElement(Dynamsoft.DCE.CameraEnhancer.defaultUIElementURL);
203204
const callbackCameraOpen = (callBackInfo) => {
204205
console.log("camera opened");
205206
console.log(callBackInfo);

2.customize-the-ui/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>2.customize-the-ui</title>
7-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@2.3.2/dist/dce.js"></script>
7+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@3.0.0/dist/dce.js"></script>
88
</head>
99
<body>
1010
<script>

2.customize-the-ui/ui.html

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="dce-ui-container">
22
<div class="dce-main">
3-
<div class="dce-bg-loading" style="display: none">
3+
<div class="dce-bg-loading">
44
<div class="dce-loading-img">
55
<svg class="dce-svg-loop" viewBox="0 0 130 130">
66
<g transform="translate(-121 -252)">
@@ -74,7 +74,7 @@
7474
</div>
7575
<div class="dce-loading-camera-tip">Loading camera...</div>
7676
</div>
77-
<div class="dce-bg-camera" style="display: none">
77+
<div class="dce-bg-camera">
7878
<svg viewBox="0 0 120 120">
7979
<g transform="translate(-126 -257)">
8080
<g>
@@ -133,15 +133,21 @@
133133
</div>
134134
<div class="dce-video-container"></div>
135135
<div class="dce-scanarea">
136-
<div class="dce-scanlight" style="display: none"></div>
136+
<div class="dce-scanlight"></div>
137137
</div>
138138
</div>
139139
<header>
140140
<div class="dce-camera">
141141
<select class="dce-sel-camera"></select>
142142
</div>
143143
<div class="dce-resolution">
144-
<select class="dce-sel-resolution"></select>
144+
<select class="dce-sel-resolution">
145+
<option class="dce-opt-gotResolution" value="got"></option>
146+
<option data-width="3840" data-height="2160">3840x2160</option>
147+
<option data-width="1920" data-height="1080">1920x1080</option>
148+
<option data-width="1280" data-height="720">1280x720</option>
149+
<option data-width="640" data-height="480">640x480</option>
150+
</select>
145151
</div>
146152
<div class="dce-full-name">Dynamsoft Camera Enhancer</div>
147153
<div class="dce-btn-close">
@@ -335,6 +341,7 @@
335341
}
336342

337343
.dce-main > .dce-bg-loading {
344+
display: none;
338345
position: absolute;
339346
left: 50%;
340347
min-width: 130px;
@@ -373,6 +380,7 @@
373380
}
374381

375382
.dce-main > .dce-bg-camera {
383+
display: none;
376384
position: absolute;
377385
left: 50%;
378386
top: 50%;
@@ -382,6 +390,7 @@
382390

383391
.dce-main > .dce-scanarea {
384392
position: absolute;
393+
pointer-events: none;
385394
}
386395

387396
.dce-main > .dce-scanarea > .dce-scanlight {
@@ -453,6 +462,7 @@
453462
bottom: 0;
454463
width: 100%;
455464
background-color: rgba(0, 0, 0, 0.3);
465+
pointer-events: none;
456466
}
457467

458468
footer > .dce-footer-1 {

0 commit comments

Comments
 (0)