This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-24
Channels
- # announcements (13)
- # asami (9)
- # aws (3)
- # babashka (13)
- # babashka-sci-dev (7)
- # beginners (32)
- # calva (59)
- # cider (9)
- # clj-kondo (5)
- # cljsrn (14)
- # clojure (98)
- # clojure-brasil (5)
- # clojure-dev (1)
- # clojure-europe (30)
- # clojure-france (12)
- # clojure-nl (1)
- # clojure-norway (7)
- # clojure-uk (7)
- # clojurescript (20)
- # conjure (2)
- # datahike (7)
- # datalog (38)
- # datomic (29)
- # events (1)
- # fulcro (72)
- # graalvm (1)
- # gratitude (3)
- # helix (7)
- # honeysql (3)
- # improve-getting-started (2)
- # introduce-yourself (1)
- # leiningen (13)
- # lsp (17)
- # malli (11)
- # meander (8)
- # nextjournal (3)
- # off-topic (5)
- # pathom (2)
- # portal (43)
- # rdf (2)
- # re-frame (8)
- # reagent (7)
- # reitit (1)
- # shadow-cljs (27)
- # spacemacs (31)
- # sql (2)
- # tools-deps (3)
- # vim (1)
- # xtdb (12)
@thheller just came across your shadow-experiments repo wile looking for SharedWorker of all possible queries. Looks like an interesting project. Just wanted to make you aware of my own experimental library in case there is some useful overlap with your database efforts: https://github.com/NyanCAD/hipflask/
Hi ! Has anyone managed to generate Highcharts (Highmaps) maps with lat/lon pinned points? I managed to get some simple maps such as this one https://www.highcharts.com/demo/maps/geojson to display but the ones with lat/lon pinned points such as this one https://www.highcharts.com/demo/maps/mappoint-latlon fail with a n.forEach is not a function
which I have the feeling is due to the first of the series
not having a data
field.
I haven’t worked with highcharts, but n.forEach
sounds like it’s expecting n
to be a JS array, and it isn’t. Maybe you just need a clj->js
on your data somewhere?
Yes the "`n` needs to be an array" thing hit me too but the thing is: the JS example I'm trying to replicate (https://www.highcharts.com/demo/maps/mappoint-latlon) specifically doesn't have said data
as explained by the comment Use the gb-all map with no data as a basemap
.
Hmm, "no data" could mean nil
or it could mean #js []
, maybe?
I've figured it out: bumping highcharts to the latest 10.0.0 makes it. So to sum-up: I'm able to generate a map with lat/lon pinned point with Highmaps. 🙂 Thanks for your help @U06CM8C3V
Why is use-fixtures in CLJS different from CLJ? I can't use dynamic vars and binding using :before
and :after
in CLJS tests.
Hey. What's an example of using withStyles
in ClojureScript?
@silencioseu can you clarify what you are trying to do?
Is it possible to bring a plain js into the global scope of a cljs project? I'm trying to work with https://github.com/neutralinojs/neutralinojs and shadow-cljs.
If I'm understanding what you're asking correctly, yes. In JS, say window.whatever = ...
. In CLJS, say (aget js/window "whatever")
.
Why would you want the global scope?
Also, don't use aget
for accessing fields, use it only to access indices within arrays. In the case above, you should write it as (.-whatever js/window)
.
A precursory look at the documentation suggests that the expectation is that you include neutralino.js
as a part of your HTML - and that by itself will create the Neutralino
global object. And then you will be able to access it with just js/Neutralino
in CLJS - that's it, there are no extra steps involved.