svgdom
Version:
Straightforward DOM implementation for SVG, HTML and XML
20 lines (15 loc) • 400 B
JavaScript
import { SVGGraphicsElement } from './SVGGraphicsElement.js'
import { Box } from '../../other/Box.js'
import { SVGMatrix } from './SVGMatrix.js'
import { SVGPoint } from './SVGPoint.js'
export class SVGSVGElement extends SVGGraphicsElement {
createSVGMatrix () {
return new SVGMatrix()
}
createSVGPoint () {
return new SVGPoint()
}
createSVGRect () {
return new Box()
}
}