版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SVGGraphicsElement.js 1.1 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. "use strict";
  2. var __importDefault = (this && this.__importDefault) || function (mod) {
  3. return (mod && mod.__esModule) ? mod : { "default": mod };
  4. };
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. const SVGElement_1 = __importDefault(require("./SVGElement"));
  7. const DOMRect_1 = __importDefault(require("../element/DOMRect"));
  8. const DOMMatrix_1 = __importDefault(require("./DOMMatrix"));
  9. /**
  10. * SVG Graphics Element.
  11. *
  12. * @see https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement
  13. */
  14. class SVGGraphicsElement extends SVGElement_1.default {
  15. constructor() {
  16. super(...arguments);
  17. this.transform = {};
  18. }
  19. /**
  20. * Returns DOM rect.
  21. *
  22. * @returns DOM rect.
  23. */
  24. getBBox() {
  25. return new DOMRect_1.default();
  26. }
  27. /**
  28. * Returns CTM.
  29. *
  30. * @returns CTM.
  31. */
  32. getCTM() {
  33. return new DOMMatrix_1.default();
  34. }
  35. /**
  36. * Returns screen CTM.
  37. *
  38. * @returns Screen CTM.
  39. */
  40. getScreenCTM() {
  41. return new DOMMatrix_1.default();
  42. }
  43. }
  44. exports.default = SVGGraphicsElement;
  45. //# sourceMappingURL=SVGGraphicsElement.js.map