Skip to content

Commit

Permalink
recreate snapshot files
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasPr committed Oct 25, 2020
1 parent ccea565 commit f38a51d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ const UMLInterfaceRequiredC: SFC<Props> = (props: Props) => {
<path
d={`M ${Math.floor(REQUIRED_INTERFACE_MARKER_SIZE / 2) - (hasOppositeRequiredInterface ? 5 : 0)} -${
(REQUIRED_INTERFACE_MARKER_SIZE - (hasOppositeRequiredInterface ? 2 : 0)) / 2
} a ${Math.floor(REQUIRED_INTERFACE_MARKER_SIZE / 2)},${Math.floor(REQUIRED_INTERFACE_MARKER_SIZE / 2)} 0 0 0 0,${REQUIRED_INTERFACE_MARKER_SIZE - (hasOppositeRequiredInterface ? 2 : 0)}`}
} a ${Math.floor(REQUIRED_INTERFACE_MARKER_SIZE / 2)},${Math.floor(
REQUIRED_INTERFACE_MARKER_SIZE / 2,
)} 0 0 0 0,${REQUIRED_INTERFACE_MARKER_SIZE - (hasOppositeRequiredInterface ? 2 : 0)}`}
fill="none"
stroke="black"
strokeWidth={2}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@ export const UMLPetriNetPlaceComponent: SFC<Props> = ({ element }) => {
<circle cx="50%" cy="50%" r={radius} stroke="black" strokeWidth={2} fillOpacity={1} />
{!displayTokenAsNumber &&
tokenPositions.map((position, index) => (
<circle key={index} cx={radius + position.x} cy={radius + position.y} r={tokenRadius} fill="black" fillOpacity={1}/>
<circle
key={index}
cx={radius + position.x}
cy={radius + position.y}
r={tokenRadius}
fill="black"
fillOpacity={1}
/>
))}
{displayTokenAsNumber && (
<text x="50%" y="50%" dominantBaseline="middle" textAnchor="middle" fontWeight="bold" pointerEvents="none">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ exports[`render the uml-component-required-interface-component 1`] = `
<g>
<marker
id="marker-a80638d5-7083-48be-b1c9-f6e9d64cde88"
markerHeight="26"
markerHeight="27"
markerUnits="strokeWidth"
markerWidth="26"
markerWidth="27"
orient="auto"
refX="0"
refY="0"
stroke-dasharray="1,0"
viewBox="0 0 26 26"
viewBox="0 0 27 27"
>
<path
d="M 13 -13 a 13,13 0 0 0 0,26"
d="M 13 -13.5 a 13,13 0 0 0 0,27"
fill="none"
stroke="black"
stroke-width="2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ exports[`render the uml-deplyoment-required-interface-component 1`] = `
<g>
<marker
id="marker-05a6f05d-404a-4f38-ade1-d46c9f02902b"
markerHeight="26"
markerHeight="27"
markerUnits="strokeWidth"
markerWidth="26"
markerWidth="27"
orient="auto"
refX="0"
refY="0"
stroke-dasharray="1,0"
viewBox="0 0 26 26"
viewBox="0 0 27 27"
>
<path
d="M 13 -13 a 13,13 0 0 0 0,26"
d="M 13 -13.5 a 13,13 0 0 0 0,27"
fill="none"
stroke="black"
stroke-width="2"
Expand Down

0 comments on commit f38a51d

Please sign in to comment.