diff options
| author | Naafiyan Ahmed <naafiyan@gmail.com> | 2022-04-12 18:07:49 -0400 |
|---|---|---|
| committer | Naafiyan Ahmed <naafiyan@gmail.com> | 2022-04-12 18:07:49 -0400 |
| commit | b3424535cb746ff9fba35375d9abf07ba174dcf0 (patch) | |
| tree | d0f35c72583d6f8345ce172a2dfc49561a8486e7 /src/client/views/collections/collectionFreeForm | |
| parent | af94a0a883694e7147f227911264f59ec322a23b (diff) | |
made changes to ink grouping
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index 40164313c..f927c7934 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -441,13 +441,6 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection document.removeEventListener("pointerup", this.onPenUp); const currentCol = DocListCast(this.rootDoc.currentInkDoc) const rootDocList = DocListCast(this.rootDoc.data); - console.log("rootDocList", rootDocList[rootDocList.length - 1]); - console.log("currentCol", currentCol); - // if (!currentCol[0].data) { - // currentCol[0].data = []; - // } - // let docList = DocListCast(currentCol[0]); - currentCol.push(rootDocList[rootDocList.length - 1]); console.log(currentCol); @@ -471,28 +464,6 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection case InkTool.Write: break; case InkTool.Pen: - // not the greatest solution - // want to have a currentInkDoc field - // const freeformOptions: DocumentOptions = { - // x: 0, - // y: 0, - // _width: 1500, - // _height: 1000, - // _fitWidth: true, - // _backgroundColor: 'pink', - // _backgroundGridShow: false, - // title: `Stroke-Col`, - // }; - // // TODO: nda - fix the null issues that occur here - // let currentInkDoc = Docs.Create.FreeformDocument([], freeformOptions) - // this.rootDoc.currentInkDoc = currentInkDoc; - // // example of creating the list - // this.addDocument(currentInkDoc) - // // wtf ... - // document.addEventListener("pointerup", this.onPenUp); - - // create a new collection - // list.push() break; // the GestureOverlay handles ink stroke input -- either as gestures, or drying as ink strokes that are added to document views case InkTool.Eraser: document.addEventListener("pointermove", this.onEraserMove); @@ -547,7 +518,6 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection const B = this.getTransform().transformBounds(ge.bounds.left, ge.bounds.top, ge.bounds.width, ge.bounds.height); const inkDoc = Docs.Create.InkDocument(ActiveInkColor(), CurrentUserUtils.SelectedTool, ActiveInkWidth(), ActiveInkBezierApprox(), ActiveFillColor(), ActiveArrowStart(), ActiveArrowEnd(), ActiveDash(), points, { title: "ink stroke", x: B.x - ActiveInkWidth() / 2, y: B.y - ActiveInkWidth() / 2, _width: B.width + ActiveInkWidth(), _height: B.height + ActiveInkWidth() }); - console.log("doc exists") if (CurrentUserUtils.SelectedTool === InkTool.Write) { this.unprocessedDocs.push(inkDoc); CollectionFreeFormView.collectionsWithUnprocessedInk.add(this); |
