Skip to content

DM-5793: Mask overlay support #144

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

Merged
merged 3 commits into from
Aug 12, 2016
Merged

DM-5793: Mask overlay support #144

merged 3 commits into from
Aug 12, 2016

Conversation

robyww
Copy link
Contributor

@robyww robyww commented Aug 11, 2016

Notes:

  • zoom works, rotate works.
  • files can't be rotate before reading in mask (no check for this yet)
  • drawing layer controls work
  • flip might work. I think it works on the client. Currently there is a bug fliping certain types of data on the server side.
  • crop does not work. I think the client is fine but there is a server bug as well
  • python support for mask: update add_mask and remove_mask for mask layer (this work was done by Cindy)
  • bugs fixes with loading image and mask in same python cell

robyww added 2 commits August 11, 2016 15:47
Notes:
 - zoom works, rotate works.
 - files can't be rotate before reading in mask (no check for this yet)
 - drawing layer controls work
 - flip might work. I think it works on  the client. Currently there is a bug fliping certain types of data on the server side.
 - crop does not work. I think the client is fine but there is a server bug as well
 - python support for mask: update add_mask and remove_mask for mask layer (this work was done by Cindy)
 - bugs fixes with loading image and mask in same python cell
@@ -322,7 +322,8 @@ function processPlotReplace(dispatcher, result, pv, makeSuccessAction, makeFailA
var overlayPlotViews = [];
resultAry.forEach((r, i) => {
if (i === 0) return;
var plot = WebPlot.makeWebPlotData(pv.plotId, r.data[WebPlotResult.PLOT_CREATE], true);
const {imageOverlayId}= pv.overlayPlotViews[i-1];
var plot = WebPlot.makeWebPlotData(imageOverlayId, r.data[WebPlotResult.PLOT_CREATE][0], {}, true);
overlayPlotViews[i - 1] = {plot};
});
Copy link
Contributor

Choose a reason for hiding this comment

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

just would like to confirm that that resultant length of overPlotViews is one less that of resultAry.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, the main image is 0 and the others are overlays

@cwang2016
Copy link
Contributor

Review completed. What a big effort work!
one note:

  • dispatchPlotMask has no 'fileKey' parameter passed.

@robyww robyww merged commit f12ca9f into dev Aug 12, 2016
@robyww robyww deleted the dm-5793-mask branch August 12, 2016 22:05
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