We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6897403 commit af7a56fCopy full SHA for af7a56f
src/main.ts
@@ -67,8 +67,8 @@ class LabelPlusInputOptions {
67
font: any; // 设置的字体
68
fontSize: number; // 字体大小
69
70
- setTextLeading: boolean;
71
- textLeading: number;
+ setTextLeading: boolean = true; // 是否设置行距
+ textLeading: number; // 行距值,百分比
72
73
textReplace: string; // 文本替换规则
74
@@ -1038,12 +1038,10 @@ let newTextLayer = function (
1038
1039
textItemRef.contents = text;
1040
1041
- if (lending == 0) {
+ textItemRef.useAutoLeading = true;
1042
+ if (lending != 0) {
1043
textItemRef.useAutoLeading = true;
- }
1044
- else {
1045
- textItemRef.useAutoLeading = false;
1046
- textItemRef.leading = lending;
+ textItemRef.autoLeadingAmount = lending;
1047
}
1048
1049
return artLayerRef;
0 commit comments