1
0
Fork 0

construction: Adding source files to NPM package

This commit is contained in:
Joost De Cock 2019-01-27 15:04:45 +01:00
parent 27696b434d
commit 35f40400e9
2 changed files with 2 additions and 4 deletions

View file

@ -1,2 +1 @@
src
.editorconfig .editorconfig

View file

@ -2,11 +2,10 @@ import { box } from "./shared";
export default part => { export default part => {
let { Point, points, Snippet, snippets } = part.shorthand(); let { Point, points, Snippet, snippets } = part.shorthand();
box(part); // Needed for demo as this part has no paths
box(part);
points.anchor = new Point(50, 25) points.anchor = new Point(50, 25)
.attr("data-text", "Hello world!\nThis is\na line break.") .attr("data-text", "msg")
.attr("data-text-class", "text-xl center") .attr("data-text-class", "text-xl center")
.attr("data-text-lineheight", 10); .attr("data-text-lineheight", 10);