Skip to content

Commit

Permalink
NO-ISSUE: Adding new SVGs to the new BPMN Editor
Browse files Browse the repository at this point in the history
  • Loading branch information
kbowers-ibm committed Oct 16, 2024
1 parent 970750c commit ae20edf
Show file tree
Hide file tree
Showing 3 changed files with 527 additions and 130 deletions.
9 changes: 6 additions & 3 deletions packages/bpmn-editor/src/diagram/nodes/NodeIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ export function NodeIcon({ nodeType }: { nodeType: BpmnNodeType }) {

export function EventDefitnitionIcon({
variant,
filled,
fill,
stroke,
}: {
variant?: EventVariant;
fill: boolean;
filled: boolean;
fill?: string;
stroke: string;
}) {
const cx = nodeSvgProps.x + nodeSvgProps.width / 2;
Expand All @@ -69,14 +71,15 @@ export function EventDefitnitionIcon({
<EventVariantSymbolSvg
variant={variant ?? "none"}
strokeWidth={16}
fill={fill}
fill={fill ?? "none"}
filled={filled}
stroke={stroke}
x={nodeSvgProps.x}
y={nodeSvgProps.x}
cx={cx}
cy={cy}
innerCircleRadius={r - 5}
outerCirculeRadius={r}
outerCircleRadius={r}
/>
</RoundSvg>
);
Expand Down
Loading

0 comments on commit ae20edf

Please sign in to comment.