You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One use case for drawing a circle is to set cx and cy both to 50% and then it will be centered without using a viewbox, but that results in:
[error] |None of the overloaded alternatives of method := in object cy with types
[error] | (v: Option[Double]): slinky.core.OptionalAttrPair[slinky.web.svg._cy_attr.type]
[error] | (v: Double): slinky.core.AttrPair[slinky.web.svg._cy_attr.type]
[error] |match arguments (("50%" : String))
[error] two errors found
Ah, that's definitely a bug. Would you mind putting together a PR to update the type of cx and cy (in svg.json) to be js.Any? That way users can pass in strings in addition to numbers.
One use case for drawing a circle is to set
cx
andcy
both to50%
and then it will be centered without using a viewbox, but that results in:Here's that use case, work around is to use viewbox:
https://stackoverflow.com/a/19561100/1080804
The text was updated successfully, but these errors were encountered: