mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-12 21:21:42 +08:00
Fixed bug when using area as box size without web-workers
This commit is contained in:
Vendored
+5
-1
@@ -8564,7 +8564,11 @@ function(Code128Reader,
|
|||||||
if (_config.locate) {
|
if (_config.locate) {
|
||||||
return BarcodeLocator.locate();
|
return BarcodeLocator.locate();
|
||||||
} else {
|
} else {
|
||||||
return [_boxSize];
|
return [[
|
||||||
|
vec2.create(_boxSize[0]),
|
||||||
|
vec2.create(_boxSize[1]),
|
||||||
|
vec2.create(_boxSize[2]),
|
||||||
|
vec2.create(_boxSize[3])]];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
+5
-1
@@ -190,7 +190,11 @@ function(Code128Reader,
|
|||||||
if (_config.locate) {
|
if (_config.locate) {
|
||||||
return BarcodeLocator.locate();
|
return BarcodeLocator.locate();
|
||||||
} else {
|
} else {
|
||||||
return [_boxSize];
|
return [[
|
||||||
|
vec2.create(_boxSize[0]),
|
||||||
|
vec2.create(_boxSize[1]),
|
||||||
|
vec2.create(_boxSize[2]),
|
||||||
|
vec2.create(_boxSize[3])]];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user