File tree Expand file tree Collapse file tree 6 files changed +6
-22
lines changed Expand file tree Collapse file tree 6 files changed +6
-22
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,8 @@ export class MaskEraserToolAction extends WeaveAction {
35
35
36
36
pointIntersectsElement ( point ?: Konva . Vector2d ) : Konva . Node | null {
37
37
const stage = this . instance . getStage ( ) ;
38
- const relativeMousePointer = point
39
- ? point
40
- : ( stage . getPointerPosition ( ) ?? { x : 0 , y : 0 } ) ;
38
+ const relativeMousePointer = point ??
39
+ stage . getPointerPosition ( ) ?? { x : 0 , y : 0 } ;
41
40
42
41
const utilityLayer = this . instance . getUtilityLayer ( ) ;
43
42
@@ -69,7 +68,6 @@ export class MaskEraserToolAction extends WeaveAction {
69
68
}
70
69
maskTransformer . forceUpdate ( ) ;
71
70
}
72
- return ;
73
71
}
74
72
} ) ;
75
73
}
@@ -142,7 +140,6 @@ export class MaskEraserToolAction extends WeaveAction {
142
140
this . instance . getActiveAction ( ) === MASK_ERASER_TOOL_ACTION_NAME
143
141
) {
144
142
this . cancelAction ( ) ;
145
- return ;
146
143
}
147
144
} ) ;
148
145
Original file line number Diff line number Diff line change @@ -101,22 +101,9 @@ export const ContextMenuRender = ({
101
101
}
102
102
}
103
103
104
- // function checkIfTouchOutside(e: TouchEvent) {
105
- // if (
106
- // ref.current &&
107
- // e.target !== ref.current &&
108
- // !ref.current.contains(e.target as Node)
109
- // ) {
110
- // ref.current.style.display = `none`;
111
- // onChanged(false);
112
- // }
113
- // }
114
-
115
- // window.addEventListener("pointerclick", checkIfClickedOutside);
116
104
window . addEventListener ( "pointerdown" , checkIfClickedOutside ) ;
117
105
118
106
return ( ) => {
119
- // window.removeEventListener("click", checkIfClickedOutside);
120
107
window . removeEventListener ( "pointerdown" , checkIfClickedOutside ) ;
121
108
} ;
122
109
// eslint-disable-next-line react-hooks/exhaustive-deps
Original file line number Diff line number Diff line change @@ -520,7 +520,7 @@ export function LLMGenerationV2Popup() {
520
520
{ /* eslint-disable-next-line @next/next/no-img-element */ }
521
521
< img
522
522
src = { imageReference . base64Image }
523
- alt = { `Reference image ${ index + 1 } ` }
523
+ alt = { `Reference ${ index + 1 } ` }
524
524
className = "w-[160px] h-[160px] bg-transparent object-contain"
525
525
/>
526
526
< div className = "w-[160px] font-inter text-center text-xs py-3" >
Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ export function LLMGenerationPopup() {
301
301
{ /* eslint-disable-next-line @next/next/no-img-element */ }
302
302
< img
303
303
src = { imageReference . base64Image }
304
- alt = { `Image reference ${ index + 1 } ` }
304
+ alt = { `Reference ${ index + 1 } ` }
305
305
className = "w-full h-full bg-transparent object-contain"
306
306
/>
307
307
< div className = "font-inter text-xs mt-1" >
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ export function LLMPredictionsSelectionV2Popup() {
180
180
{ /* eslint-disable-next-line @next/next/no-img-element */ }
181
181
< img
182
182
src = { `data:image/png;base64,${ prediction . b64_json } ` }
183
- alt = "Image generated by LLM"
183
+ alt = "Generated by LLM"
184
184
onKeyUp = { ( e ) => {
185
185
if ( e . key === "Space" ) {
186
186
let newSelectedImages = [ ...selectedImages ] ;
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ export const LLMReferenceSelectionV2Popup = () => {
191
191
setSelectedImages ( unique ) ;
192
192
} }
193
193
src = { imageUrl }
194
- alt = "An image"
194
+ alt = { `Reference ${ image } ` }
195
195
/>
196
196
</ div >
197
197
) ;
You can’t perform that action at this time.
0 commit comments