revert: temporarily revert EIP_CIRCUIT_BREAKER compound rendering
Reverting e8039f9 to diagnose compound rendering regression affecting
all compound types (SPLIT, CHOICE, LOOP, DO_TRY) and error handlers.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
34
ui/org/eclipse/elk/core/options/PortAlignment.java
Normal file
34
ui/org/eclipse/elk/core/options/PortAlignment.java
Normal file
@@ -0,0 +1,34 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2015 Kiel University and others.
|
||||
*
|
||||
* This program and the accompanying materials are made available under the
|
||||
* terms of the Eclipse Public License 2.0 which is available at
|
||||
* http://www.eclipse.org/legal/epl-2.0.
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*******************************************************************************/
|
||||
package org.eclipse.elk.core.options;
|
||||
|
||||
/**
|
||||
* Defines the distribution of ports.
|
||||
*
|
||||
* @author csp
|
||||
*/
|
||||
public enum PortAlignment {
|
||||
|
||||
/** Ports are evenly distributed, with the same amount of space between and around them. */
|
||||
DISTRIBUTED,
|
||||
|
||||
/** Ports are justified and use up all the space except for the surrounding ports spacing. */
|
||||
JUSTIFIED,
|
||||
|
||||
/** Ports are placed at the most top respectively left position with minimal spacing. */
|
||||
BEGIN,
|
||||
|
||||
/** Ports are centered with minimal spacing. */
|
||||
CENTER,
|
||||
|
||||
/** Ports are placed at the most top respectively left position with minimal spacing. */
|
||||
END;
|
||||
|
||||
}
|
||||
@@ -65,8 +65,8 @@ export function CompoundNode({
|
||||
onNodeClick, onNodeDoubleClick, onNodeEnter, onNodeLeave,
|
||||
};
|
||||
|
||||
// _TRY_BODY / _CB_MAIN: transparent wrapper — no header, no border, just layout
|
||||
if (node.type === '_TRY_BODY' || node.type === '_CB_MAIN') {
|
||||
// _TRY_BODY: transparent wrapper — no header, no border, just layout
|
||||
if (node.type === '_TRY_BODY') {
|
||||
return (
|
||||
<g transform={`translate(${x}, ${y})`}>
|
||||
{renderInternalEdges(internalEdges, absX, absY, executionOverlay)}
|
||||
@@ -75,24 +75,6 @@ export function CompoundNode({
|
||||
);
|
||||
}
|
||||
|
||||
// _CB_FALLBACK: section styling with EIP purple
|
||||
if (node.type === '_CB_FALLBACK') {
|
||||
const fallbackColor = '#7C3AED'; // EIP purple
|
||||
return (
|
||||
<g data-node-id={node.id} transform={`translate(${x}, ${y})`}>
|
||||
<rect x={0} y={0} width={w} height={h} rx={CORNER_RADIUS}
|
||||
fill={fallbackColor} fillOpacity={0.06} />
|
||||
<rect x={0} y={0} width={w} height={h} rx={CORNER_RADIUS}
|
||||
fill="none" stroke={fallbackColor} strokeWidth={1} strokeOpacity={0.4} strokeDasharray="4 2" />
|
||||
<text x={8} y={12} fill={fallbackColor} fontSize={10} fontWeight={600}>
|
||||
fallback
|
||||
</text>
|
||||
{renderInternalEdges(internalEdges, absX, absY, executionOverlay)}
|
||||
{renderChildren(node, absX, absY, childProps)}
|
||||
</g>
|
||||
);
|
||||
}
|
||||
|
||||
// DO_CATCH / DO_FINALLY: section-like styling (tinted bg, thin border, label)
|
||||
if (node.type === 'DO_CATCH' || node.type === 'DO_FINALLY') {
|
||||
const sectionLabel = node.type === 'DO_CATCH'
|
||||
|
||||
@@ -64,7 +64,6 @@ const COMPOUND_TYPES = new Set([
|
||||
'EIP_LOOP', 'EIP_MULTICAST', 'EIP_AGGREGATE',
|
||||
'ON_EXCEPTION', 'ERROR_HANDLER',
|
||||
'ON_COMPLETION',
|
||||
'EIP_CIRCUIT_BREAKER', '_CB_MAIN', '_CB_FALLBACK',
|
||||
]);
|
||||
|
||||
const ERROR_COMPOUND_TYPES = new Set([
|
||||
|
||||
Reference in New Issue
Block a user