Problem using :dali/connect
Closed this issue · 1 comments
setzer22 commented
Trying to render one of the examples provided results in the following error:
No method in multimethod 'layout-nodes' for dispatch value: :dali/connect
The code:
(io/render-svg
[:dali/page {:stroke :black :fill :none}
[:defs (prefab/sharp-arrow-marker :sharp)]
[:dali/connect {:from :a :to :b :dali/marker-end :sharp}]
[:dali/stack {:direction :right, :gap 50}
[:rect {:id :a} [50 50] [50 50]]
[:rect {:id :b} [50 150] [50 50]]]]
"/tmp/stack.svg")
This error usually occurs when I am missing a require, but I already tried requiring all the namespaces from the examples clj file, and nothing seems to work. Is there anything I need to do for this to work?
setzer22 commented
Nevermind, I was missing a (:require [dali.layout.connect])
in my ns
form. Sorry about that!