You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`newMode`: specifies the new mode. At present, the allowed values are "editor" and "viewer" and the default is "viewer".
542
+
543
+
> Compared with the "viewer" mode, the "editor" mode shows the "corners" and a "rotate control point" for a selected DrawingItem, which, when dragged, modify the original shape in different ways.
544
+
545
+
**Code Snippet**
546
+
547
+
```javascript
548
+
let cameraView =cameraEnhancer.getCameraView();
549
+
//Gets the `DrawingLayer` used by Dynamsoft Label Recognizer.
550
+
let drawingLayer =cameraView.getDrawingLayer(3);
551
+
drawingLayer.setMode("editor");
552
+
```
553
+
554
+
## getMode
555
+
556
+
Returns the current mode.
557
+
558
+
```typescript
559
+
getMode(): "editor"|"viewer";
560
+
```
561
+
562
+
**Return value**
563
+
564
+
The mode of current `DrawingLayer` .
565
+
566
+
**Code Snippet**
567
+
568
+
```javascript
569
+
let cameraView =cameraEnhancer.getCameraView();
570
+
//Gets the `DrawingLayer` used by Dynamsoft Label Recognizer.
Copy file name to clipboardExpand all lines: programming/javascript/user-guide/index.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,6 @@ In this guide, you will learn step by step on how to integrate the Dynamsoft Cam
35
35
-[Why can't I use my camera?](#why-cant-i-use-my-camera)
36
36
-[API Documentation](#api-documentation)
37
37
-[System Requirements](#system-requirements)
38
-
-[Release Notes](#release-notes)
39
38
-[Next Steps](#next-steps)
40
39
41
40
## Adding the SDK
@@ -362,9 +361,9 @@ The following table is a list of supported browsers based on the above requireme
362
361
363
362
Apart from the browsers, the operating systems may impose some limitations of their own that could restrict the use of the SDK. Browser compatibility ultimately depends on whether the browser on that particular operating system supports the features listed above.
364
363
365
-
## Release Notes
364
+
<!--## Release Notes
366
365
367
-
Learn about what are included in each release at [https://www.dynamsoft.com/camera-enhancer/docs/programming/javascript/release-note/index.html](https://www.dynamsoft.com/camera-enhancer/docs/web/programming/javascript/release-note/index.html).
366
+
Learn about what are included in each release at [https://www.dynamsoft.com/camera-enhancer/docs/programming/javascript/release-note/index.html](https://www.dynamsoft.com/camera-enhancer/docs/web/programming/javascript/release-note/index.html).-->
0 commit comments