@ifc-lite/viewer 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +373 -0
- package/components.json +22 -0
- package/dist/assets/arrow2_bg-BoXCojjR.wasm +0 -0
- package/dist/assets/geometry.worker-DpnHtNr3.ts +157 -0
- package/dist/assets/ifc_lite_wasm_bg-Cd3m3f2h.wasm +0 -0
- package/dist/assets/index-DKe9Oy-s.css +1 -0
- package/dist/assets/index-Dzz3WVwq.js +637 -0
- package/dist/ifc_lite_wasm_bg.wasm +0 -0
- package/dist/index.html +13 -0
- package/dist/web-ifc.wasm +0 -0
- package/index.html +12 -0
- package/package.json +52 -0
- package/postcss.config.js +6 -0
- package/public/ifc_lite_wasm_bg.wasm +0 -0
- package/public/web-ifc.wasm +0 -0
- package/src/App.tsx +13 -0
- package/src/components/Viewport.tsx +723 -0
- package/src/components/ui/button.tsx +58 -0
- package/src/components/ui/collapsible.tsx +11 -0
- package/src/components/ui/context-menu.tsx +174 -0
- package/src/components/ui/dropdown-menu.tsx +175 -0
- package/src/components/ui/input.tsx +49 -0
- package/src/components/ui/progress.tsx +26 -0
- package/src/components/ui/scroll-area.tsx +47 -0
- package/src/components/ui/separator.tsx +27 -0
- package/src/components/ui/tabs.tsx +56 -0
- package/src/components/ui/tooltip.tsx +31 -0
- package/src/components/viewer/AxisHelper.tsx +125 -0
- package/src/components/viewer/BoxSelectionOverlay.tsx +53 -0
- package/src/components/viewer/EntityContextMenu.tsx +220 -0
- package/src/components/viewer/HierarchyPanel.tsx +363 -0
- package/src/components/viewer/HoverTooltip.tsx +82 -0
- package/src/components/viewer/KeyboardShortcutsDialog.tsx +104 -0
- package/src/components/viewer/MainToolbar.tsx +441 -0
- package/src/components/viewer/PropertiesPanel.tsx +288 -0
- package/src/components/viewer/StatusBar.tsx +141 -0
- package/src/components/viewer/ToolOverlays.tsx +311 -0
- package/src/components/viewer/ViewCube.tsx +195 -0
- package/src/components/viewer/ViewerLayout.tsx +190 -0
- package/src/components/viewer/Viewport.tsx +1136 -0
- package/src/components/viewer/ViewportContainer.tsx +49 -0
- package/src/components/viewer/ViewportOverlays.tsx +185 -0
- package/src/hooks/useIfc.ts +168 -0
- package/src/hooks/useKeyboardShortcuts.ts +142 -0
- package/src/index.css +177 -0
- package/src/lib/utils.ts +45 -0
- package/src/main.tsx +18 -0
- package/src/store.ts +471 -0
- package/src/webgpu-types.d.ts +20 -0
- package/tailwind.config.js +72 -0
- package/tsconfig.json +16 -0
- package/vite.config.ts +45 -0
|
Binary file
|
package/dist/index.html
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>IFC-Lite Viewer</title>
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-Dzz3WVwq.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DKe9Oy-s.css">
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
<div id="root"></div>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
|
Binary file
|
package/index.html
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>IFC-Lite Viewer</title>
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<div id="root"></div>
|
|
10
|
+
<script type="module" src="/src/main.tsx"></script>
|
|
11
|
+
</body>
|
|
12
|
+
</html>
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ifc-lite/viewer",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "IFC-Lite viewer application",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"@radix-ui/react-collapsible": "^1.1.12",
|
|
8
|
+
"@radix-ui/react-context-menu": "^2.2.16",
|
|
9
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
10
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
11
|
+
"@radix-ui/react-progress": "^1.1.8",
|
|
12
|
+
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
13
|
+
"@radix-ui/react-separator": "^1.1.8",
|
|
14
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
15
|
+
"@radix-ui/react-tabs": "^1.1.13",
|
|
16
|
+
"@radix-ui/react-toggle": "^1.1.10",
|
|
17
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
18
|
+
"@tanstack/react-virtual": "^3.13.18",
|
|
19
|
+
"autoprefixer": "^10.4.23",
|
|
20
|
+
"class-variance-authority": "^0.7.1",
|
|
21
|
+
"clsx": "^2.1.1",
|
|
22
|
+
"lucide-react": "^0.562.0",
|
|
23
|
+
"postcss": "^8.5.6",
|
|
24
|
+
"react": "^18.2.0",
|
|
25
|
+
"react-dom": "^18.2.0",
|
|
26
|
+
"react-resizable-panels": "^4.4.0",
|
|
27
|
+
"tailwind-merge": "^3.4.0",
|
|
28
|
+
"tailwindcss": "^4.1.18",
|
|
29
|
+
"zustand": "^4.4.0",
|
|
30
|
+
"@ifc-lite/data": "1.0.0",
|
|
31
|
+
"@ifc-lite/geometry": "1.0.0",
|
|
32
|
+
"@ifc-lite/parser": "1.0.0",
|
|
33
|
+
"@ifc-lite/export": "1.0.0",
|
|
34
|
+
"@ifc-lite/query": "1.0.0",
|
|
35
|
+
"@ifc-lite/renderer": "1.0.0",
|
|
36
|
+
"@ifc-lite/spatial": "1.0.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@tailwindcss/postcss": "^4.1.18",
|
|
40
|
+
"@types/react": "^18.2.0",
|
|
41
|
+
"@types/react-dom": "^18.2.0",
|
|
42
|
+
"@vitejs/plugin-react": "^4.2.0",
|
|
43
|
+
"typescript": "^5.3.0",
|
|
44
|
+
"vite": "^5.0.0"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"dev": "vite",
|
|
48
|
+
"prebuild": "cp ../../packages/wasm/ifc_lite_wasm_bg.wasm public/ifc_lite_wasm_bg.wasm",
|
|
49
|
+
"build": "(tsc || true) && vite build",
|
|
50
|
+
"preview": "vite preview"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
Binary file
|
|
Binary file
|
package/src/App.tsx
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
2
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
3
|
+
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Main application component
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { ViewerLayout } from './components/viewer/ViewerLayout';
|
|
10
|
+
|
|
11
|
+
export function App() {
|
|
12
|
+
return <ViewerLayout />;
|
|
13
|
+
}
|