-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
[Bugfix] Consider the opacity of groups for printing #5485
base: master
Are you sure you want to change the base?
Conversation
c9040a0
to
7abcaf5
Compare
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.
@@ -552,6 +552,19 @@ export class LayerItemState extends EventDispatcher { | |||
} | |||
return this._visibility; | |||
} | |||
|
|||
/** | |||
* Calculate total opacity by including also all parent gropus opacity values |
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.
* Calculate total opacity by including also all parent gropus opacity values | |
* Calculate total opacity by including also all parent groups opacity values |
test.describe('Print opacities', () => { | ||
test.beforeEach(async ({ page }) => { | ||
const url = '/index.php/view/map/?repository=testsrepository&project=group_as_layer_opacity'; | ||
await gotoMap(url, page); |
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.
This gotoMap
is deprecated, as "new" tests must use POM
https://playwright.dev/docs/pom. Look in "playwright/pages"
You can add some locators about the "print" box, such as the scale, the buttons...
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.
Please also add the tag @readonly
to your new test.
I thinks that's it. |
Now the
total opacity
is considered when printing, instead of the individual layer opacity.By
total opacity
I mean the product of opacity of the individual layer with the opacity of the all parent groups (hierarchically),groupAsLayer
layers included.Ticket : #4984
Backport 3.8, 3.9
Funded by Faunalia