@sjcrh/proteinpaint-types 2.87.0 → 2.88.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/dataset.ts +12 -3
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mclass } from './Mclass.ts'
|
|
1
|
+
import type { Mclass } from './Mclass.ts'
|
|
2
2
|
|
|
3
3
|
/*** General usage types ***/
|
|
4
4
|
type FileObj = {
|
|
@@ -1188,7 +1188,6 @@ type AssayAvailability = {
|
|
|
1188
1188
|
|
|
1189
1189
|
//Shared with genome.ts
|
|
1190
1190
|
export type Cohort = {
|
|
1191
|
-
allowedChartTypes?: string[]
|
|
1192
1191
|
cumburden?: {
|
|
1193
1192
|
files: {
|
|
1194
1193
|
fit: string
|
|
@@ -1200,7 +1199,6 @@ export type Cohort = {
|
|
|
1200
1199
|
/** customize the default chart to open on mass ui when there's no charts. if
|
|
1201
1200
|
* missing it opens dictionary ui */
|
|
1202
1201
|
defaultChartType?: string
|
|
1203
|
-
hiddenChartTypes?: string[]
|
|
1204
1202
|
massNav?: MassNav
|
|
1205
1203
|
matrixplots?: MatrixPlots
|
|
1206
1204
|
mutationset?: MutationSet[]
|
|
@@ -1545,6 +1543,16 @@ export type PreInit = {
|
|
|
1545
1543
|
}
|
|
1546
1544
|
}
|
|
1547
1545
|
|
|
1546
|
+
/** supply "isSupported()" kind of callback per chart type,
|
|
1547
|
+
that will overwrite default logic in getSupportedChartTypes()
|
|
1548
|
+
- the callback can have arbitrary logic based on requirements from this ds
|
|
1549
|
+
- can supply ()=>false to hide charts that will otherwise shown
|
|
1550
|
+
- can define arbitrary chart type names for purpose-specific charts
|
|
1551
|
+
*/
|
|
1552
|
+
export type isSupportedChartCallbacks = {
|
|
1553
|
+
[chartType: string]: (f: any, auth: any) => boolean | undefined
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1548
1556
|
export type Mds3 = BaseMds & {
|
|
1549
1557
|
label?: Title
|
|
1550
1558
|
isMds3: boolean
|
|
@@ -1555,6 +1563,7 @@ export type Mds3 = BaseMds & {
|
|
|
1555
1563
|
dsinfo?: KeyVal[]
|
|
1556
1564
|
queries?: Mds3Queries
|
|
1557
1565
|
cohort?: Cohort
|
|
1566
|
+
isSupportedChartOverride?: isSupportedChartCallbacks
|
|
1558
1567
|
// TODO: termdb should be nested under cohort
|
|
1559
1568
|
termdb?: Termdb
|
|
1560
1569
|
validate_filter0?: (f: any) => void
|