UNPKG

powerbi-visuals-utils-dataviewutils

Version:
12 lines (11 loc) 907 B
import powerbi from "powerbi-visuals-api"; import IDataViewObject = powerbi.DataViewObject; import DataViewObjects = powerbi.DataViewObjects; import DataViewObjectPropertyIdentifier = powerbi.DataViewObjectPropertyIdentifier; /** Gets the value of the given object/property pair. */ export declare function getValue<T>(objects: DataViewObjects, propertyId: DataViewObjectPropertyIdentifier, defaultValue?: T): T; /** Gets an object from objects. */ export declare function getObject(objects: DataViewObjects, objectName: string, defaultValue?: IDataViewObject): IDataViewObject; /** Gets the solid color from a fill property. */ export declare function getFillColor(objects: DataViewObjects, propertyId: DataViewObjectPropertyIdentifier, defaultColor?: string): string; export declare function getCommonValue(objects: DataViewObjects, propertyId: DataViewObjectPropertyIdentifier, defaultValue?: any): any;