1
0
Fork 0

sparkles: Tweaks to path examples

This commit is contained in:
Joost De Cock 2019-01-28 15:39:33 +01:00
parent 0a971c0da8
commit c3736c9f3c
18 changed files with 61 additions and 190 deletions

View file

@ -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;