8cb068d7ea5ac40ef1322adf58fcbc01a1d299cd0951dc7a196693214015448d057e09ade534eb38a2072f5e674954aaa67458f3161df1964cfd7981d4a868 872 B

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