import View from "../../View";

export class RadialMenuElementDefinition {
    outerRadius: number
    innerRadius: number
    padding: number
    share: number
    action: () => any
    fill: string | number
    offset: number
    cssClass: string | null
    iconView: View | null
    iconSize: number
    autoSizeIcon: boolean
    name: string
    nameRadiusOffset: number
    nameFill: string | number
    onSelected: () => any | null
    onDeSelected: () => any | null

    readonly isRadialMenuElementDefinition: boolean

    static from(options: {
        share?: number
        action?: () => any
        fill?: string | number
        offset?: number
        padding?: number
        innerRadius: number
        outerRadius: number
        iconView?: View
        iconSize?: number
        autoSizeIcon?: boolean
        name?: string
        nameRadiusOffset?: number
        nameFill?: string | number
        cssClass?: string
    }): RadialMenuElementDefinition
}