DearPyGui icon indicating copy to clipboard operation
DearPyGui copied to clipboard

get/put node_editor.Panning

Open qianyimao opened this issue 4 months ago • 4 comments

is there a way to get/put node_editor.Panning which can been accessed by ImNodes:: EditorContextGetPanning and ImNodes:: EditorContextResetPanning

qianyimao avatar Sep 04 '25 00:09 qianyimao

Unfortunately no. You can try to use a reference node like here: https://github.com/hoffstadt/DearPyGui/issues/2164#issuecomment-2605334407

v-ein avatar Sep 04 '25 09:09 v-ein

i want to update node_editor.Panning by code like the minimap. the reference node cann’t work. any plan to add the feature? please

qianyimao avatar Sep 04 '25 10:09 qianyimao

Unfortunately DPG is in maintenance mode, meaning bugs are fixed but new features are unlikely to be added. Well, we do add features from time to time, so I don't say an absolute "no" to this suggestion, but I can't promise it to be done any time soon. I agree that ability to get and set the pan offset can be quite useful, so let's keep this ticket open as a reminder to look at it one day.

v-ein avatar Sep 04 '25 15:09 v-ein

it’s good.thanks

qianyimao avatar Sep 05 '25 00:09 qianyimao