Skip to content

Commit

Permalink
un-limit the zoom for top-down layout as far as Sprotty allows to
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasRentzCAU committed Feb 28, 2024
1 parent caeff1b commit 81ba1cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/klighd-core/src/di.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ export default function createContainer(widgetId: string): Container {
needsServerLayout: true,
baseDiv: widgetId,
hiddenDiv: `${widgetId}_hidden`,
// TODO: We should be able to completely deactivate Sprotty's zoom limits to not limit top down layout.
// This is a workaround to allow quite deep zoom to work for most cases already.
zoomLimits: {
min: 0.00000000000001,
max: 1000000000000000,
},
})
return container
}

0 comments on commit 81ba1cd

Please sign in to comment.