danielzhe commented on code in PR #2494:
URL: 
https://github.com/apache/incubator-kie-tools/pull/2494#discussion_r1697206618


##########
packages/dmn-editor/src/store/Store.ts:
##########
@@ -223,6 +228,11 @@ export const defaultStaticState = (): Omit<State, "dmn" | 
"dispatch" | "computed
     draggingWaypoints: [],
     movingDividerLines: [],
     isEditingStyle: false,
+    viewport: {
+      x: 100,
+      y: 100,
+      zoom: 1,
+    },

Review Comment:
   About the `onViewportChange`, the component (`RF.ReactFlow`) does not have 
this exposed. If I understand correctly, this is the only way to do it. 
https://reactflow.dev/api-reference/hooks/use-on-viewport-change
   
   About the DEFAULT_VIEWPORT, change applied! 😄 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to