static embedPositionDetectionPatternsAndSeparators(matrix) {
        // Embed three big squares at corners.
        const pdpWidth = MatrixUtil.POSITION_DETECTION_PATTERN[0].length;
        // Left top corner.
        MatrixUtil.embedPositionDetectionPattern(0, 0, matrix);
        // Right top corner.
        MatrixUtil.embedPositionDetectionPattern(matrix.getWidth() - pdpWidth, 0, matrix);
        // Left bottom corner.
        MatrixUtil.embedPositionDetectionPattern(0, matrix.getWidth() - pdpWidth, matrix);
        // Embed horizontal separation patterns around the squares.
        const hspWidth = 8;
        // Left top corner.
        MatrixUtil.embedHorizontalSeparationPattern(0, hspWidth - 1, matrix);
        // Right top corner.
        MatrixUtil.embedHorizontalSeparationPattern(matrix.getWidth() - hspWidth, hspWidth - 1, matrix);
        // Left bottom corner.
        MatrixUtil.embedHorizontalSeparationPattern(0, matrix.getWidth() - hspWidth, matrix);
        // Embed vertical separation patterns around the squares.
        const vspSize = 7;
        // Left top corner.
        MatrixUtil.embedVerticalSeparationPattern(vspSize, 0, matrix);
        // Right top corner.
        MatrixUtil.embedVerticalSeparationPattern(matrix.getHeight() - vspSize - 1, 0, matrix);
        // Left bottom corner.
        MatrixUtil.embedVerticalSeparationPattern(vspSize, matrix.getHeight() - vspSize, matrix);
    }
// Embed position detection patterns and surrounding vertical/horizontal separators.
Embed position detection patterns and surrounding vertical/horizontal separators.
Embed position detection patterns and surrounding vertical / horizontal separators .
static embedPositionDetectionPatternsAndSeparators(matrix) {
        const pdpWidth = MatrixUtil.POSITION_DETECTION_PATTERN[0].length;
        MatrixUtil.embedPositionDetectionPattern(0, 0, matrix);
        MatrixUtil.embedPositionDetectionPattern(matrix.getWidth() - pdpWidth, 0, matrix);
        MatrixUtil.embedPositionDetectionPattern(0, matrix.getWidth() - pdpWidth, matrix);
        const hspWidth = 8;
        MatrixUtil.embedHorizontalSeparationPattern(0, hspWidth - 1, matrix);
        MatrixUtil.embedHorizontalSeparationPattern(matrix.getWidth() - hspWidth, hspWidth - 1, matrix);
        MatrixUtil.embedHorizontalSeparationPattern(0, matrix.getWidth() - hspWidth, matrix);
        const vspSize = 7;
        MatrixUtil.embedVerticalSeparationPattern(vspSize, 0, matrix);
        MatrixUtil.embedVerticalSeparationPattern(matrix.getHeight() - vspSize - 1, 0, matrix);
        MatrixUtil.embedVerticalSeparationPattern(vspSize, matrix.getHeight() - vspSize, matrix);
    }
static embedPositionDetectionPatternsAndSeparators ( matrix ) { const pdpWidth = MatrixUtil . POSITION_DETECTION_PATTERN [ 0 ] . length ; MatrixUtil . embedPositionDetectionPattern ( 0 , 0 , matrix ) ; MatrixUtil . embedPositionDetectionPattern ( matrix . getWidth ( ) - pdpWidth , 0 , matrix ) ; MatrixUtil . embedPositionDetectionPattern ( 0 , matrix . getWidth ( ) - pdpWidth , matrix ) ; const hspWidth = 8 ; MatrixUtil . embedHorizontalSeparationPattern ( 0 , hspWidth - 1 , matrix ) ; MatrixUtil . embedHorizontalSeparationPattern ( matrix . getWidth ( ) - hspWidth , hspWidth - 1 , matrix ) ; MatrixUtil . embedHorizontalSeparationPattern ( 0 , matrix . getWidth ( ) - hspWidth , matrix ) ; const vspSize = 7 ; MatrixUtil . embedVerticalSeparationPattern ( vspSize , 0 , matrix ) ; MatrixUtil . embedVerticalSeparationPattern ( matrix . getHeight ( ) - vspSize - 1 , 0 , matrix ) ; MatrixUtil . embedVerticalSeparationPattern ( vspSize , matrix . getHeight ( ) - vspSize , matrix ) ; }
Embed position detection patterns and surrounding vertical/horizontal separators.
Embed position detection patterns and surrounding vertical / horizontal separators .
// Embed three big squares at corners. // Left top corner. // Right top corner. // Left bottom corner. // Embed horizontal separation patterns around the squares. // Left top corner. // Right top corner. // Left bottom corner. // Embed vertical separation patterns around the squares. // Left top corner. // Right top corner. // Left bottom corner.