Skip to content

Commit

Permalink
NO-ISSUE: Adding new SVGS to the BPMN editor (#132)
Browse files Browse the repository at this point in the history
* NO-ISSUE: Adding new SVGs to the new BPMN Editor

* fixing fill changes
  • Loading branch information
kbowers-ibm authored and tiagobento committed Nov 26, 2024
1 parent 54eb0e6 commit 87e227d
Show file tree
Hide file tree
Showing 3 changed files with 522 additions and 131 deletions.
8 changes: 4 additions & 4 deletions packages/bpmn-editor/src/diagram/nodes/NodeIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ export function NodeIcon({ nodeType }: { nodeType: BpmnNodeType }) {

export function EventDefitnitionIcon({
variant,
fill,
filled,
stroke,
}: {
variant?: EventVariant;
fill: boolean;
filled: boolean;
stroke: string;
}) {
const cx = nodeSvgProps.x + nodeSvgProps.width / 2;
Expand All @@ -69,14 +69,14 @@ export function EventDefitnitionIcon({
<EventVariantSymbolSvg
variant={variant ?? "none"}
strokeWidth={16}
fill={fill}
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 87e227d

Please sign in to comment.