1
hao
2025-03-27 e610e1c17f62b423a717fadaaa7b139d02857793
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import Barcode from "../Barcode.js";
 
class GenericBarcode extends Barcode{
    constructor(data, options){
        super(data, options); // Sets this.data and this.text
    }
 
    // Return the corresponding binary numbers for the data provided
    encode(){
        return {
            data: "10101010101010101010101010101010101010101",
            text: this.text
        };
    }
 
    // Resturn true/false if the string provided is valid for this encoder
    valid(){
        return true;
    }
}
 
export {GenericBarcode};