fix: fix remaining JSDoc and TS errors

This commit is contained in:
Philipp
2023-04-13 16:15:19 +02:00
committed by Philipp Fromme
parent 7c089d0023
commit 07f75f7cd5
30 changed files with 921 additions and 225 deletions

View File

@ -5,14 +5,18 @@ import { getMid } from 'diagram-js/lib/layout/LayoutUtil';
/**
* @typedef {import('./LineAttachmentUtil').Attachment} Attachment
*
* @typedef {import('./LayoutUtil').FindNewLintStartIndexHints} FindNewLintStartIndexHints
* @typedef {import('./LayoutUtil').FindNewLineStartIndexHints} FindNewLineStartIndexHints
*
* @typedef {import('../../../../model/Types').BpmnLabel} BpmnLabel
*
* @typedef {import('diagram-js/lib/util/Types').Point} Point
*/
/**
* @param {Point[]} oldWaypoints
* @param {Point[]} newWaypoints
* @param {Attachment} attachment
* @param {FindNewLintStartIndexHints} hints
* @param {FindNewLineStartIndexHints} hints
*
* @return {number}
*/
@ -27,7 +31,7 @@ export function findNewLabelLineStartIndex(oldWaypoints, newWaypoints, attachmen
* @param {BpmnLabel} label
* @param {Point[]} newWaypoints
* @param {Point[]} oldWaypoints
* @param {FindNewLintStartIndexHints} hints
* @param {FindNewLineStartIndexHints} hints
*
* @return {Point}
*/