Group local mask shapes into editable components.
A local adjustment is now a list of shapes composited in order (add, subtract, intersect) instead of a single shape, so dodging and burning can be built from several brushes, gradients and auto masks without spending layer channels. Existing edits migrate on load: the flat layer fields become components[0], keeping geometry, invert, feather and the layer's blend mode unchanged. The panel gains a shape list with active-shape editing, and the render gate now asserts a subtract shape clears the group while an intersect keeps it.
This commit is contained in:
+14
-5
@@ -63,12 +63,11 @@ export interface LocalStroke {
|
||||
erase?: boolean;
|
||||
}
|
||||
|
||||
/** One non-destructive local adjustment layer. Mask geometry is in source uv. */
|
||||
export interface LocalLayer {
|
||||
/** One shape inside a local adjustment layer's mask group. */
|
||||
export interface LocalComponent {
|
||||
id: string;
|
||||
name: string;
|
||||
kind: LocalMaskKind;
|
||||
/** How this mask combines with the layer above it in the list. */
|
||||
/** How this shape combines with the shapes before it inside the layer. */
|
||||
mode: 'add' | 'subtract' | 'intersect';
|
||||
inverted: boolean;
|
||||
/** softness of the mask edge, 0–100 */
|
||||
@@ -77,7 +76,17 @@ export interface LocalLayer {
|
||||
linear: { x1: number; y1: number; x2: number; y2: number };
|
||||
radial: { cx: number; cy: number; rx: number; ry: number };
|
||||
raster?: RasterMask;
|
||||
/** luminance and colour limits applied on top of the shape */
|
||||
}
|
||||
|
||||
/** One non-destructive local adjustment layer. Mask geometry is in source uv. */
|
||||
export interface LocalLayer {
|
||||
id: string;
|
||||
name: string;
|
||||
/** How the whole layer combines with the layer above it in the list. */
|
||||
mode: 'add' | 'subtract' | 'intersect';
|
||||
/** Shapes composited in order into this layer's mask. */
|
||||
components: LocalComponent[];
|
||||
/** luminance and colour limits applied on top of the shape group */
|
||||
range: {
|
||||
enabled: boolean;
|
||||
lumaMin: number;
|
||||
|
||||
Reference in New Issue
Block a user