API Reference@grafana/dataBinaryOperationVector

BinaryOperationVector class

Signature

export declare class BinaryOperationVector implements Vector<number> 

Import

import { BinaryOperationVector } from '@grafana/data';

Constructors

ConstructorModifiersDescription
constructor(left, right, operation)Constructs a new instance of the BinaryOperationVector class

Properties

PropertyModifiersTypeDescription
lengthnumber

Methods

MethodModifiersDescription
get(index)
toArray()
toJSON()

constructor(left, right, operation)

Constructs a new instance of the BinaryOperationVector class

Signature

constructor(left: Vector<number>, right: Vector<number>, operation: BinaryOperation);

Parameters

ParameterTypeDescription
leftVector<number>
rightVector<number>
operationBinaryOperation

length property

Signature

get length(): number;

get method

Signature

get(index: number): number;

Parameters

ParameterTypeDescription
indexnumber

Returns:

number

toArray method

Signature

toArray(): number[];

Returns:

number[]

toJSON method

Signature

toJSON(): number[];

Returns:

number[]