Skip to content

Commit

Permalink
fix(BpmnLayouter): fix JSDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
philippfromme committed Apr 4, 2023
1 parent 7ae67c5 commit 0365dfb
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions lib/features/modeling/BpmnLayouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,21 @@ import {

import { is } from '../../util/ModelUtil';

/**
* @typedef {import('diagram-js/lib/util/Types').Point} Point
*
* @typedef {import('./ElementFactory').BpmnConnection} BpmnConnection
* @typedef {import('./ElementFactory').BpmnElement} BpmnElement
*
* @typedef { {
* source?: BpmnElement;
* target?: BpmnElement;
* waypoints?: Point[];
* connectionStart?: Point;
* connectionEnd?: Point;
* } } LayoutConnectionHints
*/

var ATTACH_ORIENTATION_PADDING = -10,
BOUNDARY_TO_HOST_THRESHOLD = 40;

Expand All @@ -43,12 +58,18 @@ var orientationDirectionMapping = {
left: 'l'
};


export default function BpmnLayouter() {}

inherits(BpmnLayouter, BaseLayouter);


/**
* Returns waypoints of laid out connection.
*
* @param {BpmnConnection} connection
* @param {LayoutConnectionHints} [hints]
*
* @return {Point[]}
*/
BpmnLayouter.prototype.layoutConnection = function(connection, hints) {
if (!hints) {
hints = {};
Expand Down

0 comments on commit 0365dfb

Please sign in to comment.