Now I want to refactor the t value to create circles with different radius fiddle of it.
Seems like its an impossible job!
Without any return type annotation on the draw method, I get:
ScalaFiddle.scala:27: error: type mismatch;
found : collection.this.Seq[scalatags.this.JsDom.TypedTag[raw.this.SVGElement with raw.this.SVGTransformable with raw.this.SVGStylable with raw.this.SVGTests with raw.this.SVGExternalResourcesRequired with raw.this.SVGLangSpace{}]]
required: .this.scalatags.JsDom.all.Modifier
(which expands to) generic.this.Modifier[raw.this.Element]
Fiddle.print(draw(25))
^
This fiddle works.
Now I want to refactor the
t
value to create circles with different radius fiddle of it.Seems like its an impossible job!
Without any return type annotation on the draw method, I get:
Since the imports are
seems like there is no way of returning a
.this.scalatags.JsDom.all.Modifier
.scalatags.JsDom.all
does not include SVG tags.