mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
comment for future dev, fix layer moving bug
This commit is contained in:
1 parent
021b842546
commit
411345ccb4
5 files changed
+22
-1
No files matched your search
@@ -15,15 +15,25 @@ yarn dev # this runs the vite dev server
|
||||
```
|
||||
|
||||
You may need to turn off browser security to get around CORS restrictions:
|
||||
|
||||
### Windows 11
|
||||
|
||||
from your powershell
|
||||
|
||||
```sh
|
||||
# Chrome
|
||||
Start "C:\Program Files\Google\Chrome\Application\chrome.exe" -ArgumentList '--user-data-dir="C://chrome-dev-disabled-security" --disable-web-security --disable-site-isolation-trials'
|
||||
```
|
||||
|
||||
### on MAC
|
||||
|
||||
form your terminal
|
||||
|
||||
```sh
|
||||
# Chrome
|
||||
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disable-web-security --user-data-dir=~/chrome
|
||||
```
|
||||
|
||||
### Inspecting the Shared Workers
|
||||
|
||||
on chrome, type `chrome://inspect/#workers` into the url field
|
||||
@@ -461,6 +461,9 @@ export class RenderEngine {
|
||||
// @ts-ignore
|
||||
const offscreenCanvas = offScreenSceneCanvas._canvas as OffscreenCanvas;
|
||||
let result = undefined;
|
||||
|
||||
// if config.test is true, the result is downloaded to the local files
|
||||
// config.test = true;
|
||||
if (config.test) {
|
||||
const blob = await offscreenCanvas.convertToBlob({
|
||||
quality: config.quality ?? 1.0,
|
||||
|
||||
@@ -220,6 +220,8 @@ export class DiffusionSharedWorker extends SharedWorkerBase<
|
||||
|
||||
while (jobIsProcessing) {
|
||||
const job = await this.jobsAPI.GetJobByToken({ token: jobToken });
|
||||
|
||||
// TODO: MAKE REQUEST FOR PREVIEW HERE
|
||||
console.log(job);
|
||||
if (!job.data) {
|
||||
console.log("No Job Data resetting the zip state");
|
||||
|
||||
@@ -37,7 +37,7 @@ export class MoveLayerDown implements ICommand {
|
||||
|
||||
execute() {
|
||||
let hasMovedNode = false;
|
||||
let currMinIndex = 1;
|
||||
let currMinIndex = 0;
|
||||
this.sortedMovingNodes.forEach(([movingNode, movingNodeZindex]) => {
|
||||
if (movingNodeZindex === currMinIndex) {
|
||||
currMinIndex = currMinIndex + 1;
|
||||
@@ -48,6 +48,9 @@ export class MoveLayerDown implements ICommand {
|
||||
});
|
||||
this.nodesManagerRef.updateAllZIndices();
|
||||
this.mediaLayerRef.draw();
|
||||
// if (import.meta.env.DEV && !hasMovedNode) {
|
||||
// console.log("No Node Moved-DOWN");
|
||||
// }
|
||||
return hasMovedNode;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,6 +48,9 @@ export class MoveLayerUp implements ICommand {
|
||||
});
|
||||
this.nodesManagerRef.updateAllZIndices();
|
||||
this.mediaLayerRef.draw();
|
||||
// if (import.meta.env.DEV && !hasMovedNode) {
|
||||
// console.log("No Node Moved-UP");
|
||||
// }
|
||||
return hasMovedNode;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user