mirror of
https://github.com/penpot/penpot.git
synced 2026-09-14 07:59:36 +00:00
🐛 Syntax fixes
This commit is contained in:
parent
0512a8dc5f
commit
cc5d0b8fbf
@ -14,7 +14,7 @@ To activate it, open the REPL (`shadow-cljs cljs-repl main`) and type
|
|||||||
```clojure
|
```clojure
|
||||||
(ns uxbox.util.debug)
|
(ns uxbox.util.debug)
|
||||||
(debug-all!) ; to enable all visual aids
|
(debug-all!) ; to enable all visual aids
|
||||||
(debug! <option>) ; current options are :bounding-boxes :group :events :rotation-handler
|
(debug! <option>) ; current options are :bounding-boxes :group :events :rotation-handler
|
||||||
```
|
```
|
||||||
|
|
||||||
Then you need to refresh the screen, for example by selecting some shape
|
Then you need to refresh the screen, for example by selecting some shape
|
||||||
@ -23,15 +23,15 @@ with the mouse.
|
|||||||
You can deactivate debug mode with
|
You can deactivate debug mode with
|
||||||
```clojure
|
```clojure
|
||||||
(debug-none!) ; to disable all visual aids
|
(debug-none!) ; to disable all visual aids
|
||||||
(-debug! <option>) ; to disable only one
|
(-debug! <option>) ; to disable only one
|
||||||
```
|
```
|
||||||
|
|
||||||
There are also some useful functions:
|
There are also some useful functions:
|
||||||
```clojure
|
```clojure
|
||||||
(dump-state) ; to print in console all the global state
|
(dump-state) ; to print in console all the global state
|
||||||
(dump-objects) ; to print in console all objects in workspace
|
(dump-objects) ; to print in console all objects in workspace
|
||||||
(logjs <msg> <var>) ; to print the value of a variable
|
(logjs <msg> <var>) ; to print the value of a variable
|
||||||
(tap <fn>) ; to include a function with side effect (e.g. logjs) in a transducer.
|
(tap <fn>) ; to include a function with side effect (e.g. logjs) in a transducer.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user