aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionFreeForm
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx30
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);