diff options
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); |