UNPKG

igniteui-webcomponents-charts

Version:

Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.

82 lines (81 loc) 1.83 kB
import { IgcAxisComponent } from "./igc-axis-component"; import { fromPoint, toPoint } from "igniteui-webcomponents-core"; export class IgcAxisMouseEventArgs { /** * @hidden */ get i() { return this._implementation; } onImplementationCreated() { } constructor() { } _provideImplementation(i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } get axis() { const r = this.i.a; if (r == null) { return null; } if (!r.externalObject) { let e = IgcAxisComponent._createFromInternal(r); if (e) { e._implementation = r; } r.externalObject = e; } return r.externalObject; } set axis(v) { v == null ? this.i.a = null : this.i.a = v.i; } get axisValue() { return this.i.c; } set axisValue(v) { this.i.c = +v; } get axisDateValue() { return this.i.b; } set axisDateValue(v) { this.i.b = v; } get chartPosition() { return fromPoint(this.i.f); } set chartPosition(v) { this.i.f = toPoint(v); } get plotAreaPosition() { return fromPoint(this.i.g); } set plotAreaPosition(v) { this.i.g = toPoint(v); } get worldPosition() { return fromPoint(this.i.h); } set worldPosition(v) { this.i.h = toPoint(v); } get label() { return this.i.e; } set label(v) { this.i.e = v; } get labelContext() { return this.i.d; } set labelContext(v) { this.i.d = v; } }