From 859bb1b733901e4697f1d53781af725e4830c607 Mon Sep 17 00:00:00 2001 From: eleanor-park Date: Tue, 14 Jan 2025 17:19:16 +0100 Subject: added drawing fill style reference --- .../collectionFreeForm/CollectionFreeFormView.tsx | 35 ++---------- src/client/views/nodes/DocumentView.tsx | 1 + src/client/views/nodes/FieldView.tsx | 1 + src/client/views/nodes/ImageBox.scss | 9 +--- src/client/views/nodes/ImageBox.tsx | 62 +++++++++++++--------- src/client/views/smartdraw/DrawingFillHandler.tsx | 2 +- src/server/ApiManagers/FireflyManager.ts | 35 ++++++------ 7 files changed, 65 insertions(+), 80 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index e1144f21a..66e0ba5d9 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -2194,38 +2194,9 @@ export class CollectionFreeFormView extends CollectionSubView e.stopPropagation(); - // protected createDashEventsTarget = (ele: HTMLDivElement | null) => { - // // this._dropDisposer?.(); - // this._oldDrag?.removeEventListener('pointerdown', this.onPassiveDrag); - // this._oldDrag = ele; - // // prevent wheel events from passively propagating up through containers and prevents containers from preventDefault which would block scrolling - // ele?.addEventListener('pointerdown', this.onPassiveDrag, { passive: false }); - // }; - - componentAIViewHistory = () => { - return ( -
- {/* {this._prevImgs.map(img => ( - { - this.dataDoc[this.fieldKey] = new ImageField(img.pathname); - this.dataDoc.ai_firefly_prompt = img.prompt; - this.dataDoc.ai_firefly_seed = img.seed; - }} - /> - ))} */} -
- ); - }; componentAIView = () => { const showRegenerate = this.Document[DocData].ai; @@ -2241,7 +2212,7 @@ export class CollectionFreeFormView extends CollectionSubView this._canInteract && (this._regenInput = e.target.value))} + onChange={action(e => (this._regenInput = e.target.value))} placeholder="Prompt (Optional)" />