SVGViewport.h 414 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2024, MacDue <macdue@dueutil.tech>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/SVG/AttributeParser.h>
  8. #include <LibWeb/SVG/ViewBox.h>
  9. namespace Web::SVG {
  10. class SVGViewport {
  11. public:
  12. virtual Optional<ViewBox> view_box() const = 0;
  13. virtual Optional<PreserveAspectRatio> preserve_aspect_ratio() const = 0;
  14. virtual ~SVGViewport() = default;
  15. };
  16. }