mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
Examples: replace use of deprecated functions.
This commit is contained in:
parent
874cf5713f
commit
c167920480
5 changed files with 6 additions and 6 deletions
|
@ -27,7 +27,7 @@
|
|||
}
|
||||
path.smooth();
|
||||
var placedSymbol = new PlacedSymbol(path);
|
||||
layer.appendBottom(placedSymbol);
|
||||
layer.insertChild(0, placedSymbol);
|
||||
}
|
||||
layer.position = view.center;
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
for (var i = 0; i < lineCount; i++) {
|
||||
var linePath = new Path.Line([0, 0], [0, 0]);
|
||||
linePath.strokeColor = 'red';
|
||||
lineGroup.appendTop(linePath);
|
||||
lineGroup.addChild(linePath);
|
||||
}
|
||||
|
||||
var path1 = new Path();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue