Closed jisantuc closed 4 years ago
Source for the context: https://www.scala-js.org/doc/semantics.html
Java reflection and, a fortiori, Scala reflection, are not supported. There is limited support for java.lang.Class, e.g., obj.getClass.getName will work for any Scala.js object (not for objects that come from JavaScript interop).
I will leave also the GeoTrellis branch with the ScalaJS cross compilation try (for the recrods): https://github.com/pomadchin/geotrellis/tree/feature/scalajs
I worked with @pomadchin to try to cross-publish gt-vector in Scala JS and we ran into a few problems:
ServiceLoader
pattern might be hardThat's before we got to the problems that we thought in advance might be hard, namely:
Since stac4s in particular is mainly about the types and I won't need fancy geometry operations, and since
mwundo
is only published up through ScalaJS 0.6, it will instead make sense just to create geometry types in thejs/
projects in stac4s that are sufficient for data transport and not worry about it, at least as a first cut.