@deephaven/jsapi-types
Advanced tools
Comparing version 0.39.1-beta.5 to 0.39.1-chart-refactor.13
@@ -55,4 +55,3 @@ export default dh; | ||
} | ||
export type VariableTypeUnion = typeof VariableType[keyof typeof VariableType]; | ||
export interface VariableDefinition<T extends VariableTypeUnion = VariableTypeUnion> { | ||
export interface VariableDefinition<T extends string = string> { | ||
type: T; | ||
@@ -168,2 +167,3 @@ /** | ||
DownsampleOptions: DownsampleOptions; | ||
ChartData: typeof ChartData; | ||
} | ||
@@ -861,2 +861,18 @@ export interface RemoverFn { | ||
} | ||
/** | ||
* Helper class to manage snapshots and deltas and keep not only a contiguous JS array of data per column in the | ||
* underlying table, but also support a mapping function to let client code translate data in some way for display and | ||
* keep that cached as well. | ||
*/ | ||
declare class ChartData { | ||
constructor(table: Table); | ||
update(eventDetail: object): void; | ||
getColumn(columnName: string, mappingFunc: (input: any) => any, currentUpdate: TableData): Array<any>; | ||
/** | ||
* Removes some column from the cache, avoiding extra computation on incoming events, and possibly freeing some | ||
* memory. If this pair of column name and map function are requested again, it will be recomputed from scratch. | ||
*/ | ||
removeColumn(columnName: string, mappingFunc: (input: any) => any): void; | ||
} | ||
export type { ChartData }; | ||
//# sourceMappingURL=dh.types.d.ts.map |
{ | ||
"name": "@deephaven/jsapi-types", | ||
"version": "0.39.1-beta.5+4b3cd624", | ||
"version": "0.39.1-chart-refactor.13+a07a0697", | ||
"description": "Deephaven JSAPI Types", | ||
@@ -24,3 +24,3 @@ "author": "Deephaven Data Labs LLC", | ||
"devDependencies": { | ||
"@deephaven/tsconfig": "^0.39.1-beta.5+4b3cd624" | ||
"@deephaven/tsconfig": "^0.39.1-chart-refactor.13+a07a0697" | ||
}, | ||
@@ -34,3 +34,3 @@ "files": [ | ||
}, | ||
"gitHead": "4b3cd6245e2317029fdced68f2689d6ac244fc73" | ||
"gitHead": "a07a069709da100c12eb35424d11c2c0d7f8b062" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
102089
901