-
Notifications
You must be signed in to change notification settings - Fork 16
DM-7147: fix region bugs as listed in DM-7147. #141
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
Conversation
DM-7147: fix region bugs as listed in DM-7147.
'global color=green dashlist=8 3 width=1 font="helvetica 10 normal normal" select=1 highlite=1 dash=0 fixed=0 edit=1 move=1 delete=1 include=1 rotate=0 source=1', | ||
'J2000;point 202.41 47.262 # color=pink text="pt circle 1" point=circle', | ||
'box (100p, 70p, 20p, 20p, 0) #color=red text={IMAGE coordinate - 1}', | ||
'box (100i, 70i, 30i, 30i, 0) #color=orange text={PHYSICAL coordinate -2}', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMAGE and PHYSICAL in the text should be switched for these two items: p is used for physical pixels, i - for image pixels
1,2,5 are working as expected. 4 mostly works, but when I plot the same regions on two images – firefly/html/demo/ffapi-2images.html – any region selection on the second image adds an error to the console: 3 does not work. To test, add the following dispatch after the second showImage call in in firefly/html/demo/ffapi-2images.html: firefly.action.dispatchCreateRegionLayer('region3', 'Region Layer 3', null, ['image; box 200 200 72 72 0 # color=red'], ['image1', 'image2']); The error is 'Cannot read property 'getImageCoords' of null in RegionFactory:618' |
…parsing to be independent of plot.
The fixings are regarding the solution for the issue 3 &5:
|
test for issue 5 on various types of regions:
|
please rebuild firefly by using 'gradle'. |
Everything works as expected. Review complete. |
fix the following region bugs,
3 . create region layer after the image with plotId finishes loading - changing the region description parsing which needs plotId info to be done after after the region layer is created (fixed in DM-7088)
test:
start firefly demo file,
localhost:8080/firefly/demo/ffapi-highlevel-test.html