mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Prebuilt module for commit 155d5b879c
This commit is contained in:
parent
171796444a
commit
6ba2a18d35
5 changed files with 19 additions and 16 deletions
9
dist/docs/assets/js/paper.js
vendored
9
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Wed Mar 8 10:48:03 2017 +0100
|
||||
* Date: Wed Mar 8 13:41:23 2017 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -9315,14 +9315,15 @@ statics: {
|
|||
addPoint, isArea) {
|
||||
var point = segment._point.transform(matrix),
|
||||
loc = segment.getLocation(),
|
||||
normal = loc.getNormal().multiply(radius).transform(strokeMatrix);
|
||||
normal = loc.getNormal()
|
||||
.multiply(loc.getTime() === 0 ? radius : -radius)
|
||||
.transform(strokeMatrix);
|
||||
if (cap === 'square') {
|
||||
if (isArea) {
|
||||
addPoint(point.subtract(normal));
|
||||
addPoint(point.add(normal));
|
||||
}
|
||||
point = point.add(normal.rotate(
|
||||
loc.getTime() === 0 ? -90 : 90));
|
||||
point = point.add(normal.rotate(-90));
|
||||
}
|
||||
addPoint(point.add(normal));
|
||||
addPoint(point.subtract(normal));
|
||||
|
|
9
dist/paper-core.js
vendored
9
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Wed Mar 8 10:48:03 2017 +0100
|
||||
* Date: Wed Mar 8 13:41:23 2017 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -9315,14 +9315,15 @@ statics: {
|
|||
addPoint, isArea) {
|
||||
var point = segment._point.transform(matrix),
|
||||
loc = segment.getLocation(),
|
||||
normal = loc.getNormal().multiply(radius).transform(strokeMatrix);
|
||||
normal = loc.getNormal()
|
||||
.multiply(loc.getTime() === 0 ? radius : -radius)
|
||||
.transform(strokeMatrix);
|
||||
if (cap === 'square') {
|
||||
if (isArea) {
|
||||
addPoint(point.subtract(normal));
|
||||
addPoint(point.add(normal));
|
||||
}
|
||||
point = point.add(normal.rotate(
|
||||
loc.getTime() === 0 ? -90 : 90));
|
||||
point = point.add(normal.rotate(-90));
|
||||
}
|
||||
addPoint(point.add(normal));
|
||||
addPoint(point.subtract(normal));
|
||||
|
|
4
dist/paper-core.min.js
vendored
4
dist/paper-core.min.js
vendored
File diff suppressed because one or more lines are too long
9
dist/paper-full.js
vendored
9
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Wed Mar 8 10:48:03 2017 +0100
|
||||
* Date: Wed Mar 8 13:41:23 2017 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -9315,14 +9315,15 @@ statics: {
|
|||
addPoint, isArea) {
|
||||
var point = segment._point.transform(matrix),
|
||||
loc = segment.getLocation(),
|
||||
normal = loc.getNormal().multiply(radius).transform(strokeMatrix);
|
||||
normal = loc.getNormal()
|
||||
.multiply(loc.getTime() === 0 ? radius : -radius)
|
||||
.transform(strokeMatrix);
|
||||
if (cap === 'square') {
|
||||
if (isArea) {
|
||||
addPoint(point.subtract(normal));
|
||||
addPoint(point.add(normal));
|
||||
}
|
||||
point = point.add(normal.rotate(
|
||||
loc.getTime() === 0 ? -90 : 90));
|
||||
point = point.add(normal.rotate(-90));
|
||||
}
|
||||
addPoint(point.add(normal));
|
||||
addPoint(point.subtract(normal));
|
||||
|
|
4
dist/paper-full.min.js
vendored
4
dist/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue