Commit Graph

530 Commits

Author SHA1 Message Date
kovacsv
01b09e08d0 Use panel set for sidebar. 2021-11-07 11:17:26 +01:00
kovacsv
557768afe6 Add mesh and material popup buttons. 2021-11-06 22:09:34 +01:00
kovacsv
3291417b31 Show and hide navigator. 2021-11-06 09:05:38 +01:00
kovacsv
dede2eaae7 Add resize callback to panel set. 2021-11-06 08:46:22 +01:00
kovacsv
316c722390 Create function from splitter class. 2021-11-06 08:36:34 +01:00
kovacsv
c088ab205f Move splitter logic in the navigator. 2021-11-06 08:26:19 +01:00
kovacsv
a1808ead20 Remove icon from node items. 2021-11-05 18:25:49 +01:00
kovacsv
d49b19c32e Modify navigator style sheet. 2021-11-05 18:14:19 +01:00
kovacsv
d8d4d1fb3e Fix mesh isolation. 2021-11-05 17:57:20 +01:00
kovacsv
26d9be2a19 Introduce panel set object, and start to use it on navigator. 2021-11-05 16:39:31 +01:00
kovacsv
a106c58c74 Rename AddButton to AppendButton in tree view. 2021-11-04 18:57:23 +01:00
kovacsv
5e6312b236 Show fit and show/hide button for all meshes in the navigator. 2021-11-04 08:42:49 +01:00
kovacsv
3423baa2b2 Hierarchical glTF import. 2021-11-02 08:40:27 +01:00
kovacsv
c639821249 Fix splitter behavior. 2021-11-01 07:48:02 +01:00
kovacsv
1b936f21b2 Replace environment map. 2021-10-31 09:30:37 +01:00
kovacsv
303d832a70 Replace environment map. 2021-10-30 13:00:52 +02:00
kovacsv
56d825281a Fix mesh isolation. 2021-10-30 10:30:37 +02:00
kovacsv
f12285be84 Implement show/hide for nodes. 2021-10-30 10:24:53 +02:00
kovacsv
6177c3c169 Implement fit to window for nodes. 2021-10-30 10:06:43 +02:00
kovacsv
5ae10403fa List all of the supported file formats. 2021-10-30 09:16:03 +02:00
kovacsv
69430fd8f2 Update three.js to the latest version #160 2021-10-30 08:43:25 +02:00
kovacsv
494ef4697b Move shading parameters to a separate class. 2021-10-29 18:19:36 +02:00
kovacsv
b63a94db11 Add clickable style only when the item does something on click. 2021-10-28 17:07:52 +02:00
kovacsv
0fba20ded8 Splitter for resizing the navigator. 2021-10-28 17:03:22 +02:00
kovacsv
f52de03109 Modify closed group icon to right arrow. 2021-10-28 15:56:36 +02:00
kovacsv
281d49c750 Move open/close arrow to the left of navigator group items. 2021-10-28 14:08:58 +02:00
kovacsv
7abc6efc93 Import all models as hierarchical model, but put all the meshes under the root node. 2021-10-27 08:25:47 +02:00
kovacsv
ad132b2eed Calculate geometric values based on mesh instances. 2021-10-26 18:54:51 +02:00
kovacsv
7eac7dee43 Treat models with no node hierarchy as one flat hierarchy under the root node. 2021-10-26 18:40:20 +02:00
kovacsv
16a122fcf0 Tree view refactor. 2021-10-26 18:07:28 +02:00
kovacsv
6f9801010b Use mesh instance id to identify meshes. 2021-10-26 13:15:56 +02:00
kovacsv
af5a0fef13 Add node to mesh instance instead of transformation. 2021-10-26 08:50:20 +02:00
kovacsv
d35a23bb43 Query mesh item count from navigator. 2021-10-25 06:42:57 +02:00
kovacsv
d36e113dea Store navigator items in a dictionary. 2021-10-24 20:49:09 +02:00
kovacsv
1f7bccd331 Rename NavigatorTree to NavigatorItems. 2021-10-24 20:30:42 +02:00
kovacsv
90539cc15d Move MeshInstanceId to a separate file. 2021-10-24 18:08:50 +02:00
kovacsv
13cbca26ee Rename modeldata to navigatortree. 2021-10-24 18:04:20 +02:00
kovacsv
4250ab3b58 Add mesh instance object that represents a mesh with transformation. 2021-10-24 16:46:49 +02:00
kovacsv
f045d214c7 Add mesh instance id to identify a mesh in the node hierarchy. 2021-10-24 09:43:24 +02:00
kovacsv
654ffd0acc Use one main object in viewer instead of an array of meshes. 2021-10-22 17:25:16 +02:00
kovacsv
4ebcddc040 Don't show the settings/details icons on the landing page #153 2021-10-17 11:19:41 +02:00
kovacsv
6dacca19a7 Remove toolbar icon hiding, because it doesn't work on mobile. 2021-10-16 20:46:28 +02:00
kovacsv
9dcf49b548 Add node class. 2021-10-16 11:53:19 +02:00
kovacsv
2ab03c7213 Minor modification. 2021-10-16 11:33:23 +02:00
kovacsv
633fd759ee Don't show the settings/details icons on the landing page #153 2021-10-16 11:32:56 +02:00
kovacsv
e4800cd352 Modify light icon color in dark mode. 2021-10-10 12:10:14 +02:00
kovacsv
b152aa00e4 Modify sidebar panel text color. 2021-10-10 12:01:54 +02:00
kovacsv
d3f693f2de Dark Mode #113 2021-10-10 11:48:48 +02:00
kovacsv
803cb5cb1c Fine-tune dark mode styles. 2021-10-10 11:31:47 +02:00
kovacsv
27b13f9a7c Custom checkbox and radio button style. 2021-10-10 10:34:51 +02:00
kovacsv
fb3cdbe83c Pass original file name and extension to importers. 2021-09-24 08:16:18 +02:00
kovacsv
87a7fffc4f Use css variables for dialog text inputs. 2021-09-15 08:38:58 +02:00
kovacsv
b89a3429ba Feature Request- Ability to auto detect and load models from .zip or .rar #136 2021-09-13 16:32:50 +02:00
kovacsv
4e7f5d0445 Move FileList to a separate file. 2021-09-13 11:21:29 +02:00
kovacsv
c2cb76e75d Update CSS. 2021-09-07 20:08:04 +02:00
kovacsv
e7af727fa9 Embed input elements into labels. 2021-09-07 15:04:45 +02:00
kovacsv
419e8775dd Move three importer among other importers. 2021-09-05 08:04:55 +02:00
kovacsv
2d04bbfd95 Add icon to theme switch. 2021-09-04 20:56:37 +02:00
kovacsv
ed6b3f412f Add feature toggle for dark mode. 2021-09-04 20:39:49 +02:00
kovacsv
50078b26eb Remove system theme. 2021-09-04 20:22:28 +02:00
kovacsv
a62bf9cf27 Reset theme when needed. 2021-09-02 21:12:44 +02:00
kovacsv
197c2542b5 Add theme settings to sidebar panel. 2021-09-02 21:03:14 +02:00
kovacsv
e956c40ffe Replace theme string with theme id. 2021-09-02 19:32:00 +02:00
kovacsv
bd3c585e54 Do not use variables in info style sheet. 2021-09-01 16:44:56 +02:00
kovacsv
ca152b6488 Reorganize asset images. 2021-09-01 08:45:30 +02:00
kovacsv
5bfbb9b9d1 Define dark theme variable values in css. 2021-09-01 06:45:28 +02:00
kovacsv
d0c62b36f1 Get light theme parameters directly from css. 2021-08-30 17:17:27 +02:00
kovacsv
460cabb317 Keep the default values in the css. 2021-08-30 15:42:31 +02:00
kovacsv
36e666b221 Add theme to website settings. 2021-08-30 15:37:53 +02:00
kovacsv
671f77d827 Set outline button styles. 2021-08-30 07:08:34 +02:00
kovacsv
d3873f7ece Unify shadows on the page. 2021-08-29 12:08:09 +02:00
kovacsv
205c30b45e Merge branch 'dev' into dark_mode 2021-08-28 16:12:41 +02:00
kovacsv
4c5b522fa4 Use Capital Letters on the "Copy" Button (Share Dialogue) #124 2021-08-28 16:12:25 +02:00
kovacsv
4794576922 Update dark mode css. 2021-08-28 16:10:48 +02:00
kovacsv
464c431ac6 Update dark mode styles. 2021-08-28 11:48:29 +02:00
kovacsv
281e789261 Fix build error. 2021-08-27 18:13:18 +02:00
kovacsv
524c285792 Use css variables in svg icons. 2021-08-27 18:12:31 +02:00
kovacsv
bc54053d31 Merge branch 'dev' into dark_mode 2021-08-27 08:12:20 +02:00
kovacsv
ec9766ae81 Access all files as arraybuffer, and convert to text if needed. 2021-08-27 08:11:35 +02:00
kovacsv
2f1be7efb3 Merge branch 'dev' into dark_mode 2021-08-26 11:03:08 +02:00
kovacsv
079427a5d8 racing conditions on callback function #126 2021-08-26 08:22:48 +02:00
kovacsv
afa7a73c9b Merge branch 'dev' into dark_mode 2021-08-25 17:48:53 +02:00
kovacsv
3d43bdb3c9 Update start page image. 2021-08-25 17:48:38 +02:00
kovacsv
e9f6dcabfa Merge branch 'dev' into dark_mode 2021-08-25 17:28:27 +02:00
kovacsv
30ee873ea1 Clean-up logo svg. 2021-08-25 17:27:58 +02:00
kovacsv
06e42bce2e Description alignment fix. 2021-08-20 08:55:36 +02:00
kovacsv
7adebafbe5 Add png version of the logo. 2021-08-20 08:43:27 +02:00
kovacsv
013937f7e3 Remove left border from color picker button. 2021-08-19 08:20:54 +02:00
kovacsv
fbfc0a39a0 Disable pickr button border. 2021-08-19 07:56:40 +02:00
kovacsv
9864ac8cdb Add theme handler. 2021-08-19 07:46:37 +02:00
kovacsv
d1c2b30adc Add some css variables. 2021-08-18 18:28:52 +02:00
kovacsv
23eaa8b0f8 Update example image. 2021-08-18 18:16:38 +02:00
kovacsv
785608338d Add light icon color variable. 2021-08-18 18:09:16 +02:00
kovacsv
7576c5ae9e Fix warning icon. 2021-08-18 17:14:28 +02:00
kovacsv
f12cbaadeb Use font icons instead of svg. 2021-08-18 17:08:25 +02:00
kovacsv
9bdd924b2f Remove mesh isolation by ctrl+click. 2021-08-17 19:28:22 +02:00
kovacsv
b03d4cc433 Update user manual. 2021-08-17 15:51:01 +02:00
kovacsv
d2deb50aa4 Change texts on settings panel. 2021-08-17 07:51:00 +02:00
kovacsv
42955d417d Add warning to setting panel. 2021-08-16 17:45:00 +02:00
kovacsv
85bebcb1ed Do not change border on outline button hover. 2021-08-15 21:56:35 +02:00
kovacsv
78aaba8a32 Disable color settings with feature toggle. 2021-08-15 21:43:11 +02:00
kovacsv
2117efd938 Add button class for testing. 2021-08-15 17:46:53 +02:00
kovacsv
55602f2031 Call resize after the viewer becomes visible. 2021-08-15 17:25:49 +02:00
kovacsv
ba4dcdfe04 Call resize when the model is loaded so sidebar will appear correctly on first load. 2021-08-15 12:50:20 +02:00
kovacsv
fda780b212 Fix info css. 2021-08-15 11:19:30 +02:00
kovacsv
55b611a2f6 Hover effect on Buttons #112 2021-08-15 10:14:15 +02:00
kovacsv
9c375c7927 Modify color picker position. 2021-08-15 10:01:26 +02:00
kovacsv
9e74a28d0b CSS refactor. 2021-08-15 10:00:40 +02:00
kovacsv
9c3ccab0f5 Minor modification. 2021-08-14 14:17:56 +02:00
kovacsv
b01dfc483f Remove preview from color picker. 2021-08-14 12:31:23 +02:00
kovacsv
95edcb8308 Settings panel redesign. 2021-08-14 11:55:21 +02:00
kovacsv
8493391517 Change canvas background color #85
Option to set default material for meshes with no material information #45
2021-08-14 11:12:41 +02:00
Agnes Gaschitz
8d53fe94b3 Modified Settings Icons 2021-08-14 11:09:26 +02:00
Agnes Gaschitz
5a3c2831d1 New Settings Icons 2021-08-14 11:05:04 +02:00
kovacsv
a0decdced3 Send extensions to model load failed handler. 2021-08-12 19:29:45 +02:00
kovacsv
37854a9313 Add three.js link. 2021-08-12 08:23:19 +02:00
kovacsv
0a547f7239 Add support for FBX file format #56 2021-08-12 08:21:13 +02:00
kovacsv
c14da66704 Merge branch 'dev' into three_importer 2021-08-07 22:14:58 +02:00
kovacsv
6a2315fbff Show physical material properties in the sidebar. 2021-08-07 22:08:06 +02:00
kovacsv
d03c67ce1f Merge branch 'dev' into three_importer 2021-08-06 19:02:01 +02:00
kovacsv
5130717732 Always return file extension in lower case. 2021-08-06 19:01:43 +02:00
kovacsv
0a269785da Add experiment to load models using three.js loaders. 2021-08-06 17:00:29 +02:00
kovacsv
6dad95b310 Add rhino exporter in the exporter constructor. 2021-08-06 15:10:38 +02:00
kovacsv
131b5c6cec Move font next to the css. 2021-08-06 14:44:25 +02:00
kovacsv
253e648a30 Move js and css files to separate folder. 2021-08-06 14:41:34 +02:00
kovacsv
02dab25883 Add event handler for some workflow events. 2021-08-01 14:28:48 +02:00
kovacsv
7022255491 Handle logical properties. 2021-08-01 11:58:33 +02:00
kovacsv
bffb791696 Hide isolation option when there is only one mesh in the model. 2021-07-30 13:29:44 +02:00
kovacsv
64e3dd2dcf Fix popup text overflow. 2021-07-29 14:44:34 +02:00
kovacsv
11f4579693 Make mesh visibility options available from context menu #102
Add the possibility to isolate mesh #103
2021-07-29 09:53:51 +02:00
kovacsv
9901ba1f4c Add sphere to function names where a sphere is expected. 2021-07-27 08:14:31 +02:00
kovacsv
428881a8c4 Separate js and css in config file. 2021-07-25 11:32:32 +02:00
kovacsv
b825403634 Simplify css. 2021-07-25 09:52:49 +02:00
kovacsv
6e05b1a584 Create function for icon creation. 2021-07-25 09:30:57 +02:00
kovacsv
4475e3faf2 Rename tree folder to navigator. 2021-07-24 22:03:05 +02:00
kovacsv
87ff35b794 Add show all meshes to the context menu. 2021-07-24 21:12:27 +02:00
kovacsv
74e99e1241 Fix lgtm error. 2021-07-24 14:50:29 +02:00
kovacsv
e48d699e5c Add the possibility to add icons to list popup. 2021-07-24 14:28:11 +02:00
kovacsv
beb389a3b0 Rename fit to window item. 2021-07-24 14:07:01 +02:00
kovacsv
d59a0c0a77 Always fit context menu to the screen. 2021-07-24 14:04:41 +02:00
kovacsv
9405aff3dd Make mesh visibility options available from context menu #102 2021-07-24 13:49:22 +02:00
kovacsv
79e344187d Use arrow callback instead of function. 2021-07-22 21:20:50 +02:00
kovacsv
fb81e4ff5a Rename importer to engine. 2021-07-22 21:18:37 +02:00
kovacsv
1c2dab2e5e Show material type in sidebar. 2021-07-21 20:57:47 +02:00
kovacsv
7b33f773ed Remove examples file. 2021-07-20 20:18:05 +02:00
kovacsv
108448fe85 Export metallic and roughness factor only if no metallic roughness texture is present. 2021-07-19 20:17:05 +02:00
kovacsv
3f30909b2e Use Physically Based Rendering when possible #99 2021-07-19 19:31:12 +02:00
kovacsv
46644d47c3 Use Physically Based Rendering when possible #99 2021-07-19 17:44:43 +02:00
kovacsv
265da7548d Modify source structure. 2021-07-15 20:58:50 +02:00
kovacsv
ec4bc495a2 Add reset to defaults button to settings panel. 2021-07-13 06:42:30 +02:00
kovacsv
3a03b3c1e7 Remove default color from sharing link. 2021-07-12 11:00:57 +02:00
kovacsv
5851aedb1d Use arrow callbacks everywhere. 2021-07-12 08:49:12 +02:00
kovacsv
f2589dc2a1 Use eslint instead of jshint. 2021-07-12 07:32:53 +02:00
kovacsv
8874c88222 Add todos. 2021-07-11 19:08:14 +02:00
kovacsv
b063321a5b Rename url parameters for default and background color. 2021-07-11 15:44:22 +02:00
kovacsv
d32dc8485a Replace default material without reloading the model. 2021-07-11 11:15:52 +02:00
kovacsv
f6f5a4c00d Changing default color. 2021-07-11 10:36:43 +02:00
kovacsv
303a2d182c Add background color switch to the settings panel. 2021-07-11 09:59:26 +02:00
kovacsv
475d1d00ad Highlight the button of the selected sidebar panel. 2021-07-11 08:57:18 +02:00
kovacsv
f85eebfb3f Init sidebar panels from the website code. 2021-07-10 18:48:59 +02:00
kovacsv
6be8d8f8f3 Fix lgtm error. 2021-07-10 13:44:25 +02:00
kovacsv
840f48b237 Add dummy settings sidebar panel. 2021-07-10 13:35:18 +02:00
kovacsv
5eaffa347e Preparation for multiple side bar panels. 2021-07-10 13:17:34 +02:00
kovacsv
8832ddb916 Preparation for multiple side bar panels. 2021-07-10 13:00:59 +02:00
kovacsv
561a520e89 Update preview image. 2021-07-02 18:01:13 +02:00
kovacsv
e28df4f8a8 Remove IFC from UI. 2021-07-02 12:38:29 +02:00
kovacsv
4001ba2e2e Property handling. 2021-07-02 12:02:53 +02:00
kovacsv
d2a25abf97 Add ifc to file lists. 2021-07-01 18:25:30 +02:00
kovacsv
cc66895499 Merge branch 'dev' into ifcimporter 2021-06-27 00:03:43 +02:00
kovacsv
87edf31524 Handle boolean property type on sidebar. 2021-06-27 00:03:27 +02:00
kovacsv
8669e1301f Merge branch 'dev' into ifcimporter 2021-06-27 00:00:48 +02:00
kovacsv
f16416d536 Ellipsis in case of long property group names. 2021-06-26 23:59:47 +02:00
kovacsv
5d76010284 Merge branch 'dev' into ifcimporter 2021-06-26 23:54:09 +02:00
kovacsv
93f85738cb Organize properties in groups. 2021-06-26 23:53:08 +02:00
kovacsv
2b38556eff Change canvas background color #85 2021-06-25 08:41:34 +02:00
kovacsv
9942b9429d Color cookie handling. 2021-06-24 20:02:56 +02:00
kovacsv
f5960b141f Store default color as cookie. 2021-06-24 19:45:39 +02:00
kovacsv
3645e07c0d Settings dialog refactor. 2021-06-24 18:13:49 +02:00
kovacsv
477dcbe1cd Merge branch 'dev' into ifcimporter 2021-06-22 12:01:39 +02:00
kovacsv
6e2e1a2109 Remove unnecessary resize during load. 2021-06-20 19:40:53 +02:00
kovacsv
89796d2971 Read meta data from glTF. 2021-06-20 18:40:50 +02:00
kovacsv
48c0532c9b Update example image. 2021-06-20 16:16:44 +02:00
kovacsv
b18850267c Calculate Volume and Surface Area #72 2021-06-20 16:07:16 +02:00
kovacsv
248aaa1545 Compress svg files. 2021-06-20 15:46:25 +02:00
kovacsv
e8ba400a3b Modifications for test. 2021-06-20 15:37:53 +02:00
kovacsv
12706c7f6a Add material color preview. 2021-06-20 15:03:25 +02:00
Agnes Gaschitz
eb55ec80a0 Merge branch 'sidebar' of https://github.com/kovacsv/Online3DViewer into sidebar 2021-06-20 11:42:25 +02:00
Agnes Gaschitz
0bc4ee9fee Modified Close Icon 2021-06-20 11:42:15 +02:00
kovacsv
05d0e65ce7 Add texture maps. 2021-06-20 11:38:34 +02:00
Agnes Gaschitz
fc7415f262 Merge branch 'sidebar' of https://github.com/kovacsv/Online3DViewer into sidebar 2021-06-20 11:34:59 +02:00
Agnes Gaschitz
07e1b0ca54 Modify/Add Icons
Details Blue.svg
Close.svg
2021-06-20 11:34:47 +02:00
kovacsv
ea77b98642 Add basic information to the sidebar. 2021-06-20 11:31:39 +02:00
Agnes Gaschitz
d6db051ac6 Update close.svg
Update Close Icon
2021-06-20 11:25:55 +02:00
kovacsv
b0080a9d49 Fix missing semicolon. 2021-06-20 10:54:28 +02:00
kovacsv
d5157017c2 Add sidebar close button. 2021-06-20 10:53:24 +02:00
kovacsv
376a949ba9 Add close icon. 2021-06-20 10:45:05 +02:00
kovacsv
b0a5388c12 Store sidebar visibility status. 2021-06-20 10:44:18 +02:00
kovacsv
e61aabd77c Add details button. 2021-06-20 09:55:46 +02:00
kovacsv
25d209b00f Add dummy properties to the sidebar. 2021-06-20 09:30:40 +02:00
kovacsv
b96eaf9570 Simplify navigator code. 2021-06-20 08:26:52 +02:00