Interface EditImageNodeParameters

Source
interface EditImageNodeParameters {
    backgroundColor?: string;
    blur?: number;
    borderColor?: string;
    borderHeight?: number;
    borderWidth?: number;
    color?: string;
    cornerRadius?: number;
    dataPropertyName?: string;
    dataPropertyNameComposite?: string;
    degreesX?: number;
    degreesY?: number;
    endPositionX?: number;
    endPositionY?: number;
    fontColor?: string;
    fontSize?: number;
    height?: number;
    lineLength?: number;
    operation?:
        | "create"
        | "text"
        | "blur"
        | "border"
        | "composite"
        | "crop"
        | "draw"
        | "information"
        | "multiStep"
        | "resize"
        | "rotate"
        | "shear"
        | "transparent";
    operations?: {
        operations: {
            backgroundColor?: string;
            blur?: number;
            borderColor?: string;
            borderHeight?: number;
            borderWidth?: number;
            color?: string;
            cornerRadius?: number;
            dataPropertyNameComposite?: string;
            degreesX?: number;
            degreesY?: number;
            endPositionX?: number;
            endPositionY?: number;
            font?: string;
            fontColor?: string;
            fontSize?: number;
            height?: number;
            lineLength?: number;
            operation?: | "create"
            | "text"
            | "blur"
            | "border"
            | "composite"
            | "crop"
            | "draw"
            | "resize"
            | "rotate"
            | "shear"
            | "transparent";
            operator?: | "Add"
            | "Atop"
            | "Bumpmap"
            | "Copy"
            | "CopyBlack"
            | "CopyBlue"
            | "CopyCyan"
            | "CopyGreen"
            | "CopyMagenta"
            | "CopyOpacity"
            | "CopyRed"
            | "CopyYellow"
            | "Difference"
            | "Divide"
            | "In"
            | "Minus"
            | "Multiply"
            | "Out"
            | "Over"
            | "Plus"
            | "Subtract"
            | "Xor";
            positionX?: number;
            positionY?: number;
            primitive?: "circle"
            | "line"
            | "rectangle";
            resizeOption?:
                | "ignoreAspectRatio"
                | "maximumArea"
                | "minimumArea"
                | "onlyIfLarger"
                | "onlyIfSmaller"
                | "percent";
            rotate?: number;
            sigma?: number;
            startPositionX?: number;
            startPositionY?: number;
            text?: string;
            width?: number;
        }[];
    };
    operator?: | "Add"
    | "Atop"
    | "Bumpmap"
    | "Copy"
    | "CopyBlack"
    | "CopyBlue"
    | "CopyCyan"
    | "CopyGreen"
    | "CopyMagenta"
    | "CopyOpacity"
    | "CopyRed"
    | "CopyYellow"
    | "Difference"
    | "Divide"
    | "In"
    | "Minus"
    | "Multiply"
    | "Out"
    | "Over"
    | "Plus"
    | "Subtract"
    | "Xor";
    options?: {
        fileName?: string;
        font?: string;
        format?: | "png"
        | "bmp"
        | "gif"
        | "jpeg"
        | "tiff"
        | "webp";
        quality?: number;
    };
    positionX?: number;
    positionY?: number;
    primitive?: "circle"
    | "line"
    | "rectangle";
    resizeOption?:
        | "ignoreAspectRatio"
        | "maximumArea"
        | "minimumArea"
        | "onlyIfLarger"
        | "onlyIfSmaller"
        | "percent";
    rotate?: number;
    sigma?: number;
    startPositionX?: number;
    startPositionY?: number;
    text?: string;
    width?: number;
}

Properties§

Source§

readonly backgroundColor?: string

The background color of the image to create Default: "#ffffff00" Type options: {"showAlpha":true}

Source§

readonly blur?: number

How strong the blur should be Default: 5 Type options: {"minValue":0,"maxValue":1000}

Source§

readonly borderColor?: string

Color of the border Default: "#000000"

Source§

readonly borderHeight?: number

The height of the border Default: 10

Source§

readonly borderWidth?: number

The width of the border Default: 10

Source§

readonly color?: string

The color of the primitive to draw Default: "#ff000000" Type options: {"showAlpha":true}

Source§

readonly cornerRadius?: number

The radius of the corner to create round corners

Source§

readonly dataPropertyName?: string

Name of the binary property in which the image data can be found Default: "data"

Source§

readonly dataPropertyNameComposite?: string

The name of the binary property which contains the data of the image to composite on top of image which is found in Property Name

Source§

readonly degreesX?: number

X (horizontal) shear degrees

Source§

readonly degreesY?: number

Y (vertical) shear degrees

Source§

readonly endPositionX?: number

X (horizontal) end position of the primitive Default: 250

Source§

readonly endPositionY?: number

Y (horizontal) end position of the primitive Default: 250

Source§

readonly fontColor?: string

Color of the text Default: "#000000"

Source§

readonly fontSize?: number

Size of the text Default: 18

Source§

readonly height?: number

The height of the image to create Default: 50 Type options: {"minValue":1}

Source§

readonly lineLength?: number

Max amount of characters in a line before a line-break should get added Default: 80 Type options: {"minValue":1}

Source§

readonly operation?:
    | "create"
    | "text"
    | "blur"
    | "border"
    | "composite"
    | "crop"
    | "draw"
    | "information"
    | "multiStep"
    | "resize"
    | "rotate"
    | "shear"
    | "transparent"

Default: "border"

Source§

readonly operations?: {
    operations: {
        backgroundColor?: string;
        blur?: number;
        borderColor?: string;
        borderHeight?: number;
        borderWidth?: number;
        color?: string;
        cornerRadius?: number;
        dataPropertyNameComposite?: string;
        degreesX?: number;
        degreesY?: number;
        endPositionX?: number;
        endPositionY?: number;
        font?: string;
        fontColor?: string;
        fontSize?: number;
        height?: number;
        lineLength?: number;
        operation?:
            | "create"
            | "text"
            | "blur"
            | "border"
            | "composite"
            | "crop"
            | "draw"
            | "resize"
            | "rotate"
            | "shear"
            | "transparent";
        operator?: | "Add"
        | "Atop"
        | "Bumpmap"
        | "Copy"
        | "CopyBlack"
        | "CopyBlue"
        | "CopyCyan"
        | "CopyGreen"
        | "CopyMagenta"
        | "CopyOpacity"
        | "CopyRed"
        | "CopyYellow"
        | "Difference"
        | "Divide"
        | "In"
        | "Minus"
        | "Multiply"
        | "Out"
        | "Over"
        | "Plus"
        | "Subtract"
        | "Xor";
        positionX?: number;
        positionY?: number;
        primitive?: "circle"
        | "line"
        | "rectangle";
        resizeOption?:
            | "ignoreAspectRatio"
            | "maximumArea"
            | "minimumArea"
            | "onlyIfLarger"
            | "onlyIfSmaller"
            | "percent";
        rotate?: number;
        sigma?: number;
        startPositionX?: number;
        startPositionY?: number;
        text?: string;
        width?: number;
    }[];
}

The operations to perform Default: {} Type options: {"multipleValues":true,"sortable":true}

Source§

readonly operator?:
    | "Add"
    | "Atop"
    | "Bumpmap"
    | "Copy"
    | "CopyBlack"
    | "CopyBlue"
    | "CopyCyan"
    | "CopyGreen"
    | "CopyMagenta"
    | "CopyOpacity"
    | "CopyRed"
    | "CopyYellow"
    | "Difference"
    | "Divide"
    | "In"
    | "Minus"
    | "Multiply"
    | "Out"
    | "Over"
    | "Plus"
    | "Subtract"
    | "Xor"

The operator to use to combine the images Default: "Over"

Source§

readonly options?: {
    fileName?: string;
    font?: string;
    format?:
        | "png"
        | "bmp"
        | "gif"
        | "jpeg"
        | "tiff"
        | "webp";
    quality?: number;
}

Default: {}

Source§

readonly positionX?: number

X (horizontal) position of the text Default: 50

Source§

readonly positionY?: number

Y (vertical) position of the text Default: 50

Source§

readonly primitive?: "circle" | "line" | "rectangle"

The primitive to draw Default: "rectangle"

Source§

readonly resizeOption?:
    | "ignoreAspectRatio"
    | "maximumArea"
    | "minimumArea"
    | "onlyIfLarger"
    | "onlyIfSmaller"
    | "percent"

How to resize the image Default: "maximumArea"

Source§

readonly rotate?: number

How much the image should be rotated Type options: {"minValue":-360,"maxValue":360}

Source§

readonly sigma?: number

The sigma of the blur Default: 2 Type options: {"minValue":0,"maxValue":1000}

Source§

readonly startPositionX?: number

X (horizontal) start position of the primitive Default: 50

Source§

readonly startPositionY?: number

Y (horizontal) start position of the primitive Default: 50

Source§

readonly text?: string

Text to write on the image Type options: {"rows":5}

Source§

readonly width?: number

The width of the image to create Default: 50 Type options: {"minValue":1}