UNPKG

@odoo/o-spreadsheet

Version:
20 lines (19 loc) 683 B
import { Action } from "../actions/action"; import { UID } from "../types"; import { SpreadsheetChildEnv } from "../types/spreadsheet_env"; import { Registry } from "./registry"; /** * This registry is intended to map a type of figure (tag) to a class of * component, that will be used in the UI to represent the figure. * * The most important type of figure will be the Chart */ export interface FigureContent { Component: any; menuBuilder: (figureId: UID, env: SpreadsheetChildEnv) => Action[]; SidePanelComponent?: string; keepRatio?: boolean; minFigSize?: number; borderWidth?: number; } export declare const figureRegistry: Registry<FigureContent>;