stathissideris / dali

dali is a Clojure library for representing, exporting and manipulating the SVG graphics format.
296 stars 16 forks source link

Layout breaks with certain documents #5

Closed stathissideris closed 8 years ago

stathissideris commented 8 years ago

Attempting to render the document below results in this exception: DOM element for dali node is nil

[:dali/page
 [:dali/stack
  {:direction :down, :anchor :center, :gap 25, :position [100 100]}
  [:dali/stack
   {:direction :right, :anchor :left, :gap 25}
   [:dali/align
    {:axis :center}
    [:rect {:id :a, :class [:box-text :tree-node]} [20 20] [50 50] 10]
    [:dali/stack
     {:direction :down, :gap 6}
     [:text {:font-family "Verdana", :font-size 14} "root"]]]]
  [:dali/stack
   {:direction :right, :anchor :left, :gap 25}
   [:dali/align
    {:axis :center}
    [:rect {:id :b, :class [:box-text :tree-node]} [20 20] [50 50] 10]
    [:dali/stack
     {:direction :down, :gap 6}
     [:text {:font-family "Verdana", :font-size 14} "l11"]]]]]
 [:dali/connect {:from :a, :to :b}]]
stathissideris commented 8 years ago

Fixed in 0.7.2