mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-28 22:59:36 -04:00
Remove unnecessary Segment#getHandleIn/OutIfSet.
This commit is contained in:
parent
79c0ad8cc5
commit
84bce71b1c
2 changed files with 6 additions and 15 deletions
src/path
|
@ -1826,11 +1826,10 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
|||
}
|
||||
|
||||
function addJoin(segment, join) {
|
||||
var handleIn = segment.getHandleInIfSet(),
|
||||
handleOut = segment.getHandleOutIfSet();
|
||||
// When both handles are set in a segment, the join setting is
|
||||
// ignored and round is always used.
|
||||
if (join === 'round' || handleIn && handleOut) {
|
||||
if (join === 'round' || !segment._handleIn.isZero()
|
||||
&& !segment._handleOut.isZero()) {
|
||||
bounds = bounds.unite(joinBounds.setCenter(matrix
|
||||
? matrix.transform(segment._point) : segment._point));
|
||||
} else if (join == 'bevel') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue