Compare commits

..

No commits in common. "bc169183bac0a0e8c3b77b70a3fea7430665cc25" and "2c79551f806e187f2fd022e3fe031ec59c030eba" have entirely different histories.

2 changed files with 0 additions and 34 deletions

View File

@ -464,14 +464,6 @@ export class LabelCommand {
this.addStrToCommand(str); this.addStrToCommand(str);
} }
/**
*
* @param x X dot
* @param y Y dot
* @param xend X dot
* @param yend X dot
* @param thickness 线dot
*/
addBox( addBox(
x: number, x: number,
y: number, y: number,

View File

@ -1,27 +1 @@
export * from "./command"; export * from "./command";
import {
FONTMUL,
FONTTYPE,
LabelCommand,
ROTATION,
EEC,
} from "@/command/Label";
function main() {
let label = new LabelCommand(50, 30, 0);
label.addText(
0,
0,
FONTTYPE.FONT_1,
ROTATION.ROTATION_0,
FONTMUL.MUL_1,
FONTMUL.MUL_1,
"Hello World"
);
label.addQRCode(0, 0, EEC.LEVEL_L, 5, ROTATION.ROTATION_0, "taoya.art");
var command = label.getCommand();
console.log(command); // 获取字节码
console.log(label.getCommandStr(command));
}
main();