From 81ba1cde82555aefadc7a1999468d87fc78dfa38 Mon Sep 17 00:00:00 2001 From: Niklas Rentz Date: Wed, 28 Feb 2024 15:29:38 +0100 Subject: [PATCH] un-limit the zoom for top-down layout as far as Sprotty allows to --- packages/klighd-core/src/di.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/klighd-core/src/di.config.ts b/packages/klighd-core/src/di.config.ts index 0639ec44..c5e190ef 100644 --- a/packages/klighd-core/src/di.config.ts +++ b/packages/klighd-core/src/di.config.ts @@ -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 }