construction: Ported to v0.29
This commit is contained in:
parent
dee09139bf
commit
3f65251532
108 changed files with 1962 additions and 1940 deletions
17
packages/examples/src/point_dy.js
Normal file
17
packages/examples/src/point_dy.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
export default part => {
|
||||
let { Point, points, Snippet, snippets, macro } = part.shorthand();
|
||||
|
||||
points.from = new Point(10, 10);
|
||||
points.to = new Point(90, 40);
|
||||
|
||||
macro("vd", {
|
||||
from: points.to,
|
||||
to: points.from,
|
||||
x: 50
|
||||
});
|
||||
|
||||
snippets.notch1 = new Snippet("x", points.from);
|
||||
snippets.notch2 = new Snippet("x", points.to);
|
||||
|
||||
return part;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue