bump version, remove pointless checkbox
This commit is contained in:
parent
d276876bf0
commit
0906609da2
3 changed files with 12 additions and 18 deletions
|
@ -102,7 +102,7 @@ please do! kindly indicate your OS, browser, versions of both, any errors in dev
|
||||||
|
|
||||||
## known bugs :(
|
## known bugs :(
|
||||||
- generated images display +1px on x/y during approve/reject state, doesn't affect output, just annoying
|
- generated images display +1px on x/y during approve/reject state, doesn't affect output, just annoying
|
||||||
- erase mask is like entirely broken
|
- ~~erase mask is like entirely broken~~
|
||||||
- ~~odd-numbered scale factors don't snap correctly~~
|
- ~~odd-numbered scale factors don't snap correctly~~
|
||||||
- ~~arbitrary "pasted" images require clicking twice to place them and i _don't know why_ [(yes i do)](#terrible), just getting them to be arbitrarily placable was a giant pain because i'm not got the smarts~~
|
- ~~arbitrary "pasted" images require clicking twice to place them and i _don't know why_ [(yes i do)](#terrible), just getting them to be arbitrarily placable was a giant pain because i'm not got the smarts~~
|
||||||
- selecting an aribtrary image by double-clicking it in the file picker can sometimes trigger a dream request that errors out if your file picker is "above" the canvas; i tried to alleviate that by temporarily removing the mouse(move/down/up) handlers for the canvas context on selection of a file, but i'm POSITIVE it's an improper solution and not quite sure if it's even fully effective
|
- selecting an aribtrary image by double-clicking it in the file picker can sometimes trigger a dream request that errors out if your file picker is "above" the canvas; i tried to alleviate that by temporarily removing the mouse(move/down/up) handlers for the canvas context on selection of a file, but i'm POSITIVE it's an improper solution and not quite sure if it's even fully effective
|
||||||
|
@ -137,10 +137,11 @@ imported a transparent clip of a [relatively famous happy lil kitty](https://com
|
||||||
- 0.0.5.1 - erase rendered imagery with right click, ensure webUI is running [54577d4](https://github.com/zero01101/openOutpaint/commit/54577d4f15fd7d014aaf2471e0042b3c48735e9c)
|
- 0.0.5.1 - erase rendered imagery with right click, ensure webUI is running [54577d4](https://github.com/zero01101/openOutpaint/commit/54577d4f15fd7d014aaf2471e0042b3c48735e9c)
|
||||||
- 0.0.5.5 - highly attractive and functional floating control panel which will be extremely useful for infinite canvas [dac188d](https://github.com/zero01101/openOutpaint/commit/dac188dbfb086d3063f14b1a6a6a5b3add1aa5f5)
|
- 0.0.5.5 - highly attractive and functional floating control panel which will be extremely useful for infinite canvas [dac188d](https://github.com/zero01101/openOutpaint/commit/dac188dbfb086d3063f14b1a6a6a5b3add1aa5f5)
|
||||||
- 0.0.5.6 - _FINALLY_ the sliders update their values in realtime, a nice overall start on cleaning up my mess [d9fb87a](https://github.com/zero01101/openOutpaint/commit/d9fb87acec6653f19a9dac7777bd866782303ebc)
|
- 0.0.5.6 - _FINALLY_ the sliders update their values in realtime, a nice overall start on cleaning up my mess [d9fb87a](https://github.com/zero01101/openOutpaint/commit/d9fb87acec6653f19a9dac7777bd866782303ebc)
|
||||||
|
- 0.0.5.7 - the majestic return of mask erasing, removed unnecessary overmask toggle [a96fd11](https://github.com/zero01101/openOutpaint/commit/a96fd116d750e38ce8982104ae5e5c966746fdc4)
|
||||||
|
|
||||||
## collaborator credits 👑
|
## collaborator credits 👑
|
||||||
- [@jasonmhead](https://github.com/jasonmhead) - [the most minimal launch script](https://github.com/zero01101/openOutpaint/pull/1)
|
- [@jasonmhead](https://github.com/jasonmhead) - [the most minimal launch script](https://github.com/zero01101/openOutpaint/pull/1)
|
||||||
- [@Kalekki](https://github.com/Kalekki) - all SORTS of awesome goodness, legit pull request hero: [what i was calling "smart crop"](https://github.com/zero01101/openOutpaint/pull/2), [localstorage](https://github.com/zero01101/openOutpaint/pull/5), [right-click erase](https://github.com/zero01101/openOutpaint/pull/7), [delightful floating UI](https://github.com/zero01101/openOutpaint/pull/11)
|
- [@Kalekki](https://github.com/Kalekki) - all SORTS of awesome goodness, legit pull request hero: [what i was calling "smart crop"](https://github.com/zero01101/openOutpaint/pull/2), [localstorage](https://github.com/zero01101/openOutpaint/pull/5), [right-click erase](https://github.com/zero01101/openOutpaint/pull/7), [delightful floating UI](https://github.com/zero01101/openOutpaint/pull/11), [mask erase fix](https://github.com/zero01101/openOutpaint/pull/17)
|
||||||
- [@seijihariki](https://github.com/seijihariki) - realtime slider value updates, gracious code cleanup ([14](https://github.com/zero01101/openOutpaint/pull/14))
|
- [@seijihariki](https://github.com/seijihariki) - realtime slider value updates, gracious code cleanup ([14](https://github.com/zero01101/openOutpaint/pull/14))
|
||||||
- [@lifeh2o](https://www.reddit.com/user/lifeh2o/overview) - overmasking concept that is still driving me crazy getting it to work right ([a](https://www.reddit.com/r/StableDiffusion/comments/ywf8np/i_made_a_completely_local_offline_opensource/iwl6s06/),[b](https://www.reddit.com/r/StableDiffusion/comments/ys9lhq/kollai_an_infinite_multiuser_canvas_running_on/ivzygwk/?context=3))
|
- [@lifeh2o](https://www.reddit.com/user/lifeh2o/overview) - overmasking concept that is still driving me crazy getting it to work right ([a](https://www.reddit.com/r/StableDiffusion/comments/ywf8np/i_made_a_completely_local_offline_opensource/iwl6s06/),[b](https://www.reddit.com/r/StableDiffusion/comments/ys9lhq/kollai_an_infinite_multiuser_canvas_running_on/ivzygwk/?context=3))
|
||||||
|
|
||||||
|
|
11
index.html
11
index.html
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>openOutpaint 🐠 0.0.5.6</title>
|
<title>openOutpaint 🐠</title>
|
||||||
<link href="css/index.css" rel="stylesheet" />
|
<link href="css/index.css" rel="stylesheet" />
|
||||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||||
</head>
|
</head>
|
||||||
|
@ -70,8 +70,8 @@
|
||||||
<label for="cbxPaint">Mask mode?</label>
|
<label for="cbxPaint">Mask mode?</label>
|
||||||
<input type="checkbox" id="cbxPaint" onchange="changePaintMode()"><br />
|
<input type="checkbox" id="cbxPaint" onchange="changePaintMode()"><br />
|
||||||
<!-- Having to tick a box to erase is a bad user experience, same goes for image erasing( cold be remedied by a temp confirm div) -->
|
<!-- Having to tick a box to erase is a bad user experience, same goes for image erasing( cold be remedied by a temp confirm div) -->
|
||||||
<label for="cbxErase"><s>Erase mask?</s></label>
|
<!-- <label for="cbxErase"><s>Erase mask?</s></label>
|
||||||
<input type="checkbox" id="cbxErase" onchange="changeEraseMode()" disabled="disabled"><br />
|
<input type="checkbox" id="cbxErase" onchange="changeEraseMode()" disabled="disabled"><br /> -->
|
||||||
|
|
||||||
<label for="cbxHRFix">Auto txt2img HRfix?</label>
|
<label for="cbxHRFix">Auto txt2img HRfix?</label>
|
||||||
<input type="checkbox" id="cbxHRFix" onchange="changeHiResFix()"><br />
|
<input type="checkbox" id="cbxHRFix" onchange="changeHiResFix()"><br />
|
||||||
|
@ -109,9 +109,10 @@
|
||||||
<span id="snapX"></span>
|
<span id="snapX"></span>
|
||||||
<br />
|
<br />
|
||||||
<label for="snapY">snapY:</label>
|
<label for="snapY">snapY:</label>
|
||||||
<span id="snapY"></span><br>
|
<span id="snapY"></span><br />
|
||||||
<label for="heldButton">Mouse button:</label>
|
<label for="heldButton">Mouse button:</label>
|
||||||
<span id="heldButton"></span>
|
<span id="heldButton"></span><br />
|
||||||
|
<span id="version">Alpha release v0.0.5.7</span>
|
||||||
<br />
|
<br />
|
||||||
<hr>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
|
|
14
js/index.js
14
js/index.js
|
@ -147,7 +147,6 @@ function startup() {
|
||||||
drawBackground();
|
drawBackground();
|
||||||
changeScaleFactor();
|
changeScaleFactor();
|
||||||
changePaintMode();
|
changePaintMode();
|
||||||
changeEraseMode();
|
|
||||||
changeSampler();
|
changeSampler();
|
||||||
changeSteps();
|
changeSteps();
|
||||||
changeCfgScale();
|
changeCfgScale();
|
||||||
|
@ -435,7 +434,7 @@ function mouseMove(evt) {
|
||||||
maskPaintCtx.lineTo(mouseX, mouseY);
|
maskPaintCtx.lineTo(mouseX, mouseY);
|
||||||
maskPaintCtx.lineJoin = maskPaintCtx.lineCap = 'round';
|
maskPaintCtx.lineJoin = maskPaintCtx.lineCap = 'round';
|
||||||
maskPaintCtx.stroke();
|
maskPaintCtx.stroke();
|
||||||
|
|
||||||
}
|
}
|
||||||
prevMouseX = mouseX;
|
prevMouseX = mouseX;
|
||||||
prevMouseY = mouseY;
|
prevMouseY = mouseY;
|
||||||
|
@ -472,8 +471,8 @@ function mouseDown(evt) {
|
||||||
nextBox.h = basePixelCount * scaleFactor;
|
nextBox.h = basePixelCount * scaleFactor;
|
||||||
drawTargets.push(nextBox);
|
drawTargets.push(nextBox);
|
||||||
}
|
}
|
||||||
} else if (evt.button == 2){
|
} else if (evt.button == 2) {
|
||||||
if(enableErasing && !paintMode) { // right click, also gotta make sure mask blob isn't being used as it's visually inconsistent with behavior of erased region
|
if (enableErasing && !paintMode) { // right click, also gotta make sure mask blob isn't being used as it's visually inconsistent with behavior of erased region
|
||||||
ctx = imgCanvas.getContext('2d');
|
ctx = imgCanvas.getContext('2d');
|
||||||
if (snapToGrid) {
|
if (snapToGrid) {
|
||||||
ctx.clearRect(canvasX + snap(canvasX) - ((basePixelCount * scaleFactor) / 2), canvasY + snap(canvasY) - ((basePixelCount * scaleFactor) / 2), basePixelCount * scaleFactor, basePixelCount * scaleFactor);
|
ctx.clearRect(canvasX + snap(canvasX) - ((basePixelCount * scaleFactor) / 2), canvasY + snap(canvasY) - ((basePixelCount * scaleFactor) / 2), basePixelCount * scaleFactor, basePixelCount * scaleFactor);
|
||||||
|
@ -740,13 +739,6 @@ function changePaintMode() {
|
||||||
ovCtx.clearRect(0, 0, ovCanvas.width, ovCanvas.height);
|
ovCtx.clearRect(0, 0, ovCanvas.width, ovCanvas.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeEraseMode() {
|
|
||||||
//TODO rename/refactor to make it more obvious this is just for painted masks
|
|
||||||
eraseMode = document.getElementById("cbxErase").checked;
|
|
||||||
clearTargetMask();
|
|
||||||
ovCtx.clearRect(0, 0, ovCanvas.width, ovCanvas.height);
|
|
||||||
}
|
|
||||||
|
|
||||||
function changeEnableErasing() {
|
function changeEnableErasing() {
|
||||||
// yeah because this is for the image layer
|
// yeah because this is for the image layer
|
||||||
enableErasing = document.getElementById("cbxEnableErasing").checked;
|
enableErasing = document.getElementById("cbxEnableErasing").checked;
|
||||||
|
|
Loading…
Reference in a new issue