Merge pull request #1014 from adroitwhiz/remove-old-todos

Remove compound path TODOs from blob.js
This commit is contained in:
DD Liu 2020-04-24 17:44:06 -04:00 committed by GitHub
commit a730ac55f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -272,7 +272,6 @@ class Blobbiness {
} }
for (let i = items.length - 1; i >= 0; i--) { for (let i = items.length - 1; i >= 0; i--) {
// TODO handle compound paths
if (items[i] instanceof paper.Path && (!items[i].fillColor || items[i].fillColor._alpha === 0)) { if (items[i] instanceof paper.Path && (!items[i].fillColor || items[i].fillColor._alpha === 0)) {
// Gather path segments // Gather path segments
const subpaths = []; const subpaths = [];
@ -305,7 +304,6 @@ class Blobbiness {
// Gather path segments // Gather path segments
const subpaths = []; const subpaths = [];
// TODO: Handle compound path
if (items[i] instanceof paper.Path && !items[i].closed) { if (items[i] instanceof paper.Path && !items[i].closed) {
const firstSeg = items[i].clone(); const firstSeg = items[i].clone();
const intersections = firstSeg.getIntersections(lastPath); const intersections = firstSeg.getIntersections(lastPath);