File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
import type { ChannelValue } from "../channel.js" ;
2
- import type { Transformed } from "./basic.js" ;
2
+ import type { CompareFunction , Transformed } from "./basic.js" ;
3
3
4
4
/**
5
5
* A built-in stack offset method; one of:
@@ -62,15 +62,16 @@ export type StackOrderName = "value" | "x" | "y" | "z" | "sum" | "appearance" |
62
62
*
63
63
* - a named stack order method such as *inside-out* or *sum*
64
64
* - a field name, for natural order of the corresponding values
65
- * - a function of data , for natural order of the corresponding values
65
+ * - an accessor function , for natural order of the corresponding values
66
66
* - a comparator function for ordering data
67
67
* - an array of explicit **z** values in the desired order
68
68
*/
69
69
export type StackOrder =
70
70
| StackOrderName
71
71
| `-${StackOrderName } `
72
72
| ( string & Record < never , never > )
73
- | ( ( a : any , b : any ) => any )
73
+ | ( ( d : any ) => any ) // accessor
74
+ | CompareFunction
74
75
| any [ ] ;
75
76
76
77
/** Options for the stack transform. */
You can’t perform that action at this time.
0 commit comments