Closed ampersanda closed 2 years ago
I am trying to translate Blotter JS sample from the site to Clojurescript
var text = new Blotter.Text("observation", { family : "'EB Garamond', serif", size : 27, fill : "#171717", paddingLeft : 40, paddingRight : 40 });
from the Translator I get the result (I add js/ by myself)
js/
(def text (new (.Text js/Blotter) "observation" #js {:family "'EB Garamond', serif", :size 27, :fill "#171717", :paddingLeft 40, :paddingRight 40}))
which should be
(def text (new js/Blotter.Text "observation" #js {:family "'EB Garamond', serif", :size 27, :fill "#171717", :paddingLeft 40, :paddingRight 40}))
the translated one is wrong because the Blotter is called the constructor new Blotter() (I think, correct me if I'm wrong).
new Blotter()
I am trying to translate Blotter JS sample from the site to Clojurescript
from the Translator I get the result (I add
js/
by myself)which should be
the translated one is wrong because the Blotter is called the constructor
new Blotter()
(I think, correct me if I'm wrong).