8294edc1d1
Annotation sequence in editor skips unused in set
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2025-05-05 21:28:11 -07:00
8ed4e1f679
Fix: reset after annotation selection
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2025-05-03 11:26:02 -07:00
7e353bee24
Add reset view position button to model menu
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2025-05-03 10:02:43 -07:00
7daaf81280
Include fiedl of view in annotation data
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2024-11-19 20:01:45 -07:00
0dd9aba2b6
Refactor js files ( #48 )
...
This pr is a significant reorg of the js files.
1) All non-basic functions have been moved out of the main glmv.js
2) 'Metadata' has been universally changed to mvconfig to avoid conflict with actual file metadata
3) Configuration changing functions have been split off into glmv-mvconfig.js
4) Hotspot modification functions have been split off into glmv-hs.js
Reviewed-on: #48
2024-11-18 03:54:29 +00:00
3afe0ca143
Add view config selection to preview editor
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2024-11-16 14:57:28 -07:00
8032d0a16d
Add camera control toggle to preview edit functions
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2024-11-16 10:23:36 -07:00
9f8995dcf3
Include field of view in default view and config
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2024-11-15 08:21:30 -07:00
7cba86ce30
Improve camera orbit and target settings
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2024-11-13 16:28:49 -07:00
4f7febcd26
Add mvconfig tag
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2024-11-13 09:27:45 -07:00
6787cdf00a
Remove deleted annotation from sets
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2024-11-12 20:26:12 -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
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
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
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
7a53ef8de8
Add download image button
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2024-11-03 20:44:05 -07: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
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
11bac465d9
Disable hotspot buttons on hotspot hide
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2024-10-29 17:50:51 -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
6b3e1f4e19
Add hotpot navigation and slideshow
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2024-10-28 13:51:46 -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
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
41354e2d70
Clean up js and add DocBlocks
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2024-10-25 18:46:55 -07:00
a80e422874
Switch add hotspot to button function
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2024-10-23 20:58:09 -07:00
063cfbab5e
Set clipboard data to json format
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2024-10-23 12:56:03 -07:00
134d9203de
Add file page model display
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2024-10-23 10:19:30 -07:00
36f8cbe04b
Add hotspot functionality
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2024-10-23 09:20:32 -07:00
5d90da0fda
Convert to image handler hook based viewer insertion
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2024-10-22 19:58:02 -07:00
6b1e2400b9
Improve formatting of file page inclusion
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2024-10-21 19:32:32 -07:00
00506a0532
Fix: handle empty metadata description
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2024-10-21 19:07:42 -07:00
a820b287f7
Set default size
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2024-10-21 19:00:32 -07:00
c685ee565b
Load metadata from model page description
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2024-10-21 18:14:25 -07:00
81f76ac35e
Fix urlProm return value for file page
...
Signed-off-by: Justin Georgi <justin.georgi@gmail.com >
2024-10-21 17:43:57 -07:00