@3cr/viewer-browser 0.0.1

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 (49) hide show
  1. package/.browserslistrc +4 -0
  2. package/.editorconfig +5 -0
  3. package/.idea/git_toolbox_prj.xml +15 -0
  4. package/.idea/vcs.xml +6 -0
  5. package/.idea/workspace.xml +183 -0
  6. package/.vite/deps/_metadata.json +8 -0
  7. package/.vite/deps/package.json +3 -0
  8. package/README.md +81 -0
  9. package/components.d.ts +19 -0
  10. package/dist/3cr-viewer-browser.mjs +18644 -0
  11. package/dist/3cr-viewer-browser.umd.js +18 -0
  12. package/dist/style.css +5 -0
  13. package/index.html +24 -0
  14. package/index.ts +37 -0
  15. package/package.json +41 -0
  16. package/src/App.vue +40 -0
  17. package/src/assets/images/MainBackdrop.svg +48 -0
  18. package/src/assets/images/dark/3DICOM.png +0 -0
  19. package/src/assets/images/dark/3dicom-logo.svg +1 -0
  20. package/src/assets/images/dark/Singular-Health-Disc-Mono.svg +9 -0
  21. package/src/assets/images/dark/Singular-Health-Trademark-mono.svg +23 -0
  22. package/src/assets/images/light/3DICOM.png +0 -0
  23. package/src/assets/images/light/3dicom-logo.svg +1 -0
  24. package/src/assets/images/light/Singular-Health-Disc-Mono.svg +9 -0
  25. package/src/assets/images/light/Singular-Health-Trademark-mono.svg +23 -0
  26. package/src/assets/logo.png +0 -0
  27. package/src/assets/logo.svg +6 -0
  28. package/src/components/DoubleSliderSelector.vue +112 -0
  29. package/src/components/ExpansionHeaderMiniMenu.vue +19 -0
  30. package/src/components/HelloWorld.vue +157 -0
  31. package/src/components/LoadingSpinner.vue +157 -0
  32. package/src/components/MftpWebGL3DRModal.vue +995 -0
  33. package/src/components/README.md +35 -0
  34. package/src/components/SliderSelector.vue +101 -0
  35. package/src/components/VerticalSliderSelector.vue +83 -0
  36. package/src/components/WebGL3DR.vue +107 -0
  37. package/src/helpers/layoutOverlayStyle.ts +86 -0
  38. package/src/helpers/modelHelper.ts +109 -0
  39. package/src/helpers/models.ts +69 -0
  40. package/src/helpers/utils.ts +16 -0
  41. package/src/main.ts +23 -0
  42. package/src/plugins/README.md +3 -0
  43. package/src/plugins/index.ts +15 -0
  44. package/src/plugins/vuetify.ts +27 -0
  45. package/src/types/window.shim.ts +24 -0
  46. package/src/vite-env.d.ts +7 -0
  47. package/tsconfig.json +34 -0
  48. package/tsconfig.node.json +9 -0
  49. package/vite.config.mts +74 -0
@@ -0,0 +1,4 @@
1
+ > 1%
2
+ last 2 versions
3
+ not dead
4
+ not ie 11
package/.editorconfig ADDED
@@ -0,0 +1,5 @@
1
+ [*.{js,jsx,ts,tsx,vue}]
2
+ indent_style = space
3
+ indent_size = 2
4
+ trim_trailing_whitespace = true
5
+ insert_final_newline = true
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="GitToolBoxProjectSettings">
4
+ <option name="commitMessageIssueKeyValidationOverride">
5
+ <BoolValueOverride>
6
+ <option name="enabled" value="true" />
7
+ </BoolValueOverride>
8
+ </option>
9
+ <option name="commitMessageValidationEnabledOverride">
10
+ <BoolValueOverride>
11
+ <option name="enabled" value="true" />
12
+ </BoolValueOverride>
13
+ </option>
14
+ </component>
15
+ </project>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,183 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="AutoImportSettings">
4
+ <option name="autoReloadType" value="SELECTIVE" />
5
+ </component>
6
+ <component name="ChangeListManager">
7
+ <list default="true" id="feb68f38-3ed5-44bb-a81b-c68f1e9d5e48" name="Changes" comment="initial">
8
+ <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
9
+ </list>
10
+ <option name="SHOW_DIALOG" value="false" />
11
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
12
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
13
+ <option name="LAST_RESOLUTION" value="IGNORE" />
14
+ </component>
15
+ <component name="FileTemplateManagerImpl">
16
+ <option name="RECENT_TEMPLATES">
17
+ <list>
18
+ <option value="TypeScript File" />
19
+ </list>
20
+ </option>
21
+ </component>
22
+ <component name="Git.Settings">
23
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
24
+ </component>
25
+ <component name="GitLabMergeRequestsSettings"><![CDATA[{}]]></component>
26
+ <component name="GitToolBoxStore">
27
+ <option name="projectConfigVersion" value="5" />
28
+ </component>
29
+ <component name="GithubPullRequestsUISettings"><![CDATA[{}]]></component>
30
+ <component name="ProjectColorInfo"><![CDATA[{
31
+ "associatedIndex": 2
32
+ }]]></component>
33
+ <component name="ProjectId" id="2ecHzRIf6ZttKwXfV7cjWRM6Bwl" />
34
+ <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
35
+ <component name="ProjectViewState">
36
+ <option name="hideEmptyMiddlePackages" value="true" />
37
+ <option name="showLibraryContents" value="true" />
38
+ </component>
39
+ <component name="PropertiesComponent"><![CDATA[{
40
+ "keyToString": {
41
+ "RunOnceActivity.ShowReadmeOnStart": "true",
42
+ "git-widget-placeholder": "main",
43
+ "last_opened_file_path": "/Users/elliottcooper/source/3cr-viewer-browser",
44
+ "node.js.detected.package.eslint": "true",
45
+ "node.js.detected.package.tslint": "true",
46
+ "node.js.selected.package.eslint": "(autodetect)",
47
+ "node.js.selected.package.tslint": "(autodetect)",
48
+ "nodejs_package_manager_path": "npm",
49
+ "npm.build.executor": "Run",
50
+ "npm.dev.executor": "Run",
51
+ "npm.test.executor": "Run",
52
+ "ts.external.directory.path": "/Users/elliottcooper/Applications/WebStorm.app/Contents/plugins/javascript-impl/jsLanguageServicesImpl/external",
53
+ "vue.rearranger.settings.migration": "true"
54
+ }
55
+ }]]></component>
56
+ <component name="RecentsManager">
57
+ <key name="CopyFile.RECENT_KEYS">
58
+ <recent name="$PROJECT_DIR$" />
59
+ <recent name="$PROJECT_DIR$/src/types" />
60
+ <recent name="$PROJECT_DIR$/src/assets/images" />
61
+ <recent name="$PROJECT_DIR$/src/helpers" />
62
+ <recent name="$PROJECT_DIR$/src" />
63
+ </key>
64
+ <key name="MoveFile.RECENT_KEYS">
65
+ <recent name="$PROJECT_DIR$" />
66
+ <recent name="$PROJECT_DIR$/src/helpers" />
67
+ <recent name="$PROJECT_DIR$/src" />
68
+ </key>
69
+ </component>
70
+ <component name="RunManager" selected="npm.build">
71
+ <configuration name="build" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
72
+ <package-json value="$PROJECT_DIR$/package.json" />
73
+ <command value="run" />
74
+ <scripts>
75
+ <script value="build" />
76
+ </scripts>
77
+ <node-interpreter value="project" />
78
+ <envs />
79
+ <method v="2" />
80
+ </configuration>
81
+ <configuration name="dev" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
82
+ <package-json value="$PROJECT_DIR$/package.json" />
83
+ <command value="run" />
84
+ <scripts>
85
+ <script value="dev" />
86
+ </scripts>
87
+ <node-interpreter value="project" />
88
+ <envs />
89
+ <method v="2" />
90
+ </configuration>
91
+ <configuration name="test" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
92
+ <package-json value="$PROJECT_DIR$/package.json" />
93
+ <command value="run" />
94
+ <scripts>
95
+ <script value="test" />
96
+ </scripts>
97
+ <node-interpreter value="project" />
98
+ <envs />
99
+ <method v="2" />
100
+ </configuration>
101
+ <recent_temporary>
102
+ <list>
103
+ <item itemvalue="npm.build" />
104
+ <item itemvalue="npm.dev" />
105
+ <item itemvalue="npm.test" />
106
+ </list>
107
+ </recent_temporary>
108
+ </component>
109
+ <component name="SharedIndexes">
110
+ <attachedChunks>
111
+ <set>
112
+ <option value="bundled-js-predefined-1d06a55b98c1-74d2a5396914-JavaScript-WS-241.14494.180" />
113
+ </set>
114
+ </attachedChunks>
115
+ </component>
116
+ <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
117
+ <component name="TaskManager">
118
+ <task active="true" id="Default" summary="Default task">
119
+ <changelist id="feb68f38-3ed5-44bb-a81b-c68f1e9d5e48" name="Changes" comment="" />
120
+ <created>1712197208124</created>
121
+ <option name="number" value="Default" />
122
+ <option name="presentableId" value="Default" />
123
+ <updated>1712197208124</updated>
124
+ <workItem from="1712197209295" duration="29120000" />
125
+ </task>
126
+ <task id="LOCAL-00001" summary="initial">
127
+ <option name="closed" value="true" />
128
+ <created>1712535511451</created>
129
+ <option name="number" value="00001" />
130
+ <option name="presentableId" value="LOCAL-00001" />
131
+ <option name="project" value="LOCAL" />
132
+ <updated>1712535511451</updated>
133
+ </task>
134
+ <task id="LOCAL-00002" summary="initial">
135
+ <option name="closed" value="true" />
136
+ <created>1712542062900</created>
137
+ <option name="number" value="00002" />
138
+ <option name="presentableId" value="LOCAL-00002" />
139
+ <option name="project" value="LOCAL" />
140
+ <updated>1712542062900</updated>
141
+ </task>
142
+ <task id="LOCAL-00003" summary="initial">
143
+ <option name="closed" value="true" />
144
+ <created>1712542100525</created>
145
+ <option name="number" value="00003" />
146
+ <option name="presentableId" value="LOCAL-00003" />
147
+ <option name="project" value="LOCAL" />
148
+ <updated>1712542100525</updated>
149
+ </task>
150
+ <option name="localTasksCounter" value="4" />
151
+ <servers />
152
+ </component>
153
+ <component name="TypeScriptGeneratedFilesManager">
154
+ <option name="version" value="3" />
155
+ </component>
156
+ <component name="Vcs.Log.Tabs.Properties">
157
+ <option name="TAB_STATES">
158
+ <map>
159
+ <entry key="MAIN">
160
+ <value>
161
+ <State />
162
+ </value>
163
+ </entry>
164
+ </map>
165
+ </option>
166
+ </component>
167
+ <component name="VcsManagerConfiguration">
168
+ <MESSAGE value="initial" />
169
+ <option name="LAST_COMMIT_MESSAGE" value="initial" />
170
+ </component>
171
+ <component name="XDebuggerManager">
172
+ <breakpoint-manager>
173
+ <breakpoints>
174
+ <line-breakpoint enabled="true" type="javascript">
175
+ <url>file://$PROJECT_DIR$/node_modules/@3cr/sdk-browser/index.ts</url>
176
+ <line>25</line>
177
+ <properties lambdaOrdinal="-1" />
178
+ <option name="timeStamp" value="1" />
179
+ </line-breakpoint>
180
+ </breakpoints>
181
+ </breakpoint-manager>
182
+ </component>
183
+ </project>
@@ -0,0 +1,8 @@
1
+ {
2
+ "hash": "0e17ec27",
3
+ "configHash": "4d770b01",
4
+ "lockfileHash": "38df2378",
5
+ "browserHash": "ceae650c",
6
+ "optimized": {},
7
+ "chunks": {}
8
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
package/README.md ADDED
@@ -0,0 +1,81 @@
1
+ # Vuetify (Default)
2
+
3
+ This is the official scaffolding tool for Vuetify, designed to give you a head start in building your new Vuetify application. It sets up a base template with all the necessary configurations and standard directory structure, enabling you to begin development without the hassle of setting up the project from scratch.
4
+
5
+ ## ❗️ Important Links
6
+
7
+ - 📄 [Docs](https://vuetifyjs.com/)
8
+ - 🚨 [Issues](https://issues.vuetifyjs.com/)
9
+ - 🏬 [Store](https://store.vuetifyjs.com/)
10
+ - 🎮 [Playground](https://play.vuetifyjs.com/)
11
+ - 💬 [Discord](https://community.vuetifyjs.com)
12
+
13
+ ## 💿 Install
14
+
15
+ Set up your project using your preferred package manager. Use the corresponding command to install the dependencies:
16
+
17
+ | Package Manager | Command |
18
+ |---------------------------------------------------------------|----------------|
19
+ | [yarn](https://yarnpkg.com/getting-started) | `yarn install` |
20
+ | [npm](https://docs.npmjs.com/cli/v7/commands/npm-install) | `npm install` |
21
+ | [pnpm](https://pnpm.io/installation) | `pnpm install` |
22
+ | [bun](https://bun.sh/#getting-started) | `bun install` |
23
+
24
+ After completing the installation, your environment is ready for Vuetify development.
25
+
26
+ ## ✨ Features
27
+
28
+ - 🖼️ **Optimized Front-End Stack**: Leverage the latest Vue 3 and Vuetify 3 for a modern, reactive UI development experience. [Vue 3](https://v3.vuejs.org/) | [Vuetify 3](https://vuetifyjs.com/en/)
29
+ - 🗃️ **State Management**: Integrated with [Pinia](https://pinia.vuejs.org/), the intuitive, modular state management solution for Vue.
30
+ - 🚦 **Routing and Layouts**: Utilizes Vue Router for SPA navigation and vite-plugin-vue-layouts for organizing Vue file layouts. [Vue Router](https://router.vuejs.org/) | [vite-plugin-vue-layouts](https://github.com/JohnCampionJr/vite-plugin-vue-layouts)
31
+ - 💻 **Enhanced Development Experience**: Benefit from TypeScript's static type checking and the ESLint plugin suite for Vue, ensuring code quality and consistency. [TypeScript](https://www.typescriptlang.org/) | [ESLint Plugin Vue](https://eslint.vuejs.org/)
32
+ - ⚡ **Next-Gen Tooling**: Powered by Vite, experience fast cold starts and instant HMR (Hot Module Replacement). [Vite](https://vitejs.dev/)
33
+ - 🧩 **Automated Component Importing**: Streamline your workflow with unplugin-vue-components, automatically importing components as you use them. [unplugin-vue-components](https://github.com/antfu/unplugin-vue-components)
34
+ - 🛠️ **Strongly-Typed Vue**: Use vue-tsc for type-checking your Vue components, and enjoy a robust development experience. [vue-tsc](https://github.com/johnsoncodehk/volar/tree/master/packages/vue-tsc)
35
+
36
+ These features are curated to provide a seamless development experience from setup to deployment, ensuring that your Vuetify application is both powerful and maintainable.
37
+
38
+ ## 💡 Usage
39
+
40
+ This section covers how to start the development server and build your project for production.
41
+
42
+ ### Starting the Development Server
43
+
44
+ To start the development server with hot-reload, run the following command. The server will be accessible at [http://localhost:3000](http://localhost:3000):
45
+
46
+ ```bash
47
+ yarn dev
48
+ ```
49
+
50
+ (Repeat for npm, pnpm, and bun with respective commands.)
51
+
52
+ > Add NODE_OPTIONS='--no-warnings' to suppress the JSON import warnings that happen as part of the Vuetify import mapping. If you are on Node [v21.3.0](https://nodejs.org/en/blog/release/v21.3.0) or higher, you can change this to NODE_OPTIONS='--disable-warning=5401'. If you don't mind the warning, you can remove this from your package.json dev script.
53
+
54
+ ### Building for Production
55
+
56
+ To build your project for production, use:
57
+
58
+ ```bash
59
+ yarn build
60
+ ```
61
+
62
+ (Repeat for npm, pnpm, and bun with respective commands.)
63
+
64
+ Once the build process is completed, your application will be ready for deployment in a production environment.
65
+
66
+ ## 💪 Support Vuetify Development
67
+
68
+ This project is built with [Vuetify](https://vuetifyjs.com/en/), a UI Library with a comprehensive collection of Vue components. Vuetify is an MIT licensed Open Source project that has been made possible due to the generous contributions by our [sponsors and backers](https://vuetifyjs.com/introduction/sponsors-and-backers/). If you are interested in supporting this project, please consider:
69
+
70
+ - [Requesting Enterprise Support](https://support.vuetifyjs.com/)
71
+ - [Sponsoring John on Github](https://github.com/users/johnleider/sponsorship)
72
+ - [Sponsoring Kael on Github](https://github.com/users/kaelwd/sponsorship)
73
+ - [Supporting the team on Open Collective](https://opencollective.com/vuetify)
74
+ - [Becoming a sponsor on Patreon](https://www.patreon.com/vuetify)
75
+ - [Becoming a subscriber on Tidelift](https://tidelift.com/subscription/npm/vuetify)
76
+ - [Making a one-time donation with Paypal](https://paypal.me/vuetify)
77
+
78
+ ## 📑 License
79
+ [MIT](http://opensource.org/licenses/MIT)
80
+
81
+ Copyright (c) 2016-present Vuetify, LLC
@@ -0,0 +1,19 @@
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ // @ts-nocheck
4
+ // Generated by unplugin-vue-components
5
+ // Read more: https://github.com/vuejs/core/pull/3399
6
+ export {}
7
+
8
+ declare module 'vue' {
9
+ export interface GlobalComponents {
10
+ DoubleSliderSelector: typeof import('./src/components/DoubleSliderSelector.vue')['default']
11
+ ExpansionHeaderMiniMenu: typeof import('./src/components/ExpansionHeaderMiniMenu.vue')['default']
12
+ HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
13
+ LoadingSpinner: typeof import('./src/components/LoadingSpinner.vue')['default']
14
+ MftpWebGL3DRModal: typeof import('./src/components/MftpWebGL3DRModal.vue')['default']
15
+ SliderSelector: typeof import('./src/components/SliderSelector.vue')['default']
16
+ VerticalSliderSelector: typeof import('./src/components/VerticalSliderSelector.vue')['default']
17
+ WebGL3DR: typeof import('./src/components/WebGL3DR.vue')['default']
18
+ }
19
+ }