Commit Graph

541 Commits

Author SHA1 Message Date
kovacsv
afb724fb3b Do not call event handlers since pickr calls them, too. 2021-11-30 21:20:42 +01:00
kovacsv
07fe1d5509 Send only file names to the file selector callback. 2021-11-30 10:29:01 +01:00
kovacsv
db57efeaf1 Select file to import when there are more importable files #176 2021-11-29 19:48:12 +01:00
kovacsv
7d3a454503 Build fix. 2021-11-29 10:59:45 +01:00
kovacsv
2ac86e2a65 Support for drag&dropping an entire folder with model files #175 2021-11-29 10:51:48 +01:00
kovacsv
dddd7a22e0 Separate needed lib files for website and embedded page. 2021-11-28 17:20:42 +01:00
kovacsv
5e696fd137 Add twitter button. 2021-11-27 23:03:49 +01:00
kovacsv
e88600afc3 Add header buttons directly to the parent element. 2021-11-27 20:39:49 +01:00
kovacsv
cb25414dd2 Fix panels visibility. 2021-11-27 13:19:50 +01:00
kovacsv
314b7bc563 Eliminate jQuery dependency #174 2021-11-27 12:22:14 +01:00
kovacsv
02e1ed850f Lower the jquery dependency of website. 2021-11-27 12:14:04 +01:00
kovacsv
289e7cfff7 Lower the jquery dependency of navigator. 2021-11-27 10:37:02 +01:00
kovacsv
86b86f09e6 Lower the jquery dependency of treeview. 2021-11-27 09:03:07 +01:00
kovacsv
698e383583 Lower the jquery dependency of toolbar. 2021-11-27 08:12:37 +01:00
kovacsv
494b05bb8e Minor modification. 2021-11-26 23:13:01 +01:00
kovacsv
a89681757a Lower the jquery dependency of dialogs. 2021-11-26 23:02:41 +01:00
kovacsv
c1c8de4a3f Define italic style in css instead of the code. 2021-11-26 21:04:13 +01:00
kovacsv
694aa9d839 Remove jquery usage from the embedding code. 2021-11-26 20:45:38 +01:00
kovacsv
1b20aa4235 Improve navigator performance. 2021-11-26 12:38:20 +01:00
kovacsv
86589648bc Center currently opened file name in the header. 2021-11-24 18:10:11 +01:00
kovacsv
6c57e785ca Do not use feature set in the viewer. 2021-11-20 17:20:55 +01:00
kovacsv
06a20bffd2 Add grid display experiment. 2021-11-20 17:00:28 +01:00
kovacsv
d954700cf1 Update meshes panel icons. 2021-11-19 08:54:14 +01:00
kovacsv
281a6eb077 Fix hierarchical model detection. 2021-11-16 08:39:10 +01:00
kovacsv
d5a9c886e0 Panel resize speedup. 2021-11-15 18:15:53 +01:00
kovacsv
ef83c0bfd3 Remember visibility status when changing between flat list and tree view. 2021-11-15 07:47:50 +01:00
kovacsv
2ccc67fe1a Separate file for svg loader. 2021-11-14 15:02:48 +01:00
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