Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions js/lib/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ const layers = {

if (JSON.stringify(expand_by) !== JSON.stringify([0, 0, 0, 0])) {
this.expand(...expand_by);
recalculateBg();
}
},

Expand Down
1 change: 0 additions & 1 deletion js/ui/tool/dream.js
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,6 @@ const dreamTool = () =>

if (global.connection === "online") {
imageCollection.auto_expand_to_fit(bb);
recalculateBg();
dream_generate_callback(bb, resolution, state);
} else {
const stop = march(bb, {
Expand Down
1 change: 1 addition & 0 deletions js/ui/tool/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ const selectTransformTool = () =>
selection.dragendcb(evn);

const bb = selection.bb;
imageCollection.auto_expand_to_fit(bb);

state.reset();

Expand Down
4 changes: 4 additions & 0 deletions js/ui/tool/stamp.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,10 @@ const stampTool = () =>
const resource = state.selected;

if (resource) {
const real_bb = getBoundingBox(sx,sy,1,1); //TODO:Here we have to get the actual real bounding box somehow
imageCollection.auto_expand_to_fit(real_bb);
state.redraw();

const {canvas, bb} = cropCanvas(ovCanvas, {border: 10});
commands.runCommand("drawImage", "Image Stamp", {
image: canvas,
Expand Down