-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sd): cond page visual improvements (#7321)
* feat(sd): improve visuals of COND page, convert to 768 format * fix(sd): only apply common styles to the correct pages * chore: add changelog entry Co-authored-by: BBK <[email protected]>
- Loading branch information
1 parent
c949aad
commit abbc34f
Showing
7 changed files
with
89 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React, { FC } from 'react'; | ||
|
||
interface ValveProps { | ||
x: number, | ||
y: number, | ||
radius: number, | ||
position: 'V' |'H', | ||
css: string, | ||
sdacDatum: boolean | ||
} | ||
|
||
const Valve: FC<ValveProps> = ({ x, y, radius, position, css, sdacDatum }) => ( | ||
<g> | ||
<circle cx={x} cy={y} r={radius} className={css} /> | ||
{!sdacDatum ? <text x={x + 1} y={y + 5} className="Small Amber Center">XX</text> : null} | ||
{sdacDatum && position === 'V' ? <path className={css} d={`M ${x},${y - radius} l 0,${2 * radius}`} /> : null} | ||
{sdacDatum && position === 'H' ? <path className={css} d={`M ${x - radius},${y} l ${2 * radius},0`} /> : null} | ||
</g> | ||
); | ||
|
||
export default Valve; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters