@univerjs-pro/engine-chart 1.5.2 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +40 -40
  3. package/lib/es/facade.js +1 -1
  4. package/lib/es/index.js +40 -40
  5. package/lib/facade.js +1 -1
  6. package/lib/index.js +40 -40
  7. package/lib/types/chart-3d/adapters/axes.d.ts +1 -1
  8. package/lib/types/chart-3d/adapters/element-events.d.ts +2 -1
  9. package/lib/types/chart-3d/adapters/render-input.d.ts +2 -2
  10. package/lib/types/chart-3d/adapters/transform.d.ts +2 -0
  11. package/lib/types/chart-3d/core/types.d.ts +1 -0
  12. package/lib/types/chart-3d/runtime/export-three-d-chart-image.d.ts +3 -0
  13. package/lib/types/chart-3d/runtime/three-d-chart-render-engine.d.ts +10 -0
  14. package/lib/types/chart-3d/{adapters/render-instance.d.ts → runtime/three-d-chart-render-instance.d.ts} +4 -4
  15. package/lib/types/chart-3d/runtime/types.d.ts +23 -0
  16. package/lib/types/chart-3d/{adapters/webgl-renderer.d.ts → runtime/webgl-scene-renderer.d.ts} +7 -4
  17. package/lib/types/chart-3d/webgl/chart-element-outline-item.d.ts +28 -0
  18. package/lib/types/chart-3d/webgl/draw-data.d.ts +4 -1
  19. package/lib/types/chart-3d/webgl/program.d.ts +1 -0
  20. package/lib/types/chart-3d/webgl/renderer.d.ts +6 -2
  21. package/lib/types/chart-3d/webgl/stroke.d.ts +3 -2
  22. package/lib/types/chart-builder/chart-types.d.ts +3 -1
  23. package/lib/types/chart-builder/configuration/radar.d.ts +3 -0
  24. package/lib/types/chart-element-interaction/chart-element-event.d.ts +28 -0
  25. package/lib/types/{models/chart-render/edit-overlay/resolve-chart-element-hit-layout.d.ts → chart-element-interaction/chart-element-hit-layout.d.ts} +4 -5
  26. package/lib/types/chart-element-interaction/chart-element-outline-controller.d.ts +24 -0
  27. package/lib/types/chart-element-interaction/geometry.d.ts +15 -0
  28. package/lib/types/chart-element-interaction/style.d.ts +4 -0
  29. package/lib/types/chart-element-interaction/three-d/types.d.ts +3 -0
  30. package/lib/types/{models/chart-render/edit-overlay/chart-element-edit-overlay.d.ts → chart-element-interaction/two-d/zrender-chart-element-outline.d.ts} +5 -7
  31. package/lib/types/chart-element-interaction/types.d.ts +6 -0
  32. package/lib/types/facade/builders/f-radar-chart-builder.d.ts +30 -1
  33. package/lib/types/index.d.ts +9 -2
  34. package/lib/types/models/chart-render/axes/chart-element-axis-id.d.ts +7 -4
  35. package/lib/types/models/chart-render/converter/render-spec-operators/trend-line/trendline-util.d.ts +9 -9
  36. package/lib/types/models/chart-render/converter/render-spec-operators/value-axis-scale.d.ts +0 -7
  37. package/lib/types/models/chart-render/echart-render-model/echart-render-engine.d.ts +13 -8
  38. package/lib/types/models/chart-render/echart-render-model/echart-render-model.d.ts +4 -1
  39. package/lib/types/models/common/constants/default-chart-style.d.ts +5 -1
  40. package/lib/types/plugin.d.ts +1 -1
  41. package/lib/types/source/chart-data-source-runtime.service.d.ts +55 -0
  42. package/lib/types/source/referenced-chart-data-source-binding.d.ts +23 -0
  43. package/lib/types/source/referenced-chart-data-source.d.ts +6 -0
  44. package/lib/types/source/resource-ref-chart-data-source.adapter.d.ts +22 -0
  45. package/lib/types/types.d.ts +52 -17
  46. package/lib/umd/facade.js +1 -1
  47. package/lib/umd/index.js +40 -40
  48. package/package.json +8 -7
  49. package/lib/types/chart-3d/adapters/echarts-adapter.d.ts +0 -10
  50. package/lib/types/chart-3d/adapters/export-image.d.ts +0 -2
  51. package/lib/types/chart-3d/adapters/types.d.ts +0 -40
  52. package/lib/types/models/chart-render/edit-overlay/palette.d.ts +0 -2
  53. package/lib/types/models/chart-render/edit-overlay/types.d.ts +0 -20
@@ -19,4 +19,4 @@ export declare function buildDecoratedScene(input: IProjectionChartInput<IChartS
19
19
  faces: IFace3[];
20
20
  lines: ISceneLine[];
21
21
  };
22
- export declare function buildAxisLabels(input: IProjectionChartInput<IChartSnapshot>, scene: ReturnType<typeof buildScene>, color: string, left: number, top: number): GraphicComponentOption[];
22
+ export declare function buildAxisAnnotations(input: IProjectionChartInput<IChartSnapshot>, scene: ReturnType<typeof buildScene>, color: string, left: number, top: number): GraphicComponentOption[];
@@ -1,3 +1,4 @@
1
1
  import type { ECharts } from 'echarts';
2
2
  import type { ChartElementEventType, IChartConfig, IChartElementEvent } from '../../types';
3
- export declare function createProjectionElementEvent(type: ChartElementEventType, source: unknown, config: IChartConfig, instance?: ECharts): IChartElementEvent;
3
+ export declare function hasThreeDChartElementZRenderHit(source: unknown, instance?: ECharts): boolean;
4
+ export declare function createThreeDChartElementEvent(type: ChartElementEventType, source: unknown, config: IChartConfig, instance?: ECharts): IChartElementEvent;
@@ -1,3 +1,3 @@
1
1
  import type { IChartRenderInput } from '../../types';
2
- import type { IProjectionUpdate } from './types';
3
- export declare function createProjectionUpdate(input: IChartRenderInput): IProjectionUpdate;
2
+ import type { IThreeDChartRenderUpdate } from '../runtime/types';
3
+ export declare function createThreeDChartRenderUpdate(input: IChartRenderInput): IThreeDChartRenderUpdate;
@@ -1,3 +1,5 @@
1
+ import type { IVector3 } from '../core/geometry';
1
2
  import type { ISceneProjection } from '../core/projection';
3
+ export declare function transformToClipSpace(point: IVector3, matrix: Float32Array): number[];
2
4
  /** Lift the shared camera fit to a homogeneous transform; GPU receives original world vertices. */
3
5
  export declare function createClipMatrix(projection: ISceneProjection, width: number, height: number): Float32Array;
@@ -19,6 +19,7 @@ export interface IProjectionSemanticTarget {
19
19
  readonly seriesIndex: number;
20
20
  readonly dataIndex: number;
21
21
  }
22
+ export declare function createSemanticTargetKey(target?: IProjectionSemanticTarget): string;
22
23
  export interface IProjectionPoint {
23
24
  readonly x: number;
24
25
  readonly y: number;
@@ -0,0 +1,3 @@
1
+ import type { IChartImageExporterOptions } from '../../models/chart-render/echart-render-model/echart-render-model';
2
+ import type { IChartRenderModelImageExportInput, IChartRenderModelImageExportResult } from '../../types';
3
+ export declare function exportThreeDChartImage(input: IChartRenderModelImageExportInput, options: IChartImageExporterOptions, addWatermark: boolean): Promise<IChartRenderModelImageExportResult>;
@@ -0,0 +1,10 @@
1
+ import type { IDisposable } from '@univerjs/core';
2
+ import type { ChartElementEventHandler } from '../../types';
3
+ import type { IThreeDChartRenderEngine, IThreeDChartRenderEngineOptions } from './types';
4
+ export declare function createThreeDChartRenderEngine(element: HTMLElement, options?: IThreeDChartRenderEngineOptions): IThreeDChartRenderEngine;
5
+ /** Internal product capture boundary; not part of the playground package exports. */
6
+ export declare function captureThreeDChartPng(engine: IThreeDChartRenderEngine, pixelRatio: number): Promise<string>;
7
+ /** Internal product capture path; the render-engine interface remains backend-neutral. */
8
+ export declare function captureThreeDChartCanvas(engine: IThreeDChartRenderEngine, pixelRatio: number): HTMLCanvasElement;
9
+ export declare function observeThreeDChartElements(engine: IThreeDChartRenderEngine, listener: ChartElementEventHandler): IDisposable;
10
+ export declare function setThreeDChartElementEditMode(engine: IThreeDChartRenderEngine, enabled: boolean): void;
@@ -1,13 +1,13 @@
1
1
  import type { IDisposable } from '@univerjs/core';
2
- import type { ChartElementEventHandler, ChartElementEventType, IChartHost, IChartRenderInput, IChartRenderInstance, IChartRenderInstanceCreateContext } from '../../types';
3
2
  import { Disposable } from '@univerjs/core';
3
+ import type { ChartElementEventHandler, ChartElementEventType, IChartHost, IChartRenderInput, IChartRenderInstance, IChartRenderInstanceCreateContext } from '../../types';
4
4
  import { ChartRenderMode } from '../../types';
5
- export declare class ProjectionChartInstance extends Disposable implements IChartRenderInstance {
5
+ export declare class ThreeDChartRenderInstance extends Disposable implements IChartRenderInstance {
6
6
  readonly mode: ChartRenderMode;
7
7
  private readonly _context;
8
8
  private readonly _addWatermark;
9
9
  private _host?;
10
- private _session?;
10
+ private _engine?;
11
11
  private _mount?;
12
12
  private _input?;
13
13
  private _image?;
@@ -23,7 +23,7 @@ export declare class ProjectionChartInstance extends Disposable implements IChar
23
23
  bind(host: IChartHost): void;
24
24
  render(input: IChartRenderInput): Promise<void>;
25
25
  private _showUnavailable;
26
- private _clearSession;
26
+ private _clearEngine;
27
27
  exportImg(): Promise<string | undefined>;
28
28
  resize(): void;
29
29
  on(type: ChartElementEventType, handler: ChartElementEventHandler): IDisposable;
@@ -0,0 +1,23 @@
1
+ import type { ChartRuntimeStyle, IChartConfig, IChartHostRect, IChartSnapshot } from '../../types';
2
+ export interface IThreeDChartRenderUpdate {
3
+ snapshot: IChartSnapshot;
4
+ config: IChartConfig;
5
+ style: ChartRuntimeStyle;
6
+ title: string;
7
+ emptyText: string;
8
+ invalidText: string;
9
+ foreground: string;
10
+ background: string;
11
+ axes: boolean;
12
+ labels: boolean;
13
+ }
14
+ export interface IThreeDChartRenderEngine {
15
+ update(input: IThreeDChartRenderUpdate, size?: IChartHostRect): void;
16
+ clearSelection(): void;
17
+ dispose(): void;
18
+ }
19
+ export interface IThreeDChartRenderEngineOptions {
20
+ /** Independent image exports use a footer; interactive sessions keep the existing tiled branding. */
21
+ readonly outputLicenseFooter?: boolean;
22
+ readonly onDispose?: () => void;
23
+ }
@@ -1,19 +1,22 @@
1
+ import { Disposable } from '@univerjs/core';
2
+ import type { ThreeDChartElementOutlineTargets } from '../../chart-element-interaction/three-d/types';
1
3
  import type { IScene3, ISceneLine } from '../core/scene';
2
4
  import type { IProjectionChartInput, IProjectionSemanticTarget } from '../core/types';
3
- import { Disposable } from '@univerjs/core';
4
5
  /** Adapts the chart scene to WebGL; the host still owns ECharts text and interaction. */
5
6
  export declare class WebGLSceneRenderer extends Disposable {
7
+ private readonly _host;
6
8
  readonly canvas: HTMLCanvasElement;
7
9
  private readonly _renderer;
8
10
  private _closed;
9
11
  private _items;
12
+ private _outlineGeometry;
10
13
  private _matrix?;
11
- private _ratio;
12
14
  private _hitLines;
15
+ private _interactionFrame;
13
16
  get hitLines(): readonly ISceneLine[];
14
- constructor(host: HTMLElement);
17
+ constructor(_host: HTMLElement);
15
18
  clear(): void;
16
- setEmphasis(targets: readonly IProjectionSemanticTarget[]): void;
19
+ renderInteraction(targets: readonly IProjectionSemanticTarget[], outlineTargets?: ThreeDChartElementOutlineTargets): void;
17
20
  render(input: IProjectionChartInput, scene: IScene3, left: number, top: number, foreground: string): void;
18
21
  captureCanvas(pixelRatio: number): HTMLCanvasElement;
19
22
  dispose(): void;
@@ -0,0 +1,28 @@
1
+ import type { IFace3, ISurfaceEdge } from '../core/geometry';
2
+ import type { IProjectionSemanticTarget } from '../core/types';
3
+ import type { IWebGLDrawItem, IWebGLSurface } from './types';
4
+ export interface IWebGLChartElementOutlineGeometry {
5
+ readonly faces: IFace3[];
6
+ readonly edges: Set<ISurfaceEdge>;
7
+ }
8
+ export interface IWebGLChartElementOutlineItem {
9
+ /** The selected projection and padding, in homogeneous clip coordinates. */
10
+ readonly exclusionTriangles: Float32Array;
11
+ readonly strokeTriangles: Float32Array;
12
+ readonly color: IWebGLDrawItem['color'];
13
+ }
14
+ interface IWebGLChartElementOutlineItemInput {
15
+ readonly geometryByTarget: ReadonlyMap<string, IWebGLChartElementOutlineGeometry>;
16
+ readonly targets: readonly IProjectionSemanticTarget[];
17
+ readonly matrix: Float32Array;
18
+ readonly viewport: {
19
+ readonly width: number;
20
+ readonly height: number;
21
+ readonly pixelRatio: number;
22
+ };
23
+ readonly widthCssPx: number;
24
+ readonly color: IWebGLChartElementOutlineItem['color'];
25
+ }
26
+ export declare function indexChartElementOutlineGeometry(surfaces: readonly IWebGLSurface[], edges: readonly ISurfaceEdge[], frontFaces: ReadonlySet<IFace3>, items: readonly IWebGLDrawItem[]): ReadonlyMap<string, IWebGLChartElementOutlineGeometry>;
27
+ export declare function buildChartElementOutlineItem(input: IWebGLChartElementOutlineItemInput): IWebGLChartElementOutlineItem | undefined;
28
+ export {};
@@ -3,4 +3,7 @@ import type { IWebGLDrawInput, IWebGLDrawItem } from './types';
3
3
  /** Shader RGB stays straight; blending creates the premultiplied drawing buffer expected by the browser. */
4
4
  export declare function createFragmentColor(color: string, opacity: number, shade: number): [number, number, number, number];
5
5
  export declare function isSurfaceEdgeVisible(edge: ISurfaceEdge, frontFaces: ReadonlySet<IFace3>, translucentFaces?: ReadonlySet<IFace3>): boolean;
6
- export declare function buildDrawData(input: IWebGLDrawInput): IWebGLDrawItem[];
6
+ export declare function buildDrawData(input: IWebGLDrawInput): {
7
+ items: IWebGLDrawItem[];
8
+ outlineGeometry: ReadonlyMap<string, import("./chart-element-outline-item").IWebGLChartElementOutlineGeometry>;
9
+ };
@@ -1,4 +1,5 @@
1
1
  import { Disposable } from '@univerjs/core';
2
+ export declare function createWebGLProgram(gl: WebGLRenderingContext, vertexSource: string, fragmentSource: string): WebGLProgram;
2
3
  export declare class WebGLDrawProgram extends Disposable {
3
4
  private readonly _gl;
4
5
  readonly program: WebGLProgram;
@@ -1,11 +1,13 @@
1
- import type { IWebGLDrawItem } from './types';
2
1
  import { Disposable } from '@univerjs/core';
2
+ import type { IWebGLChartElementOutlineItem } from './chart-element-outline-item';
3
+ import type { IWebGLDrawItem } from './types';
3
4
  /** Owns GPU resources on a dedicated canvas; DOM ownership stays with the caller. */
4
5
  export declare class WebGLRenderer extends Disposable {
5
6
  readonly canvas: HTMLCanvasElement;
6
7
  private readonly _gl;
7
8
  private _program;
8
9
  private _buffer;
10
+ private _hasStencil;
9
11
  private readonly _textures;
10
12
  private _closed;
11
13
  private _frame?;
@@ -14,6 +16,8 @@ export declare class WebGLRenderer extends Disposable {
14
16
  constructor(canvas: HTMLCanvasElement);
15
17
  getLineWidth(width: number): number;
16
18
  clear(): void;
17
- render(items: readonly IWebGLDrawItem[], matrix: Float32Array, ratio: number): void;
19
+ render(items: readonly IWebGLDrawItem[], matrix: Float32Array, ratio: number, outlineItems?: readonly IWebGLChartElementOutlineItem[]): void;
20
+ private _drawChartElementOutlineItem;
21
+ private _drawOutlineTriangles;
18
22
  dispose(): void;
19
23
  }
@@ -1,5 +1,4 @@
1
1
  import type { IVector3 } from '../core/geometry';
2
- import type { IWebGLDrawItem } from './types';
3
2
  interface IStrokeNeighbors {
4
3
  start?: IVector3;
5
4
  end?: IVector3;
@@ -7,7 +6,9 @@ interface IStrokeNeighbors {
7
6
  endBranches?: readonly IVector3[];
8
7
  }
9
8
  /** Connect only boundaries of the same semantic mark and appearance. */
10
- export declare function findStrokeNeighbors(items: readonly IWebGLDrawItem[]): Map<IWebGLDrawItem, IStrokeNeighbors>;
9
+ export declare function findStrokeNeighbors<T extends {
10
+ readonly vertices: readonly IVector3[];
11
+ }>(items: readonly T[], getOwnerKey?: (item: T) => string | undefined): Map<T, IStrokeNeighbors>;
11
12
  /** Expand a segment after depth clipping; offset scales with w to preserve pixel width under perspective. */
12
13
  export declare function buildStrokeVertices(vertices: readonly IVector3[], matrix: Float32Array, width: number, viewportWidth: number, viewportHeight: number, neighbors?: IStrokeNeighbors, supportingFaces?: readonly (readonly IVector3[])[]): Float32Array;
13
14
  export {};
@@ -1,6 +1,6 @@
1
1
  import type { IChartTopNSpec } from '../chart-data-aggregation';
2
2
  import type { AreaLineStyle, AxisAlignEnum, BarShape, ChartAxisDimension, ChartBorderDashType, ChartMarkLineLabelPosition, ChartSemanticAxis, ChartTrendlineType, ChartWaterfallPointRole, InvalidValueType, IRuntimeAxisPosition, LabelAlignEnum, LabelContentType, LegendPositionEnum, LinePointShape, PieLabelPosition, RadarShape, RelationChartLayoutEnum, ScatterLineType, SelectModeEnum, SeriesLabelPosition, TitlePositionEnum, WaterfallStackTypeEnum, WordCloudShapeEnum } from '../enum';
3
- import type { DeepNullish, IAxisOptions, IChart3DStyle, IChartCandlestickMappingSpec, IChartCandlestickSpec, IChartChordMappingSpec, IChartChordSpec, IChartErrorBars, IChartGaugeSpec, IChartHistogramSpec, IChartSeriesFillPattern, IChartSunburstSpec, IChartTreemapSpec, IChartValueLabelSpec } from '../types';
3
+ import type { DeepNullish, IAxisOptions, IChart3DStyle, IChartCandlestickMappingSpec, IChartCandlestickSpec, IChartChordMappingSpec, IChartChordSpec, IChartErrorBars, IChartGaugeSpec, IChartHistogramSpec, IChartRadarAxisLabelSpec, IChartSeriesFillPattern, IChartSunburstSpec, IChartTreemapSpec, IChartValueLabelSpec, ITrendLine } from '../types';
4
4
  import type { ChartColor } from './chart-color';
5
5
  /** Canonical semantic chart type names exposed by the chart facade. */
6
6
  export declare enum ChartTypeString {
@@ -273,6 +273,7 @@ export interface IChartTrendlineSpec {
273
273
  showR2?: boolean;
274
274
  formulaColor?: string;
275
275
  r2Color?: string;
276
+ label?: ITrendLine['label'];
276
277
  }
277
278
  export interface IChartHeatmapSpec {
278
279
  visualMapType?: ChartVisualMapType;
@@ -430,6 +431,7 @@ export interface IChartPieSpec {
430
431
  export interface IChartRadarSpec {
431
432
  shape?: RadarShape;
432
433
  fill?: boolean;
434
+ axisLabel?: IChartRadarAxisLabelSpec;
433
435
  }
434
436
  /** Supported Pareto bar-border appearance. */
435
437
  export interface IChartParetoBorderStyleSpec {
@@ -1,5 +1,8 @@
1
1
  import type { RadarShape } from '../../enum';
2
+ import type { DeepNullish, IChartRadarAxisLabelSpec } from '../../types';
2
3
  export declare const setRadarShape: (value: RadarShape) => import("./chart-config-operation").IChartConfigOperation;
3
4
  export declare const resetRadarShape: () => import("./chart-config-operation").IChartConfigOperation;
4
5
  export declare const setRadarFill: (value: boolean) => import("./chart-config-operation").IChartConfigOperation;
5
6
  export declare const resetRadarFill: () => import("./chart-config-operation").IChartConfigOperation;
7
+ export declare const setRadarAxisLabel: (value: DeepNullish<IChartRadarAxisLabelSpec>) => import("./chart-config-operation").IChartConfigOperation;
8
+ export declare const resetRadarAxisLabel: () => import("./chart-config-operation").IChartConfigOperation;
@@ -0,0 +1,28 @@
1
+ import type { ECharts } from 'echarts';
2
+ import type { ChartElementEventType, EChartSpec, IChartElementEvent, IChartElementHit } from '../types';
3
+ interface IChartPointerSource {
4
+ button?: number;
5
+ event?: Event & {
6
+ button?: number;
7
+ };
8
+ offsetX?: number;
9
+ offsetY?: number;
10
+ target?: unknown;
11
+ topTarget?: unknown;
12
+ zrX?: number;
13
+ zrY?: number;
14
+ }
15
+ /** Keeps raw ZRender packets intact while unwrapping ECharts component-event envelopes. */
16
+ export declare function getChartElementPointerSource(source: unknown): IChartPointerSource;
17
+ export declare function getChartElementLocalPoint(source: unknown): IChartElementEvent['localPoint'];
18
+ /** Reads a native legend target, falling back to the live component bounds for silent edit-mode legends. */
19
+ export declare function getEChartsZRenderLegendHit(source: unknown, instance?: ECharts | null): Extract<IChartElementHit, {
20
+ kind: 'legend';
21
+ }> | undefined;
22
+ export declare function createChartElementEvent(type: ChartElementEventType, source: unknown, hit: IChartElementHit, instance?: ECharts | null): IChartElementEvent;
23
+ export declare function createBlankChartElementEvent(type: ChartElementEventType, source: unknown): IChartElementEvent;
24
+ /** Resolves renderer-independent ECharts components. Plot marks remain owned by renderer adapters. */
25
+ export declare function createEChartsComponentEvent(type: ChartElementEventType, source: unknown, spec: EChartSpec | null, instance?: ECharts | null): IChartElementEvent | undefined;
26
+ export declare function createChartElementHitKey(hit: IChartElementHit): string;
27
+ export declare function createChartElementEventDedupeKey(event: IChartElementEvent): string;
28
+ export {};
@@ -1,6 +1,6 @@
1
1
  import type { ECharts } from 'echarts';
2
- import type { IChartElementBounds, IChartElementHit } from '../../../types';
3
- import type { IChartElementHitLayout, IResolvedChartElementOverlay } from './types';
2
+ import type { IChartElementBounds, IChartElementHit } from '../types';
3
+ import type { IChartElementHitLayout, IChartElementOutlineGeometry } from './geometry';
4
4
  export declare function toChartElementFiniteNumber(value: unknown): number | undefined;
5
5
  export declare function getChartElementTarget(params: any): any;
6
6
  export declare function getChartElementComponentInfo(element: any): {
@@ -10,7 +10,6 @@ export declare function getChartElementComponentInfo(element: any): {
10
10
  export declare function getChartElementPropertyInChain(element: any, propertyName: string): unknown;
11
11
  export declare function isSeriesLabelTarget(element: any): boolean;
12
12
  export declare function getChartElementTargetSeriesIndex(instance: any, target: any): number | undefined;
13
- export declare function getAxisComponentMainType(hit: IChartElementHit): 'xAxis' | 'yAxis' | undefined;
14
- export declare function createRectOverlay(bounds: IChartElementBounds, padding?: number, shape?: Record<string, any>): IResolvedChartElementOverlay;
13
+ export declare function createRectOutlineGeometry(bounds: IChartElementBounds, padding?: number, shape?: Record<string, any>): IChartElementOutlineGeometry;
15
14
  export declare function isSameBounds(left: IChartElementBounds | null | undefined, right: IChartElementBounds | undefined): boolean;
16
- export declare function resolveChartElementHitLayout(hit: IChartElementHit, params: any, instance?: ECharts | null): IChartElementHitLayout;
15
+ export declare function createChartElementHitLayout(hit: IChartElementHit, params: any, instance?: ECharts | null): IChartElementHitLayout;
@@ -0,0 +1,24 @@
1
+ import type { ChartElementEventType, IChartElementHit } from '../types';
2
+ import type { ChartElementOutlineRole } from './types';
3
+ interface IChartElementOutlineRenderer {
4
+ clearFixed(): void;
5
+ clearHover(): void;
6
+ ensure(): unknown;
7
+ isFixed(bounds: NonNullable<IChartElementHit['bounds']>): boolean;
8
+ remove(): void;
9
+ setBorder(role: ChartElementOutlineRole, hit: IChartElementHit): void;
10
+ }
11
+ /** Owns edit-mode hover/fixed lifecycle; adapters decide which hits their rendering backend can draw. */
12
+ export declare class ChartElementOutlineController {
13
+ private readonly _renderer;
14
+ private readonly _canRender;
15
+ private _editing;
16
+ constructor(_renderer: IChartElementOutlineRenderer, _canRender?: (hit: IChartElementHit) => boolean);
17
+ setEditMode(enabled: boolean): void;
18
+ handle(type: ChartElementEventType, hit: IChartElementHit): void;
19
+ clearHover(): void;
20
+ remove(): void;
21
+ private _setHover;
22
+ private _setFixed;
23
+ }
24
+ export {};
@@ -0,0 +1,15 @@
1
+ import type { IChartElementBounds, IChartElementOverlay } from '../types';
2
+ export interface IChartElementOutlineSourceStyle {
3
+ stroke?: string;
4
+ lineWidth?: number;
5
+ opacity?: number;
6
+ }
7
+ export interface IChartElementOutlineGeometry extends IChartElementOverlay {
8
+ items?: IChartElementOutlineGeometry[];
9
+ sourceCtor?: new (options: any) => any;
10
+ sourceStyle?: IChartElementOutlineSourceStyle;
11
+ }
12
+ export interface IChartElementHitLayout {
13
+ bounds?: IChartElementBounds;
14
+ overlay?: IChartElementOutlineGeometry;
15
+ }
@@ -0,0 +1,4 @@
1
+ import type { ChartElementOutlineRole, IChartElementOutlineStyle } from './types';
2
+ export declare const CHART_ELEMENT_OUTLINE_WIDTH = 1;
3
+ /** Owns the shared hover/fixed visual contract; renderers only translate CSS pixels to their native stroke model. */
4
+ export declare function getChartElementOutlineStyle(role: ChartElementOutlineRole, container?: HTMLElement | null): IChartElementOutlineStyle;
@@ -0,0 +1,3 @@
1
+ import type { IProjectionSemanticTarget } from '../../chart-3d/core/types';
2
+ import type { ChartElementOutlineRole } from '../types';
3
+ export type ThreeDChartElementOutlineTargets = Readonly<Record<ChartElementOutlineRole, readonly IProjectionSemanticTarget[]>>;
@@ -1,10 +1,9 @@
1
1
  import type { ECharts } from 'echarts';
2
- import type { IChartElementBounds, IChartElementHit } from '../../../types';
3
- import type { ChartElementEditBorderType, IChartElementEditOverlayPalette } from './types';
4
- export declare class ChartElementEditOverlay {
2
+ import type { IChartElementBounds, IChartElementHit } from '../../types';
3
+ import type { ChartElementOutlineRole } from '../types';
4
+ export declare class ZRenderChartElementOutline {
5
5
  private readonly _getInstance;
6
6
  private readonly _getContainer;
7
- private readonly _paletteOverride?;
8
7
  private _group;
9
8
  private _hoverBorder;
10
9
  private _hoverHit;
@@ -12,7 +11,7 @@ export declare class ChartElementEditOverlay {
12
11
  private _hoverBorderHitKey;
13
12
  private _fixedBorder;
14
13
  private _fixedBorderBounds;
15
- constructor(_getInstance: () => ECharts | null, _getContainer?: () => HTMLElement | null | undefined, _paletteOverride?: Partial<IChartElementEditOverlayPalette> | undefined);
14
+ constructor(_getInstance: () => ECharts | null, _getContainer?: () => HTMLElement | null | undefined);
16
15
  ensure(): any;
17
16
  remove(): void;
18
17
  clearAll(): void;
@@ -27,13 +26,12 @@ export declare class ChartElementEditOverlay {
27
26
  x: number;
28
27
  y: number;
29
28
  }): IChartElementHit | null;
30
- setBorder(type: ChartElementEditBorderType, hit: IChartElementHit): void;
29
+ setBorder(type: ChartElementOutlineRole, hit: IChartElementHit): void;
31
30
  withHidden<T>(callback: () => T): T;
32
31
  private _removeBorder;
33
32
  private _createEditBorderElement;
34
33
  private _createLineBorderElement;
35
34
  private _createPolygonBorderElement;
36
35
  private _createStrokeStyle;
37
- private _resolvePalette;
38
36
  private _refresh;
39
37
  }
@@ -0,0 +1,6 @@
1
+ export type ChartElementOutlineRole = 'hover' | 'fixed';
2
+ export interface IChartElementOutlineStyle {
3
+ readonly stroke: string;
4
+ /** Nominal outline width in CSS pixels. Each rendering backend applies its own DPR conversion. */
5
+ readonly width: number;
6
+ }
@@ -1,4 +1,4 @@
1
- import type { IChartInfo, RadarShape } from '@univerjs-pro/engine-chart';
1
+ import type { DeepNullish, IChartInfo, IChartRadarAxisLabelSpec, RadarShape } from '@univerjs-pro/engine-chart';
2
2
  import { FChartBuilderBase } from '../f-chart-builder-base';
3
3
  /**
4
4
  * Fluent, type-specific Builder for Radar Charts.
@@ -14,6 +14,7 @@ import { FChartBuilderBase } from '../f-chart-builder-base';
14
14
  * .setValueFields([1, 2, 3])
15
15
  * .setShape(univerAPI.Enum.ChartRadarShape.Circle)
16
16
  * .setFill(true)
17
+ * .setRadarAxisLabel({ visible: true, fontSize: 12 })
17
18
  * .build();
18
19
  * await fWorksheet.insertChart(chartInfo);
19
20
  * ```
@@ -28,6 +29,7 @@ import { FChartBuilderBase } from '../f-chart-builder-base';
28
29
  * .setValueFields([1, 2])
29
30
  * .setShape(univerAPI.Enum.ChartRadarShape.Circle)
30
31
  * .setFill(true)
32
+ * .setRadarAxisLabel({ visible: true, fontSize: 12 })
31
33
  * .build();
32
34
  * await fDocument.insertChart(chartInfo);
33
35
  * ```
@@ -43,6 +45,7 @@ import { FChartBuilderBase } from '../f-chart-builder-base';
43
45
  * .setValueFields([1, 2])
44
46
  * .setShape(univerAPI.Enum.ChartRadarShape.Circle)
45
47
  * .setFill(true)
48
+ * .setRadarAxisLabel({ visible: true, fontSize: 12 })
46
49
  * .build();
47
50
  * await fSlide.insertChart(chartInfo);
48
51
  * ```
@@ -57,6 +60,7 @@ import { FChartBuilderBase } from '../f-chart-builder-base';
57
60
  * .setValueFields([1, 2])
58
61
  * .setShape(univerAPI.Enum.ChartRadarShape.Circle)
59
62
  * .setFill(true)
63
+ * .setRadarAxisLabel({ visible: true, fontSize: 12 })
60
64
  * .build();
61
65
  * await fBoard.insertChart(chartInfo);
62
66
  * ```
@@ -112,4 +116,29 @@ export declare class FRadarChartBuilder<TSource = never[], TDataSource = TSource
112
116
  * ```
113
117
  */
114
118
  resetFill(): this;
119
+ /**
120
+ * Sets numeric scale-label visibility and appearance and returns this builder for chaining.
121
+ *
122
+ * This method executes synchronously.
123
+ *
124
+ * @param value The semantic scale-label style to record.
125
+ * @returns This builder for chaining.
126
+ * @example
127
+ * ```ts
128
+ * builder.setRadarAxisLabel({ visible: true, fontSize: 12, italic: true });
129
+ * ```
130
+ */
131
+ setRadarAxisLabel(value: DeepNullish<IChartRadarAxisLabelSpec>): this;
132
+ /**
133
+ * Restores the default Radar scale-label appearance and returns this builder for chaining.
134
+ *
135
+ * This method executes synchronously.
136
+ *
137
+ * @returns This builder for chaining.
138
+ * @example
139
+ * ```ts
140
+ * builder.resetRadarAxisLabel();
141
+ * ```
142
+ */
143
+ resetRadarAxisLabel(): this;
115
144
  }
@@ -34,7 +34,7 @@ export { clearPalette, setPalette, } from './chart-builder/configuration/palette
34
34
  export { clearCumulativeLineStyle, clearParetoBarStyle, resetIncludeZeroValues, setCumulativeLineStyle, setIncludeZeroValues, setParetoBarStyle, } from './chart-builder/configuration/pareto';
35
35
  export { clearDoughnutHole, clearPieComposite, clearPieLabel, clearSliceBorderColor, clearSliceStyle, resetExplosion, resetHalfPie, resetLabelLineVisible, resetPaddingAngleEnabled, resetRosePie, resetValueScale, setDoughnutHole, setExplosion, setHalfPie, setLabelLineVisible, setPaddingAngleEnabled, setPieComposite, setPieLabel, setRosePie, setSliceBorderColor, setSliceStyle, setValueScale, } from './chart-builder/configuration/pie';
36
36
  export { clearBubbleMapping, clearCandlestickFields, setBubbleMapping, setCandlestickFields, } from './chart-builder/configuration/point-mapping';
37
- export { resetRadarFill, resetRadarShape, setRadarFill, setRadarShape, } from './chart-builder/configuration/radar';
37
+ export { resetRadarAxisLabel, resetRadarFill, resetRadarShape, setRadarAxisLabel, setRadarFill, setRadarShape, } from './chart-builder/configuration/radar';
38
38
  export { clearRelationForce, resetCircularLabelRotation, resetEmphasisEnabled, resetRelationLayout, resetRelationNodeShape, resetUseValueAsSymbolSize, setCircularLabelRotation, setEmphasisEnabled, setRelationForce, setRelationLayout, setRelationNodeShape, setUseValueAsSymbolSize, } from './chart-builder/configuration/relation';
39
39
  export { clearSubtitle, setSubtitle, } from './chart-builder/configuration/subtitle';
40
40
  export { resetSunburstCenterLabel, resetSunburstLabel, setSunburstCenterLabel, setSunburstHierarchyFields, setSunburstLabel, setSunburstValueField, } from './chart-builder/configuration/sunburst';
@@ -124,13 +124,20 @@ export { UniverChartPlugin } from './plugin';
124
124
  export { toChartDataItem } from './source/chart-data-item';
125
125
  export { createChartDataSetProjector } from './source/chart-data-set-projector';
126
126
  export type { IChartDataSetProjector, IChartSourceItem, IChartSourceTable, ICreateChartDataSetProjectorOptions, } from './source/chart-data-set-projector';
127
+ export { ChartDataSourceRuntimeService, IChartDataSourceRuntimeService } from './source/chart-data-source-runtime.service';
128
+ export type { IChartDataSourceHandle, IChartDataSourceLoadResult, IChartDataSourceProvider, IChartDataSourceRuntimeState } from './source/chart-data-source-runtime.service';
127
129
  export { ChartDataSourceRuntimeStatus } from './source/chart-data-source-status';
128
130
  export type { IChartDataSourceStatus } from './source/chart-data-source-status';
129
131
  export { ChartDataSource } from './source/chart-source';
130
132
  export { ChartSourceHeaderTitleType } from './source/chart-source-header';
131
133
  export type { IChartSourceHeader, IChartSourceHeaderTitle } from './source/chart-source-header';
134
+ export { isReferencedChartDataSource } from './source/referenced-chart-data-source';
135
+ export type { IReferencedChartDataSource } from './source/referenced-chart-data-source';
136
+ export { ReferencedChartDataSourceBinding } from './source/referenced-chart-data-source-binding';
137
+ export { RESOURCE_REF_CHART_DATA_SOURCE_KIND, ResourceRefChartDataSourceAdapter } from './source/resource-ref-chart-data-source.adapter';
138
+ export type { IResourceRefChartDataSourceInput, IResourceRefChartDataSourceReference } from './source/resource-ref-chart-data-source.adapter';
132
139
  export { StaticChartSource } from './source/static-chart-source';
133
- export type { ChartDataSourceValues, ChartDirection, ChartElementEventHandler, ChartElementEventType, ChartElementKind, ChartFieldButtonRole, ChartImageSource, ChartRenderRuntimeContext, ChartRuntimeStyle, ChartStyle, DeepNullish, DeepPartial, DimensionDefinitionLoose, IAllSeriesStyle, IAxisOptions, IBarStyle, IChart3DStyle, IChartBubbleStyle, IChartCandlestickData, IChartCandlestickMappingSpec, IChartCandlestickPoint, IChartCandlestickSpec, IChartCandlestickStateStyleSpec, IChartChordData, IChartChordEmphasisSpec, IChartChordLabelSpec, IChartChordLayoutSpec, IChartChordLink, IChartChordMappingSpec, IChartChordNode, IChartChordNodeStyleSpec, IChartChordRibbonStyleSpec, IChartChordSpec, IChartConfig, IChartContext, IChartData, IChartDataCategory, IChartDataCategoryLevel, IChartDataCategorySegment, IChartDataSeries, IChartDataSource, IChartElementBounds, IChartElementEvent, IChartElementHit, IChartElementOverlay, IChartErrorBars, IChartFieldButton, IChartGaugeAnchorSpec, IChartGaugeAnglesSpec, IChartGaugeAxisLabelSpec, IChartGaugeAxisLineSpec, IChartGaugeAxisTickSpec, IChartGaugeData, IChartGaugeDetailSpec, IChartGaugeFontSpec, IChartGaugeItem, IChartGaugePointerSpec, IChartGaugeProgressSpec, IChartGaugeRangeSpec, IChartGaugeScaleSpec, IChartGaugeSpec, IChartGaugeSplitLineSpec, IChartGaugeTitleSpec, IChartHistogramBin, IChartHistogramBinningSpec, IChartHistogramData, IChartHistogramDataSpec, IChartHistogramSpec, IChartHistogramStyleSpec, IChartHost, IChartHostBorderStyle, IChartHostLease, IChartHostRect, IChartHostStyle, IChartInstance, IChartPlotArea, IChartRenderAsImageOptions, IChartRenderInput, IChartRenderInstance, IChartRenderInstanceCreateContext, IChartRenderInstanceSpecInput, IChartRenderInstanceStyleInput, IChartRenderModel, IChartRenderModelImageExportInput, IChartRenderModelImageExportOptions, IChartRenderModelImageExportResult, IChartRenderTransitionOptions, IChartSnapshot, IChartStyle, IChartSunburstCenterLabelSpec, IChartSunburstData, IChartSunburstLabelSpec, IChartSunburstNode, IChartSunburstSpec, IChartTreemapData, IChartTreemapLabelSpec, IChartTreemapNode, IChartTreemapSpec, IChartValueLabelSpec, IDimensionDefinition, IDomChartHost, IGridLineStyle, IImageChartHost, ILabelStyle, ILegendStyle, IPieLabelStyle, IPointStyle, IRelationForceOptions, IRuntimeAxis, ISeriesLabelStyle, ISeriesStyle, ITrendLine, IUniverDataSet, IUniverDataSetCategorySpan, OptionDataValue, RightYAxisOptions, } from './types';
140
+ export type { ChartDataSourceValues, ChartDirection, ChartElementEventHandler, ChartElementEventType, ChartElementKind, ChartFieldButtonRole, ChartImageSource, ChartRenderRuntimeContext, ChartRuntimeStyle, ChartStyle, DeepNullish, DeepPartial, DimensionDefinitionLoose, IAllSeriesStyle, IAxisOptions, IBarStyle, IChart3DStyle, IChartBubbleStyle, IChartCandlestickData, IChartCandlestickMappingSpec, IChartCandlestickPoint, IChartCandlestickSpec, IChartCandlestickStateStyleSpec, IChartChordData, IChartChordEmphasisSpec, IChartChordLabelSpec, IChartChordLayoutSpec, IChartChordLink, IChartChordMappingSpec, IChartChordNode, IChartChordNodeStyleSpec, IChartChordRibbonStyleSpec, IChartChordSpec, IChartConfig, IChartContext, IChartData, IChartDataCategory, IChartDataCategoryLevel, IChartDataCategorySegment, IChartDataSeries, IChartDataSource, IChartElementBounds, IChartElementEvent, IChartElementHit, IChartElementOverlay, IChartErrorBars, IChartFieldButton, IChartGaugeAnchorSpec, IChartGaugeAnglesSpec, IChartGaugeAxisLabelSpec, IChartGaugeAxisLineSpec, IChartGaugeAxisTickSpec, IChartGaugeData, IChartGaugeDetailSpec, IChartGaugeFontSpec, IChartGaugeItem, IChartGaugePointerSpec, IChartGaugeProgressSpec, IChartGaugeRangeSpec, IChartGaugeScaleSpec, IChartGaugeSpec, IChartGaugeSplitLineSpec, IChartGaugeTitleSpec, IChartHistogramBin, IChartHistogramBinningSpec, IChartHistogramData, IChartHistogramDataSpec, IChartHistogramSpec, IChartHistogramStyleSpec, IChartHost, IChartHostBorderStyle, IChartHostLease, IChartHostRect, IChartHostStyle, IChartInstance, IChartPlotArea, IChartRadarAxisLabelSpec, IChartRenderAsImageOptions, IChartRenderInput, IChartRenderInstance, IChartRenderInstanceCreateContext, IChartRenderInstanceSpecInput, IChartRenderInstanceStyleInput, IChartRenderModel, IChartRenderModelImageExportInput, IChartRenderModelImageExportOptions, IChartRenderModelImageExportResult, IChartRenderTransitionOptions, IChartSnapshot, IChartStyle, IChartSunburstCenterLabelSpec, IChartSunburstData, IChartSunburstLabelSpec, IChartSunburstNode, IChartSunburstSpec, IChartTreemapData, IChartTreemapLabelSpec, IChartTreemapNode, IChartTreemapSpec, IChartValueLabelSpec, IDimensionDefinition, IDomChartHost, IGridLineStyle, IImageChartHost, ILabelStyle, ILegendStyle, IPieLabelStyle, IPointStyle, IRelationForceOptions, IRuntimeAxis, ISeriesLabelStyle, ISeriesStyle, ITrendLine, IUniverDataSet, IUniverDataSetCategorySpan, OptionDataValue, RightYAxisOptions, } from './types';
134
141
  export { CHART_DATA_UPDATE_ANIMATION_DURATION, ChartImageExportFormat, ChartImageSourceType, ChartRenderMode, } from './types';
135
142
  export { chartBitsUtils, chartTypeCanUseTrendLine, mergeChartConfig, } from './util';
136
143
  export { omitUndefinedFields, } from './utils/compact';
@@ -1,9 +1,12 @@
1
- import type { ChartDirection, IChartElementHit, IRuntimeAxis } from '../../../types';
1
+ import type { ChartAxisElementKind, ChartDirection, IChartElementHit, IRuntimeAxis } from '../../../types';
2
2
  export declare const CHART_ELEMENT_AXIS_ID_META = "__univerChartElementAxisId";
3
- export type ChartElementAxisId = NonNullable<IChartElementHit['axisId']>;
3
+ type IChartAxisElementHit = Extract<IChartElementHit, {
4
+ kind: ChartAxisElementKind;
5
+ }>;
6
+ export type ChartElementAxisId = IChartAxisElementHit['axisId'];
4
7
  type ChartElementAxisTarget = 'title' | 'label' | 'line';
5
8
  export declare function getChartElementAxisId(axisOption: unknown): ChartElementAxisId | undefined;
6
9
  export declare function setChartElementAxisId(axisOption: Record<string, unknown>, axisId: ChartElementAxisId): void;
7
- export declare function resolveChartElementAxisId(axisPosition: IChartElementHit['axisPosition'] | undefined, direction: ChartDirection | undefined, runtimeAxes: IRuntimeAxis[] | undefined): ChartElementAxisId;
8
- export declare function getChartElementAxisKind(axisId: ChartElementAxisId, target: ChartElementAxisTarget): IChartElementHit['kind'];
10
+ export declare function resolveChartElementAxisId(axisPosition: IChartAxisElementHit['axisPosition'] | undefined, direction: ChartDirection | undefined, runtimeAxes: IRuntimeAxis[] | undefined): ChartElementAxisId;
11
+ export declare function getChartElementAxisKind(axisId: ChartElementAxisId, target: ChartElementAxisTarget): ChartAxisElementKind;
9
12
  export {};
@@ -1,13 +1,13 @@
1
1
  type DataPoint = [number, number];
2
- interface IRegressionResult {
2
+ export interface IRegressionResult {
3
3
  formula: string;
4
- execute: (x: number) => number;
5
- R2: number;
4
+ execute: (x: number) => number | null;
5
+ R2?: number;
6
6
  }
7
- declare function linearRegression(data: DataPoint[]): IRegressionResult;
8
- declare function exponentialRegression(data: DataPoint[]): IRegressionResult;
9
- declare function logarithmicRegression(data: DataPoint[]): IRegressionResult;
10
- declare function powerRegression(data: DataPoint[]): IRegressionResult;
11
- declare function polynomialRegression(data: DataPoint[], degree: number): IRegressionResult;
12
- declare function movingAverage(data: DataPoint[], period: number): (number | null)[];
7
+ declare function linearRegression(data: DataPoint[]): IRegressionResult | undefined;
8
+ declare function exponentialRegression(data: DataPoint[]): IRegressionResult | undefined;
9
+ declare function logarithmicRegression(data: DataPoint[]): IRegressionResult | undefined;
10
+ declare function powerRegression(data: DataPoint[]): IRegressionResult | undefined;
11
+ declare function polynomialRegression(data: DataPoint[], degree: number): IRegressionResult | undefined;
12
+ declare function movingAverage(data: DataPoint[], period: number): (number | null)[] | undefined;
13
13
  export { exponentialRegression, linearRegression, logarithmicRegression, movingAverage, polynomialRegression, powerRegression, };
@@ -1,9 +1,2 @@
1
1
  import type { EChartSpec } from '../../../../types';
2
- interface IValueAxisScale {
3
- min: number;
4
- max: number;
5
- interval: number;
6
- }
7
- export declare function calculateValueAxisScale(dataMin: number, dataMax: number, fixedMin?: number, fixedMax?: number, fixedInterval?: number): IValueAxisScale | undefined;
8
2
  export declare function getValueAxisExtent(spec: EChartSpec, dimension: 'x' | 'y', axisIndex: number): [number, number];
9
- export {};
@@ -1,13 +1,16 @@
1
1
  import type { IDisposable } from '@univerjs/core';
2
+ import { Disposable } from '@univerjs/core';
2
3
  import type { ChartElementEventHandler, ChartElementEventType, ChartImageSource, EChartInstance, EChartSpec, IChartElementHit, IChartRenderAsImageOptions, IChartRenderRuntimeOptions, IChartRenderTransitionOptions } from '../../../types';
3
4
  import type { IEChartsRenderHooks } from './echarts-render-hooks';
4
- import { Disposable } from '@univerjs/core';
5
+ type IChartMarkElementHit = Extract<IChartElementHit, {
6
+ kind: 'mark';
7
+ }>;
5
8
  /** Converts materialized composite Pie marks back to their authored source identity. */
6
- export declare function resolveEChartPieCompositeHit(spec: EChartSpec | null, seriesIndex: number | undefined, params?: any, dataIndex?: number): Pick<IChartElementHit, 'pieCompositeRole' | 'pieCompositePlot' | 'pieSourcePointIndex' | 'pieAggregateMemberSourcePointIndexes'> | undefined;
9
+ export declare function resolveEChartPieCompositeHit(spec: EChartSpec | null, seriesIndex: number | undefined, params?: any, dataIndex?: number): Pick<IChartMarkElementHit, 'pieCompositeRole' | 'pieSourcePointIndex'> | undefined;
7
10
  /** Converts native Chord node/link events to stable semantic graph identities. */
8
- export declare function resolveEChartChordHit(spec: EChartSpec | null, seriesIndex: number | undefined, params?: any, dataIndex?: number): Pick<IChartElementHit, 'semanticId' | 'semanticKind' | 'semanticValue' | 'semanticFormattedValue' | 'semanticEndpointAName' | 'semanticEndpointBName'> | undefined;
11
+ export declare function resolveEChartChordHit(spec: EChartSpec | null, seriesIndex: number | undefined, params?: any, dataIndex?: number): Pick<IChartMarkElementHit, 'semanticId'> | undefined;
9
12
  /** Normalizes renderer-private marks, including hierarchy residual leaves, to their semantic identity. */
10
- export declare function resolveEChartSeriesIdentity(spec: EChartSpec | null, seriesIndex: number | undefined, params?: any): Pick<IChartElementHit, 'seriesId' | 'seriesName' | 'baseSeriesIndex' | 'waterfallSeriesType'>;
13
+ export declare function resolveEChartSeriesIdentity(spec: EChartSpec | null, seriesIndex: number | undefined, params?: any): Pick<IChartMarkElementHit, 'seriesId' | 'seriesName' | 'baseSeriesIndex' | 'waterfallSeriesType'>;
11
14
  export declare class EChartRenderEngine extends Disposable implements EChartInstance {
12
15
  static engineName: string;
13
16
  private _instance;
@@ -20,7 +23,8 @@ export declare class EChartRenderEngine extends Disposable implements EChartInst
20
23
  private _elementEditModeZrMouseMoveHandler;
21
24
  private _elementEditModeZrClickHandler;
22
25
  private _elementEditModeEnabled;
23
- private _editOverlay;
26
+ private _elementOutline;
27
+ private _elementOutlineController;
24
28
  private readonly _emittedElementEventKeys;
25
29
  private _emittedElementEventKeysClearQueued;
26
30
  private readonly _fieldButtonLayoutHandler;
@@ -53,10 +57,11 @@ export declare class EChartRenderEngine extends Disposable implements EChartInst
53
57
  private _handleElementEditZrHover;
54
58
  private _handleElementEditClick;
55
59
  private _handleElementEditZrClick;
56
- private _ensureEditOverlay;
57
- private _removeEditOverlay;
60
+ private _ensureElementOutline;
61
+ private _ensureElementOutlineController;
62
+ private _removeElementOutline;
58
63
  private _clearHoverBorder;
59
- private _clearFixedBorder;
60
64
  exportImg(echartsProvider?: any): Promise<string>;
61
65
  dispose(): void;
62
66
  }
67
+ export {};