Skip to content

Commit

Permalink
pinkiie apply-box-style removed
Browse files Browse the repository at this point in the history
  • Loading branch information
awb99 committed Oct 12, 2024
1 parent e608f89 commit 1a43a47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"target/node_modules"] ; vega specs json
:deps
{org.clojure/clojure {:mvn/version "1.10.3"}
org.pinkgorilla/pinkie {:mvn/version "0.5.232"}} ; box
org.pinkgorilla/pinkie {:mvn/version "0.5.232"}} ; for js-render

:aliases
{; github ci
Expand Down
5 changes: 1 addition & 4 deletions src/ui/vega/impl/react.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
;["vega-loader-arrow" :as arrow]
;["flatbuffers" :as fb]
["./vega-loader-arrow.js" :as arrow]

[pinkie.ui.core :refer [apply-box-style]]
[ui.vega.opts :refer [vega-opts]]))

;(println "fb: " fb)
Expand Down Expand Up @@ -60,8 +58,7 @@
spec (:spec opts)
user-opts (select-keys spec [:width :height :overflow])
spec (if (map? spec) ; spec could be a map or astring (url)
(-> (apply-box-style spec) ; box inject
(assoc :usermeta {:embedOptions (merge vega-opts user-opts)}))
(assoc spec :usermeta {:embedOptions (merge vega-opts user-opts)})
spec)]
[:> Vega (merge opts
{; All signals defined in the spec can be listened to via signalListeners
Expand Down

0 comments on commit 1a43a47

Please sign in to comment.