@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
38 lines (37 loc) • 1.48 kB
TypeScript
import { Injector, OnInit } from '@angular/core';
import { CapacityBase } from '../common/capacity-base.component';
import { HorizontalBar } from './custom-horizontal-bar-chart-data.interface';
import * as i0 from "@angular/core";
export declare class StackedBarComponent extends CapacityBase implements OnInit {
/**
* The source name to use for logging
*/
protected get logSourceName(): string;
/**
* Input binding for this bar instance
*/
bar: HorizontalBar;
/**
* Input binding for index of this bar instance in the HorizontalBars array
*/
index: number;
/**
* Input binding for capacity bars data
*/
bars: HorizontalBar[];
constructor(injector: Injector);
ngOnInit(): void;
addClasses(): void;
private getValue;
getWidth(bar: HorizontalBar): string;
getColor(bar: HorizontalBar): string;
addStyles(): void;
getOffset(index: number, rightSideBar?: boolean): string;
/**
* Gets the initial host classes to be applied to this element
* Derived classes are always expected to call super.getInitialHostClasses() when overriding
*/
protected getInitialHostClasses(): string[];
static ɵfac: i0.ɵɵFactoryDeclaration<StackedBarComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<StackedBarComponent, "sme-stacked-bar", never, { "bar": "bar"; "index": "index"; "bars": "bars"; }, {}, never, never, false, never>;
}