Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EPMUII-8073-Zoom-in/out-improvements #174

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

oleksandr-iefymchuk
Copy link
Collaborator

No description provided.

@oleksandr-iefymchuk oleksandr-iefymchuk force-pushed the EPMUII-8073-Zoom-in/out-improvements branch from 9e0372a to 0de4a16 Compare October 25, 2023 11:29
@oleksandr-iefymchuk oleksandr-iefymchuk force-pushed the EPMUII-8073-Zoom-in/out-improvements branch 4 times, most recently from 452c2f7 to fa93143 Compare November 8, 2023 22:29
const mediator = (buttonId) => {
setActiveButton(buttonId);
props.dispatch({ type: StoreActionType.SET_2D_TOOLS_INDEX, indexTools2d: buttonId });

if (buttonId === Tools2dType.ZOOM_100) {
if (buttonId === Tools2dType.ZOOM_100 || (buttonId === Tools2dType.ZOOM_OUT && props.render2dZoom > 0.8)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's create meaningful variable for 0.8 value

// ctx.imageSmoothingEnabled = true;

// ctx.putImageData(this.imgData, 0, 0);
// ctx.drawImage(objCanvas, xPos, yPos, canvasWidth, canvasHeight, 0, 0, newImgWidth, newImgHeight);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove outdated code, or leave description why it was commented

@oleksandr-iefymchuk oleksandr-iefymchuk force-pushed the EPMUII-8073-Zoom-in/out-improvements branch from 5a49855 to 46a91cc Compare November 13, 2023 16:50
@oleksandr-iefymchuk oleksandr-iefymchuk merged commit 6d60f90 into develop Nov 13, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants