From 6fe7caab9bff456eaca0096884feb5b7f6c9f6e5 Mon Sep 17 00:00:00 2001 From: sharkiecodes Date: Wed, 30 Apr 2025 18:25:42 -0400 Subject: fixes --- src/client/views/nodes/scrapbook/ScrapbookBox.tsx | 25 +++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/scrapbook/ScrapbookBox.tsx b/src/client/views/nodes/scrapbook/ScrapbookBox.tsx index 524925132..6d5ad031c 100644 --- a/src/client/views/nodes/scrapbook/ScrapbookBox.tsx +++ b/src/client/views/nodes/scrapbook/ScrapbookBox.tsx @@ -82,7 +82,28 @@ export class ScrapbookBox extends ViewBoxAnnotatableComponent() placeholder3._width = 50; placeholder3._height = 200; - const collection = Docs.Create.ScrapbookDocument([]); + + + const internalImg = Docs.Create.TextDocument('image internal'); + internalImg.accepts_docType = DocumentType.IMG; + internalImg.accepts_tagType = 'PERSON' //should i be writing fields on this doc? clarify diff between this and proto, original + const placeholder5 = new Doc(); + placeholder5.proto = image; + placeholder5.original = image; + placeholder5._width = 50; + placeholder5._height = 100; + placeholder5.x = 0; + placeholder5.y = -100; + + const collection = Docs.Create.StackingDocument([placeholder5], { _width: 300, _height: 300, title: "internal coll" }); + //collection.accepts_docType = DocumentType.COL; don't mark this field + const placeholder4 = new Doc(); + placeholder4.proto = collection; + placeholder4.original = collection; + placeholder4.x = -200; + placeholder4.y = -100; + placeholder4._width = 100; + placeholder4._height = 200; /*note-to-self would doing: @@ -99,7 +120,7 @@ export class ScrapbookBox extends ViewBoxAnnotatableComponent() difference between passing a new List versus just the raw array? */ - this.dataDoc[this.fieldKey] = new List([placeholder, placeholder2, placeholder3]); + this.dataDoc[this.fieldKey] = new List([placeholder, placeholder2, placeholder3, placeholder4]); } -- cgit v1.2.3-70-g09d2