2024-03-11 16:32:51 +08:00
|
|
|
|
|
|
|
|
2024-03-11 16:41:02 +08:00
|
|
|
https://www.npmjs.com/package/@taoya7/print-help
|
|
|
|
|
|
|
|
示例
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
import { FONTMUL, FONTTYPE, LabelCommand, ROTATION } 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');
|
|
|
|
var command = label.getCommand();
|
|
|
|
console.log(command);// 获取字节码
|
|
|
|
console.log(label.getCommandStr(command));
|
|
|
|
}
|
|
|
|
main();
|
|
|
|
```
|