Commit Graph

76 Commits

Author SHA1 Message Date
67b8f999c1 Bump tp version 0.1.0 and cleanup
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
v0.1.0
2024-11-12 08:20:00 -07:00
81576e283b Merge pull request 'Add Gltf metadata' (#38) from bas-add-metadata into main
Reviewed-on: #38
2024-11-12 03:57:31 +00:00
d559e786d1 Display metadata on file page
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-11 20:55:07 -07:00
9e1f89b92b Enable metadata versioning
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-11 20:35:08 -07:00
0c5c1c61d3 Collect metadata from glb file
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-10 19:52:08 -07:00
0e91a69d29 Add annotation set selector to preview
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-08 20:19:34 -07:00
e9b19f1e6c Add set camera limit buttons
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-08 16:55:43 -07:00
2e03cac221 Fix ooui downloadImage callback
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-08 15:51:57 -07:00
1a225126ec Refix enable menu error
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-08 13:43:45 -07:00
6877258e0c Fix undefined enableMenu error
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-08 12:06:45 -07:00
6799dfd4de Increase version to 0.0.7
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-08 10:35:52 -07:00
5a2f8819e3 Use ooui for edit action buttons (#32)
This PR converts the original basic preview edit actions buttons to MediaWiki's ooui to better match the style of the edit page.

Reviewed-on: #32
2024-11-08 15:27:14 +00:00
109cc08b90 Account for missing attributes in limitCameraOrbit
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-06 17:15:07 -07:00
9e5d55c608 Improve touchscreen styles
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-06 15:47:37 -07:00
b8a8cf08f3 Improve camera orbit value writing
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-06 10:03:04 -07:00
b241f20796 Add set starting view button
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-05 20:40:13 -07:00
37ca6cd017 Add full screen imagery and styling
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-05 19:49:03 -07:00
d80c31449b Add fullscreen framework
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-05 12:12:00 -07:00
a3b6aa1418 Fix hotspot moving regression
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-04 18:34:09 -07:00
9bd6f172c2 Add poster view property and manual model reveal
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-04 18:25:52 -07:00
7a53ef8de8 Add download image button
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-03 20:44:05 -07:00
80759edbad Fix toggling hotspot visibility
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-03 20:03:47 -07:00
ad45910a5f Fix upload css
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-03 19:58:44 -07:00
fc30b09d16 Add model previews on upload (#27)
Closes #22

This modifies the upload form to allow for a preview of models.

Reviewed-on: #27
2024-11-04 00:02:48 +00:00
a3a9902070 Add delete hotspot button to editor
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-02 11:01:16 -07:00
53b6b58c97 Prevent new hotspot name collisions
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-02 09:15:29 -07:00
e5d51ed2a5 Merge pull request 'Better i/o for editing metadata in preview' (#26) from bas-rw-annot into main
Reviewed-on: #26
2024-11-02 16:07:38 +00:00
381eda0574 Better i/o for editing metadata in preview
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-02 09:03:32 -07:00
6bdde87f8a Add docblock
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-01 14:38:03 -07:00
b786964a89 Fix button and img visibility before model
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-01 11:33:45 -07:00
df11f0c54b Change annotation edit grabbing to ctrl-click
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-11-01 10:38:55 -07:00
4bbdd29570 Fix hotspot move on preview click
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-10-31 20:25:50 -07:00
628c5fc288 Fix clicking on hotspots
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-10-31 20:14:06 -07:00
e547324774 Improve text alignment in hotspots
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-10-31 20:06:37 -07:00
75b5b1b279 Fix hotspot styles on mobile
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-10-31 19:30:43 -07:00
d59958f110 Add view and hsset link parameters
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-10-30 11:53:02 -07:00
64140b7cd9 Add basic thumbnail handling with static image
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-10-30 09:28:29 -07:00
11bac465d9 Disable hotspot buttons on hotspot hide
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-10-29 17:50:51 -07:00
4f1ff35194 Tidy up PHP code
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-10-29 16:14:29 -07:00
5d4863f9be Add hotspot enhancements and improed styles
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-10-29 08:18:16 -07:00
46ee8b6ee9 Add click and drag to hotspots during edit
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-10-28 19:37:37 -07:00
6905e1310f Enable crosshair cursor for hotspot select
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-10-28 15:25:38 -07:00
e77e8b85df Tweak menu css
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-10-28 14:25:36 -07:00
da3e61df9c Remove interation promt
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-10-28 13:56:39 -07:00
6b3e1f4e19 Add hotpot navigation and slideshow
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-10-28 13:51:46 -07:00
2163f9158a Setup menu bar for viewer actions
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-10-27 20:42:28 -07:00
3b5c2e993d Refactor to MediaHandler transform (#20)
Closes #6, Closes #18

This PR separates out 3 different classes: a distinct Hooks handling class, a MediaHandler class for models, and a MediaTransform class that handles all the actual model rendering.

Reviewed-on: #20
2024-10-27 04:11:16 +00:00
39329f5497 Improve and expand annotation selection methods
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-10-25 21:19:46 -07:00
7951ff21c9 Improve gallery compatibility
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-10-25 20:01:25 -07:00
36c36dd16e Add model-viewer script via MW php method
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-10-25 18:59:04 -07:00