File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,22 +10,22 @@ export function selectLast(options) {
1010}
1111
1212export function selectMinX ( options = { } ) {
13- if ( options . x === undefined ) throw "missing channel x" ;
13+ if ( options . x === undefined ) throw new Error ( "missing channel: x" ) ;
1414 return select ( min , options . x , options ) ;
1515}
1616
1717export function selectMinY ( options = { } ) {
18- if ( options . y === undefined ) throw "missing channel y" ;
18+ if ( options . y === undefined ) throw new Error ( "missing channel: y" ) ;
1919 return select ( min , options . y , options ) ;
2020}
2121
2222export function selectMaxX ( options = { } ) {
23- if ( options . x === undefined ) throw "missing channel x" ;
23+ if ( options . x === undefined ) throw new Error ( "missing channel: x" ) ;
2424 return select ( max , options . x , options ) ;
2525}
2626
2727export function selectMaxY ( options = { } ) {
28- if ( options . y === undefined ) throw "missing channel y" ;
28+ if ( options . y === undefined ) throw new Error ( "missing channel: y" ) ;
2929 return select ( max , options . y , options ) ;
3030}
3131
You can’t perform that action at this time.
0 commit comments