feat(zoom): Add offset to fitview-params
* Allow for offsetting fit view by x or y values Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -25,6 +25,7 @@ export default (store = useStore()): UseZoomPanHelper => {
|
||||
options.minZoom ?? store.minZoom,
|
||||
options.maxZoom ?? store.maxZoom,
|
||||
options.padding ?? DEFAULT_PADDING,
|
||||
options.offset,
|
||||
)
|
||||
const transform = zoomIdentity.translate(x, y).scale(zoom)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user