ladybird/Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.idl
MacDue 5739ea9ba1 LibWeb: Stub SVGGraphicsElement methods/attributes
This stubs the `SVGGraphicsElement.getBBox()` method and the
`.transform` attribute.
2024-04-01 21:10:35 +02:00

19 lines
553 B
Text

#import <SVG/SVGElement.idl>
#import <Geometry/DOMRectReadOnly.idl>
dictionary SVGBoundingBoxOptions {
boolean fill = true;
boolean stroke = false;
boolean markers = false;
boolean clipped = false;
};
// https://svgwg.org/svg2-draft/types.html#InterfaceSVGGraphicsElement
[Exposed=Window]
interface SVGGraphicsElement : SVGElement {
[SameObject] readonly attribute SVGAnimatedTransformList transform;
DOMRect getBBox(optional SVGBoundingBoxOptions options = {});
// FIXME: DOMMatrix? getCTM();
// FIXME: DOMMatrix? getScreenCTM();
};