Skip to content

Commit

Permalink
use ... notation
Browse files Browse the repository at this point in the history
  • Loading branch information
jomarko committed Apr 12, 2024
1 parent f193231 commit 5918b53
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 72 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,7 @@ export class BkmPropertiesPanel extends PropertiesPanelBase {
color?: string;
fontFamily?: string;
}) {
await this.fontProperties.setFont({
fontSize: args.fontSize,
bold: args.bold,
italic: args.italic,
underline: args.underline,
striketrough: args.striketrough,
color: args.color,
fontFamily: args.fontFamily,
});
await this.fontProperties.setFont({ ...args });
}

public async resetFont() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,7 @@ export class DecisionPropertiesPanel extends PropertiesPanelBase {
color?: string;
fontFamily?: string;
}) {
await this.fontProperties.setFont({
fontSize: args.fontSize,
bold: args.bold,
italic: args.italic,
underline: args.underline,
striketrough: args.striketrough,
color: args.color,
fontFamily: args.fontFamily,
});
await this.fontProperties.setFont({ ...args });
}

public async resetFont() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,7 @@ export class DecisionServicePropertiesPanel extends PropertiesPanelBase {
color?: string;
fontFamily?: string;
}) {
await this.fontProperties.setFont({
fontSize: args.fontSize,
bold: args.bold,
italic: args.italic,
underline: args.underline,
striketrough: args.striketrough,
color: args.color,
fontFamily: args.fontFamily,
});
await this.fontProperties.setFont({ ...args });
}

public async resetFont() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,7 @@ export class GroupPropertiesPanel extends PropertiesPanelBase {
color?: string;
fontFamily?: string;
}) {
await this.fontProperties.setFont({
fontSize: args.fontSize,
bold: args.bold,
italic: args.italic,
underline: args.underline,
striketrough: args.striketrough,
color: args.color,
fontFamily: args.fontFamily,
});
await this.fontProperties.setFont({ ...args });
}

public async resetFont() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,7 @@ export class InputDataPropertiesPanel extends PropertiesPanelBase {
color?: string;
fontFamily?: string;
}) {
await this.fontProperties.setFont({
fontSize: args.fontSize,
bold: args.bold,
italic: args.italic,
underline: args.underline,
striketrough: args.striketrough,
color: args.color,
fontFamily: args.fontFamily,
});
await this.fontProperties.setFont({ ...args });
}

public async resetFont() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,7 @@ export class KnowledgeSourcePropertiesPanel extends PropertiesPanelBase {
color?: string;
fontFamily?: string;
}) {
await this.fontProperties.setFont({
fontSize: args.fontSize,
bold: args.bold,
italic: args.italic,
underline: args.underline,
striketrough: args.striketrough,
color: args.color,
fontFamily: args.fontFamily,
});
await this.fontProperties.setFont({ ...args });
}

public async resetFont() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,7 @@ export class MultipleNodesPropertiesPanel extends PropertiesPanelBase {
color?: string;
fontFamily?: string;
}) {
await this.fontProperties.setFont({
fontSize: args.fontSize,
bold: args.bold,
italic: args.italic,
underline: args.underline,
striketrough: args.striketrough,
color: args.color,
fontFamily: args.fontFamily,
});
await this.fontProperties.setFont({ ...args });
}

public async resetFont() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,7 @@ export class TextAnnotationProperties extends PropertiesPanelBase {
color?: string;
fontFamily?: string;
}) {
await this.fontProperties.setFont({
fontSize: args.fontSize,
bold: args.bold,
italic: args.italic,
underline: args.underline,
striketrough: args.striketrough,
color: args.color,
fontFamily: args.fontFamily,
});
await this.fontProperties.setFont({ ...args });
}

public async resetFont() {
Expand Down

0 comments on commit 5918b53

Please sign in to comment.