construction: Ported to v0.29
This commit is contained in:
parent
dee09139bf
commit
3f65251532
108 changed files with 1962 additions and 1940 deletions
16
packages/examples/src/point_attr.js
Normal file
16
packages/examples/src/point_attr.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
import { box } from "./shared";
|
||||
|
||||
export default part => {
|
||||
let { Point, points, Snippet, snippets } = part.shorthand();
|
||||
|
||||
box(part);
|
||||
|
||||
points.anchor = new Point(50, 25)
|
||||
.attr("data-text", "Hello world!\nThis is\na line break.")
|
||||
.attr("data-text-class", "text-xl center")
|
||||
.attr("data-text-lineheight", 10);
|
||||
|
||||
snippets.notch = new Snippet("x", points.anchor);
|
||||
|
||||
return part;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue