Replace manual use of Crop with appendCrop property.

This commit is contained in:
Bauke 2022-03-11 22:19:12 +01:00
parent d5f87ffad0
commit 77dd785839
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
7 changed files with 3 additions and 13 deletions

View File

@ -1,6 +1,5 @@
import {
Cartoon,
Crop,
MedianBlur,
Mirrors,
Mosaic,
@ -46,7 +45,6 @@ const project: Project = {
nSegs: 2,
}),
new Cartoon(),
new Crop({height, width}),
new Waterpixels({
fill: 'average',
size: 32,

View File

@ -1,5 +1,4 @@
import {
Crop,
DiffractionPatterns,
FocusBlur,
Newsprint,
@ -18,7 +17,6 @@ const project: Project = {
height,
width,
}),
new Crop({height, width}),
new TileSeamless(),
new StereographicProjection(),
new Newsprint({

View File

@ -1,5 +1,4 @@
import {
Crop,
FocusBlur,
Maze,
MedianBlur,
@ -32,7 +31,6 @@ const project: Project = {
amplitude: 5.9,
clamp: true,
}),
new Crop({height, width}),
new Oilify(),
new TileSeamless(),
new MedianBlur({

View File

@ -1,4 +1,4 @@
import {Bloom, CellNoise, Crop, Newsprint, Waves} from '../../gegl/exports.js';
import {Bloom, CellNoise, Newsprint, Waves} from '../../gegl/exports.js';
import Project from '../../project.js';
const [width, height] = [3840, 2160];
@ -11,7 +11,6 @@ const project: Project = {
scale: 0.5,
seed: 2_762_328_325,
}),
new Crop({height, width}),
new Newsprint({
angle4: 75.85,
colorModel: 'rgb',
@ -31,7 +30,6 @@ const project: Project = {
x: -0.25,
y: -0.75,
}),
new Crop({height, width}),
new Bloom({
radius: 20,
softness: 57,

View File

@ -1,7 +1,6 @@
import {
Bloom,
Cartoon,
Crop,
Newsprint,
NoisePick,
Plasma,
@ -51,7 +50,6 @@ const project: Project = {
repeat: 5,
seed: 0,
}),
new Crop({height, width}),
],
resetAlpha: false,
resolution: {

View File

@ -15,7 +15,7 @@ export class Cartoon extends BaseOperation<CartoonParameters> {
return Cartoon.default;
}
public appendCrop = false;
public appendCrop = true;
public name = 'gegl:cartoon';
constructor(parameters?: Partial<CartoonParameters>) {

View File

@ -27,7 +27,7 @@ export class Waves extends BaseOperation<WavesParameters> {
return Waves.default;
}
public appendCrop = false;
public appendCrop = true;
public name = 'gegl:waves';
constructor(parameters?: Partial<WavesParameters>) {