Interface TaxonomyNode

Datatype for a taxonomy node

interface TaxonomyNode {
    borderWidth?: number;
    borderWidthSelected?: number;
    brokenImage?: string;
    chosen?: boolean | NodeChosen;
    color?: string | Color;
    depth: number;
    fixed?: boolean | {
        x?: boolean;
        y?: boolean;
    };
    font?: string | Font;
    group?: string;
    hidden?: boolean;
    icon?: {
        code?: string;
        color?: string;
        face?: string;
        size?: number;
        weight?: string | number;
    };
    id: number;
    image?: string | Image;
    imagePadding?: number | ImagePadding;
    label: string;
    labelHighlightBold?: boolean;
    level?: number;
    margin?: {
        bottom?: number;
        left?: number;
        right?: number;
        top?: number;
    };
    mass?: number;
    opacity?: number;
    parent: number;
    physics?: boolean;
    scaling?: OptionsScaling;
    shadow?: boolean | OptionsShadow;
    shape?: string;
    shapeProperties?: {
        borderDashes?: boolean | number[];
        borderRadius?: number;
        coordinateOrigin?: string;
        interpolation?: boolean;
        useBorderWithImage?: boolean;
        useImageSize?: boolean;
    };
    size?: number;
    title?: string | HTMLElement;
    value?: number;
    weight: number;
    widthConstraint?: number | boolean | {
        maximum?: number;
        minimum?: number;
    };
    x?: number;
    y?: number;
}

Hierarchy

  • Partial<NodeOptions>
    • TaxonomyNode

Properties

borderWidth?: number
borderWidthSelected?: number
brokenImage?: string
chosen?: boolean | NodeChosen
color?: string | Color
depth: number
fixed?: boolean | {
    x?: boolean;
    y?: boolean;
}
font?: string | Font
group?: string
hidden?: boolean
icon?: {
    code?: string;
    color?: string;
    face?: string;
    size?: number;
    weight?: string | number;
}
id: number
image?: string | Image
imagePadding?: number | ImagePadding
label: string
labelHighlightBold?: boolean
level?: number
margin?: {
    bottom?: number;
    left?: number;
    right?: number;
    top?: number;
}
mass?: number
opacity?: number
parent: number
physics?: boolean
scaling?: OptionsScaling
shadow?: boolean | OptionsShadow
shape?: string
shapeProperties?: {
    borderDashes?: boolean | number[];
    borderRadius?: number;
    coordinateOrigin?: string;
    interpolation?: boolean;
    useBorderWithImage?: boolean;
    useImageSize?: boolean;
}
size?: number
title?: string | HTMLElement
value?: number
weight: number
widthConstraint?: number | boolean | {
    maximum?: number;
    minimum?: number;
}

If false, no widthConstraint is applied. If a number is specified, the minimum and maximum widths of the node are set to the value. The node's label's lines will be broken on spaces to stay below the maximum and the node's width will be set to the minimum if less than the value.

x?: number
y?: number