UNPKG

igniteui-angular-charts

Version:

Ignite UI Angular charting components for building rich data visualizations for modern web apps.

81 lines (80 loc) 1.96 kB
import { SeriesMatcher as SeriesMatcher_internal } from "./SeriesMatcher"; export class IgxSeriesMatcher { constructor() { this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } createImplementation() { return new SeriesMatcher_internal(); } /** * @hidden */ get i() { return this._implementation; } onImplementationCreated() { } _provideImplementation(i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); } /** * If set, tries to match a series based on its name. */ get name() { return this.i.g; } set name(v) { this.i.g = v; } /** * If set, tries to match a series based on its title. */ get title() { return this.i.h; } set title(v) { this.i.h = v; } /** * If set, tries to match a series based on index */ get index() { return this.i.d; } set index(v) { this.i.d = +v; } /** * Combined with MemberPath allows you to select a series by member path. */ get memberPathType() { return this.i.f; } set memberPathType(v) { this.i.f = v; } /** * If set, tries to match a series based on a member path, combined with MemberPathType. */ get memberPath() { return this.i.e; } set memberPath(v) { this.i.e = v; } findByName(name) { if (this.findEphemera) { if (name && name.indexOf("@@e:") == 0) { return this.findEphemera(name); } } return null; } }