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

Add cropping functionality #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

eeegnu
Copy link

@eeegnu eeegnu commented Feb 18, 2020

Selected region is copied, pasted into the upper left corner, and then
resized to the size of the selection. Added to the R key.

Selected region is copied, pasted into the upper left corner, and then
resized to the size of the selection. Added to the R key.
setCellSymbol(cell, symbol);
}
}
$('#output_grid_size').val((xs[xs.length - 1] - minx + 1) + 'x' + (ys[ys.length - 1] - miny + 1));
Copy link
Owner

Choose a reason for hiding this comment

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

Rather than manipulating the HTML directly, you should fill in CURRENT_OUTPUT_GRID then sync via syncFromDataGridToEditionGrid().

@@ -356,5 +356,48 @@ $(document).ready(function () {
errorMsg('Can only paste at a specific location; only select *one* cell as paste destination.');
}
}
// Crop code
if (event.which == 82) {
// Press R
Copy link
Owner

Choose a reason for hiding this comment

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

Ok, but this means the feature is not discoverable by a user other than you... the R key should be advertised (in the same place as the C and V commands)

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