@@ -119,50 +119,12 @@ Perspective can be loaded directly from most CDNs, such as
119119[ jsdelivr.com] ( https://www.jsdelivr.com/package/npm/@finos/perspective-viewer ) ,
120120which is the easiest way to get started with Perspective in the browser, and
121121perfect for spinning up quick instances of ` perspective-viewer ` without
122- installing or bundling. There are two supported builds you may use, a UMD build
123- and a ` type="module" ` ESM build.
122+ installing or bundling.
124123
125124While CDNs are great for development builds and small apps, for production usage
126125you should incorporate Perspective into your application with a bundler like
127126` Webpack ` , described above.
128127
129- #### UMD
130-
131- This build is equivalent to the _ inline_ build described above, and contains all
132- JavaScript, CSS, WebAssembly and WebWorker assets bundled in a single ` .js `
133- file. To use the UMD build from a ` jsdelivr.com ` , add these scripts to
134- your ` .html ` 's ` <head> ` section:
135-
136- ``` html
137- <script src =" https://cdn.jsdelivr.net/npm/@finos/perspective" ></script >
138- <script src =" https://cdn.jsdelivr.net/npm/@finos/perspective-viewer" ></script >
139- <script src =" https://cdn.jsdelivr.net/npm/@finos/perspective-viewer-datagrid" ></script >
140- <script src =" https://cdn.jsdelivr.net/npm/@finos/perspective-viewer-d3fc" ></script >
141-
142- <link
143- rel =" stylesheet"
144- crossorigin =" anonymous"
145- href =" https://cdn.jsdelivr.net/npm/@finos/perspective-viewer/dist/css/pro.css"
146- />
147- ```
148-
149- Once added to your page, you can access the engine's JavaScript API through the
150- ` perspective ` symbol and the browser's Custom Elements API:
151-
152- ``` html
153- <script >
154- const worker = window .perspective .worker ();
155- const table = await worker .table ({ A : [1 , 2 , 3 ] });
156- const view = await table .view ({ sort: [[" A" , " desc" ]] });
157-
158- const viewer = document .createElement (" perspective-viewer" );
159- viewer .load (table);
160- document .body .appendChild (viewer);
161- </script >
162- ```
163-
164- #### ESM
165-
166128This build separates out Perspective's JavaScript, WebAssembly and various
167129assets into individual files, allowing the browser to load them lazily, in
168130parallel or not at all if needed. To use this build, you must include the
0 commit comments