@playcanvas/supersplat-viewer 1.34.0 → 1.35.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.js +2 -2
- package/dist/viewer.css +209 -40
- package/dist/viewer.js +3593 -3280
- package/dist/viewer.js.map +1 -1
- package/docs/api.md +2 -2
- package/package.json +1 -1
- package/public/index.css +209 -40
- package/public/index.js +3605 -3292
- package/public/index.js.map +1 -1
package/docs/api.md
CHANGED
|
@@ -152,7 +152,7 @@ The value stays active until replaced. The viewer clears it on camera/XR mode ch
|
|
|
152
152
|
|
|
153
153
|
### Saved preferences
|
|
154
154
|
|
|
155
|
-
`performanceMode`, `gamingControls` and `showAnnotations` load from and write changes to the existing origin-wide local-storage keys, with or without the built-in UI. Creation does not write defaults; the legacy `retinaDisplay` migration is preserved. A new viewer reads the saved values; already-mounted viewers keep their own state rather than synchronizing through storage. The host can change these preferences through the corresponding writable state fields. Storage denial or quota errors leave the viewer usable, and destruction removes its persistence subscriptions.
|
|
155
|
+
`performanceMode`, `gamingControls` and `showAnnotations` load from and write changes to the existing origin-wide local-storage keys, with or without the built-in UI. Creation does not write defaults; the legacy `retinaDisplay` migration is preserved. A new viewer reads the saved values; already-mounted viewers keep their own state rather than synchronizing through storage. The host can change these preferences through the corresponding writable state fields. Storage denial or quota errors leave the viewer usable, and destruction removes its persistence subscriptions. The built-in UI also remembers whether its controls panel is open, under the origin-wide key `controlsPanelOpen`; it is open for a new visitor until they close it.
|
|
156
156
|
|
|
157
157
|
### Controlling annotations
|
|
158
158
|
|
|
@@ -175,7 +175,7 @@ else viewer.events.once('loaded:changed', selectFirst);
|
|
|
175
175
|
|
|
176
176
|
Selection switches to orbit and transitions to the annotation's authored camera without changing the animation pause flag. Selecting the same index again navigates again. `selectAnnotation(null)` clears selection while leaving the camera and any transition alone. Commands return immediately and throw before readiness, after destruction, or for an index that is not an integer in range. Clearing an empty annotation list is valid.
|
|
177
177
|
|
|
178
|
-
With `ui: false`, the same data, selection and camera navigation are available; the host supplies presentation. `state.showAnnotations` controls built-in visibility and does not clear selection, so showing annotations again restores the selected panel. The built-in navigator retains its last title and navigation position after dismissal. Clicking elsewhere inside this viewer clears selection; clicking host controls or another viewer does not.
|
|
178
|
+
With `ui: false`, the same data, selection and camera navigation are available; the host supplies presentation. `state.showAnnotations` controls built-in visibility and does not clear selection, so showing annotations again restores the selected panel. The built-in navigator retains its last title and navigation position after dismissal, greyed out while nothing is selected; clicking it selects that annotation again. Clicking elsewhere inside this viewer clears selection; clicking host controls or another viewer does not.
|
|
179
179
|
|
|
180
180
|
### Fullscreen and XR
|
|
181
181
|
|
package/package.json
CHANGED
package/public/index.css
CHANGED
|
@@ -58,6 +58,14 @@
|
|
|
58
58
|
.sse-viewer .sse-spacer {
|
|
59
59
|
flex-grow: 1;
|
|
60
60
|
}
|
|
61
|
+
.sse-viewer .sse-sceneLayer {
|
|
62
|
+
position: absolute;
|
|
63
|
+
top: 0;
|
|
64
|
+
left: 0;
|
|
65
|
+
width: 100%;
|
|
66
|
+
height: 100%;
|
|
67
|
+
pointer-events: none;
|
|
68
|
+
}
|
|
61
69
|
.sse-viewer .sse-ui {
|
|
62
70
|
position: absolute;
|
|
63
71
|
top: 0;
|
|
@@ -65,7 +73,6 @@
|
|
|
65
73
|
width: 100%;
|
|
66
74
|
height: 100%;
|
|
67
75
|
pointer-events: none;
|
|
68
|
-
z-index: 0;
|
|
69
76
|
}
|
|
70
77
|
.sse-viewer .sse-ui * {
|
|
71
78
|
pointer-events: auto;
|
|
@@ -122,37 +129,24 @@
|
|
|
122
129
|
}
|
|
123
130
|
.sse-viewer .sse-controlsHint {
|
|
124
131
|
position: absolute;
|
|
125
|
-
top: max(16px, env(safe-area-inset-top));
|
|
126
132
|
right: max(16px, env(safe-area-inset-right));
|
|
133
|
+
bottom: calc(max(16px, env(safe-area-inset-bottom)) + 70px);
|
|
127
134
|
min-width: 200px;
|
|
128
135
|
max-width: calc(100% - 32px);
|
|
129
136
|
box-sizing: border-box;
|
|
130
|
-
padding:
|
|
131
|
-
border-radius:
|
|
137
|
+
padding: 8px 8px 8px 12px;
|
|
138
|
+
border-radius: 16px;
|
|
132
139
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
133
140
|
font-size: 12px;
|
|
134
141
|
color: var(--sse-text);
|
|
135
|
-
background-color: color-mix(in srgb, var(--sse-bkg)
|
|
142
|
+
background-color: color-mix(in srgb, var(--sse-bkg) 50%, transparent);
|
|
136
143
|
backdrop-filter: blur(20px);
|
|
137
144
|
-webkit-backdrop-filter: blur(20px);
|
|
138
|
-
visibility: hidden;
|
|
139
|
-
opacity: 0;
|
|
140
|
-
transform: translateY(-4px);
|
|
141
|
-
transition: visibility 0s 0.4s, opacity 0.4s ease-out, transform 0.4s ease-out;
|
|
142
|
-
}
|
|
143
|
-
.sse-viewer .sse-controlsHint.sse-visible {
|
|
144
|
-
visibility: visible;
|
|
145
|
-
opacity: 1;
|
|
146
|
-
transform: none;
|
|
147
|
-
transition: opacity 0.2s ease-out, transform 0.2s ease-out;
|
|
148
145
|
}
|
|
149
146
|
.sse-viewer .sse-controlsHint > .sse-controlsHintHeader {
|
|
150
147
|
display: flex;
|
|
151
148
|
align-items: flex-start;
|
|
152
149
|
gap: 8px;
|
|
153
|
-
padding-bottom: 8px;
|
|
154
|
-
margin-bottom: 4px;
|
|
155
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
|
156
150
|
}
|
|
157
151
|
.sse-viewer .sse-controlsHint > .sse-controlsHintHeader > .sse-controlsHintIcon {
|
|
158
152
|
width: 20px;
|
|
@@ -181,6 +175,14 @@
|
|
|
181
175
|
.sse-viewer .sse-controlsHint > .sse-controlsHintHeader > .sse-controlsHintTitles > .sse-controlsHintSubtitle:empty {
|
|
182
176
|
display: none;
|
|
183
177
|
}
|
|
178
|
+
.sse-viewer .sse-controlsHint > .sse-controlsHintRows {
|
|
179
|
+
margin-top: 8px;
|
|
180
|
+
padding: 4px 4px 0 0;
|
|
181
|
+
border-top: 1px solid rgba(255, 255, 255, 0.06);
|
|
182
|
+
}
|
|
183
|
+
.sse-viewer .sse-controlsHint > .sse-controlsHintRows:empty {
|
|
184
|
+
display: none;
|
|
185
|
+
}
|
|
184
186
|
.sse-viewer .sse-controlsHint > .sse-controlsHintRows > .sse-controlsHintItem {
|
|
185
187
|
display: flex;
|
|
186
188
|
align-items: center;
|
|
@@ -426,7 +428,7 @@
|
|
|
426
428
|
stroke: none;
|
|
427
429
|
}
|
|
428
430
|
.sse-viewer .sse-controlsWrap > .sse-buttonsContainer .sse-controlButton {
|
|
429
|
-
/* active highlight for simple toggle buttons (
|
|
431
|
+
/* active highlight for simple toggle buttons (settings, controls, info) */
|
|
430
432
|
}
|
|
431
433
|
.sse-viewer .sse-controlsWrap > .sse-buttonsContainer .sse-controlButton.sse-active:not(.sse-toggle) {
|
|
432
434
|
color: var(--sse-accent);
|
|
@@ -475,18 +477,32 @@
|
|
|
475
477
|
gap: 4px;
|
|
476
478
|
font-size: 14px;
|
|
477
479
|
color: var(--sse-text);
|
|
478
|
-
background-color: color-mix(in srgb, var(--sse-bkg)
|
|
480
|
+
background-color: color-mix(in srgb, var(--sse-bkg) 50%, transparent);
|
|
479
481
|
backdrop-filter: blur(20px);
|
|
480
482
|
-webkit-backdrop-filter: blur(20px);
|
|
481
483
|
}
|
|
482
|
-
.sse-viewer .sse-settingsPanel > .sse-
|
|
484
|
+
.sse-viewer .sse-settingsPanel > .sse-settingsGroup {
|
|
485
|
+
display: flex;
|
|
486
|
+
flex-direction: column;
|
|
487
|
+
gap: 4px;
|
|
488
|
+
width: 100%;
|
|
489
|
+
}
|
|
490
|
+
.sse-viewer .sse-settingsPanel > .sse-settingsGroup:not(:has(> :not(.sse-hidden))) {
|
|
491
|
+
display: none;
|
|
492
|
+
}
|
|
493
|
+
.sse-viewer .sse-settingsPanel > .sse-settingsGroup:not(:last-child) {
|
|
494
|
+
padding-bottom: 8px;
|
|
495
|
+
margin-bottom: 4px;
|
|
496
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
497
|
+
}
|
|
498
|
+
.sse-viewer .sse-settingsPanel > .sse-settingsGroup > .sse-settingsRow {
|
|
483
499
|
display: flex;
|
|
484
500
|
align-items: center;
|
|
485
501
|
justify-content: space-between;
|
|
486
502
|
gap: 4px;
|
|
487
503
|
width: 100%;
|
|
488
504
|
}
|
|
489
|
-
.sse-viewer .sse-settingsPanel > .sse-settingsRow > button {
|
|
505
|
+
.sse-viewer .sse-settingsPanel > .sse-settingsGroup > .sse-settingsRow > button {
|
|
490
506
|
flex-grow: 1;
|
|
491
507
|
height: 34px;
|
|
492
508
|
padding: 0 20px;
|
|
@@ -498,11 +514,11 @@
|
|
|
498
514
|
background-color: rgba(255, 255, 255, 0.04);
|
|
499
515
|
transition: background-color 250ms ease, color 250ms ease;
|
|
500
516
|
}
|
|
501
|
-
.sse-viewer .sse-settingsPanel > .sse-settingsRow > button:hover {
|
|
517
|
+
.sse-viewer .sse-settingsPanel > .sse-settingsGroup > .sse-settingsRow > button:hover {
|
|
502
518
|
color: var(--sse-text-light);
|
|
503
519
|
background-color: rgba(255, 255, 255, 0.1);
|
|
504
520
|
}
|
|
505
|
-
.sse-viewer .sse-settingsPanel > .sse-settingsRow > div {
|
|
521
|
+
.sse-viewer .sse-settingsPanel > .sse-settingsGroup > .sse-settingsRow > div {
|
|
506
522
|
height: 34px;
|
|
507
523
|
display: flex;
|
|
508
524
|
align-items: center;
|
|
@@ -510,10 +526,10 @@
|
|
|
510
526
|
cursor: pointer;
|
|
511
527
|
color: var(--sse-text-dark);
|
|
512
528
|
}
|
|
513
|
-
.sse-viewer .sse-settingsPanel > .sse-settingsRow > div.sse-toggleSwitch {
|
|
529
|
+
.sse-viewer .sse-settingsPanel > .sse-settingsGroup > .sse-settingsRow > div.sse-toggleSwitch {
|
|
514
530
|
padding: 0 4px;
|
|
515
531
|
}
|
|
516
|
-
.sse-viewer .sse-settingsPanel > .sse-settingsRow > div.sse-toggleSwitch .sse-toggleTrack {
|
|
532
|
+
.sse-viewer .sse-settingsPanel > .sse-settingsGroup > .sse-settingsRow > div.sse-toggleSwitch .sse-toggleTrack {
|
|
517
533
|
width: 36px;
|
|
518
534
|
height: 20px;
|
|
519
535
|
border-radius: 10px;
|
|
@@ -521,7 +537,7 @@
|
|
|
521
537
|
position: relative;
|
|
522
538
|
transition: background-color 200ms ease;
|
|
523
539
|
}
|
|
524
|
-
.sse-viewer .sse-settingsPanel > .sse-settingsRow > div.sse-toggleSwitch .sse-toggleTrack .sse-toggleThumb {
|
|
540
|
+
.sse-viewer .sse-settingsPanel > .sse-settingsGroup > .sse-settingsRow > div.sse-toggleSwitch .sse-toggleTrack .sse-toggleThumb {
|
|
525
541
|
width: 16px;
|
|
526
542
|
height: 16px;
|
|
527
543
|
border-radius: 50%;
|
|
@@ -531,22 +547,16 @@
|
|
|
531
547
|
left: 2px;
|
|
532
548
|
transition: transform 200ms ease, background-color 200ms ease;
|
|
533
549
|
}
|
|
534
|
-
.sse-viewer .sse-settingsPanel > .sse-settingsRow > div.sse-toggleSwitch.sse-active .sse-toggleTrack {
|
|
550
|
+
.sse-viewer .sse-settingsPanel > .sse-settingsGroup > .sse-settingsRow > div.sse-toggleSwitch.sse-active .sse-toggleTrack {
|
|
535
551
|
background-color: color-mix(in srgb, var(--sse-accent) 35%, transparent);
|
|
536
552
|
}
|
|
537
|
-
.sse-viewer .sse-settingsPanel > .sse-settingsRow > div.sse-toggleSwitch.sse-active .sse-toggleTrack .sse-toggleThumb {
|
|
553
|
+
.sse-viewer .sse-settingsPanel > .sse-settingsGroup > .sse-settingsRow > div.sse-toggleSwitch.sse-active .sse-toggleTrack .sse-toggleThumb {
|
|
538
554
|
transform: translateX(16px);
|
|
539
555
|
background-color: var(--sse-accent);
|
|
540
556
|
}
|
|
541
|
-
.sse-viewer .sse-settingsPanel > .sse-settingsRow > div:hover {
|
|
557
|
+
.sse-viewer .sse-settingsPanel > .sse-settingsGroup > .sse-settingsRow > div:hover {
|
|
542
558
|
color: var(--sse-text);
|
|
543
559
|
}
|
|
544
|
-
.sse-viewer .sse-settingsPanel > .sse-divider {
|
|
545
|
-
width: 100%;
|
|
546
|
-
height: 1px;
|
|
547
|
-
margin: 8px 0;
|
|
548
|
-
background-color: rgba(255, 255, 255, 0.08);
|
|
549
|
-
}
|
|
550
560
|
.sse-viewer {
|
|
551
561
|
/* infoPanel */
|
|
552
562
|
}
|
|
@@ -557,6 +567,16 @@
|
|
|
557
567
|
width: 100%;
|
|
558
568
|
height: 100%;
|
|
559
569
|
}
|
|
570
|
+
.sse-viewer .sse-infoPanel::before {
|
|
571
|
+
content: "";
|
|
572
|
+
position: absolute;
|
|
573
|
+
top: 0;
|
|
574
|
+
left: 0;
|
|
575
|
+
width: 100%;
|
|
576
|
+
height: 100%;
|
|
577
|
+
backdrop-filter: blur(3px);
|
|
578
|
+
-webkit-backdrop-filter: blur(3px);
|
|
579
|
+
}
|
|
560
580
|
.sse-viewer .sse-infoPanel > .sse-infoPanelContent {
|
|
561
581
|
position: absolute;
|
|
562
582
|
top: 50%;
|
|
@@ -575,7 +595,7 @@
|
|
|
575
595
|
gap: 16px;
|
|
576
596
|
font-size: 13px;
|
|
577
597
|
color: var(--sse-text);
|
|
578
|
-
background-color: color-mix(in srgb, var(--sse-bkg)
|
|
598
|
+
background-color: color-mix(in srgb, var(--sse-bkg) 50%, transparent);
|
|
579
599
|
backdrop-filter: blur(20px);
|
|
580
600
|
-webkit-backdrop-filter: blur(20px);
|
|
581
601
|
}
|
|
@@ -585,6 +605,7 @@
|
|
|
585
605
|
right: 10px;
|
|
586
606
|
}
|
|
587
607
|
.sse-viewer .sse-infoPanel > .sse-infoPanelContent > .sse-viewerTitle {
|
|
608
|
+
align-self: center;
|
|
588
609
|
display: flex;
|
|
589
610
|
flex-direction: column;
|
|
590
611
|
align-items: center;
|
|
@@ -681,6 +702,10 @@
|
|
|
681
702
|
min-height: 28px;
|
|
682
703
|
font-size: 12px;
|
|
683
704
|
}
|
|
705
|
+
.sse-viewer .sse-infoPanel > .sse-infoPanelContent > .sse-infoShortcuts > .sse-infoShortcut .sse-keys {
|
|
706
|
+
display: flex;
|
|
707
|
+
gap: 3px;
|
|
708
|
+
}
|
|
684
709
|
.sse-viewer .sse-joystickBase {
|
|
685
710
|
position: absolute;
|
|
686
711
|
left: 70px;
|
|
@@ -735,7 +760,7 @@
|
|
|
735
760
|
border-radius: 16px;
|
|
736
761
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
737
762
|
color: var(--sse-text);
|
|
738
|
-
background-color: color-mix(in srgb, var(--sse-bkg)
|
|
763
|
+
background-color: color-mix(in srgb, var(--sse-bkg) 50%, transparent);
|
|
739
764
|
backdrop-filter: blur(20px);
|
|
740
765
|
-webkit-backdrop-filter: blur(20px);
|
|
741
766
|
}
|
|
@@ -785,6 +810,7 @@
|
|
|
785
810
|
border-radius: 4px;
|
|
786
811
|
padding: 4px 4px;
|
|
787
812
|
font-size: 12px;
|
|
813
|
+
white-space: nowrap;
|
|
788
814
|
color: var(--sse-text);
|
|
789
815
|
background-color: var(--sse-bkg-dark);
|
|
790
816
|
}
|
|
@@ -795,11 +821,113 @@
|
|
|
795
821
|
width: 100%;
|
|
796
822
|
height: 100%;
|
|
797
823
|
pointer-events: none;
|
|
798
|
-
z-index: -1;
|
|
799
824
|
}
|
|
800
825
|
.sse-viewer .sse-annotations * {
|
|
801
826
|
pointer-events: auto;
|
|
802
827
|
}
|
|
828
|
+
.sse-viewer .sse-annotations > .sse-annotation-hotspots {
|
|
829
|
+
position: absolute;
|
|
830
|
+
top: 0;
|
|
831
|
+
left: 0;
|
|
832
|
+
width: 100%;
|
|
833
|
+
height: 100%;
|
|
834
|
+
isolation: isolate;
|
|
835
|
+
pointer-events: none;
|
|
836
|
+
}
|
|
837
|
+
.sse-viewer .sse-annotations > .sse-annotation-hotspots > .sse-annotation-hotspot {
|
|
838
|
+
position: absolute;
|
|
839
|
+
left: 0;
|
|
840
|
+
top: 0;
|
|
841
|
+
display: none;
|
|
842
|
+
align-items: center;
|
|
843
|
+
justify-content: center;
|
|
844
|
+
box-sizing: border-box;
|
|
845
|
+
width: 26px;
|
|
846
|
+
height: 26px;
|
|
847
|
+
border-radius: 50%;
|
|
848
|
+
border: 2px solid rgba(255, 255, 255, 0.9);
|
|
849
|
+
cursor: pointer;
|
|
850
|
+
font-size: 12px;
|
|
851
|
+
font-weight: bold;
|
|
852
|
+
color: var(--sse-text-light);
|
|
853
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
854
|
+
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
|
|
855
|
+
transition: opacity 300ms cubic-bezier(0.45, 0, 0.55, 1), border-color 150ms ease, background-color 150ms ease;
|
|
856
|
+
}
|
|
857
|
+
.sse-viewer .sse-annotations > .sse-annotation-hotspots > .sse-annotation-hotspot:hover {
|
|
858
|
+
border-color: var(--sse-accent);
|
|
859
|
+
}
|
|
860
|
+
.sse-viewer .sse-annotations > .sse-annotation-hotspots > .sse-annotation-hotspot.sse-active {
|
|
861
|
+
border-color: var(--sse-accent);
|
|
862
|
+
background-color: var(--sse-accent);
|
|
863
|
+
}
|
|
864
|
+
.sse-viewer .sse-annotations > .sse-annotation-hotspots > .sse-annotation-hotspot.sse-occluded {
|
|
865
|
+
opacity: 0.4;
|
|
866
|
+
transition: opacity 450ms cubic-bezier(0.45, 0, 0.55, 1), border-color 150ms ease, background-color 150ms ease;
|
|
867
|
+
}
|
|
868
|
+
.sse-viewer .sse-annotations > .sse-annotation-hotspots > .sse-annotation-hotspot.sse-occluded:hover, .sse-viewer .sse-annotations > .sse-annotation-hotspots > .sse-annotation-hotspot.sse-occluded.sse-active {
|
|
869
|
+
opacity: 1;
|
|
870
|
+
transition: opacity 300ms cubic-bezier(0.45, 0, 0.55, 1), border-color 150ms ease, background-color 150ms ease;
|
|
871
|
+
}
|
|
872
|
+
.sse-viewer .sse-annotations > .sse-annotation {
|
|
873
|
+
--sse-annotation-bkg: rgba(0, 0, 0, 0.9);
|
|
874
|
+
position: absolute;
|
|
875
|
+
width: -moz-max-content;
|
|
876
|
+
width: max-content;
|
|
877
|
+
max-width: min(280px, 100% - 16px);
|
|
878
|
+
box-sizing: border-box;
|
|
879
|
+
padding: 10px 12px 12px;
|
|
880
|
+
border-radius: 12px;
|
|
881
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
882
|
+
pointer-events: none;
|
|
883
|
+
font-size: 12px;
|
|
884
|
+
line-height: 1.45;
|
|
885
|
+
color: var(--sse-text);
|
|
886
|
+
background-color: var(--sse-annotation-bkg);
|
|
887
|
+
backdrop-filter: blur(20px);
|
|
888
|
+
-webkit-backdrop-filter: blur(20px);
|
|
889
|
+
overflow-wrap: break-word;
|
|
890
|
+
visibility: hidden;
|
|
891
|
+
opacity: 0;
|
|
892
|
+
translate: 0 4px;
|
|
893
|
+
transition: visibility 0s 0.2s, opacity 0.2s ease-out, translate 0.2s ease-out;
|
|
894
|
+
}
|
|
895
|
+
.sse-viewer .sse-annotations > .sse-annotation.sse-visible {
|
|
896
|
+
visibility: visible;
|
|
897
|
+
opacity: 1;
|
|
898
|
+
translate: 0 0;
|
|
899
|
+
transition: opacity 0.2s ease-out, translate 0.2s ease-out;
|
|
900
|
+
}
|
|
901
|
+
.sse-viewer .sse-annotations > .sse-annotation > .sse-annotation-title {
|
|
902
|
+
font-size: 13px;
|
|
903
|
+
font-weight: bold;
|
|
904
|
+
color: var(--sse-text-light);
|
|
905
|
+
}
|
|
906
|
+
.sse-viewer .sse-annotations > .sse-annotation > .sse-annotation-text {
|
|
907
|
+
margin-top: 4px;
|
|
908
|
+
}
|
|
909
|
+
.sse-viewer .sse-annotations > .sse-annotation:has(> .sse-annotation-text:empty) {
|
|
910
|
+
padding-bottom: 10px;
|
|
911
|
+
}
|
|
912
|
+
.sse-viewer .sse-annotations > .sse-annotation:has(> .sse-annotation-text:empty) > .sse-annotation-text {
|
|
913
|
+
display: none;
|
|
914
|
+
}
|
|
915
|
+
.sse-viewer .sse-annotations > .sse-annotation.sse-arrow-right::before, .sse-viewer .sse-annotations > .sse-annotation.sse-arrow-left::before {
|
|
916
|
+
content: "";
|
|
917
|
+
position: absolute;
|
|
918
|
+
top: var(--arrow-top, 50%);
|
|
919
|
+
transform: translateY(-50%);
|
|
920
|
+
border-top: 8px solid transparent;
|
|
921
|
+
border-bottom: 8px solid transparent;
|
|
922
|
+
}
|
|
923
|
+
.sse-viewer .sse-annotations > .sse-annotation.sse-arrow-right::before {
|
|
924
|
+
left: -8px;
|
|
925
|
+
border-right: 8px solid var(--sse-annotation-bkg);
|
|
926
|
+
}
|
|
927
|
+
.sse-viewer .sse-annotations > .sse-annotation.sse-arrow-left::before {
|
|
928
|
+
right: -8px;
|
|
929
|
+
border-left: 8px solid var(--sse-annotation-bkg);
|
|
930
|
+
}
|
|
803
931
|
.sse-viewer {
|
|
804
932
|
/* annotationNav */
|
|
805
933
|
}
|
|
@@ -881,16 +1009,57 @@
|
|
|
881
1009
|
display: flex;
|
|
882
1010
|
align-items: center;
|
|
883
1011
|
justify-content: center;
|
|
1012
|
+
gap: 8px;
|
|
884
1013
|
padding: 0 12px;
|
|
885
1014
|
white-space: nowrap;
|
|
886
|
-
width:
|
|
1015
|
+
width: 300px;
|
|
1016
|
+
align-self: stretch;
|
|
1017
|
+
}
|
|
1018
|
+
.sse-viewer .sse-annotationNav.sse-desktop > .sse-annotationInfo > .sse-annotationNavNumber {
|
|
1019
|
+
flex-shrink: 0;
|
|
1020
|
+
display: flex;
|
|
1021
|
+
align-items: center;
|
|
1022
|
+
justify-content: center;
|
|
1023
|
+
box-sizing: border-box;
|
|
1024
|
+
min-width: 20px;
|
|
1025
|
+
height: 20px;
|
|
1026
|
+
padding: 0 4px;
|
|
1027
|
+
border-radius: 10px;
|
|
1028
|
+
border: 1.5px solid rgba(255, 255, 255, 0.9);
|
|
1029
|
+
font-size: 11px;
|
|
1030
|
+
font-weight: bold;
|
|
1031
|
+
color: var(--sse-text-light);
|
|
1032
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
1033
|
+
}
|
|
1034
|
+
.sse-viewer .sse-annotationNav.sse-desktop > .sse-annotationInfo > .sse-annotationNavNumber:empty {
|
|
1035
|
+
display: none;
|
|
887
1036
|
}
|
|
888
1037
|
.sse-viewer .sse-annotationNav.sse-desktop > .sse-annotationInfo > .sse-annotationNavTitle {
|
|
1038
|
+
min-width: 0;
|
|
889
1039
|
font-size: 14px;
|
|
890
1040
|
color: var(--sse-text-light);
|
|
891
1041
|
overflow: hidden;
|
|
892
1042
|
text-overflow: ellipsis;
|
|
893
1043
|
}
|
|
1044
|
+
.sse-viewer .sse-annotationNav.sse-desktop > .sse-annotationInfo > .sse-annotationNavNumber,
|
|
1045
|
+
.sse-viewer .sse-annotationNav.sse-desktop > .sse-annotationInfo > .sse-annotationNavTitle {
|
|
1046
|
+
transition: opacity 150ms ease;
|
|
1047
|
+
}
|
|
1048
|
+
.sse-viewer .sse-annotationNav.sse-desktop.sse-unselected > .sse-annotationInfo {
|
|
1049
|
+
pointer-events: auto;
|
|
1050
|
+
cursor: pointer;
|
|
1051
|
+
}
|
|
1052
|
+
.sse-viewer .sse-annotationNav.sse-desktop.sse-unselected > .sse-annotationInfo > .sse-annotationNavNumber,
|
|
1053
|
+
.sse-viewer .sse-annotationNav.sse-desktop.sse-unselected > .sse-annotationInfo > .sse-annotationNavTitle {
|
|
1054
|
+
opacity: 0.45;
|
|
1055
|
+
}
|
|
1056
|
+
.sse-viewer .sse-annotationNav.sse-desktop.sse-unselected > .sse-annotationInfo:hover {
|
|
1057
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
1058
|
+
}
|
|
1059
|
+
.sse-viewer .sse-annotationNav.sse-desktop.sse-unselected > .sse-annotationInfo:hover > .sse-annotationNavNumber,
|
|
1060
|
+
.sse-viewer .sse-annotationNav.sse-desktop.sse-unselected > .sse-annotationInfo:hover > .sse-annotationNavTitle {
|
|
1061
|
+
opacity: 1;
|
|
1062
|
+
}
|
|
894
1063
|
.sse-viewer .sse-annotationNav.sse-touch {
|
|
895
1064
|
position: absolute;
|
|
896
1065
|
top: 0;
|