Skip to content

Commit

Permalink
feat: sync 2d chart spectrum colors (#1807)
Browse files Browse the repository at this point in the history
* feat: sync 2d chart spectrum colors

* refactor: update dependencies
  • Loading branch information
wadjih-bencheikh18 committed Oct 13, 2022
1 parent 92c0a8f commit 10c7b1a
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 66 deletions.
103 changes: 46 additions & 57 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions package.json
Expand Up @@ -84,7 +84,7 @@
"openchemlib-utils": "^2.0.0",
"re-resizable": "^6.9.9",
"react-d3-utils": "^0.5.1",
"react-dropzone": "^14.2.2",
"react-dropzone": "^14.2.3",
"react-error-boundary": "^3.1.4",
"react-icons": "^4.4.0",
"react-inspector": "^6.0.1",
Expand All @@ -104,28 +104,28 @@
"@babel/plugin-transform-modules-commonjs": "^7.18.6",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@playwright/test": "^1.26.1",
"@playwright/test": "^1.27.1",
"@simbathesailor/use-what-changed": "^2.0.0",
"@types/d3": "^7.4.0",
"@types/jest": "^29.1.1",
"@types/node": "^18.8.2",
"@types/jest": "^29.1.2",
"@types/node": "^18.8.5",
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6",
"@vitejs/plugin-react": "^2.1.0",
"@zakodium/eslint-config": "^6.0.0",
"cross-env": "^7.0.3",
"eslint": "^8.24.0",
"eslint": "^8.25.0",
"jest": "^29.1.2",
"modern-normalize": "^1.1.0",
"prettier": "^2.7.1",
"rc-menu": "^9.6.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.4.1",
"react-router-dom": "^6.4.2",
"rimraf": "^3.0.2",
"rollup-plugin-analyzer": "^4.0.0",
"serve": "^14.0.1",
"typescript": "~4.8.4",
"vite": "^3.1.4"
"vite": "^3.1.7"
}
}
7 changes: 6 additions & 1 deletion src/component/2d/Left1DChart.tsx
Expand Up @@ -81,7 +81,12 @@ function Left1DChart({
</clipPath>
</defs>
<g clipPath={`url(#${displayerKey}clip-left)`}>
<path className="line" stroke="black" fill="none" d={paths} />
<path
className="line"
stroke={spectrum.display.color}
fill="none"
d={paths}
/>
</g>
</svg>
);
Expand Down
2 changes: 1 addition & 1 deletion src/component/2d/Top1DChart.tsx
Expand Up @@ -73,7 +73,7 @@ function Top1DChart({
<g clipPath={`url(#${displayerKey}clip-top)`}>
<path
className="line"
stroke="red"
stroke={spectrum.display.color}
fill="none"
strokeWidth="1px"
d={paths}
Expand Down

0 comments on commit 10c7b1a

Please sign in to comment.