sparkles: Tweaks to path examples
This commit is contained in:
parent
0a971c0da8
commit
c3736c9f3c
18 changed files with 61 additions and 190 deletions
|
@ -1,13 +1,5 @@
|
|||
export default part => {
|
||||
let {
|
||||
Point,
|
||||
points,
|
||||
Path,
|
||||
paths,
|
||||
Snippet,
|
||||
snippets,
|
||||
macro
|
||||
} = part.shorthand();
|
||||
let { Point, points, Path, paths } = part.shorthand();
|
||||
|
||||
points.B = new Point(10, 50);
|
||||
points.BCp2 = new Point(40, 10);
|
||||
|
@ -18,7 +10,7 @@ export default part => {
|
|||
.move(points.B)
|
||||
.curve(points.BCp2, points.CCp1, points.C)
|
||||
.attr("class", "stroke-xl canvas")
|
||||
.attr("data-text", "I am text placed on a path")
|
||||
.attr("data-text", "msg")
|
||||
.attr("data-text-class", "center fill-note");
|
||||
|
||||
return part;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue