diff --git a/packages/editor-ui/src/plugins/N8nFlowchartType.js b/packages/editor-ui/src/plugins/N8nFlowchartType.js index e38085c7f8..4265c7f085 100644 --- a/packages/editor-ui/src/plugins/N8nFlowchartType.js +++ b/packages/editor-ui/src/plugins/N8nFlowchartType.js @@ -395,9 +395,9 @@ }; _ju.extend(_jp.Connectors.N8nAbstractConnector, AbstractComponent); - var Bezier = function (params) { + var N8nCustom = function (params) { params = params || {}; - this.type = "N8nBezier"; + this.type = "N8nCustom"; var _super = _jp.Connectors.N8nAbstractConnector.apply(this, arguments), majorAnchor = params.curviness || 150, @@ -429,8 +429,8 @@ }; }; - _jp.Connectors.N8nBezier = Bezier; - _ju.extend(_jp.Connectors.N8nBezier, _jp.Connectors.N8nAbstractConnector); + _jp.Connectors.N8nCustom= N8nCustom; + _ju.extend(_jp.Connectors.N8nCustom, _jp.Connectors.N8nAbstractConnector); }).call(typeof window !== 'undefined' ? window : this); diff --git a/packages/editor-ui/src/views/canvasHelpers.ts b/packages/editor-ui/src/views/canvasHelpers.ts index c7f184b6bf..8280e85981 100644 --- a/packages/editor-ui/src/views/canvasHelpers.ts +++ b/packages/editor-ui/src/views/canvasHelpers.ts @@ -47,7 +47,7 @@ export const DEFAULT_START_NODE = { parameters: {}, }; -export const CONNECTOR_FLOWCHART_TYPE = ['N8nBezier', { +export const CONNECTOR_FLOWCHART_TYPE = ['N8nCustom', { cornerRadius: 4, stub: JSPLUMB_FLOWCHART_STUB + 10, gap: 4,