Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
c95c4600
Commit
c95c4600
authored
Mar 17, 2024
by
AUTOMATIC1111
Committed by
GitHub
Mar 17, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15288 from light-and-ray/allow_use_zoom.js_outside_webui_context
little fixes zoom.js
parents
c12ba584
c3f75d1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
extensions-builtin/canvas-zoom-and-pan/javascript/zoom.js
extensions-builtin/canvas-zoom-and-pan/javascript/zoom.js
+4
-4
No files found.
extensions-builtin/canvas-zoom-and-pan/javascript/zoom.js
View file @
c95c4600
...
...
@@ -280,7 +280,7 @@ onUiLoaded(async() => {
const
targetElement
=
gradioApp
().
querySelector
(
elemId
);
if
(
!
targetElement
)
{
console
.
log
(
"
Element not found
"
);
console
.
log
(
"
Element not found
"
,
elemId
);
return
;
}
...
...
@@ -939,9 +939,9 @@ onUiLoaded(async() => {
}
elementIDs
.
sketch
&&
applyZoomAndPan
(
elementIDs
.
sketch
,
false
);
elementIDs
.
inpaint
&&
applyZoomAndPan
(
elementIDs
.
inpaint
,
false
);
elementIDs
.
inpaintSketch
&&
applyZoomAndPan
(
elementIDs
.
inpaintSketch
,
false
);
applyZoomAndPan
(
elementIDs
.
sketch
,
false
);
applyZoomAndPan
(
elementIDs
.
inpaint
,
false
);
applyZoomAndPan
(
elementIDs
.
inpaintSketch
,
false
);
// Make the function global so that other extensions can take advantage of this solution
const
applyZoomAndPanIntegration
=
async
(
id
,
elementIDs
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment