Commit Graph

564 Commits

Author SHA1 Message Date
kovacsv
ca3fd182b0 Introduce node types. GroupNode is a node that contains child nodes and optionally some meshes. MeshNode is a node that contains only one mesh. MeshNodes are not visible in the tree. 2021-11-13 20:56:35 +01:00
kovacsv
6732e8bb70 Fix node naming. 2021-11-12 16:30:09 +01:00
kovacsv
f6b22eb333 Speed up svg icon change. 2021-11-12 08:30:02 +01:00
kovacsv
eaaa780c30 Minor speed improvement. 2021-11-11 15:47:52 +01:00
kovacsv
01dadfada6 Fix missing semicolon. 2021-11-11 14:51:36 +01:00
kovacsv
de8670794c Speed up mesh isolation. 2021-11-11 14:30:38 +01:00
kovacsv
52b94e5aa4 Show all meshes on view type change. 2021-11-11 12:41:58 +01:00
kovacsv
e4fbd29c16 Hide expand and collapse buttons when there is no hierarchy in the model. 2021-11-11 08:20:37 +01:00
kovacsv
55c29b0d4b Show the currently opened file name in the header. 2021-11-11 07:06:55 +01:00
kovacsv
312d0c4447 Modify meshes button generation. 2021-11-10 15:58:14 +01:00
kovacsv
e0b6b19d2e Separate css variable for selected icon color. 2021-11-10 09:59:19 +01:00
kovacsv
82fa3ec8bf Add separator to meshes panel buttons. 2021-11-10 07:45:22 +01:00
kovacsv
23fb36b2d0 Add mesh icons to the tree. 2021-11-10 07:23:48 +01:00
kovacsv
73ca7e2a8c Add meshes panel icon placeholders. 2021-11-09 07:02:46 +01:00
kovacsv
7bb6363559 Common code for splitter install. 2021-11-09 07:00:21 +01:00
kovacsv
40cdc0a93d Make navigator and sidebar the same width. 2021-11-09 06:54:47 +01:00
kovacsv
d632df2254 Modify the default width of the navigator. 2021-11-08 19:54:00 +01:00
kovacsv
ef4500f23d Minor modification. 2021-11-08 19:45:42 +01:00
kovacsv
d94dd7d862 Merge branch 'dev' into navigator_redesign 2021-11-08 19:40:05 +01:00
kovacsv
90b11feb28 Remove version postfix from lib files. 2021-11-08 19:31:42 +01:00
kovacsv
1c867f83fe Fix meshes panel height calculation. 2021-11-08 14:25:24 +01:00
kovacsv
66959b7ad6 Add icon bar to the meshes panel. 2021-11-08 12:20:36 +01:00
kovacsv
10203e71c3 Make sidebar resizable. 2021-11-07 20:04:16 +01:00
kovacsv
b09011d39f Tooltip for navigator and sidebar buttons. 2021-11-07 19:49:08 +01:00
kovacsv
ff53c05bb2 Scroll tree elements to view even if they don't have a parent element. 2021-11-07 19:03:13 +01:00
kovacsv
4694fe640a Store navigator and sidebar opened/closed state in cookie. 2021-11-07 18:45:08 +01:00
kovacsv
34faf61b46 Highlight currently opened panel's icon. 2021-11-07 17:45:50 +01:00
kovacsv
4c7602a9d8 Modify sidebar width. 2021-11-07 17:45:37 +01:00
kovacsv
a4c0f0e95d Fine-tune panel set size and scroll behavior. 2021-11-07 17:35:29 +01:00
kovacsv
0020fa3878 Do not show the meshes root node. 2021-11-07 17:29:04 +01:00
kovacsv
b1435e5edc Modify files panel design. 2021-11-07 17:21:13 +01:00
kovacsv
4cbd1b2fef Minor modifications. 2021-11-07 15:27:41 +01:00
kovacsv
55ba530dc4 Switch files panel icon when there are missing files. 2021-11-07 11:31:31 +01:00
kovacsv
1d06bc0bce Show ambient and specular color. 2021-11-07 11:31:06 +01:00
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