Go to file
2024-03-11 19:44:38 +08:00
src feat: Init 2024-03-11 19:44:38 +08:00
.gitignore feat: init 2024-03-11 14:15:30 +08:00
build.config.ts build: 1.0.3 2024-03-11 18:18:41 +08:00
package.json build: 1.0.3 2024-03-11 18:18:41 +08:00
pnpm-lock.yaml build: 1.0.3 2024-03-11 18:18:41 +08:00
README.md fix: . 2024-03-11 16:41:02 +08:00
tsconfig.json feat: init 2024-03-11 14:15:30 +08:00

https://www.npmjs.com/package/@taoya7/print-help

示例

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();