Skip to content

Commit

Permalink
Release 9.2.0 (#241)
Browse files Browse the repository at this point in the history
## What's Changed
* feat: Add vis colors as ts constants by @dvdanielamoitzi in
#218
* feat: Add custom fontawesome icons by @dvdanielamoitzi in
#239
* fix(scatterplot): use label in selection labels by @dvchristianbors in
#240


**Full Changelog**:
v9.1.3...v9.2.0
  • Loading branch information
thinkh authored Mar 28, 2024
2 parents 48a702b + d1baa5f commit 7aa18f8
Show file tree
Hide file tree
Showing 13 changed files with 312 additions and 9 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "visyn_core",
"description": "Core repository for datavisyn applications.",
"version": "9.1.3",
"version": "9.2.0",
"author": {
"name": "datavisyn GmbH",
"email": "[email protected]",
Expand Down Expand Up @@ -34,6 +34,8 @@
"./utils": "./src/utils/index.ts",
"./views": "./src/views/index.ts",
"./vis": "./src/vis/index.ts",
"./icons": "./src/icons/index.ts",
"./types": "./src/types.ts",
"./assets/*": "./src/assets/*",
"./phovea_registry": "./src/phovea_registry.ts",
"./scss/*": "./src/scss/*",
Expand Down
2 changes: 2 additions & 0 deletions src/app/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const DEFAULT_MANTINE6_PROVIDER_PROPS: Omit<Mantine6ProviderProps, 'child
colors: {
dvGray: ['#E9ECEF', '#DEE2E6', '#C8CED3', '#BCC3C9', '#ACB4BC', '#99A1A9', '#878E95', '#71787E', '#62686F', '#505459'],
dvPrimary: ['#E6F3FF', '#A8D7FF', '#79BCF5', '#54A5EB', '#3A8DD5', '#337AB7', '#206198', '#1C4F7B', '#053661', '#062C4E'],
dvAI: ['#F5EEFF', '#E3D8F8', '#C3B0EC', '#A284E0', '#865ED6', '#7446D0', '#6B3BCE', '#5A2EB6', '#5027A4', '#442091'],
white: ['white', 'white', 'white', 'white', 'white', 'white', 'white', 'white', 'white', 'white'],
dvDrug: ['#FBE3ED', '#F5C7D9', '#EEACC6', '#E78FB3', '#E074A1', '#B42865', '#9E1D58', '#87184D', '#6F1340', '#560D34'],
dvGene: ['#EDF8F1', '#BDEDCA', '#9EE4B2', '#7DD997', '#5DCD7D', '#4BB268', '#439E5E', '#3B894F', '#32743F', '#285F30'],
Expand All @@ -33,6 +34,7 @@ export const DEFAULT_MANTINE_PROVIDER_PROPS: Omit<MantineProviderProps, 'childre
colors: {
dvGray: ['#E9ECEF', '#DEE2E6', '#C8CED3', '#BCC3C9', '#ACB4BC', '#99A1A9', '#878E95', '#71787E', '#62686F', '#505459'],
dvPrimary: ['#E6F3FF', '#A8D7FF', '#79BCF5', '#54A5EB', '#3A8DD5', '#337AB7', '#206198', '#1C4F7B', '#053661', '#062C4E'],
dvAI: ['#F5EEFF', '#E3D8F8', '#C3B0EC', '#A284E0', '#865ED6', '#7446D0', '#6B3BCE', '#5A2EB6', '#5027A4', '#442091'],
white: ['white', 'white', 'white', 'white', 'white', 'white', 'white', 'white', 'white', 'white'],
dvDrug: ['#FBE3ED', '#F5C7D9', '#EEACC6', '#E78FB3', '#E074A1', '#B42865', '#9E1D58', '#87184D', '#6F1340', '#560D34'],
dvGene: ['#EDF8F1', '#BDEDCA', '#9EE4B2', '#7DD997', '#5DCD7D', '#4BB268', '#439E5E', '#3B894F', '#32743F', '#285F30'],
Expand Down
2 changes: 1 addition & 1 deletion src/demo/randomSurnames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -999,4 +999,4 @@ export const randomSurnames = [
'Kidd',
'Key',
'Cooke',
];
];
73 changes: 73 additions & 0 deletions src/icons/EntityIcons.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
import { IconDefinition, IconName, IconPrefix } from '@fortawesome/fontawesome-common-types';

export const dvGene: IconDefinition = {
prefix: 'fac' as IconPrefix,
iconName: 'gene' as IconName,
icon: [
300,
300,
[],
null,
`
M216.615 11.6565C215.873 4.79298 209.708 -0.169664 202.844 0.572524C195.98 1.31447 191.018 7.47999 191.76 14.3435L200.072 91.2341C200.086 91.356 200.1 91.4773 200.117 91.5986L208.4 151.651C209.872 166.085 208.132 176.835 204.653 184.736C201.221 192.53 195.799 198.249 188.588 202.313C173.603 210.758 150.091 212.382 121.507 206.492C114.746 205.098 108.135 209.45 106.742 216.211C105.348 222.973 109.7 229.584 116.461 230.977C147.394 237.352 178.14 236.898 200.862 224.093C212.504 217.532 221.798 207.833 227.532 194.813C233.203 181.937 235.08 166.54 233.246 148.865C233.231 148.726 233.214 148.587 233.195 148.448L226.843 102.391H279C285.904 102.391 291.5 96.7942 291.5 89.8906C291.5 82.9871 285.904 77.3906 279 77.3906H223.721L216.615 11.6565ZM247.839 39.1611C242.957 34.2796 235.043 34.2796 230.161 39.1611C225.28 44.0427 225.28 51.9573 230.161 56.8389L241.161 67.8389C246.043 72.7205 253.957 72.7205 258.839 67.8389C263.72 62.9573 263.72 55.0427 258.839 50.1611L247.839 39.1611ZM81.4922 148.448C79.6178 134.86 80.7717 124.554 83.7753 116.776C86.7137 109.166 91.6991 103.234 98.9062 98.6416C113.977 89.0393 139.112 85.1265 174.14 87.8074C181.023 88.3342 187.031 83.1812 187.557 76.2976C188.084 69.4143 182.931 63.407 176.048 62.8801C139.622 60.0923 107.609 63.4529 85.4723 77.5576C74.076 84.8191 65.4434 94.8486 60.4536 107.771C55.5347 120.509 54.447 135.287 56.719 151.808L63.2053 202.078H13C6.09644 202.078 0.5 207.675 0.5 214.578C0.5 221.482 6.09644 227.078 13 227.078H66.4312L73.3372 280.6C74.2206 287.447 80.4872 292.281 87.334 291.397C94.1808 290.514 99.015 284.247 98.1316 277.4L89.8191 212.979L81.5066 148.557L81.4922 148.448ZM166.339 98.7861C161.457 93.9046 153.543 93.9046 148.661 98.7861C143.78 103.668 143.78 111.582 148.661 116.464L176.161 143.964C181.043 148.845 188.957 148.845 193.839 143.964C198.72 139.082 198.72 131.168 193.839 126.286L166.339 98.7861ZM121.683 108.161C116.801 103.28 108.886 103.28 104.005 108.161C99.1234 113.043 99.1234 120.957 104.005 125.839L168.161 189.995C173.043 194.877 180.957 194.877 185.839 189.995C190.72 185.114 190.72 177.199 185.839 172.317L121.683 108.161ZM114.651 155.161C109.77 150.28 101.855 150.28 96.9736 155.161C92.0922 160.043 92.0922 167.957 96.9736 172.839L119.474 195.339C124.355 200.22 132.27 200.22 137.151 195.339C142.033 190.457 142.033 182.543 137.151 177.661L114.651 155.161ZM50.3389 234.661C45.4573 229.78 37.5427 229.78 32.6611 234.661C27.7795 239.543 27.7795 247.457 32.6611 252.339L43.6611 263.339C48.5427 268.22 56.4573 268.22 61.3389 263.339C66.2205 258.457 66.2205 250.543 61.3389 245.661L50.3389 234.661Z
`,
],
};

export const dvDrug: IconDefinition = {
prefix: 'fac' as IconPrefix,
iconName: 'drug' as IconName,
icon: [
300,
300,
[],
null,
`
M177.764 228.027C216.755 250.539 266.57 237.191 289.082 198.199C296.442 185.452 299.947 171.537 299.995 157.804C300.021 150.526 292.834 145.965 285.876 147.829L155.355 182.802C148.372 184.71 144.498 192.236 148.115 198.5C155.024 210.369 165.016 220.667 177.764 228.027Z
M147.936 116.708C140.576 129.455 137.071 143.369 137.023 157.103C136.997 164.381 144.184 168.942 151.142 167.078L281.663 132.105C288.646 130.197 292.52 122.671 288.903 116.407C281.994 104.537 272.002 94.2398 259.255 86.8801C220.263 64.3682 170.448 77.7162 147.936 116.708Z
M0 179.012C0 173.777 0.67524 168.455 2.08895 163.155L33.5388 45.2534C42.2296 12.6725 75.5152 -6.63164 107.95 2.09838C140.384 10.8284 159.602 44.2642 150.911 76.845C142.22 109.426 119.461 194.747 119.461 194.747C110.77 227.327 77.4848 246.632 45.0502 237.902C17.8917 230.592 0 205.96 0 179.012ZM98.9641 35.7846C85.0786 32.0471 70.7943 40.3314 67.0737 54.2795L51.3488 113.23L101.651 126.77L117.376 67.8188C121.097 53.8706 112.85 39.522 98.9641 35.7846Z" fill="#333333"/>
`,
],
};

export const dvCellLine: IconDefinition = {
prefix: 'fac' as IconPrefix,
iconName: 'drug' as IconName,
icon: [
300,
300,
[],
null,
`
M276.5 121.255V120.238L275.694 120.859C268.982 126.041 261.309 130.558 253.197 134.381C226.294 147.06 189.972 154.575 150.5 154.575C111.028 154.575 74.7061 147.06 47.8035 134.381C39.691 130.558 32.0179 126.041 25.3055 120.859L24.5 120.238V121.255V128.462C24.5 139.051 34.0528 152.293 58.035 163.596C81.0786 174.456 113.757 181.5 150.5 181.5C187.243 181.5 219.921 174.456 242.965 163.596C266.947 152.293 276.5 139.051 276.5 128.462V121.255ZM300.5 77.5377V128.462C300.5 153.789 279.166 173.067 253.197 185.306C226.294 197.985 189.972 205.5 150.5 205.5C111.028 205.5 74.7061 197.985 47.8035 185.306C21.8339 173.067 0.5 153.789 0.5 128.462V77.5377C0.5 52.2105 21.8339 32.9334 47.8035 20.6942C74.7061 8.01533 111.028 0.5 150.5 0.5C189.972 0.5 226.294 8.01533 253.197 20.6942C279.166 32.9334 300.5 52.2105 300.5 77.5377ZM58.035 42.404C34.0528 53.7065 24.5 66.9492 24.5 77.5377C24.5 88.1262 34.0528 101.369 58.035 112.671C81.0786 123.532 113.757 130.575 150.5 130.575C187.243 130.575 219.921 123.532 242.965 112.671C266.947 101.369 276.5 88.1262 276.5 77.5377C276.5 66.9492 266.947 53.7065 242.965 42.404C219.921 31.5439 187.243 24.5 150.5 24.5C113.757 24.5 81.0786 31.5439 58.035 42.404ZM150.5 61C112.276 61 77.8126 71.6406 53.8396 83.9509C49.1723 86.3476 43.4458 84.5069 41.0491 79.8396C38.6524 75.1723 40.4931 69.4458 45.1604 67.0491C71.4945 53.5263 108.913 42 150.5 42C192.087 42 229.506 53.5263 255.84 67.0491C260.507 69.4458 262.348 75.1723 259.951 79.8396C257.554 84.5069 251.828 86.3476 247.16 83.9509C223.187 71.6406 188.724 61 150.5 61ZM109.5 91.5C109.5 93.1189 108.903 95.1534 107.864 97.3212C106.828 99.48 105.373 101.731 103.702 103.772C102.03 105.814 100.154 107.632 98.2829 108.936C96.4024 110.246 94.5784 111 93 111C89.7864 111 86.793 108.757 84.572 105.554C82.3586 102.362 81 98.3345 81 95C81 91.6729 82.3532 88.0468 84.5539 85.2547C86.7558 82.461 89.7498 80.568 93 80.568C96.3593 80.568 100.522 81.6746 103.835 83.626C107.163 85.5864 109.5 88.3122 109.5 91.5ZM154 111.5C154 114.861 151.746 117.979 148.546 120.287C145.354 122.589 141.329 124 138 124C134.675 124 130.906 122.593 127.969 120.298C125.029 118.002 123 114.883 123 111.5C123 108.086 125.06 104.077 128.027 100.899C130.997 97.7155 134.749 95.5 138 95.5C141.26 95.5 145.264 97.7244 148.487 100.913C151.709 104.101 154 108.105 154 111.5ZM213.5 91.5C213.5 94.7136 211.257 97.707 208.054 99.928C204.862 102.141 200.835 103.5 197.5 103.5C194.157 103.5 189.62 102.136 185.919 99.9103C182.188 97.6672 179.5 94.6719 179.5 91.5C179.5 90.0062 180.481 88.5578 182.241 87.1968C183.989 85.8453 186.414 84.6531 189.085 83.6641C194.429 81.6847 200.62 80.568 204 80.568C207.335 80.568 209.679 81.6561 211.202 83.5123C212.739 85.3854 213.5 88.1132 213.5 91.5Z
`,
],
};

export const dvTissue: IconDefinition = {
prefix: 'fac' as IconPrefix,
iconName: 'tissue' as IconName,
icon: [
300,
300,
[],
null,
`
M138.516 17.9766L133.008 26.2383C120.527 44.9883 98.2031 54.6562 75.9961 50.9062L41.0742 45.1055C19.5703 41.5312 -6.09103e-06 58.1133 0.0585877 79.9102C0.0585877 89.2266 3.80859 98.1914 10.3711 104.813L27.4805 121.922C33.9258 128.367 37.5586 137.098 37.5586 146.238C37.5586 155.496 33.8086 164.344 27.1875 170.848L19.5117 178.348C13.0078 184.676 9.37499 193.348 9.37499 202.43C9.37499 223.992 29.3555 240.047 50.4492 235.359L86.9531 227.273C91.4648 226.277 96.1523 225.75 100.781 225.75H106.641C122.578 225.75 138.105 231.199 150.586 241.16L168.633 255.633C174.785 260.555 182.461 263.25 190.312 263.25C209.473 263.25 225.059 247.723 225.059 228.504V213.738C225.059 193.289 237.598 174.949 256.641 167.566L278.262 159.187C291.387 154.09 300.059 141.434 300.059 127.371C300.059 110.906 288.281 96.7266 272.051 93.7969L255.645 90.8086C234.258 86.8828 217.324 70.5938 212.52 49.3828L208.359 30.9258C204.434 13.2891 188.73 0.75 170.684 0.75C157.793 0.75 145.723 7.19531 138.516 17.9766ZM93.75 94.5C98.7228 94.5 103.492 96.4754 107.008 99.9918C110.525 103.508 112.5 108.277 112.5 113.25C112.5 118.223 110.525 122.992 107.008 126.508C103.492 130.025 98.7228 132 93.75 132C88.7772 132 84.0081 130.025 80.4917 126.508C76.9754 122.992 75 118.223 75 113.25C75 108.277 76.9754 103.508 80.4917 99.9918C84.0081 96.4754 88.7772 94.5 93.75 94.5ZM168.75 103.875C168.75 101.389 169.738 99.004 171.496 97.2459C173.254 95.4877 175.639 94.5 178.125 94.5C180.611 94.5 182.996 95.4877 184.754 97.2459C186.512 99.004 187.5 101.389 187.5 103.875C187.5 106.361 186.512 108.746 184.754 110.504C182.996 112.262 180.611 113.25 178.125 113.25C175.639 113.25 173.254 112.262 171.496 110.504C169.738 108.746 168.75 106.361 168.75 103.875ZM168.75 150.75C173.723 150.75 178.492 152.725 182.008 156.242C185.525 159.758 187.5 164.527 187.5 169.5C187.5 174.473 185.525 179.242 182.008 182.758C178.492 186.275 173.723 188.25 168.75 188.25C163.777 188.25 159.008 186.275 155.492 182.758C151.975 179.242 150 174.473 150 169.5C150 164.527 151.975 159.758 155.492 156.242C159.008 152.725 163.777 150.75 168.75 150.75Z
`,
],
};

export const dvDisease: IconDefinition = {
prefix: 'fac' as IconPrefix,
iconName: 'disease' as IconName,
icon: [
300,
300,
[],
null,
`
M62.7273 12.4594C65.9091 22.0049 60.7386 32.289 51.25 35.4708L36.3636 40.414V109.107C36.3636 139.221 60.7955 163.653 90.9091 163.653C121.023 163.653 145.455 139.221 145.455 109.107V40.414L130.625 35.4708C121.08 32.289 115.966 22.0049 119.148 12.4594C122.33 2.91399 132.614 -2.19964 142.159 0.982176L156.989 5.92536C171.818 10.8685 181.818 24.7322 181.818 40.414V109.107C181.818 152.971 150.795 189.562 109.489 198.141C113.068 229.903 140 254.562 172.727 254.562C207.898 254.562 236.364 226.096 236.364 190.925V150.755C220.284 143.766 209.091 127.744 209.091 109.107C209.091 83.9935 229.432 63.6526 254.545 63.6526C279.659 63.6526 300 83.9935 300 109.107C300 127.744 288.807 143.766 272.727 150.755V190.925C272.727 246.153 227.955 290.925 172.727 290.925C119.943 290.925 76.7614 250.073 73.0114 198.255C31.3636 189.903 0 153.198 0 109.107V40.414C0 24.789 10 10.8685 24.8864 5.92536L39.7159 0.982176C49.2614 -2.19964 59.5455 2.97081 62.7273 12.4594ZM254.545 127.289C259.368 127.289 263.992 125.373 267.402 121.964C270.812 118.554 272.727 113.929 272.727 109.107C272.727 104.285 270.812 99.6604 267.402 96.2507C263.992 92.8409 259.368 90.9254 254.545 90.9254C249.723 90.9254 245.099 92.8409 241.689 96.2507C238.279 99.6604 236.364 104.285 236.364 109.107C236.364 113.929 238.279 118.554 241.689 121.964C245.099 125.373 249.723 127.289 254.545 127.289Z
`,
],
};
Loading

0 comments on commit 7aa18f8

Please sign in to comment.