File tree Expand file tree Collapse file tree 3 files changed +18
-8
lines changed
Expand file tree Collapse file tree 3 files changed +18
-8
lines changed Original file line number Diff line number Diff line change 99 "vite" : " deno run -A --node-modules-dir npm:vite" ,
1010 "check" : " deno check lib/widget.ts"
1111 },
12+ "nodeModulesDir" : " auto" ,
1213 "compilerOptions" : {
1314 "verbatimModuleSyntax" : true ,
1415 "lib" : [
Original file line number Diff line number Diff line change @@ -114,9 +114,9 @@ export class DataTable extends MosaicClient {
114114 maxHeight = `${ source . height } px` ;
115115 }
116116
117- let tableRoot = html `< div class =" table-container " style = ${ {
118- maxHeight,
119- } } > `;
117+ let tableRoot = html `
118+ < div class =" table-container " style =" ${ { maxHeight } } " > </ div >
119+ ` ;
120120 // @deno -fmt-ignore
121121 tableRoot . appendChild (
122122 html . fragment `< table style =${ { tableLayout : "fixed" } } > ${ this . #thead} ${ this . #tbody} </ table > `
@@ -132,9 +132,15 @@ export class DataTable extends MosaicClient {
132132 }
133133 } ) ;
134134
135- let container = html `< div class ="quak "> </ div > ` ;
135+ let container = html `
136+ < div class ="quak "> </ div >
137+ ` ;
136138 container . appendChild ( tableRoot ) ;
137- this . #shadowRoot. appendChild ( html `< style > ${ stylesString } </ style > ` ) ;
139+ this . #shadowRoot. appendChild ( html `
140+ < style >
141+ ${ stylesString }
142+ </ style >
143+ ` ) ;
138144 this . #shadowRoot. appendChild ( container ) ;
139145 }
140146
@@ -401,8 +407,9 @@ function thcol(
401407 </ svg > ` ;
402408 let uparrow : SVGPathElement = svg . children [ 0 ] ;
403409 let downarrow : SVGPathElement = svg . children [ 1 ] ;
404- let verticalResizeHandle : HTMLDivElement =
405- html `< div class ="resize-handle "> </ div > ` ;
410+ let verticalResizeHandle : HTMLDivElement = html `
411+ < div class ="resize-handle "> </ div >
412+ ` ;
406413 // @deno -fmt-ignore
407414 let sortButton = html `< span aria-role ="button " class ="sort-button " onmousedown =${ nextSortState } > ${ svg } </ span > ` ;
408415 // @deno -fmt-ignore
Original file line number Diff line number Diff line change @@ -72,9 +72,11 @@ export default () => {
7272 logger . error ( msg . error ) ;
7373 return ;
7474 } else {
75+ const buffer = buffers [ 0 ] . buffer ;
76+ assert ( buffer instanceof ArrayBuffer || buffer instanceof Uint8Array ) ;
7577 switch ( msg . type ) {
7678 case "arrow" : {
77- let table = flech . tableFromIPC ( buffers [ 0 ] . buffer ) ;
79+ let table = flech . tableFromIPC ( buffer ) ;
7880 logger . log ( "table" , table ) ;
7981 query . resolve ( table ) ;
8082 break ;
You can’t perform that action at this time.
0 commit comments