-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// G.swift | ||
// | ||
// | ||
// Created by Aaron Ge on 2022/4/26. | ||
// | ||
|
||
/// https://developer.mozilla.org/en-US/docs/Web/SVG/Element/G | ||
open class G: Tag{ | ||
|
||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// Text.swift | ||
// | ||
// | ||
// Created by Aaron Ge on 2022/4/8. | ||
// | ||
|
||
/// https://developer.mozilla.org/en-US/docs/Web/SVG/Element/Text | ||
open class Text: Tag{ | ||
|
||
|
||
} | ||
|
||
public extension Text{ | ||
/// The x coordinate of the starting point of the text baseline. | ||
func x(_ value: Double=0) -> Self { | ||
attribute("x", value.preciseString) | ||
} | ||
|
||
/// The y coordinate of the starting point of the text baseline. | ||
func y(_ value: Double=0) -> Self { | ||
attribute("y", value.preciseString) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters