From d6acb6e0714f663fce8a16c76b5a8f411cc6227e Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Tue, 19 Jul 2022 21:22:51 +0200 Subject: remove obsolete dependencies --- web/pw-visualizer/src/webgl/util.ts | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'web/pw-visualizer/src/webgl/util.ts') diff --git a/web/pw-visualizer/src/webgl/util.ts b/web/pw-visualizer/src/webgl/util.ts index 3ed2b4d..e08af3f 100644 --- a/web/pw-visualizer/src/webgl/util.ts +++ b/web/pw-visualizer/src/webgl/util.ts @@ -1,6 +1,3 @@ -import { parse as parsePath } from 'extract-svg-path'; -import svgMesh3d from 'svg-mesh-3d'; - export interface Dictionary { [Key: string]: T; } @@ -205,25 +202,4 @@ export class Mesh { this.cells = mesh.cells.flat(); this.positions = mesh.positions.flat(); } -} - -export async function url_to_mesh(url: string): Promise { - - return new Promise(function(resolve) { - fetch(url) - .then(resp => resp.text()) - .then(data => { - // var div = document.createElement('div'); - // div.innerHTML = data; - // var svg = div.querySelector('svg'); - - var svgPath = parsePath(data); - var mesh = svgMesh3d(svgPath, { - delaunay: false, - scale: 10, - }); - - resolve(new Mesh(mesh)); - }) - }); -} +} \ No newline at end of file -- cgit v1.2.3