diff --git a/docs/02-Frontend-Developer-Guide.md b/docs/02-Frontend-Developer-Guide.md index 006ba681a..446351e26 100644 --- a/docs/02-Frontend-Developer-Guide.md +++ b/docs/02-Frontend-Developer-Guide.md @@ -3,6 +3,16 @@ This guide intends to explain the essential details of the frontend application. +## Access to clojure from javascript console + +The uxbox namespace of the main application is exported, so that is accessible from +javascript console in Chrome developer tools. Object names and data types are converted +to javascript style. For example you can emit the event to reset zoom level by typing +this at the console (there is autocompletion for help): + +```javascript +uxbox.main.store.emit_BANG_(uxbox.main.data.workspace.reset_zoom) +``` ## Visual debug mode and utilities @@ -10,26 +20,22 @@ Debugging a problem in the viewport algorithms for grouping and rotating is difficult. We have set a visual debug mode that displays some annotations on screen, to help understanding what's happening. -To activate it, open the REPL (`shadow-cljs cljs-repl main`) and type -```clojure -(ns uxbox.util.debug) -(debug-all!) ; to enable all visual aids -(debug!