1
0
Fork 0

sparkles: Added snippet.attr and snippet.clone examples

This commit is contained in:
Joost De Cock 2019-02-04 18:32:45 +01:00
parent 0ded78b854
commit aee747037f
5 changed files with 35 additions and 1 deletions

View file

@ -0,0 +1,12 @@
import { box } from "./shared";
export default part => {
let { Point, points, Snippet, snippets } = part.shorthand();
points.anchor = new Point(50, 15);
snippets.demo = new Snippet("logo", points.anchor)
.attr("data-scale", 0.8)
.attr("data-rotate", 180);
return box(part);
};