Skip to content

Commit b1222bf

Browse files
georgeorfanidisjrd
authored andcommitted
Fix the result type of a few methods in SVGTextContentElement to Double. (scala-js#341)
1 parent c479cf2 commit b1222bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/scala/org/scalajs/dom/raw/Svg.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,15 +1895,15 @@ abstract class SVGTextContentElement
18951895

18961896
def getExtentOfChar(charnum: Int): SVGRect = js.native
18971897

1898-
def getComputedTextLength(): Int = js.native
1898+
def getComputedTextLength(): Double = js.native
18991899

1900-
def getSubStringLength(charnum: Int, nchars: Int): Int = js.native
1900+
def getSubStringLength(charnum: Int, nchars: Int): Double = js.native
19011901

19021902
def selectSubString(charnum: Int, nchars: Int): Unit = js.native
19031903

19041904
def getNumberOfChars(): Int = js.native
19051905

1906-
def getRotationOfChar(charnum: Int): Int = js.native
1906+
def getRotationOfChar(charnum: Int): Double = js.native
19071907

19081908
def getEndPositionOfChar(charnum: Int): SVGPoint = js.native
19091909
}

0 commit comments

Comments
 (0)