diff options
author | eleanor-park <eleanor_park@brown.edu> | 2024-04-14 15:01:23 -0400 |
---|---|---|
committer | eleanor-park <eleanor_park@brown.edu> | 2024-04-14 15:01:23 -0400 |
commit | e722df73b65f7c995faf397629839d2a72641b9b (patch) | |
tree | 817de98ad9804edd156ed96ce151c9268f4af49c /src | |
parent | b65b601386e04cbace0ce42f38392c1c75039231 (diff) |
slight fix
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index 1fd52bd91..35bb147cf 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -857,14 +857,14 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection for (var i = 0; i < eraserInkData.length - 3; i += 4) { const eraserBezier: Bezier = InkField.Segment(eraserInkData, i); segment1.push(eraserBezier); // this renders the eraser bezier, all the commented out code below is for intersecting the stroke with the eraser - for (var j = 0; j < inkData.length; j += 4) { - const inkSegment: Bezier = InkField.Segment(inkData, i); + // for (var j = 0; j < inkData.length; j += 4) { + // const inkSegment: Bezier = InkField.Segment(inkData, i); // this.bintersects(inkSegment, eraserBezier).forEach((val: string | number, i: number) => { // // Converting the Bezier.js Split type to a t-value number. // const t = +val.toString().split('/')[0]; // if (i % 2 === 0 && !tVals.includes(t)) tVals.push(t); // bcz: Hack! don't know why but intersection points are doubled from bezier.js (but not identical). // }); - } + // } } // segment1.push(eraserBezier); |