Variable styleConst

style: {
    format_version: string;
    generated_by: string;
    style: (
        | {
            css: {
                "background-color"?: undefined;
                "background-opacity": number;
                "border-opacity": number;
                "border-width": (node: any) => 0 | 1;
                color?: undefined;
                display?: undefined;
                "edge-text-rotation"?: undefined;
                "font-family": string;
                "font-size": number;
                "font-weight": string;
                height: number;
                label: (node: any) => any;
                "mid-target-arrow-shape"?: undefined;
                "min-zoomed-font-size": number;
                opacity?: undefined;
                shape: string | (node: NodeSingular) => string;
                "text-halign": string;
                "text-margin-y"?: undefined;
                "text-opacity": number;
                "text-valign": string;
                visibility?: undefined;
                width: number;
                "z-compound-depth"?: undefined;
            };
            selector: string;
        }
        | {
            css: {
                "background-color"?: undefined;
                "background-opacity"?: undefined;
                "border-opacity"?: undefined;
                "border-width": number;
                color?: undefined;
                display?: undefined;
                "edge-text-rotation"?: undefined;
                "font-family"?: undefined;
                "font-size"?: undefined;
                "font-weight"?: undefined;
                height?: undefined;
                label?: undefined;
                "mid-target-arrow-shape"?: undefined;
                "min-zoomed-font-size"?: undefined;
                opacity?: undefined;
                shape?: undefined;
                "text-halign"?: undefined;
                "text-margin-y"?: undefined;
                "text-opacity"?: undefined;
                "text-valign"?: undefined;
                visibility?: undefined;
                width?: undefined;
                "z-compound-depth"?: undefined;
            };
            selector: string;
        }
        | {
            css: {
                "background-color"?: undefined;
                "background-opacity"?: undefined;
                "border-opacity"?: undefined;
                "border-width"?: undefined;
                color?: undefined;
                display?: undefined;
                "edge-text-rotation": string;
                "font-family"?: undefined;
                "font-size": number;
                "font-weight"?: undefined;
                height?: undefined;
                label?: undefined;
                "mid-target-arrow-shape"?: undefined;
                "min-zoomed-font-size": number;
                opacity: number;
                shape?: undefined;
                "text-halign"?: undefined;
                "text-margin-y": string;
                "text-opacity"?: undefined;
                "text-valign"?: undefined;
                visibility?: undefined;
                width: number;
                "z-compound-depth": string;
            };
            selector: string;
        }
        | {
            css: {
                "background-color"?: undefined;
                "background-opacity"?: undefined;
                "border-opacity"?: undefined;
                "border-width"?: undefined;
                color?: undefined;
                display?: undefined;
                "edge-text-rotation"?: undefined;
                "font-family"?: undefined;
                "font-size"?: undefined;
                "font-weight"?: undefined;
                height?: undefined;
                label: (edge: any) => any;
                "mid-target-arrow-shape": (edge: any) => "triangle" | "none";
                "min-zoomed-font-size"?: undefined;
                opacity?: undefined;
                shape?: undefined;
                "text-halign"?: undefined;
                "text-margin-y"?: undefined;
                "text-opacity": number;
                "text-valign"?: undefined;
                visibility?: undefined;
                width?: undefined;
                "z-compound-depth"?: undefined;
            };
            selector: string;
        }
        | {
            css: {
                "background-color"?: undefined;
                "background-opacity"?: undefined;
                "border-opacity"?: undefined;
                "border-width"?: undefined;
                color?: undefined;
                display?: undefined;
                "edge-text-rotation"?: undefined;
                "font-family"?: undefined;
                "font-size"?: undefined;
                "font-weight"?: undefined;
                height?: undefined;
                label?: undefined;
                "mid-target-arrow-shape"?: undefined;
                "min-zoomed-font-size"?: undefined;
                opacity: number;
                shape?: undefined;
                "text-halign"?: undefined;
                "text-margin-y"?: undefined;
                "text-opacity"?: undefined;
                "text-valign"?: undefined;
                visibility?: undefined;
                width: number;
                "z-compound-depth"?: undefined;
            };
            selector: string;
        }
        | {
            css: {
                "background-color"?: undefined;
                "background-opacity"?: undefined;
                "border-opacity"?: undefined;
                "border-width"?: undefined;
                color?: undefined;
                display: string;
                "edge-text-rotation"?: undefined;
                "font-family"?: undefined;
                "font-size"?: undefined;
                "font-weight"?: undefined;
                height?: undefined;
                label?: undefined;
                "mid-target-arrow-shape"?: undefined;
                "min-zoomed-font-size"?: undefined;
                opacity?: undefined;
                shape?: undefined;
                "text-halign"?: undefined;
                "text-margin-y"?: undefined;
                "text-opacity"?: undefined;
                "text-valign"?: undefined;
                visibility?: undefined;
                width?: undefined;
                "z-compound-depth"?: undefined;
            };
            selector: string;
        }
        | {
            css: {
                "background-color"?: undefined;
                "background-opacity"?: undefined;
                "border-opacity"?: undefined;
                "border-width"?: undefined;
                color?: undefined;
                display?: undefined;
                "edge-text-rotation"?: undefined;
                "font-family"?: undefined;
                "font-size"?: undefined;
                "font-weight"?: undefined;
                height?: undefined;
                label?: undefined;
                "mid-target-arrow-shape"?: undefined;
                "min-zoomed-font-size"?: undefined;
                opacity?: undefined;
                shape?: undefined;
                "text-halign"?: undefined;
                "text-margin-y"?: undefined;
                "text-opacity"?: undefined;
                "text-valign"?: undefined;
                visibility: string;
                width?: undefined;
                "z-compound-depth"?: undefined;
            };
            selector: string;
        }
        | {
            css: {
                "background-color"?: undefined;
                "background-opacity": string;
                "border-opacity"?: undefined;
                "border-width": number;
                color?: undefined;
                display?: undefined;
                "edge-text-rotation"?: undefined;
                "font-family"?: undefined;
                "font-size": number;
                "font-weight"?: undefined;
                height?: undefined;
                label?: undefined;
                "mid-target-arrow-shape"?: undefined;
                "min-zoomed-font-size": number;
                opacity?: undefined;
                shape: string;
                "text-halign"?: undefined;
                "text-margin-y": string;
                "text-opacity"?: undefined;
                "text-valign": string;
                visibility?: undefined;
                width?: undefined;
                "z-compound-depth"?: undefined;
            };
            selector: string;
        }
        | {
            css: {
                "background-color"?: undefined;
                "background-opacity"?: undefined;
                "border-opacity"?: undefined;
                "border-width"?: undefined;
                color?: undefined;
                display?: undefined;
                "edge-text-rotation"?: undefined;
                "font-family"?: undefined;
                "font-size"?: undefined;
                "font-weight"?: undefined;
                height?: undefined;
                label?: undefined;
                "mid-target-arrow-shape"?: undefined;
                "min-zoomed-font-size"?: undefined;
                opacity?: undefined;
                shape: string;
                "text-halign"?: undefined;
                "text-margin-y"?: undefined;
                "text-opacity"?: undefined;
                "text-valign"?: undefined;
                visibility?: undefined;
                width?: undefined;
                "z-compound-depth"?: undefined;
            };
            selector: string;
        }
        | {
            css: {
                "background-color": (node: any) => string;
                "background-opacity"?: undefined;
                "border-opacity"?: undefined;
                "border-width"?: undefined;
                color: string;
                display?: undefined;
                "edge-text-rotation"?: undefined;
                "font-family"?: undefined;
                "font-size"?: undefined;
                "font-weight"?: undefined;
                height?: undefined;
                label?: undefined;
                "mid-target-arrow-shape"?: undefined;
                "min-zoomed-font-size"?: undefined;
                opacity?: undefined;
                shape?: undefined;
                "text-halign"?: undefined;
                "text-margin-y"?: undefined;
                "text-opacity"?: undefined;
                "text-valign"?: undefined;
                visibility?: undefined;
                width?: undefined;
                "z-compound-depth"?: undefined;
            };
            selector: string;
        }
    )[];
    target_cytoscapejs_version: string;
    title: string;
} = ...

Type declaration

  • format_version: string
  • generated_by: string
  • style: (
        | {
            css: {
                "background-color"?: undefined;
                "background-opacity": number;
                "border-opacity": number;
                "border-width": (node: any) => 0 | 1;
                color?: undefined;
                display?: undefined;
                "edge-text-rotation"?: undefined;
                "font-family": string;
                "font-size": number;
                "font-weight": string;
                height: number;
                label: (node: any) => any;
                "mid-target-arrow-shape"?: undefined;
                "min-zoomed-font-size": number;
                opacity?: undefined;
                shape: string | (node: NodeSingular) => string;
                "text-halign": string;
                "text-margin-y"?: undefined;
                "text-opacity": number;
                "text-valign": string;
                visibility?: undefined;
                width: number;
                "z-compound-depth"?: undefined;
            };
            selector: string;
        }
        | {
            css: {
                "background-color"?: undefined;
                "background-opacity"?: undefined;
                "border-opacity"?: undefined;
                "border-width": number;
                color?: undefined;
                display?: undefined;
                "edge-text-rotation"?: undefined;
                "font-family"?: undefined;
                "font-size"?: undefined;
                "font-weight"?: undefined;
                height?: undefined;
                label?: undefined;
                "mid-target-arrow-shape"?: undefined;
                "min-zoomed-font-size"?: undefined;
                opacity?: undefined;
                shape?: undefined;
                "text-halign"?: undefined;
                "text-margin-y"?: undefined;
                "text-opacity"?: undefined;
                "text-valign"?: undefined;
                visibility?: undefined;
                width?: undefined;
                "z-compound-depth"?: undefined;
            };
            selector: string;
        }
        | {
            css: {
                "background-color"?: undefined;
                "background-opacity"?: undefined;
                "border-opacity"?: undefined;
                "border-width"?: undefined;
                color?: undefined;
                display?: undefined;
                "edge-text-rotation": string;
                "font-family"?: undefined;
                "font-size": number;
                "font-weight"?: undefined;
                height?: undefined;
                label?: undefined;
                "mid-target-arrow-shape"?: undefined;
                "min-zoomed-font-size": number;
                opacity: number;
                shape?: undefined;
                "text-halign"?: undefined;
                "text-margin-y": string;
                "text-opacity"?: undefined;
                "text-valign"?: undefined;
                visibility?: undefined;
                width: number;
                "z-compound-depth": string;
            };
            selector: string;
        }
        | {
            css: {
                "background-color"?: undefined;
                "background-opacity"?: undefined;
                "border-opacity"?: undefined;
                "border-width"?: undefined;
                color?: undefined;
                display?: undefined;
                "edge-text-rotation"?: undefined;
                "font-family"?: undefined;
                "font-size"?: undefined;
                "font-weight"?: undefined;
                height?: undefined;
                label: (edge: any) => any;
                "mid-target-arrow-shape": (edge: any) => "triangle" | "none";
                "min-zoomed-font-size"?: undefined;
                opacity?: undefined;
                shape?: undefined;
                "text-halign"?: undefined;
                "text-margin-y"?: undefined;
                "text-opacity": number;
                "text-valign"?: undefined;
                visibility?: undefined;
                width?: undefined;
                "z-compound-depth"?: undefined;
            };
            selector: string;
        }
        | {
            css: {
                "background-color"?: undefined;
                "background-opacity"?: undefined;
                "border-opacity"?: undefined;
                "border-width"?: undefined;
                color?: undefined;
                display?: undefined;
                "edge-text-rotation"?: undefined;
                "font-family"?: undefined;
                "font-size"?: undefined;
                "font-weight"?: undefined;
                height?: undefined;
                label?: undefined;
                "mid-target-arrow-shape"?: undefined;
                "min-zoomed-font-size"?: undefined;
                opacity: number;
                shape?: undefined;
                "text-halign"?: undefined;
                "text-margin-y"?: undefined;
                "text-opacity"?: undefined;
                "text-valign"?: undefined;
                visibility?: undefined;
                width: number;
                "z-compound-depth"?: undefined;
            };
            selector: string;
        }
        | {
            css: {
                "background-color"?: undefined;
                "background-opacity"?: undefined;
                "border-opacity"?: undefined;
                "border-width"?: undefined;
                color?: undefined;
                display: string;
                "edge-text-rotation"?: undefined;
                "font-family"?: undefined;
                "font-size"?: undefined;
                "font-weight"?: undefined;
                height?: undefined;
                label?: undefined;
                "mid-target-arrow-shape"?: undefined;
                "min-zoomed-font-size"?: undefined;
                opacity?: undefined;
                shape?: undefined;
                "text-halign"?: undefined;
                "text-margin-y"?: undefined;
                "text-opacity"?: undefined;
                "text-valign"?: undefined;
                visibility?: undefined;
                width?: undefined;
                "z-compound-depth"?: undefined;
            };
            selector: string;
        }
        | {
            css: {
                "background-color"?: undefined;
                "background-opacity"?: undefined;
                "border-opacity"?: undefined;
                "border-width"?: undefined;
                color?: undefined;
                display?: undefined;
                "edge-text-rotation"?: undefined;
                "font-family"?: undefined;
                "font-size"?: undefined;
                "font-weight"?: undefined;
                height?: undefined;
                label?: undefined;
                "mid-target-arrow-shape"?: undefined;
                "min-zoomed-font-size"?: undefined;
                opacity?: undefined;
                shape?: undefined;
                "text-halign"?: undefined;
                "text-margin-y"?: undefined;
                "text-opacity"?: undefined;
                "text-valign"?: undefined;
                visibility: string;
                width?: undefined;
                "z-compound-depth"?: undefined;
            };
            selector: string;
        }
        | {
            css: {
                "background-color"?: undefined;
                "background-opacity": string;
                "border-opacity"?: undefined;
                "border-width": number;
                color?: undefined;
                display?: undefined;
                "edge-text-rotation"?: undefined;
                "font-family"?: undefined;
                "font-size": number;
                "font-weight"?: undefined;
                height?: undefined;
                label?: undefined;
                "mid-target-arrow-shape"?: undefined;
                "min-zoomed-font-size": number;
                opacity?: undefined;
                shape: string;
                "text-halign"?: undefined;
                "text-margin-y": string;
                "text-opacity"?: undefined;
                "text-valign": string;
                visibility?: undefined;
                width?: undefined;
                "z-compound-depth"?: undefined;
            };
            selector: string;
        }
        | {
            css: {
                "background-color"?: undefined;
                "background-opacity"?: undefined;
                "border-opacity"?: undefined;
                "border-width"?: undefined;
                color?: undefined;
                display?: undefined;
                "edge-text-rotation"?: undefined;
                "font-family"?: undefined;
                "font-size"?: undefined;
                "font-weight"?: undefined;
                height?: undefined;
                label?: undefined;
                "mid-target-arrow-shape"?: undefined;
                "min-zoomed-font-size"?: undefined;
                opacity?: undefined;
                shape: string;
                "text-halign"?: undefined;
                "text-margin-y"?: undefined;
                "text-opacity"?: undefined;
                "text-valign"?: undefined;
                visibility?: undefined;
                width?: undefined;
                "z-compound-depth"?: undefined;
            };
            selector: string;
        }
        | {
            css: {
                "background-color": (node: any) => string;
                "background-opacity"?: undefined;
                "border-opacity"?: undefined;
                "border-width"?: undefined;
                color: string;
                display?: undefined;
                "edge-text-rotation"?: undefined;
                "font-family"?: undefined;
                "font-size"?: undefined;
                "font-weight"?: undefined;
                height?: undefined;
                label?: undefined;
                "mid-target-arrow-shape"?: undefined;
                "min-zoomed-font-size"?: undefined;
                opacity?: undefined;
                shape?: undefined;
                "text-halign"?: undefined;
                "text-margin-y"?: undefined;
                "text-opacity"?: undefined;
                "text-valign"?: undefined;
                visibility?: undefined;
                width?: undefined;
                "z-compound-depth"?: undefined;
            };
            selector: string;
        }
    )[]
  • target_cytoscapejs_version: string
  • title: string