JSO: TextMetrics addition

This commit is contained in:
Ivan Hetman 2023-06-06 11:04:01 +03:00 committed by GitHub
parent ac8cb377c3
commit db69f8ec58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,5 +20,23 @@ import org.teavm.jso.JSProperty;
public interface TextMetrics extends JSObject {
@JSProperty
int getWidth();
double getWidth();
@JSProperty
double getActualBoundingBoxAscent();
@JSProperty
double getActualBoundingBoxDescent();
@JSProperty
double getActualBoundingBoxLeft();
@JSProperty
double getActualBoundingBoxRight();
@JSProperty
double getFontBoundingBoxAscent();
@JSProperty
double getFontBoundingBoxDescent();
}