Merge pull request #19654 from zspitz/activex-libreoffice

activex-libreoffice: initial commit
This commit is contained in:
Arthur Ozga 2017-09-14 14:06:43 -07:00 committed by GitHub
commit 0c29ad74db
8 changed files with 106136 additions and 16 deletions

View File

@ -0,0 +1,171 @@
(() => {
// https://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Bridge/Automation_Bridge
// This is a JScript example
// The service manager is always the starting point
// If there is no office running then an office is started up
const serviceManager = new ActiveXObject('com.sun.star.ServiceManager');
// Create the CoreReflection service that is later used to create structs
const coreReflection = serviceManager.createInstance("com.sun.star.reflection.CoreReflection");
// Create the Desktop
const desktop = serviceManager.defaultContext.getByName('/singleton/com.sun.star.frame.theDesktop');
// Open a new empty writer document
const args: any[] = [];
const document = desktop.loadComponentFromURL("private:factory/swriter", "_blank", 0, args); // as com.sun.star.text.TextDocument;
// Create a text object
const text = document.Text;
// Create a cursor object
const cursor = (text.createTextCursor() as any) as com.sun.star.text.TextCursor;
// Inserting some Text
text.insertString(cursor, "The first line in the newly created text document.\n", false);
// Inserting a second line
text.insertString(cursor, "Now we're in the second line", false);
// Create instance of a text table with 4 columns and 4 rows
const table = document.createInstance("com.sun.star.text.TextTable");
table.initialize(4, 4);
// Insert the table
text.insertTextContent(cursor, table, false);
// Get first row
const rows = table.Rows;
const row = rows.getByIndex(0) as com.sun.star.table.TableRow;
// Set the table background color
((table as any) as com.sun.star.beans.XPropertySet).setPropertyValue("BackTransparent", false);
((table as any) as com.sun.star.beans.XPropertySet).setPropertyValue("BackColor", 13421823);
// Set a different background color for the first row
row.setPropertyValue("BackTransparent", false);
row.setPropertyValue("BackColor", 6710932);
// Fill the first table row
insertIntoCell("A1", "FirstColumn", table); // insertIntoCell is a helper function, see below
insertIntoCell("B1", "SecondColumn", table);
insertIntoCell("C1", "ThirdColumn", table);
insertIntoCell("D1", "SUM", table);
table.getCellByName("A2").setValue(22.5);
table.getCellByName("B2").setValue(5615.3);
table.getCellByName("C2").setValue(-2315.7);
table.getCellByName("D2").setFormula("sum ");
table.getCellByName("A3").setValue(21.5);
table.getCellByName("B3").setValue(615.3);
table.getCellByName("C3").setValue(- 315.7);
table.getCellByName("D3").setFormula("sum ");
table.getCellByName("A4").setValue(121.5);
table.getCellByName("B4").setValue(-615.3);
table.getCellByName("C4").setValue(415.7);
table.getCellByName("D4").setFormula("sum ");
// Change the CharColor and add a Shadow
cursor.setPropertyValue("CharColor", 255);
cursor.setPropertyValue("CharShadowed", true);
// Create a paragraph break
// The second argument is a com::sun::star::text::ControlCharacter::PARAGRAPH_BREAK constant
text.insertControlCharacter(cursor, 0, false);
// Inserting colored Text.
text.insertString(cursor, " This is a colored Text - blue with shadow\n", false);
// Create a paragraph break ( ControlCharacter::PARAGRAPH_BREAK).
text.insertControlCharacter(cursor, 0, false);
// Create a TextFrame.
const textFrame = document.createInstance("com.sun.star.text.TextFrame");
// Create a Size struct.
const size = createStruct("com.sun.star.awt.Size"); // helper function, see below
size.Width = 15000;
size.Height = 400;
textFrame.setSize(size);
// TextContentAnchorType.AS_CHARACTER = 1
textFrame.setPropertyValue("AnchorType", com.sun.star.text.TextContentAnchorType.AS_CHARACTER);
// insert the frame
text.insertTextContent(cursor, textFrame, false);
// Get the text object of the frame
const objFrameText = textFrame.Text;
// Create a cursor object
const objFrameTextCursor = objFrameText.createTextCursor();
// Inserting some Text
objFrameText.insertString(objFrameTextCursor, "The first line in the newly created text frame.", false);
objFrameText.insertString(objFrameTextCursor, "\nWith this second line the height of the frame raises.", false);
// Create a paragraph break
// The second argument is a com::sun::star::text::ControlCharacter::PARAGRAPH_BREAK constant
objFrameText.insertControlCharacter(cursor, 0, false);
// Change the CharColor and add a Shadow
cursor.setPropertyValue("CharColor", 65536);
cursor.setPropertyValue("CharShadowed", false);
// Insert another string
text.insertString(cursor, " That's all for now !!", false);
function insertIntoCell(strCellName: string, strText: string, objTable: com.sun.star.text.TextTable) {
const objCellText = objTable.getCellByName(strCellName) as com.sun.star.table.Cell;
const objCellCursor = (objCellText.createTextCursor() as any) as com.sun.star.text.TextCursor;
objCellCursor.setPropertyValue("CharColor", 16777215);
objCellText.insertString(objCellCursor, strText, false);
}
function createStruct<K extends keyof LibreOffice.StructNameMap>(strTypeName: K): LibreOffice.StructNameMap[K] {
const classSize = coreReflection.forName(strTypeName);
const aStruct: [LibreOffice.StructNameMap[K]] = [] as any;
classSize.createObject(aStruct);
return aStruct[0];
}
})();
(() => {
// This shows some specific features of the Automation bridge
const serviceManager = new ActiveXObject('com.sun.star.ServiceManager');
// singleton access
const desktop = serviceManager.defaultContext.getByName('/singleton/com.sun.star.frame.theDesktop');
// defaultContext property implements XNameAccess
// sequence is returned as a safearray
const elementNames = new VBArray(serviceManager.defaultContext.getElementNames()).toArray().join('\n');
WScript.Echo(elementNames);
// get/set methods exposed as properties -- getText => Text, getViewData/setViewData => ViewData
const document = desktop.loadComponentFromURL("private:factory/swriter", "_blank", 0, []);
const viewData = document.ViewData;
WScript.Echo(viewData.Count);
const text = document.Text;
WScript.Echo(text);
})();
(() => {
// Forces use of tuple type for out parameters
// Instantiating via reflection
const serviceManager = new ActiveXObject('com.sun.star.ServiceManager');
const coreReflection = serviceManager.defaultContext.getByName('/singleton/com.sun.star.reflection.theCoreReflection');
const classInfo = coreReflection.forName('com.sun.star.accessibility.Accessible');
const accessible: [com.sun.star.accessibility.XAccessible] = [] as any;
classInfo.createObject(accessible);
accessible[0].acquire();
// Get a struct via Bridge_GetStruct
const size = serviceManager.Bridge_GetStruct('com.sun.star.awt.Size');
size.Height = 110;
size.Width = 120;
})();

105882
types/activex-libreoffice/index.d.ts vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,21 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": ["es5", "scripthost"],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"activex-libreoffice-tests.ts"
]
}

View File

@ -0,0 +1,8 @@
{
"extends": "dtslint/dt.json",
"rules": {
"interface-name": [false],
"ban-types": false,
"no-unnecessary-qualifier": false
}
}

View File

@ -513,12 +513,10 @@ export interface Client extends events.EventEmitter {
connect(callback: Callback): void;
eachRow(query: string, params?: any, options?: QueryOptions, rowCallback?: Callback, callback?: Callback): void;
execute(query: string, params: any, options: QueryOptions, callback: ResultCallback): void;
execute(query: string, params: any, callback: ResultCallback): void;
execute(query: string, callback: ResultCallback): void;
execute(query: string, params?: any, options?: QueryOptions): Promise<types.ResultSet>;
getReplicas(keyspace: string, token: Buffer): Array<any>; // TODO: Should this be a more explicit return?
shutdown(callback?: Callback): void;
stream(query: string, params?: any, options?: QueryOptions, callback?: Callback): NodeJS.ReadableStream;

View File

@ -67,66 +67,66 @@ export type InferableComponentEnhancer<TInjectedProps> =
*/
export declare function connect(): InferableComponentEnhancer<DispatchProp<any>>;
export declare function connect<TStateProps, no_dispatch, TOwnProps>(
export declare function connect<TStateProps = {}, no_dispatch = {}, TOwnProps = {}>(
mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps>
): InferableComponentEnhancerWithProps<TStateProps & DispatchProp<any>, TOwnProps>;
export declare function connect<no_state, TDispatchProps, TOwnProps>(
export declare function connect<no_state = {}, TDispatchProps = {}, TOwnProps = {}>(
mapStateToProps: null | undefined,
mapDispatchToProps: MapDispatchToPropsParam<TDispatchProps, TOwnProps>
): InferableComponentEnhancerWithProps<TDispatchProps, TOwnProps>;
export declare function connect<TStateProps, TDispatchProps, TOwnProps>(
export declare function connect<TStateProps = {}, TDispatchProps = {}, TOwnProps = {}>(
mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps>,
mapDispatchToProps: MapDispatchToPropsParam<TDispatchProps, TOwnProps>
): InferableComponentEnhancerWithProps<TStateProps & TDispatchProps, TOwnProps>;
export declare function connect<TStateProps, no_dispatch, TOwnProps, TMergedProps>(
export declare function connect<TStateProps = {}, no_dispatch = {}, TOwnProps = {}, TMergedProps = {}>(
mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps>,
mapDispatchToProps: null | undefined,
mergeProps: MergeProps<TStateProps, undefined, TOwnProps, TMergedProps>,
): InferableComponentEnhancerWithProps<TMergedProps, TOwnProps>;
export declare function connect<no_state, TDispatchProps, TOwnProps, TMergedProps>(
export declare function connect<no_state = {}, TDispatchProps = {}, TOwnProps = {}, TMergedProps = {}>(
mapStateToProps: null | undefined,
mapDispatchToProps: MapDispatchToPropsParam<TDispatchProps, TOwnProps>,
mergeProps: MergeProps<undefined, TDispatchProps, TOwnProps, TMergedProps>,
): InferableComponentEnhancerWithProps<TMergedProps, TOwnProps>;
export declare function connect<no_state, no_dispatch, TOwnProps, TMergedProps>(
export declare function connect<no_state = {}, no_dispatch = {}, TOwnProps = {}, TMergedProps = {}>(
mapStateToProps: null | undefined,
mapDispatchToProps: null | undefined,
mergeProps: MergeProps<undefined, undefined, TOwnProps, TMergedProps>,
): InferableComponentEnhancerWithProps<TMergedProps, TOwnProps>;
export declare function connect<TStateProps, TDispatchProps, TOwnProps, TMergedProps>(
export declare function connect<TStateProps = {}, TDispatchProps = {}, TOwnProps = {}, TMergedProps = {}>(
mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps>,
mapDispatchToProps: MapDispatchToPropsParam<TDispatchProps, TOwnProps>,
mergeProps: MergeProps<TStateProps, TDispatchProps, TOwnProps, TMergedProps>,
): InferableComponentEnhancerWithProps<TMergedProps, TOwnProps>;
export declare function connect<TStateProps, no_dispatch, TOwnProps>(
export declare function connect<TStateProps = {}, no_dispatch = {}, TOwnProps = {}>(
mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps>,
mapDispatchToProps: null | undefined,
mergeProps: null | undefined,
options: Options<TStateProps, TOwnProps>
): InferableComponentEnhancerWithProps<DispatchProp<any> & TStateProps, TOwnProps>;
export declare function connect<no_state, TDispatchProps, TOwnProps>(
export declare function connect<no_state = {}, TDispatchProps = {}, TOwnProps = {}>(
mapStateToProps: null | undefined,
mapDispatchToProps: MapDispatchToPropsParam<TDispatchProps, TOwnProps>,
mergeProps: null | undefined,
options: Options<no_state, TOwnProps>
): InferableComponentEnhancerWithProps<TDispatchProps, TOwnProps>;
export declare function connect<TStateProps, TDispatchProps, TOwnProps>(
export declare function connect<TStateProps = {}, TDispatchProps = {}, TOwnProps = {}>(
mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps>,
mapDispatchToProps: MapDispatchToPropsParam<TDispatchProps, TOwnProps>,
mergeProps: null | undefined,
options: Options<TStateProps, TOwnProps>
): InferableComponentEnhancerWithProps<TStateProps & TDispatchProps, TOwnProps>;
export declare function connect<TStateProps, TDispatchProps, TOwnProps, TMergedProps>(
export declare function connect<TStateProps = {}, TDispatchProps = {}, TOwnProps = {}, TMergedProps = {}>(
mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps>,
mapDispatchToProps: MapDispatchToPropsParam<TDispatchProps, TOwnProps>,
mergeProps: MergeProps<TStateProps, TDispatchProps, TOwnProps, TMergedProps>,

View File

@ -57,7 +57,7 @@ interface ICounterDispatchProps {
onIncrement: () => void
}
// with higher order functions
connect<ICounterStateProps, ICounterDispatchProps, {}>(
connect<ICounterStateProps, ICounterDispatchProps>(
() => mapStateToProps,
() => mapDispatchToProps
)(Counter);
@ -67,11 +67,11 @@ connect<ICounterStateProps, ICounterDispatchProps, {}>(
(dispatch: Dispatch<CounterState>, ownProps) => mapDispatchToProps
)(Counter);
// only first argument
connect<ICounterStateProps, {}, {}>(
connect<ICounterStateProps>(
() => mapStateToProps
)(Counter);
// wrap only one argument
connect<ICounterStateProps, ICounterDispatchProps, {}>(
connect<ICounterStateProps, ICounterDispatchProps>(
mapStateToProps,
() => mapDispatchToProps
)(Counter);

View File

@ -51,6 +51,7 @@ export interface AreaProps extends Partial<CSSStyleDeclaration> {
onMouseEnter?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class Area extends React.Component<AreaProps> { }
export interface AreaChartProps {
@ -67,6 +68,7 @@ export interface AreaChartProps {
onMouseMove?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class AreaChart extends React.Component<AreaChartProps> { }
export interface BarProps extends Partial<CSSStyleDeclaration> {
@ -96,6 +98,7 @@ export interface BarProps extends Partial<CSSStyleDeclaration> {
onMouseEnter?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class Bar extends React.Component<BarProps> { }
export interface BarChartProps {
@ -115,6 +118,7 @@ export interface BarChartProps {
onMouseMove?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class BarChart extends React.Component<BarChartProps> { }
export interface BrushProps {
@ -130,6 +134,7 @@ export interface BrushProps {
tickFormatter?: RechartsFunction;
onChange?: RechartsFunction;
}
export class Brush extends React.Component<BrushProps> { }
export interface CartesianAxisProps {
@ -148,6 +153,7 @@ export interface CartesianAxisProps {
label?: string | number | React.ReactElement<any> | RechartsFunction;
mirror?: boolean;
}
export class CartesianAxis extends React.Component<CartesianAxisProps> { }
export interface CartesianGridProps extends Partial<CSSStyleDeclaration> {
@ -158,12 +164,14 @@ export interface CartesianGridProps extends Partial<CSSStyleDeclaration> {
horizontalPoints?: any[];
verticalPoints?: any[];
}
export class CartesianGrid extends React.Component<CartesianGridProps> { }
export interface CellProps {
fill?: string;
stroke?: string;
}
export class Cell extends React.Component<CellProps> { }
export interface ComposedChartProps {
@ -181,6 +189,7 @@ export interface ComposedChartProps {
onMouseMove?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class ComposedChart extends React.Component<ComposedChartProps> { }
export interface CrossProps {
@ -191,6 +200,7 @@ export interface CrossProps {
width?: number;
height?: number;
}
export class Cross extends React.Component<CrossProps> { }
export interface CurveProps extends Partial<CSSStyleDeclaration> {
@ -208,6 +218,7 @@ export interface CurveProps extends Partial<CSSStyleDeclaration> {
onMouseEnter?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class Curve extends React.Component<CurveProps> { }
export interface DotProps {
@ -223,6 +234,7 @@ export interface DotProps {
onMouseMove?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class Dot extends React.Component<DotProps> { }
export interface ErrorBarProps extends Partial<CSSStyleDeclaration> {
@ -231,6 +243,7 @@ export interface ErrorBarProps extends Partial<CSSStyleDeclaration> {
stroke?: string;
direction?: string;
}
export class ErrorBar extends React.Component<ErrorBarProps> { }
export interface LegendProps {
@ -256,6 +269,7 @@ export interface LegendProps {
onMouseEnter?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class Legend extends React.Component<LegendProps> { }
export interface LineProps extends Partial<CSSStyleDeclaration> {
@ -284,6 +298,7 @@ export interface LineProps extends Partial<CSSStyleDeclaration> {
onMouseEnter?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class Line extends React.Component<LineProps> { }
export interface LineChartProps {
@ -298,6 +313,7 @@ export interface LineChartProps {
onMouseMove?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class LineChart extends React.Component<LineChartProps> { }
export interface PieProps extends Partial<CSSStyleDeclaration> {
@ -330,6 +346,7 @@ export interface PieProps extends Partial<CSSStyleDeclaration> {
onMouseEnter?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class Pie extends React.Component<PieProps> { }
export interface PieChartProps {
@ -340,6 +357,7 @@ export interface PieChartProps {
onMouseEnter?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class PieChart extends React.Component<PieChartProps> { }
export interface PolarAngleAxisProps {
@ -363,6 +381,7 @@ export interface PolarAngleAxisProps {
onMouseEnter?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class PolarAngleAxis extends React.Component<PolarAngleAxisProps> { }
export interface PolarGridProps extends Partial<CSSStyleDeclaration> {
@ -374,6 +393,7 @@ export interface PolarGridProps extends Partial<CSSStyleDeclaration> {
polarRadius: any[];
gridType?: 'polygon' | 'circle';
}
export class PolarGrid extends React.Component<PolarGridProps> { }
export interface PolarRadiusAxisProps {
@ -397,6 +417,7 @@ export interface PolarRadiusAxisProps {
onMouseEnter?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class PolarRadiusAxis extends React.Component<PolarRadiusAxisProps> { }
export interface PolygonProps {
@ -410,6 +431,7 @@ export interface PolygonProps {
onMouseEnter?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class Polygon extends React.Component<PolygonProps> { }
export interface RadarProps extends Partial<CSSStyleDeclaration> {
@ -423,6 +445,7 @@ export interface RadarProps extends Partial<CSSStyleDeclaration> {
animationBegin?: number;
animationEasing?: AnimationEasingType;
}
export class Radar extends React.Component<RadarProps> { }
export interface RadarChartProps {
@ -439,6 +462,7 @@ export interface RadarChartProps {
onMouseLeave?: RechartsFunction;
onClick?: RechartsFunction;
}
export class RadarChart extends React.Component<RadarChartProps> { }
export interface RadialBarProps extends Partial<CSSStyleDeclaration> {
@ -464,6 +488,7 @@ export interface RadialBarProps extends Partial<CSSStyleDeclaration> {
onMouseEnter?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class RadialBar extends React.Component<RadialBarProps> { }
export interface RadialBarChartProps {
@ -482,6 +507,7 @@ export interface RadialBarChartProps {
onMouseLeave?: RechartsFunction;
onClick?: RechartsFunction;
}
export class RadialBarChart extends React.Component<RadialBarChartProps> { }
export interface RectangleProps extends Partial<CSSStyleDeclaration> {
@ -497,6 +523,7 @@ export interface RectangleProps extends Partial<CSSStyleDeclaration> {
onMouseEnter?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class Rectangle extends React.Component<RectangleProps> { }
export interface ReferenceAreaProps {
@ -513,6 +540,7 @@ export interface ReferenceAreaProps {
label?: string | number | React.ReactElement<any> | RechartsFunction;
isFront?: boolean;
}
export class ReferenceArea extends React.Component<ReferenceAreaProps> { }
export interface ReferenceDotProps {
@ -534,6 +562,7 @@ export interface ReferenceDotProps {
onMouseMove?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class ReferenceDot extends React.Component<ReferenceDotProps> { }
export interface ReferenceLineProps {
@ -548,6 +577,7 @@ export interface ReferenceLineProps {
label?: string | number | React.ReactElement<any> | RechartsFunction;
isFront?: boolean;
}
export class ReferenceLine extends React.Component<ReferenceLineProps> { }
export interface ResponsiveContainerProps {
@ -558,6 +588,7 @@ export interface ResponsiveContainerProps {
minHeight?: number;
debounce?: number;
}
export class ResponsiveContainer extends React.Component<ResponsiveContainerProps> { }
export interface ScatterProps extends Partial<CSSStyleDeclaration> {
@ -581,6 +612,7 @@ export interface ScatterProps extends Partial<CSSStyleDeclaration> {
onMouseEnter?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class Scatter extends React.Component<ScatterProps> { }
export interface ScatterChartProps {
@ -596,6 +628,7 @@ export interface ScatterChartProps {
onMouseEnter?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class ScatterChart extends React.Component<ScatterChartProps> { }
export interface SectorProps {
@ -615,6 +648,7 @@ export interface SectorProps {
onMouseEnter?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class Sector extends React.Component<SectorProps> { }
export interface TextProps extends Partial<CSSStyleDeclaration> {
@ -623,6 +657,7 @@ export interface TextProps extends Partial<CSSStyleDeclaration> {
textAnchor?: 'start' | 'middle' | 'end' | 'inherit';
verticalAnchor?: 'start' | 'middle' | 'end';
}
export class Text extends React.Component<TextProps> { }
export interface ViewBox {
@ -660,6 +695,7 @@ export interface TooltipProps {
animationBegin?: number;
animationEasing?: AnimationEasingType;
}
export class Tooltip extends React.Component<TooltipProps> { }
export interface TreemapProps {
@ -671,6 +707,7 @@ export interface TreemapProps {
animationBegin?: number;
animationEasing?: AnimationEasingType;
}
export class Treemap extends React.Component<TreemapProps> { }
export interface XPadding {
@ -713,6 +750,7 @@ export interface XAxisProps {
onMouseEnter?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class XAxis extends React.Component<XAxisProps> { }
export interface YPadding {
@ -755,6 +793,7 @@ export interface YAxisProps {
onMouseEnter?: RechartsFunction;
onMouseLeave?: RechartsFunction;
}
export class YAxis extends React.Component<YAxisProps> { }
export interface ZAxisProps {
@ -765,4 +804,5 @@ export interface ZAxisProps {
name?: string | number;
scale?: ScaleType | RechartsFunction;
}
export class ZAxis extends React.Component<ZAxisProps> { }