File size: 6,363 Bytes
d5f8f0c
 
 
47dae7f
 
 
 
 
d5f8f0c
7b1c458
f26a262
 
 
47dae7f
 
d5f8f0c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47dae7f
 
 
 
 
 
 
 
 
 
9ca6ad6
47dae7f
 
 
 
 
 
 
 
 
d5f8f0c
 
 
 
 
 
 
 
 
 
 
 
47dae7f
 
 
 
 
f26a262
 
 
47dae7f
 
 
 
 
 
d5f8f0c
 
 
 
 
 
 
 
 
 
 
47dae7f
 
 
 
 
d5f8f0c
a77b4a3
47dae7f
 
 
 
 
 
 
d5f8f0c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47dae7f
 
d5f8f0c
 
aca1e25
d5f8f0c
 
47dae7f
9ca6ad6
d5f8f0c
 
47dae7f
 
 
a77b4a3
47dae7f
 
d5f8f0c
47dae7f
88c1561
d5f8f0c
47dae7f
d5f8f0c
 
47dae7f
 
d5f8f0c
 
47dae7f
 
d5f8f0c
 
47dae7f
aca1e25
d5f8f0c
 
aca1e25
 
d5f8f0c
 
 
47dae7f
 
d5f8f0c
 
 
 
 
 
 
 
 
 
 
 
 
 
6ea29e5
 
d5f8f0c
88c1561
 
 
3cf1a30
9ada7eb
d5f8f0c
 
88c1561
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8df2de6
d5f8f0c
aca1e25
 
d5f8f0c
 
 
 
 
aca1e25
d5f8f0c
 
 
aca1e25
 
d5f8f0c
 
 
 
aca1e25
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
/* ==============================
   style.css
   ============================== */

/* Widget container styling */
.ply-widget-container {
  position: relative;
  width: 100%;
  height: 0; /* Height: 0 so padding-bottom controls the aspect ratio */
  background-color: white;
  transition: all 0.3s ease;
  box-sizing: border-box;
  overflow: hidden;
}

/* When in fake fullscreen mode (iOS fallback) */
.ply-widget-container.fake-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  padding-bottom: 0 !important;
  z-index: 9999 !important;
  background-color: black;
  border-radius: 0 !important;
  margin: 0 !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  box-sizing: border-box;
  overflow: hidden;
}

/* For native fullscreen - ensure no aspect ratio padding */
.ply-widget-container:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  padding-bottom: 0 !important;
  border-radius: 0 !important;
  background-color: black;
}

/* Vendor prefixes for fullscreen */
.ply-widget-container:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  padding-bottom: 0 !important;
  border-radius: 0 !important;
  background-color: black;
}
.ply-widget-container:-moz-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  padding-bottom: 0 !important;
  border-radius: 0 !important;
  background-color: black;
}
.ply-widget-container:-ms-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  padding-bottom: 0 !important;
  border-radius: 0 !important;
  background-color: black;
}

/* Viewer Container styling */
.viewer-container {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: black;
  border: 1px solid #474558;
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
  transition: all 0.3s ease;
  min-height: 100%;
  object-fit: contain;
}

/* When parent container is fullscreen, adjust viewer container */
.fake-fullscreen .viewer-container,
:fullscreen .viewer-container,
:-webkit-full-screen .viewer-container,
:-moz-full-screen .viewer-container,
:-ms-fullscreen .viewer-container {
  border-radius: 0;
  border: none;
  width: 100%;
  height: 100%;
}

/* Canvas fills the viewer container */
.ply-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background-color: transparent;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Make sure canvas fills entire space in fullscreen */
.fake-fullscreen .ply-canvas,
:fullscreen .ply-canvas,
:-webkit-full-screen .ply-canvas,
:-moz-full-screen .ply-canvas,
:-ms-fullscreen .ply-canvas {
  width: 100vw;
  height: 100vh;
}

/* Progress dialog styling (centered) */
.progress-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  background: rgba(0,0,0,0.7);
  padding: 20px;
  border-radius: 5px;
  z-index: 1000;
  display: none;
  color: white;
}

/* Progress bar styling */
progress {
  width: 250px;
  height: 15px;
  appearance: none;
  border: none;
  border-radius: 10px;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background-color: #333;
  border-radius: 10px;
}
progress::-webkit-progress-value {
  background-color: #4682B4;
  border-radius: 10px;
}
progress::-moz-progress-bar {
  background-color: #4682B4;
  border-radius: 10px;
}

/* Help / instructions panel styling */
.menu-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(242, 240, 239, 0.9);
  color: #545454;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 18px 24px;
  z-index: 1010;
  max-width: 400px;
  width: 80%;
  box-sizing: border-box;
}

/* Close (✕) button inside help panel */
.help-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #B0B0B0;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
}

/* Help text inside panel */
.help-text {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.4;
}

/* Button styling */
.widget-button {
  position: absolute;
  width: 30px;  /* reduced size */
  height: 30px; /* reduced size */
  background-color: #F2F0EF;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  color: #545454;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  z-index: 1000;
}
.widget-button:hover {
  background-color: rgba(242, 240, 239, 0.7);
}

/* Specific button positions; adjust gaps to be tighter */
.fullscreen-toggle {
  top: 15px;
  right: 10px;
}
.help-toggle {
  top: 15px;
  right: 50px;
}
.reset-camera-btn {
  top: 15px;
  right: 90px;
}
.points-toggle {
  top: 15px;
  right: 130px;
}

/* 📍 icon styling */
.points-toggle {
  font-size: 18px;
}

/* Close tooltip icon (×) */
.point-tooltip-close {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #999;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
}

/* Tooltip styling */
.point-tooltip {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translate(0%, -50%);
  background: rgba(30, 30, 30, 0.9);
  color: #fff;
  border: 1px solid #666;
  border-radius: 6px;
  padding: 15px;
  max-width: 300px;
  z-index: 20000;
  display: none;
  flex-direction: column;
  align-items: flex-start;
}
.point-tooltip-text {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
}
.point-tooltip-image {
  max-width: 100%;
  border-radius: 4px;
  margin-top: 5px;
}

/* Responsive tweaks */
@media screen and (max-width: 600px) {
  .menu-content {
    width: 90%;
    padding: 14px 18px;
  }
  .help-text {
    font-size: 12px;
  }
  .widget-button {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }
  .fullscreen-toggle { right: 8px; top: 12px; }
  .help-toggle       { right: 42px; top: 12px; }
  .reset-camera-btn  { right: 76px; top: 12px; }
  .points-toggle     { right: 110px; top: 12px; }
}