This repository has been archived by the owner on Dec 11, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't apply clipping for the root element.
The idea is that the root element coincides with the canvas, so anything outside the bounds of the root element would be outside the canvas anyway. This isn't quite true in the fancy of fancy CSS transforms, but it's true in normal cases. Mainly, it works around a bug in html2canvas where parent clipping regions are applied incorrectly when rendering child elements. In TerriaJS, this manifests as point markers (e.g. in `#test`'s TerriaJS Test Data -> GeoJSON -> Test overriding styled and unstyled features) not showing up in the generated image. More details of the html2canvas issue can be found here: niklasvh#1084
- Loading branch information