You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
1.7 KiB
1 line
1.7 KiB
2 years ago
|
{"ast":null,"code":"var mode = require('./mode');\n\nfunction QR8bitByte(data) {\n this.mode = mode.MODE_8BIT_BYTE;\n this.data = data;\n}\n\nQR8bitByte.prototype = {\n getLength: function (buffer) {\n return this.data.length;\n },\n write: function (buffer) {\n for (var i = 0; i < this.data.length; i++) {\n // not JIS ...\n buffer.put(this.data.charCodeAt(i), 8);\n }\n }\n};\nmodule.exports = QR8bitByte;","map":{"version":3,"names":["mode","require","QR8bitByte","data","MODE_8BIT_BYTE","prototype","getLength","buffer","length","write","i","put","charCodeAt","module","exports"],"sources":["/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/node_modules/qr.js/lib/8BitByte.js"],"sourcesContent":["var mode = require('./mode');\n\nfunction QR8bitByte(data) {\n\tthis.mode = mode.MODE_8BIT_BYTE;\n\tthis.data = data;\n}\n\nQR8bitByte.prototype = {\n\n\tgetLength : function(buffer) {\n\t\treturn this.data.length;\n\t},\n\t\n\twrite : function(buffer) {\n\t\tfor (var i = 0; i < this.data.length; i++) {\n\t\t\t// not JIS ...\n\t\t\tbuffer.put(this.data.charCodeAt(i), 8);\n\t\t}\n\t}\n};\n\nmodule.exports = QR8bitByte;\n\n"],"mappings":"AAAA,IAAIA,IAAI,GAAGC,OAAO,CAAC,QAAD,CAAlB;;AAEA,SAASC,UAAT,CAAoBC,IAApB,EAA0B;EACzB,KAAKH,IAAL,GAAYA,IAAI,CAACI,cAAjB;EACA,KAAKD,IAAL,GAAYA,IAAZ;AACA;;AAEDD,UAAU,CAACG,SAAX,GAAuB;EAEtBC,SAAS,EAAG,UAASC,MAAT,EAAiB;IAC5B,OAAO,KAAKJ,IAAL,CAAUK,MAAjB;EACA,CAJqB;EAMtBC,KAAK,EAAG,UAASF,MAAT,EAAiB;IACxB,KAAK,IAAIG,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAG,KAAKP,IAAL,CAAUK,MAA9B,EAAsCE,CAAC,EAAvC,EAA2C;MAC1C;MACAH,MAAM,CAACI,GAAP,CAAW,KAAKR,IAAL,CAAUS,UAAV,CAAqBF,CAArB,CAAX,EAAoC,CAApC;IACA;EACD;AAXqB,CAAvB;AAcAG,MAAM,CAACC,OAAP,GAAiBZ,UAAjB"},"metadata":{},"sourceType":"script"}
|