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

View File

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

View File

@ -1,5 +1,4 @@
import { import {
Crop,
FocusBlur, FocusBlur,
Maze, Maze,
MedianBlur, MedianBlur,
@ -32,7 +31,6 @@ const project: Project = {
amplitude: 5.9, amplitude: 5.9,
clamp: true, clamp: true,
}), }),
new Crop({height, width}),
new Oilify(), new Oilify(),
new TileSeamless(), new TileSeamless(),
new MedianBlur({ 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'; import Project from '../../project.js';
const [width, height] = [3840, 2160]; const [width, height] = [3840, 2160];
@ -11,7 +11,6 @@ const project: Project = {
scale: 0.5, scale: 0.5,
seed: 2_762_328_325, seed: 2_762_328_325,
}), }),
new Crop({height, width}),
new Newsprint({ new Newsprint({
angle4: 75.85, angle4: 75.85,
colorModel: 'rgb', colorModel: 'rgb',
@ -31,7 +30,6 @@ const project: Project = {
x: -0.25, x: -0.25,
y: -0.75, y: -0.75,
}), }),
new Crop({height, width}),
new Bloom({ new Bloom({
radius: 20, radius: 20,
softness: 57, softness: 57,

View File

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

View File

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

View File

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