Type alias AbstractGraphicOptions<T>

AbstractGraphicOptions<T>: T extends POINT | LABEL | CIRCLE
    ? {
        attr?: {
            [key: string]: string | number;
        };
        id?: string;
        name?: string;
        position?: Point3Deg;
        show?: boolean;
        style?: Partial<GraphicStyleMap[T]>;
        type: T;
    }
    : T extends POLYLINE | POLYGON
        ? {
            attr?: {
                [key: string]: string | number;
            };
            id?: string;
            name?: string;
            positions?: Point3DegList;
            show?: boolean;
            style?: Partial<GraphicStyleMap[T]>;
            type: T;
        }
        : T extends ELLIPSE
            ? {
                attr?: {
                    [key: string]: string | number;
                };
                id?: string;
                name?: string;
                position?: Point3Deg;
                positions?: Point3DegList;
                show?: boolean;
                style?: Partial<GraphicStyleMap[T]>;
                type: T;
            }
            : T extends SYMBOL
                ? {
                    attr?: {
                        [key: string]: string | number;
                    };
                    code: string;
                    id?: string;
                    name?: string;
                    position?: Point3Deg;
                    positions?: Point3DegList;
                    show?: boolean;
                    style?: Partial<GraphicStyleMap[T]>;
                    type: T;
                }
                : never

Type Parameters