From 859bb1b733901e4697f1d53781af725e4830c607 Mon Sep 17 00:00:00 2001
From: eleanor-park <eleanor_park@brown.edu>
Date: Tue, 14 Jan 2025 17:19:16 +0100
Subject: added drawing fill style reference

---
 .../collectionFreeForm/CollectionFreeFormView.tsx  | 35 ++--------------------
 1 file changed, 3 insertions(+), 32 deletions(-)

(limited to 'src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx')

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<Partial<collection
 
     @observable private _regenInput = '';
     @observable private _drawingFillInput = '';
-    @observable private _canInteract = true;
     @observable private _regenLoading = false;
     @observable private _drawingFillLoading = false;
     @observable private _fireflyRefStrength = 50;
-    // _oldDrag: HTMLElement | null = null;
-
-    // onPassiveDrag = (e: PointerEvent) => 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 (
-            <div className="imageBox-aiView-history">
-                {/* {this._prevImgs.map(img => (
-                    <img
-                        className="imageBox-aiView-img"
-                        src={img.href}
-                        onClick={() => {
-                            this.dataDoc[this.fieldKey] = new ImageField(img.pathname);
-                            this.dataDoc.ai_firefly_prompt = img.prompt;
-                            this.dataDoc.ai_firefly_seed = img.seed;
-                        }}
-                    />
-                ))} */}
-            </div>
-        );
-    };
 
     componentAIView = () => {
         const showRegenerate = this.Document[DocData].ai;
@@ -2241,7 +2212,7 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection
                                 aria-label="Edit instructions input"
                                 type="text"
                                 value={this._regenInput}
-                                onChange={action(e => this._canInteract && (this._regenInput = e.target.value))}
+                                onChange={action(e => (this._regenInput = e.target.value))}
                                 placeholder="Prompt (Optional)"
                             />
                             <Button
@@ -2264,7 +2235,7 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection
                 <div className="collectionfreeformview-aiView-options-container">
                     <text className="collectionfreeformview-aiView-subtitle"> Create Image with Firefly </text>
                     <div className="collectionfreeformview-aiView-options">
-                        <input className="collectionfreeformview-aiView-prompt" placeholder="Prompt (Optional)" type="text" value={this._drawingFillInput} onChange={action(e => this._canInteract && (this._drawingFillInput = e.target.value))} />
+                        <input className="collectionfreeformview-aiView-prompt" placeholder="Prompt (Optional)" type="text" value={this._drawingFillInput} onChange={action(e => (this._drawingFillInput = e.target.value))} />
                         <div className="collectionfreeformview-aiView-strength">
                             <Slider
                                 className="collectionfreeformview-aiView-slider"
@@ -2278,7 +2249,7 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection
                                 step={1}
                                 size="small"
                                 value={this._fireflyRefStrength}
-                                onChange={action((e, val) => this._canInteract && (this._fireflyRefStrength = val as number))}
+                                onChange={action((e, val) => (this._fireflyRefStrength = val as number))}
                                 valueLabelDisplay="auto"
                             />
                             Reference Strength
-- 
cgit v1.2.3-70-g09d2

