NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/@antv/data-set/lib/view.d.ts

118 lines
3.3 KiB
TypeScript
Raw Normal View History

2023-09-14 14:47:11 +08:00
import EventEmitter from 'wolfy87-eventemitter';
import { DataSet } from './data-set';
import { StatisticsApi } from './api/statistics';
import { PartitionApi } from './api/partition';
import { HierarchyApi } from './api/hierarchy';
import { GeoApi } from './api/geo';
import { TransformsParams } from './transform-params';
import { ConnectorParams } from './connector-params';
export interface ViewOptions {
watchingStates?: string[];
}
declare type TransformOptions<T extends keyof TransformsParams = any> = {
type: T;
} & TransformsParams[T];
declare type ConnectorOptions<T extends keyof ConnectorParams = any> = {
type: T;
} & ConnectorParams[T][1];
interface CustomSource {
source: any;
options: any;
}
/**
*
* @public
*/
export declare class View extends EventEmitter {
static DataSet: typeof DataSet;
/**
*
*/
dataSet: DataSet | null;
/**
*
*/
loose: boolean;
/**
* View
*/
isView: boolean;
/**
* View
*/
isDataView: boolean;
/**
*
*/
private watchingStates;
/**
*
*/
dataType: string;
/**
* transform
*/
transforms: TransformOptions[];
/**
*
*/
origin: any[];
/**
*
*/
rows: any[];
_source: CustomSource;
_tagCloud: any;
graph: {
nodes: any[];
edges: any[];
};
nodes: any[];
edges: any[];
_projectedAs: string[];
_gridRows: any;
_HexJSON: any;
_GridHexJSON: any;
constructor(options?: ViewOptions);
constructor(dataSet?: DataSet, options?: ViewOptions);
private _parseStateExpression;
private _preparseOptions;
private _prepareSource;
/**
*
*
* @remarks
* data options 使 connector 使
*
* @param source -
* @param options-
*/
source(source: string): View;
source(source: any[]): View;
source(source: View): View;
source<T extends keyof ConnectorParams>(source: ConnectorParams[T][0], options: ConnectorOptions<T>): View;
/**
* transform
* @param options - transform
*/
transform<T extends keyof TransformsParams>(options?: TransformOptions<T>): View;
private _executeTransform;
private _reExecuteTransforms;
addRow(row: any): void;
removeRow(index: number): void;
updateRow(index: number, newRow: any): void;
findRows(query: any): any[];
findRow(query: any): any;
getColumnNames(): string[];
getColumnName(index: number): string;
getColumnIndex(columnName: string): number;
getColumn(columnName: string): any[];
getColumnData(columnName: string): any[];
getSubset(startRowIndex: number, endRowIndex: number, columnNames: string[]): any[];
toString(prettyPrint?: boolean): string;
private _reExecute;
}
export interface View extends StatisticsApi, PartitionApi, HierarchyApi, GeoApi {
}
export {};