Open jamievicary opened 5 years ago
Currently I set the global variable state to the redux store in
client/src/index.js
. Hence the current diagram can be accessed via
store.getState().diagram.diagram
.
On Wed, 5 Sep 2018 at 15:00, jamievicary notifications@github.com wrote:
Lukas, is there a global variable set to equal the current main diagram, or some alternative easy way to access the current diagram in the console?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jamievicary/homotopy.io/issues/23, or mute the thread https://github.com/notifications/unsubscribe-auth/AAV1JfMvWZ3Ny06XrmCoWBgBCzmnZX5Xks5uX8rfgaJpZM4Wa23I .
This is a bit long-winded. Is there some way to set for example the global function d() to return this. I can't see how to set global variables due to the way everything is bundled up by the transpiler.
Lukas, is there a global variable set to equal the current main diagram, or some alternative easy way to access the current diagram in the console?