vim-web 0.3.23

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.
Files changed (3) hide show
  1. package/README.md +60 -0
  2. package/license.txt +21 -0
  3. package/package.json +86 -0
package/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # Vim Webgl Component
2
+
3
+ # Documentation
4
+
5
+ [API Documentation](https://vimaec.github.io/vim-web/api/)
6
+
7
+ # Live Demo
8
+
9
+ ## Web
10
+ - [Small Model Demo - Residence](https://vimaec.github.io/vim-webgl-app/release?vim=https://vim02.azureedge.net/samples/residence.v1.2.75.vim)
11
+ - [Medium Model Demo - Medical Tower](https://vimaec.github.io/vim-webgl-app/release?vim=https://vim02.azureedge.net/samples/skanska.vim)
12
+ - [Large Model Demo - Stadium](https://vimaec.github.io/vim-webgl-app/release?vim=https://vim02.azureedge.net/samples/stadium.vim) (_Warning_: slow download times)
13
+
14
+ # Overview
15
+
16
+ The VIM Webgl Component is a React ui implementation for the [Vim WebGL Viewer]([https://jsfiddle.net/simon_vimaec/2khmqy9v/](https://github.com/vimaec/vim-webgl-viewer)).
17
+
18
+ ## Intents
19
+
20
+ - Provide a smooth online user experience while browsing complex bim data.
21
+ - Test and demonstrate the capabilities of the underlying vim-webgl-viewer.
22
+ - Be easy to use, extend and customize for other developpers.
23
+
24
+ ## VIM
25
+
26
+ The VIM file format is a high-performance 3D scene format that supports rich BIM data, and can be easily extended to support other relational or non-relation data sets.
27
+ Unlike IFC the VIM format is already tessellated, and ready to render. This results in very fast load times. Unlike glTF the VIM format is faster to load, scales better, and has a consistent structure for relational BIM data.
28
+ More information on the vim format can be found here: https://github.com/vimaec/vim
29
+
30
+ ### Built With
31
+
32
+ - [VIM Webgl Viewer](https://github.com/vimaec/vim-webgl-viewer)
33
+ - [react.js](https://reactjs.org/)
34
+
35
+ ## Getting Started
36
+
37
+ 1. Clone the project.
38
+ 2. Open the project in VS Code.
39
+ 3. Install packages by running npm install.
40
+ 4. Run the dev command to start a live test server.
41
+
42
+ Make sure you have a recent version of NodeJS installed as Vite requires it.
43
+
44
+ ## License
45
+
46
+ Distributed under the MIT License. See `LICENSE.txt` for more information.
47
+
48
+ ## Contact
49
+
50
+ - Simon Roberge - simon.roberge@vimaec.com
51
+ - Martin Ashton - martin.ashton@vimaec.com
52
+
53
+ ## Acknowledgments
54
+
55
+ Thanks to these great packages and more:
56
+
57
+ - [react-complex-tree](https://github.com/lukasbach/react-complex-tree)
58
+ - [re-resizable](https://github.com/bokuweb/re-resizable)
59
+ - [react-tooltip](https://github.com/ReactTooltip/react-tooltip)
60
+ - [strongly typed events](https://github.com/KeesCBakker/Strongly-Typed-Events-for-TypeScript#readme)
package/license.txt ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 VIMaec LLC.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json ADDED
@@ -0,0 +1,86 @@
1
+ {
2
+ "name": "vim-web",
3
+ "version": "0.3.23",
4
+ "description": "A demonstration app built on top of the vim-webgl-viewer",
5
+ "files": [
6
+ "dist"
7
+ ],
8
+ "main": "./dist/vim-web.iife.js",
9
+ "types": "./dist/types/index.d.ts",
10
+ "module": "./dist/vim-web.mjs",
11
+ "homepage": "https://github.com/vimaec/vim-web.git",
12
+ "bugs": {
13
+ "url": "https://github.com/vimaec/vim-web/issues"
14
+ },
15
+ "license": "MIT",
16
+ "author": "VIM <hello@vimaec.com>",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/vimaec/vim-web.git"
20
+ },
21
+ "scripts": {
22
+ "dev": "vite --host --config vite.config.website.js",
23
+ "build:libs": "vite build --config vite.config.libs.js && npm run declarations:libs",
24
+ "package:libs": "npm run build:libs && npm publish",
25
+ "declarations:libs": "tsc --project tsconfig.libs.json --declaration --emitDeclarationOnly --outdir ./dist/types",
26
+ "documentation:libs": "typedoc --entryPoints src/vim-web/vimWebIndex.ts --entryPointStrategy expand --out docs/api --excludeProtected --excludeExternals --excludePrivate",
27
+ "build:website": "vite build --config vite.config.website.js && npm run copy:website && npm run documentation:libs && npm run commit:website",
28
+ "serve:website": "vite preview --outDir docs",
29
+ "commit:website": "git add .\\docs && git commit -m BuildUpdate && git push",
30
+ "copy:website": "copy .\\docs\\index.html .\\docs\\404.html",
31
+ "eslint": "eslint --ext .js,.ts,.tsx src --fix"
32
+ },
33
+ "devDependencies": {
34
+ "@types/dom-webcodecs": "^0.1.13",
35
+ "@types/react": "^18.3.13",
36
+ "@types/react-dom": "^18.3.1",
37
+ "@typescript-eslint/eslint-plugin": "^8.17.0",
38
+ "@typescript-eslint/parser": "^8.17.0",
39
+ "autoprefixer": "^10.4.20",
40
+ "eslint": "^8.23.1",
41
+ "eslint-config-prettier": "^8.5.0",
42
+ "eslint-plugin-prettier": "^5.2.1",
43
+ "eslint-plugin-promise": "^6.0.1",
44
+ "eslint-plugin-react": "^7.37.2",
45
+ "eslint-plugin-react-hooks": "^5.0.0",
46
+ "postcss": "^8.4.49",
47
+ "prettier": "^3.4.2",
48
+ "prettier-plugin-tailwindcss": "^0.6.9",
49
+ "react-router-dom": "^7.0.2",
50
+ "tailwindcss": "^3.4.16",
51
+ "tailwindcss-scoped-preflight": "^3.4.9",
52
+ "typedoc": "^0.27.3",
53
+ "typescript": "^5.7.2",
54
+ "vite": "^6.0.2"
55
+ },
56
+ "dependencies": {
57
+ "@firefox-devtools/react-contextmenu": "^5.1.1",
58
+ "@types/three": "0.143.0",
59
+ "@vitejs/plugin-react": "^4.3.4",
60
+ "deepmerge": "^4.3.1",
61
+ "is-plain-object": "^5.0.0",
62
+ "re-resizable": "^6.9.9",
63
+ "react-complex-tree": "^2.4.6",
64
+ "react-tooltip": "^4.2.21",
65
+ "stats-js": "^1.0.1",
66
+ "ste-events": "^3.0.11",
67
+ "ste-signals": "^3.0.11",
68
+ "ste-simple-events": "^3.0.11",
69
+ "three": "0.143.0",
70
+ "vim-format": "1.0.14"
71
+ },
72
+ "peerDependencies": {
73
+ "react": "^18.3.1",
74
+ "react-dom": "^18.3.1"
75
+ },
76
+ "keywords": [
77
+ "3d",
78
+ "viewer",
79
+ "three.js",
80
+ "model",
81
+ "aec",
82
+ "vim",
83
+ "loader",
84
+ "webgl"
85
+ ]
86
+ }