import { c as ElementEventAlias, f as PublicComponent, l as FontStyle, p as WithOnce, t as VChartSlotsExtension, u as FontWeight } from "./index-BujxhN-1.js"; import { ExtractPublicPropTypes, PropType, Slot, SlotsType } from "vue"; import { ElementEvent } from "echarts/core"; import { Color, CustomSeriesRenderItemReturn, GraphicComponentOption, PatternObject, TooltipComponentOption } from "echarts"; //#region src/graphic/types.d.ts type GraphicEventName = Exclude; type GraphicOnEventName = `on${GraphicEventName}`; type GraphicEventAlias = Exclude; type GraphicEmits = WithOnce<{ [key in GraphicEventName | GraphicEventAlias]: (params: ElementEvent) => boolean | void; }>; //#endregion //#region src/graphic/props-common.d.ts type GraphicDuring = NonNullable["during"]>; type GraphicExtra = Record & { transition?: string | string[]; }; declare const TEXT_ATTACHMENT_PROP_KEYS: readonly ["textContent", "textConfig"]; declare const COMMON_PROP_KEYS: readonly ["id", "name", "x", "y", "rotation", "scaleX", "scaleY", "skewX", "skewY", "originX", "originY", "anchorX", "anchorY", "left", "right", "top", "bottom", "bounding", "silent", "draggable", "ignore", "extra", "info", "tooltip", "clipPath", "textContent", "textConfig", "transition", "enterFrom", "leaveTo", "during", "enterAnimation", "updateAnimation", "leaveAnimation", "keyframeAnimation"]; declare const GROUP_PROP_KEYS: readonly ["width", "height"]; declare const DISPLAYABLE_PROP_KEYS: readonly ["z", "z2", "zlevel", "cursor", "invisible"]; declare const PATH_PROP_KEYS: readonly ["autoBatch"]; declare const TEXT_COMMON_STYLE_KEYS: readonly ["shadowBlur", "shadowOffsetX", "shadowOffsetY", "shadowColor", "opacity"]; declare const COMMON_STYLE_KEYS: readonly ["shadowBlur", "shadowOffsetX", "shadowOffsetY", "shadowColor", "opacity", "blend"]; declare const PATH_STYLE_KEYS: readonly ["fill", "stroke", "strokeNoScale", "fillOpacity", "strokeOpacity", "lineWidth", "lineDash", "lineDashOffset", "decal", "strokePercent", "lineCap", "lineJoin", "miterLimit", "strokeFirst"]; declare const TEXT_STYLE_KEYS: readonly ["fill", "stroke", "strokeNoScale", "fillOpacity", "strokeOpacity", "lineWidth", "lineDash", "lineDashOffset", "text", "font", "textFont", "fontStyle", "fontWeight", "fontFamily", "fontSize", "align", "verticalAlign", "lineHeight", "tag", "backgroundColor", "padding", "margin", "borderColor", "borderWidth", "borderRadius", "borderDash", "borderDashOffset", "rich", "textStrokeWidth", "textAlign", "textVerticalAlign", "textLineHeight", "textShadowBlur", "textShadowOffsetX", "textShadowOffsetY", "textShadowColor", "width", "height", "overflow", "lineOverflow", "ellipsis", "placeholder", "truncateMinChar"]; declare const IMAGE_STYLE_KEYS: readonly ["image", "x", "y", "width", "height", "sx", "sy", "sWidth", "sHeight"]; type GraphicCommonPropKey = (typeof COMMON_PROP_KEYS)[number]; type GraphicGroupPropKey = (typeof GROUP_PROP_KEYS)[number]; type GraphicDisplayablePropKey = (typeof DISPLAYABLE_PROP_KEYS)[number]; type GraphicPathPropKey = (typeof PATH_PROP_KEYS)[number]; type GraphicTextAttachmentPropKey = (typeof TEXT_ATTACHMENT_PROP_KEYS)[number]; type GraphicTextCommonStyleKey = (typeof TEXT_COMMON_STYLE_KEYS)[number]; type GraphicCommonStyleKey = (typeof COMMON_STYLE_KEYS)[number]; type GraphicPathStyleKey = (typeof PATH_STYLE_KEYS)[number]; type GraphicTextStyleKey = (typeof TEXT_STYLE_KEYS)[number]; type GraphicImageStyleKey = (typeof IMAGE_STYLE_KEYS)[number]; type GraphicImageSource = string | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement; type GraphicTextAlign = "left" | "center" | "right"; type GraphicTextVerticalAlign = "top" | "middle" | "bottom"; type GraphicTextOverflow = "break" | "breakAll" | "truncate" | "none"; type GraphicOptionProp = T extends { [P in K]?: infer V; } ? NonNullable : never; type GraphicAnimationOption = GraphicOptionProp<"enterAnimation">; type GraphicKeyframeAnimationOption = GraphicOptionProp<"keyframeAnimation">; declare const commonProps: { readonly image: PropType; readonly sx: NumberConstructor; readonly sy: NumberConstructor; readonly sWidth: NumberConstructor; readonly sHeight: NumberConstructor; readonly text: StringConstructor; readonly font: StringConstructor; readonly textFont: StringConstructor; readonly fontStyle: PropType; readonly fontWeight: PropType; readonly fontFamily: StringConstructor; readonly fontSize: PropType; readonly align: PropType; readonly verticalAlign: PropType; readonly lineHeight: NumberConstructor; readonly tag: StringConstructor; readonly backgroundColor: PropType; readonly padding: PropType; readonly margin: PropType; readonly borderColor: StringConstructor; readonly borderWidth: NumberConstructor; readonly borderRadius: PropType; readonly borderDash: { type: PropType; default: undefined; }; readonly borderDashOffset: NumberConstructor; readonly rich: PropType>; readonly textStrokeWidth: NumberConstructor; readonly textAlign: PropType; readonly textVerticalAlign: PropType; readonly textLineHeight: NumberConstructor; readonly textShadowBlur: NumberConstructor; readonly textShadowOffsetX: NumberConstructor; readonly textShadowOffsetY: NumberConstructor; readonly textShadowColor: StringConstructor; readonly overflow: PropType; readonly lineOverflow: PropType<"truncate">; readonly ellipsis: StringConstructor; readonly placeholder: StringConstructor; readonly truncateMinChar: NumberConstructor; readonly fill: PropType; readonly stroke: PropType; readonly decal: PropType; readonly strokePercent: NumberConstructor; readonly strokeNoScale: { type: BooleanConstructor; default: undefined; }; readonly fillOpacity: NumberConstructor; readonly strokeOpacity: NumberConstructor; readonly lineWidth: NumberConstructor; readonly lineDash: { type: PropType; default: undefined; }; readonly lineDashOffset: NumberConstructor; readonly lineCap: PropType; readonly lineJoin: PropType; readonly miterLimit: NumberConstructor; readonly strokeFirst: { type: BooleanConstructor; default: undefined; }; readonly shadowBlur: NumberConstructor; readonly shadowOffsetX: NumberConstructor; readonly shadowOffsetY: NumberConstructor; readonly shadowColor: StringConstructor; readonly opacity: NumberConstructor; readonly blend: StringConstructor; readonly shape: PropType>; readonly style: PropType; readonly shapeTransition: PropType; readonly styleTransition: PropType; readonly autoBatch: { type: BooleanConstructor; default: undefined; }; readonly width: NumberConstructor; readonly height: NumberConstructor; readonly id: PropType; readonly name: StringConstructor; readonly x: NumberConstructor; readonly y: NumberConstructor; readonly rotation: NumberConstructor; readonly scaleX: NumberConstructor; readonly scaleY: NumberConstructor; readonly skewX: NumberConstructor; readonly skewY: NumberConstructor; readonly originX: NumberConstructor; readonly originY: NumberConstructor; readonly anchorX: NumberConstructor; readonly anchorY: NumberConstructor; readonly left: PropType; readonly right: PropType; readonly top: PropType; readonly bottom: PropType; readonly bounding: PropType<"raw" | "all">; readonly z: NumberConstructor; readonly z2: NumberConstructor; readonly zlevel: NumberConstructor; readonly silent: { type: BooleanConstructor; default: undefined; }; readonly draggable: { type: PropType; default: undefined; }; readonly cursor: StringConstructor; readonly ignore: { type: BooleanConstructor; default: undefined; }; readonly invisible: { type: BooleanConstructor; default: undefined; }; readonly extra: PropType; readonly info: PropType; readonly tooltip: PropType; readonly clipPath: { type: PropType; default: undefined; }; readonly textContent: PropType>; readonly textConfig: PropType; readonly transition: PropType; readonly enterFrom: PropType; readonly leaveTo: PropType; readonly during: PropType; readonly enterAnimation: PropType; readonly updateAnimation: PropType; readonly leaveAnimation: PropType; readonly keyframeAnimation: PropType; }; declare const textPropOverrides: { readonly width: PropType; readonly fill: StringConstructor; readonly stroke: StringConstructor; readonly lineDash: { type: PropType; default: undefined; }; }; type GraphicCommonProps = Omit, "width"> & Pick, "width">; //#endregion //#region src/graphic/props-shape.d.ts declare const SHAPE_KEYS_BY_TYPE: { readonly rect: readonly ["x", "y", "width", "height", "r"]; readonly circle: readonly ["cx", "cy", "r"]; readonly ellipse: readonly ["cx", "cy", "rx", "ry"]; readonly sector: readonly ["cx", "cy", "r", "r0", "startAngle", "endAngle", "clockwise", "cornerRadius"]; readonly ring: readonly ["cx", "cy", "r", "r0"]; readonly arc: readonly ["cx", "cy", "r", "startAngle", "endAngle", "clockwise"]; readonly line: readonly ["x1", "y1", "x2", "y2", "percent"]; readonly polyline: readonly ["points", "percent", "smooth", "smoothConstraint"]; readonly polygon: readonly ["points", "smooth", "smoothConstraint"]; readonly bezierCurve: readonly ["x1", "y1", "x2", "y2", "cpx1", "cpy1", "cpx2", "cpy2", "percent"]; }; declare const shapeProps: { readonly x: NumberConstructor; readonly y: NumberConstructor; readonly cx: NumberConstructor; readonly cy: NumberConstructor; readonly rx: NumberConstructor; readonly ry: NumberConstructor; readonly r: PropType; readonly r0: NumberConstructor; readonly x1: NumberConstructor; readonly y1: NumberConstructor; readonly x2: NumberConstructor; readonly y2: NumberConstructor; readonly cpx1: NumberConstructor; readonly cpy1: NumberConstructor; readonly cpx2: NumberConstructor; readonly cpy2: NumberConstructor; readonly startAngle: NumberConstructor; readonly endAngle: NumberConstructor; readonly percent: NumberConstructor; readonly points: PropType; readonly smooth: NumberConstructor; readonly smoothConstraint: PropType; readonly clockwise: { type: BooleanConstructor; default: undefined; }; readonly cornerRadius: PropType; }; type GraphicShapeProps = ExtractPublicPropTypes; //#endregion //#region src/graphic/component-type.d.ts type GraphicComponentType = "group" | "rect" | "circle" | "ellipse" | "text" | "line" | "polyline" | "polygon" | "image" | "sector" | "ring" | "arc" | "bezierCurve"; //#endregion //#region src/graphic/component-factory.d.ts declare const componentProps: { readonly x: NumberConstructor; readonly y: NumberConstructor; readonly cx: NumberConstructor; readonly cy: NumberConstructor; readonly rx: NumberConstructor; readonly ry: NumberConstructor; readonly r: import("vue").PropType; readonly r0: NumberConstructor; readonly x1: NumberConstructor; readonly y1: NumberConstructor; readonly x2: NumberConstructor; readonly y2: NumberConstructor; readonly cpx1: NumberConstructor; readonly cpy1: NumberConstructor; readonly cpx2: NumberConstructor; readonly cpy2: NumberConstructor; readonly startAngle: NumberConstructor; readonly endAngle: NumberConstructor; readonly percent: NumberConstructor; readonly points: import("vue").PropType; readonly smooth: NumberConstructor; readonly smoothConstraint: import("vue").PropType; readonly clockwise: { type: BooleanConstructor; default: undefined; }; readonly cornerRadius: import("vue").PropType; readonly image: import("vue").PropType; readonly sx: NumberConstructor; readonly sy: NumberConstructor; readonly sWidth: NumberConstructor; readonly sHeight: NumberConstructor; readonly text: StringConstructor; readonly font: StringConstructor; readonly textFont: StringConstructor; readonly fontStyle: import("vue").PropType; readonly fontWeight: import("vue").PropType; readonly fontFamily: StringConstructor; readonly fontSize: import("vue").PropType; readonly align: import("vue").PropType<"left" | "right" | "center">; readonly verticalAlign: import("vue").PropType<"top" | "bottom" | "middle">; readonly lineHeight: NumberConstructor; readonly tag: StringConstructor; readonly backgroundColor: import("vue").PropType; readonly padding: import("vue").PropType; readonly margin: import("vue").PropType; readonly borderColor: StringConstructor; readonly borderWidth: NumberConstructor; readonly borderRadius: import("vue").PropType; readonly borderDash: { type: import("vue").PropType; default: undefined; }; readonly borderDashOffset: NumberConstructor; readonly rich: import("vue").PropType>; readonly textStrokeWidth: NumberConstructor; readonly textAlign: import("vue").PropType<"left" | "right" | "center">; readonly textVerticalAlign: import("vue").PropType<"top" | "bottom" | "middle">; readonly textLineHeight: NumberConstructor; readonly textShadowBlur: NumberConstructor; readonly textShadowOffsetX: NumberConstructor; readonly textShadowOffsetY: NumberConstructor; readonly textShadowColor: StringConstructor; readonly overflow: import("vue").PropType<"break" | "breakAll" | "truncate" | "none">; readonly lineOverflow: import("vue").PropType<"truncate">; readonly ellipsis: StringConstructor; readonly placeholder: StringConstructor; readonly truncateMinChar: NumberConstructor; readonly fill: import("vue").PropType; readonly stroke: import("vue").PropType; readonly decal: import("vue").PropType; readonly strokePercent: NumberConstructor; readonly strokeNoScale: { type: BooleanConstructor; default: undefined; }; readonly fillOpacity: NumberConstructor; readonly strokeOpacity: NumberConstructor; readonly lineWidth: NumberConstructor; readonly lineDash: { type: import("vue").PropType; default: undefined; }; readonly lineDashOffset: NumberConstructor; readonly lineCap: import("vue").PropType; readonly lineJoin: import("vue").PropType; readonly miterLimit: NumberConstructor; readonly strokeFirst: { type: BooleanConstructor; default: undefined; }; readonly shadowBlur: NumberConstructor; readonly shadowOffsetX: NumberConstructor; readonly shadowOffsetY: NumberConstructor; readonly shadowColor: StringConstructor; readonly opacity: NumberConstructor; readonly blend: StringConstructor; readonly shape: import("vue").PropType>; readonly style: import("vue").PropType; readonly shapeTransition: import("vue").PropType; readonly styleTransition: import("vue").PropType; readonly autoBatch: { type: BooleanConstructor; default: undefined; }; readonly width: NumberConstructor; readonly height: NumberConstructor; readonly id: import("vue").PropType; readonly name: StringConstructor; readonly rotation: NumberConstructor; readonly scaleX: NumberConstructor; readonly scaleY: NumberConstructor; readonly skewX: NumberConstructor; readonly skewY: NumberConstructor; readonly originX: NumberConstructor; readonly originY: NumberConstructor; readonly anchorX: NumberConstructor; readonly anchorY: NumberConstructor; readonly left: import("vue").PropType; readonly right: import("vue").PropType; readonly top: import("vue").PropType; readonly bottom: import("vue").PropType; readonly bounding: import("vue").PropType<"raw" | "all">; readonly z: NumberConstructor; readonly z2: NumberConstructor; readonly zlevel: NumberConstructor; readonly silent: { type: BooleanConstructor; default: undefined; }; readonly draggable: { type: import("vue").PropType; default: undefined; }; readonly cursor: StringConstructor; readonly ignore: { type: BooleanConstructor; default: undefined; }; readonly invisible: { type: BooleanConstructor; default: undefined; }; readonly extra: import("vue").PropType & { transition?: string | string[]; }>; readonly info: import("vue").PropType; readonly tooltip: import("vue").PropType; readonly clipPath: { type: import("vue").PropType; default: undefined; }; readonly textContent: import("vue").PropType>; readonly textConfig: import("vue").PropType; readonly transition: import("vue").PropType; readonly enterFrom: import("vue").PropType; readonly leaveTo: import("vue").PropType; readonly during: import("vue").PropType; readonly enterAnimation: import("vue").PropType; readonly updateAnimation: import("vue").PropType; readonly leaveAnimation: import("vue").PropType; readonly keyframeAnimation: import("vue").PropType; }; type NestedShapePropKey = "shape" | "shapeTransition"; type NestedStylePropKey = "style" | "styleTransition"; type SharedPropKey = Exclude; type StylePropKey = T extends "group" ? never : NestedStylePropKey | (T extends "text" ? GraphicTextCommonStyleKey : GraphicCommonStyleKey) | (T extends keyof typeof SHAPE_KEYS_BY_TYPE ? GraphicPathStyleKey : T extends "text" ? GraphicTextStyleKey : T extends "image" ? GraphicImageStyleKey : never); type PathPropKey = T extends keyof typeof SHAPE_KEYS_BY_TYPE ? NestedShapePropKey | GraphicPathPropKey | (typeof SHAPE_KEYS_BY_TYPE)[T][number] : never; type GroupPropKey = T extends "group" ? GraphicGroupPropKey : never; type DisplayablePropKey = T extends "group" ? never : GraphicDisplayablePropKey; type ComponentPropDefinitions = T extends "text" ? Omit & typeof textPropOverrides : T extends "rect" ? typeof componentProps : Omit & { r: NumberConstructor; }; type ComponentProps = Pick, Extract | GroupPropKey | DisplayablePropKey | PathPropKey | StylePropKey, keyof typeof componentProps>>; type ComponentSlots = SlotsType>; type GraphicComponent = PublicComponent, Record, GraphicEmits, ComponentSlots>; //#endregion //#region src/graphic/components.d.ts declare const GGroup: GraphicComponent<"group">; declare const GRect: GraphicComponent<"rect">; declare const GCircle: GraphicComponent<"circle">; declare const GEllipse: GraphicComponent<"ellipse">; declare const GText: GraphicComponent<"text">; declare const GLine: GraphicComponent<"line">; declare const GPolyline: GraphicComponent<"polyline">; declare const GPolygon: GraphicComponent<"polygon">; declare const GImage: GraphicComponent<"image">; declare const GSector: GraphicComponent<"sector">; declare const GRing: GraphicComponent<"ring">; declare const GArc: GraphicComponent<"arc">; declare const GBezierCurve: GraphicComponent<"bezierCurve">; //#endregion export { GArc, GBezierCurve, GCircle, GEllipse, GGroup, GImage, GLine, GPolygon, GPolyline, GRect, GRing, GSector, GText, type GraphicCommonProps, type GraphicEmits, type GraphicEventName, type GraphicOnEventName, type GraphicShapeProps, type VChartSlotsExtension }; //# sourceMappingURL=graphic.d.ts.map