mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
LibWeb: Expose SVGLineElement attributes to JS
This commit is contained in:
parent
b5ef900ccd
commit
b51ea3a67c
3 changed files with 51 additions and 4 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/SVG/SVGAnimatedLength.h>
|
||||
#include <LibWeb/SVG/SVGGeometryElement.h>
|
||||
|
||||
namespace Web::SVG {
|
||||
|
@ -21,6 +22,11 @@ public:
|
|||
|
||||
virtual Gfx::Path& get_path() override;
|
||||
|
||||
NonnullRefPtr<SVGAnimatedLength> x1() const;
|
||||
NonnullRefPtr<SVGAnimatedLength> y1() const;
|
||||
NonnullRefPtr<SVGAnimatedLength> x2() const;
|
||||
NonnullRefPtr<SVGAnimatedLength> y2() const;
|
||||
|
||||
private:
|
||||
Optional<Gfx::Path> m_path;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue