diff options
| author | eleanor-park <eleanor_park@brown.edu> | 2025-01-14 17:19:16 +0100 |
|---|---|---|
| committer | eleanor-park <eleanor_park@brown.edu> | 2025-01-14 17:19:16 +0100 |
| commit | 859bb1b733901e4697f1d53781af725e4830c607 (patch) | |
| tree | ffafb078019d861f71232348176c02a7557a8965 /src/client/views/collections | |
| parent | fd922d7898ed7a405ed47a7e48b85c582d787c07 (diff) | |
added drawing fill style reference
Diffstat (limited to 'src/client/views/collections')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 35 |
1 files changed, 3 insertions, 32 deletions
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 |
