1111// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
1212
1313import type { IPerspectiveViewerPlugin } from "@finos/perspective-viewer" ;
14- import { register } from "./plugin/plugin" ;
15- register ( ) ;
14+ import { init } from "./plugin/d3fc_global_styles" ;
15+
16+ await init ( ) ;
1617
1718declare global {
1819 interface CustomElementRegistry {
1920 get (
2021 tagName : "perspective-viewer-d3fc-area"
21- ) : HTMLPerspectiveViewerD3FCPluginElement ;
22+ ) : typeof HTMLPerspectiveViewerD3FCPluginElement ;
2223 get (
2324 tagName : "perspective-viewer-d3fc-xbar"
24- ) : HTMLPerspectiveViewerD3FCPluginElement ;
25+ ) : typeof HTMLPerspectiveViewerD3FCPluginElement ;
2526 get (
2627 tagName : "perspective-viewer-d3fc-candlestick"
27- ) : HTMLPerspectiveViewerD3FCPluginElement ;
28+ ) : typeof HTMLPerspectiveViewerD3FCPluginElement ;
2829 get (
2930 tagName : "perspective-viewer-d3fc-ybar"
30- ) : HTMLPerspectiveViewerD3FCPluginElement ;
31+ ) : typeof HTMLPerspectiveViewerD3FCPluginElement ;
3132 get (
3233 tagName : "perspective-viewer-d3fc-heatmap"
33- ) : HTMLPerspectiveViewerD3FCPluginElement ;
34+ ) : typeof HTMLPerspectiveViewerD3FCPluginElement ;
3435 get (
3536 tagName : "perspective-viewer-d3fc-yline"
36- ) : HTMLPerspectiveViewerD3FCPluginElement ;
37+ ) : typeof HTMLPerspectiveViewerD3FCPluginElement ;
3738 get (
3839 tagName : "perspective-viewer-d3fc-ohlc"
39- ) : HTMLPerspectiveViewerD3FCPluginElement ;
40+ ) : typeof HTMLPerspectiveViewerD3FCPluginElement ;
4041 get (
4142 tagName : "perspective-viewer-d3fc-sunburst"
42- ) : HTMLPerspectiveViewerD3FCPluginElement ;
43+ ) : typeof HTMLPerspectiveViewerD3FCPluginElement ;
4344 get (
4445 tagName : "perspective-viewer-d3fc-treemap"
45- ) : HTMLPerspectiveViewerD3FCPluginElement ;
46+ ) : typeof HTMLPerspectiveViewerD3FCPluginElement ;
4647 get (
4748 tagName : "perspective-viewer-d3fc-xyline"
48- ) : HTMLPerspectiveViewerD3FCPluginElement ;
49+ ) : typeof HTMLPerspectiveViewerD3FCPluginElement ;
4950 get (
5051 tagName : "perspective-viewer-d3fc-xyscatter"
51- ) : HTMLPerspectiveViewerD3FCPluginElement ;
52+ ) : typeof HTMLPerspectiveViewerD3FCPluginElement ;
5253 get (
5354 tagName : "perspective-viewer-d3fc-yscatter"
54- ) : HTMLPerspectiveViewerD3FCPluginElement ;
55+ ) : typeof HTMLPerspectiveViewerD3FCPluginElement ;
5556
5657 whenDefined ( tagName : "perspective-viewer-d3fc-area" ) : Promise < void > ;
5758 whenDefined ( tagName : "perspective-viewer-d3fc-xbar" ) : Promise < void > ;
@@ -76,5 +77,9 @@ declare global {
7677
7778 export class HTMLPerspectiveViewerD3FCPluginElement
7879 extends HTMLElement
79- implements IPerspectiveViewerPlugin { }
80+ implements IPerspectiveViewerPlugin
81+ {
82+ static get max_cells ( ) : number ;
83+ static set max_cells ( value : number ) ;
84+ }
8085}
0 commit comments