2022-02-15 22:40:51 +03:30
|
|
|
#import <SVG/SVGGraphicsElement.idl>
|
2024-01-24 22:54:16 +01:00
|
|
|
#import <SVG/SVGFitToViewBox.idl>
|
2024-04-01 00:51:24 +01:00
|
|
|
#import <Geometry/DOMRectReadOnly.idl>
|
2022-02-15 22:40:51 +03:30
|
|
|
|
2022-10-07 16:45:09 -06:00
|
|
|
// https://svgwg.org/svg2-draft/struct.html#InterfaceSVGSVGElement
|
|
|
|
|
[Exposed=Window]
|
2020-10-02 20:57:28 +01:00
|
|
|
interface SVGSVGElement : SVGGraphicsElement {
|
2024-09-10 16:21:16 +09: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 = {});
|
|
|
|
|
|
2025-01-21 01:06:38 +01:00
|
|
|
Element? getElementById(DOMString elementId);
|
2024-09-10 16:21:16 +09:00
|
|
|
|
|
|
|
|
// 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 22:54:16 +01:00
|
|
|
|
|
|
|
|
SVGSVGElement includes SVGFitToViewBox;
|