@@ -57,7 +57,7 @@ export class BrowserCodeReader {
57
57
/**
58
58
* Enables or disables the torch in a media stream.
59
59
*
60
- * @experimental This doesn't work accross all browsers and is still a Draft.
60
+ * @experimental This doesn't work across all browsers and is still a Draft.
61
61
*/
62
62
public static async mediaStreamSetTorch ( track : MediaStreamTrack , onOff : boolean ) {
63
63
await track . applyConstraints ( {
@@ -199,7 +199,7 @@ export class BrowserCodeReader {
199
199
*/
200
200
public static isImageLoaded ( img : HTMLImageElement ) {
201
201
// During the onload event, IE correctly identifies any images that
202
- // weren’ t downloaded as not complete. Others should too. Gecko-based
202
+ // weren' t downloaded as not complete. Others should too. Gecko-based
203
203
// browsers act like NS4 in that they report this incorrectly.
204
204
if ( ! img . complete ) {
205
205
return false ;
@@ -231,7 +231,7 @@ export class BrowserCodeReader {
231
231
}
232
232
233
233
/**
234
- * Ovewriting this allows you to manipulate the snapshot image in anyway you want before decode.
234
+ * Overwriting this allows you to manipulate the snapshot image in anyway you want before decode.
235
235
*/
236
236
public static drawImageOnCanvas ( canvasElementContext : CanvasRenderingContext2D , srcElement : HTMLVisualMediaElement ) {
237
237
canvasElementContext . drawImage ( srcElement , 0 , 0 ) ;
@@ -252,7 +252,7 @@ export class BrowserCodeReader {
252
252
} ;
253
253
}
254
254
255
- throw new Error ( 'Couldn\'t find the Source\'s dimentions !' ) ;
255
+ throw new Error ( 'Couldn\'t find the Source\'s dimensions !' ) ;
256
256
}
257
257
258
258
/**
@@ -765,7 +765,7 @@ export class BrowserCodeReader {
765
765
*
766
766
* @param {string|null } [deviceId] the id of one of the devices obtained after calling
767
767
* getVideoInputDevices. Can be undefined, in this case it will decode from one of the
768
- * available devices, preffering the main camera (environment facing) if available.
768
+ * available devices, preferring the main camera (environment facing) if available.
769
769
* @param {string|HTMLVideoElement|null } [video] the video element in page where to show the video
770
770
* while decoding. Can be either an element id or directly an HTMLVideoElement. Can be undefined,
771
771
* in which case no video will be shown.
@@ -903,7 +903,7 @@ export class BrowserCodeReader {
903
903
*
904
904
* @param deviceId the id of one of the devices obtained after calling getVideoInputDevices.
905
905
* Can be undefined, in this case it will decode from one of the available devices,
906
- * preffering the main camera (environment facing) if available.
906
+ * preferring the main camera (environment facing) if available.
907
907
* @param videoSource the video element in page where to show the video while decoding.
908
908
* Can be either an element id or directly an HTMLVideoElement. Can be undefined,
909
909
* in which case no video will be shown.
@@ -1014,7 +1014,7 @@ export class BrowserCodeReader {
1014
1014
*
1015
1015
* @param element HTML element to scan/decode from. It will not be disposed or destroyed.
1016
1016
* @param callbackFn Called after every scan attempt, being it successful or errored.
1017
- * @param finalizeCallback Called after scan proccess reaches the end or stop is called.
1017
+ * @param finalizeCallback Called after scan process reaches the end or stop is called.
1018
1018
*/
1019
1019
public scan (
1020
1020
element : HTMLVisualMediaElement ,
0 commit comments