mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
tslint arrow-parens rule (#4003)
This commit is contained in:
@@ -78,9 +78,9 @@ export class RaphaelMultilineTextDirective extends RaphaelBase implements OnInit
|
||||
let letterWidth = textPaper.getBBox().width / text.length;
|
||||
let removedLineBreaks = text.split('\n');
|
||||
let actualRowLength = 0, formattedText = [];
|
||||
removedLineBreaks.forEach(sentence => {
|
||||
removedLineBreaks.forEach((sentence) => {
|
||||
let words = sentence.split(' ');
|
||||
words.forEach(word => {
|
||||
words.forEach((word) => {
|
||||
let length = word.length;
|
||||
if (actualRowLength + (length * letterWidth) > elementWidth) {
|
||||
formattedText.push('\n');
|
||||
|
@@ -30,14 +30,14 @@ export class DiagramsService {
|
||||
getProcessDefinitionModel(processDefinitionId: string): Observable<any> {
|
||||
return from(this.apiService.getInstance().activiti.modelJsonBpmnApi.getModelJSON(processDefinitionId))
|
||||
.pipe(
|
||||
catchError(err => this.handleError(err))
|
||||
catchError((err) => this.handleError(err))
|
||||
);
|
||||
}
|
||||
|
||||
getRunningProcessDefinitionModel(processInstanceId: string): Observable<any> {
|
||||
return from(this.apiService.getInstance().activiti.modelJsonBpmnApi.getModelJSONForProcessDefinition(processInstanceId))
|
||||
.pipe(
|
||||
catchError(err => this.handleError(err))
|
||||
catchError((err) => this.handleError(err))
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user