Hiyve Components - v1.0.0
    Preparing search index...

    Interface SelectionShortcutMenuProps

    interface SelectionShortcutMenuProps {
        canvas: Canvas | null;
        fillLabel?: string;
        gap?: number;
        lineLabel?: string;
        noColorLabel?: string;
        onDelete: () => void;
        onDuplicate: () => void;
        onRecolor: (target: SelectionRecolorTarget, color: string | null) => void;
        palette: string[];
    }
    Index

    Properties

    canvas: Canvas | null

    The Fabric canvas to observe selection/transform events on.

    fillLabel?: string

    Tooltip label for the Fill button.

    'Fill color'
    
    gap?: number

    Gap in pixels between the object's bottom edge and the menu.

    8
    
    lineLabel?: string

    Tooltip label for the Line button.

    'Line color'
    
    noColorLabel?: string

    Tooltip label for the "no color / transparent" swatch.

    'No color'
    
    onDelete: () => void

    Called when delete is clicked.

    onDuplicate: () => void

    Called when duplicate is clicked.

    onRecolor: (target: SelectionRecolorTarget, color: string | null) => void

    Called when a swatch is clicked. color is null when the user picks the "transparent" option, allowing the caller to clear that property.

    palette: string[]

    Colors offered as swatches in the Fill / Line popovers.