diff options
author | sharkiecodes <lanyi_stroud@brown.edu> | 2025-04-30 18:25:42 -0400 |
---|---|---|
committer | sharkiecodes <lanyi_stroud@brown.edu> | 2025-04-30 18:25:42 -0400 |
commit | 6fe7caab9bff456eaca0096884feb5b7f6c9f6e5 (patch) | |
tree | 053c74b9ae38c5bc6695f68f4503e37914ec8708 /src | |
parent | 675408d8358f1373d7892d2db3e6ecb06c098948 (diff) |
fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/scrapbook/ScrapbookBox.tsx | 25 |
1 files changed, 23 insertions, 2 deletions
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<FieldViewProps>() 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<FieldViewProps>() difference between passing a new List<Doc> versus just the raw array? */ - this.dataDoc[this.fieldKey] = new List<Doc>([placeholder, placeholder2, placeholder3]); + this.dataDoc[this.fieldKey] = new List<Doc>([placeholder, placeholder2, placeholder3, placeholder4]); } |