You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use of the transformTranslate/transformRotate methods seem to simply parrot back the .bbox property of their input feature.
I'm guessing that this generic behavior intended to preserve any/all properties that might have been on the input object.
Unfortunately, this can cause unexpected behavior when used in combination with other turf methods that depend upon or utilize the .bbox property.
Specifically, this became a problem for turf.bbox as of the 7.0.0 release since it will now also just return the .bbox property of an input unless the recompute option is set.
NOTE: Oddly enough, transformScale does not seem to suffer from this behavior
Turf version: 7.2.0
Use of the transformTranslate/transformRotate methods seem to simply parrot back the .bbox property of their input feature.
I'm guessing that this generic behavior intended to preserve any/all properties that might have been on the input object.
Unfortunately, this can cause unexpected behavior when used in combination with other turf methods that depend upon or utilize the .bbox property.
Specifically, this became a problem for turf.bbox as of the 7.0.0 release since it will now also just return the .bbox property of an input unless the
recompute
option is set.NOTE: Oddly enough, transformScale does not seem to suffer from this behavior
Trivial example:
Outputs:
The text was updated successfully, but these errors were encountered: