highcharts
Version:
JavaScript charting framework
56 lines (55 loc) • 1.97 kB
TypeScript
/*!*
*
* Copyright (c) Highsoft AS. All rights reserved.
*
*!*/
import * as globals from "../globals.src";
import * as _Highcharts from "../highcharts.src";
declare module "../highcharts.src" {
interface Point {
/**
* Utility to get the position of the marker, based on the path angle
* and the marker's radius.
*
* @param radians
* The angle in radians from the point center to another vector.
*
* @param markerRadius
* The radius of the marker, to calculate the additional distance
* to the center of the marker.
*
* @param anchor
* The anchor point of the path and marker as an object with x/y
* properties.
*
* @return The marker vector as an object with x/y properties.
*/
getMarkerVector(radians: number, markerRadius: number, anchor: object): object;
/**
* Get coordinates of anchor point for pathfinder connection.
*
* @param markerOptions
* Connection options for position on point.
*
* @return An object with x/y properties for the position. Coordinates
* are in plot values, not relative to point.
*/
getPathfinderAnchorPoint(markerOptions: ConnectorsMarkerOptions): PositionObject;
/**
* Utility to get the angle from one point to another.
*
* @param v1
* The first vector, as an object with x/y properties.
*
* @param v2
* The second vector, as an object with x/y properties.
*
* @return The angle in degrees
*/
getRadiansToVector(v1: PositionObject, v2: PositionObject): number;
}
function getCurvedPath(): void;
function getOrthogonalPath(): void;
function getStraightPath(): void;
}
export default _Highcharts;