2022-02-15 19:10:51 +00:00
|
|
|
#import <SVG/SVGGraphicsElement.idl>
|
2024-01-24 21:54:16 +00:00
|
|
|
#import <SVG/SVGFitToViewBox.idl>
|
2024-03-31 23:51:24 +00:00
|
|
|
#import <Geometry/DOMRectReadOnly.idl>
|
2022-02-15 19:10:51 +00:00
|
|
|
|
2022-10-07 22:45:09 +00:00
|
|
|
// https://svgwg.org/svg2-draft/struct.html#InterfaceSVGSVGElement
|
|
|
|
[Exposed=Window]
|
2020-10-02 19:57:28 +00:00
|
|
|
interface SVGSVGElement : SVGGraphicsElement {
|
2024-09-10 07:21:16 +00:00
|
|
|
[SameObject] readonly attribute SVGAnimatedLength x;
|
|
|
|
[SameObject] readonly attribute SVGAnimatedLength y;
|
|
|
|
[SameObject] readonly attribute SVGAnimatedLength width;
|
|
|
|
[SameObject] readonly attribute SVGAnimatedLength height;
|
|
|
|
|
|
|
|
attribute float currentScale;
|
|
|
|
[SameObject] readonly attribute DOMPointReadOnly currentTranslate;
|
|
|
|
|
|
|
|
NodeList getIntersectionList(DOMRectReadOnly rect, SVGElement? referenceElement);
|
|
|
|
NodeList getEnclosureList(DOMRectReadOnly rect, SVGElement? referenceElement);
|
|
|
|
boolean checkIntersection(SVGElement element, DOMRectReadOnly rect);
|
|
|
|
boolean checkEnclosure(SVGElement element, DOMRectReadOnly rect);
|
|
|
|
|
|
|
|
undefined deselectAll();
|
|
|
|
|
|
|
|
// FIXME: SVGNumber createSVGNumber();
|
|
|
|
SVGLength createSVGLength();
|
|
|
|
[FIXME] SVGAngle createSVGAngle();
|
|
|
|
DOMPoint createSVGPoint();
|
|
|
|
DOMMatrix createSVGMatrix();
|
|
|
|
DOMRect createSVGRect();
|
|
|
|
SVGTransform createSVGTransform();
|
|
|
|
[FIXME] SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix = {});
|
|
|
|
|
|
|
|
Element getElementById(DOMString elementId);
|
|
|
|
|
|
|
|
// Deprecated methods that have no effect when called,
|
|
|
|
// but which are kept for compatibility reasons.
|
|
|
|
unsigned long suspendRedraw(unsigned long maxWaitMilliseconds);
|
|
|
|
undefined unsuspendRedraw(unsigned long suspendHandleID);
|
|
|
|
undefined unsuspendRedrawAll();
|
|
|
|
undefined forceRedraw();
|
2020-12-09 21:26:42 +00:00
|
|
|
};
|
2024-01-24 21:54:16 +00:00
|
|
|
|
|
|
|
SVGSVGElement includes SVGFitToViewBox;
|