aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ImageBox.tsx
diff options
context:
space:
mode:
authorgeireann <geireann.lindfield@gmail.com>2025-06-16 13:08:15 -0400
committergeireann <geireann.lindfield@gmail.com>2025-06-16 13:08:15 -0400
commit5d4ad5e02cb6262dd9d819eea0fa3eca4adc5124 (patch)
treeae9c8d2392bee4bca2ada9510e237b06b8bbefab /src/client/views/nodes/ImageBox.tsx
parent640158a55f37643c93b477543d0f12b56a2dc33d (diff)
fixed typos
Diffstat (limited to 'src/client/views/nodes/ImageBox.tsx')
-rw-r--r--src/client/views/nodes/ImageBox.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx
index 616046d5d..232f4ae32 100644
--- a/src/client/views/nodes/ImageBox.tsx
+++ b/src/client/views/nodes/ImageBox.tsx
@@ -112,7 +112,7 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
this._props.setContentViewBox?.(this);
}
- @computed get oupaintOriginalSize(): { width: number; height: number } {
+ @computed get outpaintOriginalSize(): { width: number; height: number } {
return {
width: NumCast(this.Document[this.fieldKey + '_outpaintOriginalWidth']),
height: NumCast(this.Document[this.fieldKey + '_outpaintOriginalHeight']),
@@ -385,7 +385,7 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
@action
cancelOutpaintPrompt = () => {
- [this.Document._width, this.Document._height] = [this.oupaintOriginalSize.width, this.oupaintOriginalSize.height];
+ [this.Document._width, this.Document._height] = [this.outpaintOriginalSize.width, this.outpaintOriginalSize.height];
this._outpaintingInProgress = false;
this.outpaintOriginalSize = undefined;
this.closeOutpaintPrompt();
@@ -435,7 +435,7 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
loadingOverlay.innerHTML = '<div style="color: white; font-size: 16px;">Generating outpainted image...</div>';
this._mainCont?.appendChild(loadingOverlay);
- const { width: origWidth, height: origHeight } = this.oupaintOriginalSize;
+ const { width: origWidth, height: origHeight } = this.outpaintOriginalSize;
const response = await Networking.PostToServer('/outpaintImage', {
imageUrl: currentPath,
prompt: customPrompt,