linwenling
2023-09-26 3e177af9004b9d5d5b5fc9b6c5fb393d6f61b377
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import * as graphic from './graphic.js';
import { Dictionary } from 'zrender/lib/core/types.js';
import { SymbolOptionMixin, ZRColor } from './types.js';
export declare type ECSymbol = graphic.Path & {
    __isEmptyBrush?: boolean;
    setColor: (color: ZRColor, innerColor?: ZRColor) => void;
    getColor: () => ZRColor;
};
export declare const symbolBuildProxies: Dictionary<ECSymbol>;
/**
 * Create a symbol element with given symbol configuration: shape, x, y, width, height, color
 */
export declare function createSymbol(symbolType: string, x: number, y: number, w: number, h: number, color?: ZRColor, keepAspect?: boolean): ECSymbol;
export declare function normalizeSymbolSize(symbolSize: number | number[]): [number, number];
export declare function normalizeSymbolOffset(symbolOffset: SymbolOptionMixin['symbolOffset'], symbolSize: number[]): [number, number];