Remove `SceneTransforms.wgs84To*` functions in 1.121
The following functions were deprecated in https://github.com/CesiumGS/cesium/pull/12000, and should be entirely removed for the 1.121 release:
-
SceneTransforms.wgs84ToDrawingBufferCoordinateshas been deprecated. It will be removed in 1.121. UseSceneTransforms.worldToDrawingBufferCoordinatesinstead. -
SceneTransforms.wgs84ToWindowCoordinateshas been deprecated. It will be removed in 1.21. UseSceneTransforms.worldToWindowCoordinatesinstead.
Hi gabby, can i take on this issue for a first time from jtc?
@jvrjsanchez Go for it!
This update ensures that our codebase aligns with the latest changes and improves future maintainability.
- Updated method calls in the codebase from
wgs84ToDrawingBufferCoordinatestoworldToDrawingBufferCoordinates. - Updated method calls in the codebase from
wgs84ToWindowCoordinatestoworldToWindowCoordinates. - Ran tests using the original
gulpfile.jsto execute them. - Verified that all tests for
SceneTransformspass successfully in different viewing modes (3D, ColumbusView, 2D) and frustum configurations. - Ensured that test output is correctly reported and errors are handled gracefully.
I would like to ask, why not modify the original method instead of abandoning it and using the new method? It is difficult to achieve backward compatibility with cesium
@xiyuvi The name of the function, wgs84, was no longer accurate since it uses the current ellipsoid value. It defaults to, but is not restricted to, the WGS84 ellipsoid.
The deprecation warnings, along with notes in CHANGES.md, should be reviewed to track any breaking changes in the future. See this guide for details.
@ggetz Thank you for your hard work. I think it would be better to keep the original wgs84ToDrawingBufferCoordinates function and internally call the new worldToDrawingBufferCoordinates function. This can ensure that projects running old cesium versions can be fully compatible after upgrading to the new cesium. What I said may not be correct, for your reference only. Thank you again