Skip to content

Commit a52e3c8

Browse files
Updated code blocks
1 parent 85afe2f commit a52e3c8

19 files changed

+102
-102
lines changed

programming/react-native/api-reference/barcode-reader/aztec-details.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The `AztecDetails` class encapsulates all of the extended details of an Aztec Co
1919

2020
*Assembly:* dynamsoft-capture-vision-react-native
2121

22-
```js
22+
```tsx
2323
interface AztecDetails
2424
```
2525

@@ -35,23 +35,23 @@ interface AztecDetails
3535

3636
Represents the number of rows that make up the Aztec Code.
3737

38-
```js
38+
```tsx
3939
rows: number;
4040
```
4141

4242
### columns
4343

4444
Represents the number of columns that make up the Aztec Code.
4545

46-
```js
46+
```tsx
4747
columns: number;
4848
```
4949

5050
### layerNumber
5151

5252
Represents the layer number of an Aztec code. A negative number (-1, -2, -3, -4) specifies a compact Aztec code, while a positive number (1, 2,...32) specifies a normal (full-range) Aztec code.
5353

54-
```js
54+
```tsx
5555
layerNumber: number;
5656
```
5757

programming/react-native/api-reference/barcode-reader/barcode-result-item.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The `BarcodeResultItem` class represents a single barcode result decoded by the
1616

1717
*Assembly:* dynamsoft-capture-vision-react-native
1818

19-
```js
19+
```tsx
2020
interface BarcodeResultItem extends CapturedResultItem
2121
```
2222
@@ -44,110 +44,110 @@ interface BarcodeResultItem extends CapturedResultItem
4444
4545
The format of the barcode. One of the [`EnumBarcodeFormat`]({{ site.dcv_react_native_api }}core/enum/barcode-format.html).
4646
47-
```js
47+
```tsx
4848
format: EnumBarcodeFormat | bigint;
4949
```
5050
5151
### formatString
5252
5353
The format of the barcode as a text string instead of a `EnumBarcodeFormat`.
5454
55-
```js
55+
```tsx
5656
formatString: string;
5757
```
5858
5959
### text
6060
6161
The decoded text of the barcode.
6262
63-
```js
63+
```tsx
6464
text: string;
6565
```
6666
6767
### location
6868
6969
The location of the barcode in the image/frame as a [`Quadrilateral`]({{ site.dcv_react_native_api }}core/quadrilateral.html). The quadrilateral contains the four vertex points of the location, with the first vertex being the left-most vertex, then going in a clockwise direction for the remaining points.
7070
71-
```js
71+
```tsx
7272
location: Quadrilateral;
7373
```
7474
7575
### confidence
7676
7777
The confidence of the barcode result is a measure of the result's accuracy. If the confidence is lower than 30, the result will not be output by default as it is considered quite inaccurate.
7878
79-
```js
79+
```tsx
8080
confidence: number;
8181
```
8282
8383
### angle
8484
8585
The angle at which the barcode is detected if it's not aligned in the image/frame.
8686
87-
```js
87+
```tsx
8888
angle: number;
8989
```
9090
9191
### moduleSize
9292
9393
The size of the smallest module (dot or line) of the barcode.
9494
95-
```js
95+
```tsx
9696
moduleSize: number;
9797
```
9898
9999
### isDPM
100100
101101
Indicates whether the barcode is a Dot Peen Marking (DPM), which is a unique type of DataMatrix code.
102102
103-
```js
103+
```tsx
104104
isDPM: boolean;
105105
```
106106
107107
### isMirrored
108108
109109
Indicates whether the barcode image is mirrored.
110110
111-
```js
111+
```tsx
112112
isMirrored: boolean;
113113
```
114114
115115
### qrCodeDetails
116116
117117
Represents extended info (as [`QRCodeDetails`](qr-code-details.md)) that is specific to QR Codes, if the decoded barcode is a QR Code.
118118
119-
```js
119+
```tsx
120120
qrCodeDetails?: QRCodeDetails;
121121
```
122122
123123
### aztecDetails
124124
125125
Represents extended info (as [`AztecDetails`](aztec-details.md)) that is specific to Aztec codes, if the decoded barcode is an Aztec code.
126126
127-
```js
127+
```tsx
128128
aztecDetails?: AztecDetails;
129129
```
130130
131131
### dataMatrixDetails
132132
133133
Represents extended info (as [`DataMatrixDetails`](datamatrix-details.md)) that is specific to DataMatrix codes, if the decoded barcode is a DataMatrix code.
134134
135-
```js
135+
```tsx
136136
dataMatrixDetails?: DataMatrixDetails;
137137
```
138138
139139
### oneDCodeDetails
140140
141141
Represents extended info (as [`OneDCodeDetails`](oned-details.md)) that is specific to 1D codes, if the decoded barcode is a 1D code.
142142
143-
```js
143+
```tsx
144144
oneDCodeDetails?: OneDCodeDetails;
145145
```
146146
147147
### pdf417Details
148148
149149
Represents extended info (as [`PDF417Details`](pdf417-details.md)) that is specific to PDF417 codes, if the decoded barcode is a PDF417 code.
150150
151-
```js
151+
```tsx
152152
pdf417Details?: PDF417Details;
153153
```

programming/react-native/api-reference/barcode-reader/datamatrix-details.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The `DataMatrixDetails` class encapsulates all of the extended details of a Data
1919

2020
*Assembly:* dynamsoft-capture-vision-react-native
2121

22-
```js
22+
```tsx
2323
interface DataMatrixDetails
2424
```
2525

@@ -37,23 +37,23 @@ interface DataMatrixDetails
3737

3838
Represents the number of rows that make up the DataMatrix Code.
3939

40-
```js
40+
```tsx
4141
rows: number;
4242
```
4343

4444
### columns
4545

4646
Represents the number of columns that make up the DataMatrix Code.
4747

48-
```js
48+
```tsx
4949
columns: number;
5050
```
5151

5252
### dataRegionRows
5353

5454
Represents the number of rows in the data region of the DataMatrix code.
5555

56-
```js
56+
```tsx
5757
dataRegionRows: number;
5858
```
5959

@@ -65,7 +65,7 @@ The data region of a DataMatrix code defines the grid of square/rectangular modu
6565

6666
Represents the number of columns in the data region of the DataMatrix code.
6767

68-
```js
68+
```tsx
6969
dataRegionColumns: number;
7070
```
7171

@@ -77,7 +77,7 @@ The data region of a DataMatrix code defines the grid of square/rectangular modu
7777

7878
Represents the number of data regions in the DataMatrix code.
7979

80-
```js
80+
```tsx
8181
dataRegionNumber: number;
8282
```
8383

programming/react-native/api-reference/barcode-reader/decoded-barcodes-result.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The `DecodedBarcodesResult` class represents the result of a barcode reading pro
1616

1717
*Assembly:* dynamsoft-capture-vision-react-native
1818

19-
```js
19+
```tsx
2020
interface DecodedBarcodesResult extends CapturedResultBase
2121
```
2222
@@ -39,6 +39,6 @@ The following properties are inherited from [`CapturedResultBase`]({{ site.dcv_r
3939
4040
An array of [`BarcodeResultItem`](barcode-result-item.md), the basic item representing a single barcode result and its associated info.
4141
42-
```js
42+
```tsx
4343
items?: Array<BarcodeResultItem>;
4444
```

programming/react-native/api-reference/barcode-reader/enum/barcode-format.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ breadcrumbText: EnumBarcodeFormat
1616

1717
*Assembly:* dynamsoft-capture-vision-react-native
1818

19-
```js
19+
```tsx
2020
const EnumBarcodeFormat = {
2121
BF_NULL:BigInt(0x00),
2222
BF_ALL:BigInt(0xFFFFFFFEFFFFFFFFn),

programming/react-native/api-reference/barcode-reader/enum/deblur-mode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ breadcrumbText: EnumDeblurMode
1616

1717
*Assembly:* dynamsoft-capture-vision-react-native
1818

19-
```js
19+
```tsx
2020
enum EnumDeblurMode {
2121
DM_END = -1,
2222
DM_SKIP = 0x0,

programming/react-native/api-reference/barcode-reader/enum/localization-mode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ breadcrumbText: EnumLocalizationMode
1919

2020
*Assembly:* dynamsoft-capture-vision-react-native
2121

22-
```js
22+
```tsx
2323
enum EnumLocalizationMode {
2424
LM_END = -1,
2525
LM_SKIP = 0x0,

programming/react-native/api-reference/barcode-reader/enum/qr-code-correction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ breadcrumbText: EnumQRCodeErrorCorrectionLevel
1616

1717
*Assembly:* dynamsoft-capture-vision-react-native
1818

19-
```js
19+
```tsx
2020
enum EnumQRCodeErrorCorrectionLevel {
2121
QRECL_ERROR_CORRECTION_H = 0,
2222
QRECL_ERROR_CORRECTION_L = 1,

programming/react-native/api-reference/barcode-reader/oned-details.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The `OneDCodeDetails` class encapsulates all of the extended details of a 1D Cod
1919

2020
*Assembly:* dynamsoft-capture-vision-react-native
2121

22-
```js
22+
```tsx
2323
interface OneDCodeDetails
2424
```
2525

@@ -42,7 +42,7 @@ interface OneDCodeDetails
4242

4343
A byte list representing the characters of the start pattern of a 1D barcode.
4444

45-
```js
45+
```tsx
4646
startCharsBytes: number[];
4747
```
4848

@@ -54,7 +54,7 @@ Each 1D barcode type has a unique start and stop pattern. These patterns are use
5454

5555
A byte list representing the characters of the stop pattern of a 1D barcode.
5656

57-
```js
57+
```tsx
5858
stopCharsBytes: number[];
5959
```
6060

@@ -66,7 +66,7 @@ Each 1D barcode type has a unique start and stop pattern. These patterns are use
6666

6767
A byte list representing the check digit of the barcode, if applicable.
6868

69-
```js
69+
```tsx
7070
checkDigitBytes: number[];
7171
```
7272

@@ -78,7 +78,7 @@ The check digit is a single digit that is concatenated at the end of a barcode's
7878

7979
The lower bound of the start pattern range. Represents the position of the start pattern relative to the barcode location.
8080

81-
```js
81+
```tsx
8282
startPatternRange_lower: number;
8383
```
8484

@@ -90,7 +90,7 @@ The lower bound of this range represents the x-coordinate of the start position
9090

9191
The upper bound of the start pattern range. Represents the position of the start pattern relative to the barcode location.
9292

93-
```js
93+
```tsx
9494
startPatternRange_upper: number;
9595
```
9696

@@ -102,7 +102,7 @@ The upper bound of this range represents the x-coordinate of the end position as
102102

103103
The lower bound of the middle pattern range. Represents the position of the middle pattern relative to the barcode location.
104104

105-
```js
105+
```tsx
106106
middlePatternRange_lower: number;
107107
```
108108

@@ -114,7 +114,7 @@ The lower bound of this range represents the x-coordinate of the start position
114114

115115
The upper bound of the middle pattern range. Represents the position of the middle pattern relative to the barcode location.
116116

117-
```js
117+
```tsx
118118
middlePatternRange_upper: number;
119119
```
120120

@@ -126,7 +126,7 @@ The upper bound of this range represents the x-coordinate of the end position as
126126

127127
The lower bound of the end pattern range. Represents the position of the end pattern relative to the barcode location.
128128

129-
```js
129+
```tsx
130130
endPatternRange_lower: number;
131131
```
132132

@@ -138,7 +138,7 @@ The lower bound of this range represents the x-coordinate of the start position
138138

139139
The upper bound of the end pattern range. Represents the position of the end pattern relative to the barcode location.
140140

141-
```js
141+
```tsx
142142
endPatternRange_upper: number;
143143
```
144144

0 commit comments

Comments
 (0)