mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-13 14:38:49 -04:00
Remove all create() constructors for basic types since new constructors are now faster.
Woop!
This commit is contained in:
parent
0f74c01f75
commit
cd7db56249
18 changed files with 74 additions and 110 deletions
src/path
|
@ -158,7 +158,7 @@ PathItem.inject(new function() {
|
|||
if (segment.getPrevious()._invalid)
|
||||
segment.setHandleIn(intersection
|
||||
? intersection._handleIn
|
||||
: Point.create(0, 0));
|
||||
: new Point(0, 0));
|
||||
do {
|
||||
segment._visited = true;
|
||||
if (segment._invalid && segment._intersection) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue