Skip to content

Commit

Permalink
Merge pull request #8 from andymchugh/scale
Browse files Browse the repository at this point in the history
fix x scaling at less than 100%
  • Loading branch information
andymchugh authored Apr 7, 2024
2 parents f2c0f1a + 2e35d71 commit 08fc0b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FlowPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export const FlowPanel: React.FC<Props> = ({ options, data, width, height, timeZ
const svgViewHeight = height - timeSliderHeight;
const svgPaddingLeft = Math.max(0, (width - svgWidth) * 0.5);
const svgPaddingTop = Math.max(0, (svgViewHeight - svgHeight) * 0.5);
const svgScaleX = (svgViewWidth / svgWidth);
const svgScaleX = Math.max(1.0, (svgViewWidth / svgWidth));
const svgScaleY = (svgViewHeight / svgHeight);
const svgScale = svgAttribs.scaleDrive ? Math.min(svgScaleX, svgScaleY) * 0.9 * 100 : 100;

Expand Down

0 comments on commit 08fc0b4

Please sign in to comment.