Skip to content

Commit

Permalink
use ... notation 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jomarko committed Apr 12, 2024
1 parent 5918b53 commit 152b1ed
Show file tree
Hide file tree
Showing 9 changed files with 54 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,27 @@ export class BkmPropertiesPanel extends PropertiesPanelBase {
}

public async setName(args: { newName: string }) {
await this.nameProperties.setName({ newName: args.newName });
await this.nameProperties.setName({ ...args });
}

public async getName() {
return await this.nameProperties.getName();
}

public async setDataType(args: { newDataType: DataType }) {
await this.dataTypeProperties.setDataType({ newDataType: args.newDataType });
await this.dataTypeProperties.setDataType({ ...args });
}

public async setDescription(args: { newDescription: string }) {
await this.descriptionProperties.setDescription({ newDescription: args.newDescription });
await this.descriptionProperties.setDescription({ ...args });
}

public async getDescription() {
return await this.descriptionProperties.getDescription();
}

public async addDocumentationLink(args: { linkText: string; linkHref: string }) {
await this.documentationProperties.addDocumentationLink({ linkText: args.linkText, linkHref: args.linkHref });
await this.documentationProperties.addDocumentationLink({ ...args });
}

public async getDocumentationLinks() {
Expand Down Expand Up @@ -95,11 +95,11 @@ export class BkmPropertiesPanel extends PropertiesPanelBase {
}

public async setShape(args: { width: string; height: string }) {
await this.shapeProperties.setShape({ width: args.width, height: args.height });
await this.shapeProperties.setShape({ ...args });
}

public async setPosition(args: { x: string; y: string }) {
await this.shapeProperties.setPosition({ x: args.x, y: args.y });
await this.shapeProperties.setPosition({ ...args });
}

public async getShape() {
Expand All @@ -111,10 +111,10 @@ export class BkmPropertiesPanel extends PropertiesPanelBase {
}

public async setFillColor(args: { color: string }) {
await this.shapeProperties.setFillColor({ color: args.color });
await this.shapeProperties.setFillColor({ ...args });
}

public async setStrokeColor(args: { color: string }) {
await this.shapeProperties.setStrokeColor({ color: args.color });
await this.shapeProperties.setStrokeColor({ ...args });
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,27 @@ export class DecisionPropertiesPanel extends PropertiesPanelBase {
}

public async setName(args: { newName: string }) {
await this.nameProperties.setName({ newName: args.newName });
await this.nameProperties.setName({ ...args });
}

public async getName() {
return await this.nameProperties.getName();
}

public async setDataType(args: { newDataType: DataType }) {
await this.dataTypeProperties.setDataType({ newDataType: args.newDataType });
await this.dataTypeProperties.setDataType({ ...args });
}

public async setDescription(args: { newDescription: string }) {
await this.descriptionProperties.setDescription({ newDescription: args.newDescription });
await this.descriptionProperties.setDescription({ ...args });
}

public async getDescription() {
return await this.descriptionProperties.getDescription();
}

public async addDocumentationLink(args: { linkText: string; linkHref: string }) {
await this.documentationProperties.addDocumentationLink({ linkText: args.linkText, linkHref: args.linkHref });
await this.documentationProperties.addDocumentationLink({ ...args });
}

public async getDocumentationLinks() {
Expand Down Expand Up @@ -115,11 +115,11 @@ export class DecisionPropertiesPanel extends PropertiesPanelBase {
}

public async setShape(args: { width: string; height: string }) {
await this.shapeProperties.setShape({ width: args.width, height: args.height });
await this.shapeProperties.setShape({ ...args });
}

public async setPosition(args: { x: string; y: string }) {
await this.shapeProperties.setPosition({ x: args.x, y: args.y });
await this.shapeProperties.setPosition({ ...args });
}

public async getShape() {
Expand All @@ -131,10 +131,10 @@ export class DecisionPropertiesPanel extends PropertiesPanelBase {
}

public async setFillColor(args: { color: string }) {
await this.shapeProperties.setFillColor({ color: args.color });
await this.shapeProperties.setFillColor({ ...args });
}

public async setStrokeColor(args: { color: string }) {
await this.shapeProperties.setStrokeColor({ color: args.color });
await this.shapeProperties.setStrokeColor({ ...args });
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,27 @@ export class DecisionServicePropertiesPanel extends PropertiesPanelBase {
}

public async setName(args: { newName: string }) {
await this.nameProperties.setName({ newName: args.newName });
await this.nameProperties.setName({ ...args });
}

public async getName() {
return await this.nameProperties.getName();
}

public async setDataType(args: { newDataType: DataType }) {
await this.dataTypeProperties.setDataType({ newDataType: args.newDataType });
await this.dataTypeProperties.setDataType({ ...args });
}

public async setDescription(args: { newDescription: string }) {
await this.descriptionProperties.setDescription({ newDescription: args.newDescription });
await this.descriptionProperties.setDescription({ ...args });
}

public async getDescription() {
return await this.descriptionProperties.getDescription();
}

public async addDocumentationLink(args: { linkText: string; linkHref: string }) {
await this.documentationProperties.addDocumentationLink({ linkText: args.linkText, linkHref: args.linkHref });
await this.documentationProperties.addDocumentationLink({ ...args });
}

public async getDocumentationLinks() {
Expand Down Expand Up @@ -95,11 +95,11 @@ export class DecisionServicePropertiesPanel extends PropertiesPanelBase {
}

public async setShape(args: { width: string; height: string }) {
await this.shapeProperties.setShape({ width: args.width, height: args.height });
await this.shapeProperties.setShape({ ...args });
}

public async setPosition(args: { x: string; y: string }) {
await this.shapeProperties.setPosition({ x: args.x, y: args.y });
await this.shapeProperties.setPosition({ ...args });
}

public async getShape() {
Expand All @@ -111,10 +111,10 @@ export class DecisionServicePropertiesPanel extends PropertiesPanelBase {
}

public async setFillColor(args: { color: string }) {
await this.shapeProperties.setFillColor({ color: args.color });
await this.shapeProperties.setFillColor({ ...args });
}

public async setStrokeColor(args: { color: string }) {
await this.shapeProperties.setStrokeColor({ color: args.color });
await this.shapeProperties.setStrokeColor({ ...args });
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ export class DiagramPropertiesPanel extends PropertiesPanelBase {
}

public async setDescription(args: { newDescription: string }) {
await this.descriptionProperties.setDescription({ newDescription: args.newDescription });
await this.descriptionProperties.setDescription({ ...args });
}

public async getDescription() {
return await this.descriptionProperties.getDescription();
}

public async setName(args: { newName: string }) {
await this.nameProperties.setName({ newName: args.newName });
await this.nameProperties.setName({ ...args });
}

public async getName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ export class GroupPropertiesPanel extends PropertiesPanelBase {
}

public async setName(args: { newName: string }) {
await this.nameProperties.setName({ newName: args.newName });
await this.nameProperties.setName({ ...args });
}

public async getName() {
return await this.nameProperties.getName();
}

public async setDescription(args: { newDescription: string }) {
await this.descriptionProperties.setDescription({ newDescription: args.newDescription });
await this.descriptionProperties.setDescription({ ...args });
}

public async getDescription() {
Expand Down Expand Up @@ -76,11 +76,11 @@ export class GroupPropertiesPanel extends PropertiesPanelBase {
}

public async setShape(args: { width: string; height: string }) {
await this.shapeProperties.setShape({ width: args.width, height: args.height });
await this.shapeProperties.setShape({ ...args });
}

public async setPosition(args: { x: string; y: string }) {
await this.shapeProperties.setPosition({ x: args.x, y: args.y });
await this.shapeProperties.setPosition({ ...args });
}

public async getShape() {
Expand All @@ -92,10 +92,10 @@ export class GroupPropertiesPanel extends PropertiesPanelBase {
}

public async setFillColor(args: { color: string }) {
await this.shapeProperties.setFillColor({ color: args.color });
await this.shapeProperties.setFillColor({ ...args });
}

public async setStrokeColor(args: { color: string }) {
await this.shapeProperties.setStrokeColor({ color: args.color });
await this.shapeProperties.setStrokeColor({ ...args });
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,27 @@ export class InputDataPropertiesPanel extends PropertiesPanelBase {
}

public async setName(args: { newName: string }) {
await this.nameProperties.setName({ newName: args.newName });
await this.nameProperties.setName({ ...args });
}

public async getName() {
return await this.nameProperties.getName();
}

public async setDataType(args: { newDataType: DataType }) {
await this.dataTypeProperties.setDataType({ newDataType: args.newDataType });
await this.dataTypeProperties.setDataType({ ...args });
}

public async setDescription(args: { newDescription: string }) {
await this.descriptionProperties.setDescription({ newDescription: args.newDescription });
await this.descriptionProperties.setDescription({ ...args });
}

public async getDescription() {
return await this.descriptionProperties.getDescription();
}

public async addDocumentationLink(args: { linkText: string; linkHref: string }) {
await this.documentationProperties.addDocumentationLink({ linkText: args.linkText, linkHref: args.linkHref });
await this.documentationProperties.addDocumentationLink({ ...args });
}

public async getDocumentationLinks() {
Expand Down Expand Up @@ -95,11 +95,11 @@ export class InputDataPropertiesPanel extends PropertiesPanelBase {
}

public async setShape(args: { width: string; height: string }) {
await this.shapeProperties.setShape({ width: args.width, height: args.height });
await this.shapeProperties.setShape({ ...args });
}

public async setPosition(args: { x: string; y: string }) {
await this.shapeProperties.setPosition({ x: args.x, y: args.y });
await this.shapeProperties.setPosition({ ...args });
}

public async getShape() {
Expand All @@ -111,10 +111,10 @@ export class InputDataPropertiesPanel extends PropertiesPanelBase {
}

public async setFillColor(args: { color: string }) {
await this.shapeProperties.setFillColor({ color: args.color });
await this.shapeProperties.setFillColor({ ...args });
}

public async setStrokeColor(args: { color: string }) {
await this.shapeProperties.setStrokeColor({ color: args.color });
await this.shapeProperties.setStrokeColor({ ...args });
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,23 @@ export class KnowledgeSourcePropertiesPanel extends PropertiesPanelBase {
}

public async setName(args: { newName: string }) {
await this.nameProperties.setName({ newName: args.newName });
await this.nameProperties.setName({ ...args });
}

public async getName() {
return await this.nameProperties.getName();
}

public async setDescription(args: { newDescription: string }) {
await this.descriptionProperties.setDescription({ newDescription: args.newDescription });
await this.descriptionProperties.setDescription({ ...args });
}

public async getDescription() {
return await this.descriptionProperties.getDescription();
}

public async addDocumentationLink(args: { linkText: string; linkHref: string }) {
await this.documentationProperties.addDocumentationLink({ linkText: args.linkText, linkHref: args.linkHref });
await this.documentationProperties.addDocumentationLink({ ...args });
}

public async getDocumentationLinks() {
Expand Down Expand Up @@ -112,11 +112,11 @@ export class KnowledgeSourcePropertiesPanel extends PropertiesPanelBase {
}

public async setShape(args: { width: string; height: string }) {
await this.shapeProperties.setShape({ width: args.width, height: args.height });
await this.shapeProperties.setShape({ ...args });
}

public async setPosition(args: { x: string; y: string }) {
await this.shapeProperties.setPosition({ x: args.x, y: args.y });
await this.shapeProperties.setPosition({ ...args });
}

public async getShape() {
Expand All @@ -128,10 +128,10 @@ export class KnowledgeSourcePropertiesPanel extends PropertiesPanelBase {
}

public async setFillColor(args: { color: string }) {
await this.shapeProperties.setFillColor({ color: args.color });
await this.shapeProperties.setFillColor({ ...args });
}

public async setStrokeColor(args: { color: string }) {
await this.shapeProperties.setStrokeColor({ color: args.color });
await this.shapeProperties.setStrokeColor({ ...args });
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ export class MultipleNodesPropertiesPanel extends PropertiesPanelBase {
}

public async setFillColor(args: { color: string }) {
await this.shapeProperties.setFillColor({ color: args.color });
await this.shapeProperties.setFillColor({ ...args });
}

public async setStrokeColor(args: { color: string }) {
await this.shapeProperties.setStrokeColor({ color: args.color });
await this.shapeProperties.setStrokeColor({ ...args });
}
}
Loading

0 comments on commit 152b1ed

Please sign in to comment.