emacroh5lib 1.0.69 → 1.0.70
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/dist/emacroh5lib.min.js +1 -1
- package/dist/emacroh5lib.min.js.LICENSE.txt +7 -0
- package/package.json +1 -1
- package/src/index.ts +3 -2
- package/src/views/ModelViewer/index.vue +508 -0
- package/src/views/ModelViewer/style/css/index.css +190 -0
- package/src/views/ModelViewer/style/css/index.less +212 -0
- package/src/views/ModelViewer/style/images/icons.png +0 -0
- package/src/views/TestView/index.vue +255 -238
@@ -0,0 +1,190 @@
|
|
1
|
+
.duo-viewer {
|
2
|
+
position: fixed;
|
3
|
+
top: 0;
|
4
|
+
left: 0;
|
5
|
+
z-index: 10000;
|
6
|
+
width: 100%;
|
7
|
+
height: 100vh;
|
8
|
+
}
|
9
|
+
.duo-viewer-mask {
|
10
|
+
position: absolute;
|
11
|
+
top: 0;
|
12
|
+
left: 0;
|
13
|
+
width: 100%;
|
14
|
+
height: 100%;
|
15
|
+
background: rgba(0, 0, 0, 0.6);
|
16
|
+
z-index: 9;
|
17
|
+
display: flex;
|
18
|
+
justify-content: center;
|
19
|
+
align-items: center;
|
20
|
+
}
|
21
|
+
.duo-viewer-mask__image {
|
22
|
+
cursor: grab;
|
23
|
+
/* height: 80%;
|
24
|
+
width: 80%; */
|
25
|
+
position: absolute;
|
26
|
+
/* top: 50%;
|
27
|
+
left: 50%;
|
28
|
+
transform: translate(-50%, -50%); */
|
29
|
+
z-index: 8;
|
30
|
+
/* transition-property: transform, height, width; */
|
31
|
+
transition-duration: 0.3s, 0.3s, 0.3s;
|
32
|
+
}
|
33
|
+
.duo-viewer-footer {
|
34
|
+
position: absolute;
|
35
|
+
text-align: center;
|
36
|
+
bottom: 0;
|
37
|
+
left: 0;
|
38
|
+
width: 100%;
|
39
|
+
z-index: 10;
|
40
|
+
}
|
41
|
+
.duo-viewer-footer__title {
|
42
|
+
color: #cfcfcf;
|
43
|
+
position: absolute;
|
44
|
+
bottom: 95px;
|
45
|
+
left: 50%;
|
46
|
+
transform: translate(-50%, 0%);
|
47
|
+
z-index: 10;
|
48
|
+
width: 100%;
|
49
|
+
}
|
50
|
+
.duo-viewer-footer__toolbar {
|
51
|
+
position: absolute;
|
52
|
+
bottom: 60px;
|
53
|
+
left: 50%;
|
54
|
+
transform: translate(-50%, 0%);
|
55
|
+
z-index: 10;
|
56
|
+
}
|
57
|
+
.duo-viewer-footer__toolbar li {
|
58
|
+
margin: 2px;
|
59
|
+
background-color: rgba(0, 0, 0, 0.5);
|
60
|
+
border-radius: 50%;
|
61
|
+
cursor: pointer;
|
62
|
+
float: left;
|
63
|
+
height: 28px;
|
64
|
+
overflow: hidden;
|
65
|
+
-webkit-transition: background-color 0.15s;
|
66
|
+
transition: background-color 0.15s;
|
67
|
+
width: 28px;
|
68
|
+
position: relative;
|
69
|
+
}
|
70
|
+
.duo-viewer-footer__toolbar li::after {
|
71
|
+
position: absolute;
|
72
|
+
top: 0;
|
73
|
+
left: 0;
|
74
|
+
width: 100%;
|
75
|
+
height: 100%;
|
76
|
+
content: "";
|
77
|
+
display: inline-block;
|
78
|
+
background: url("../images/icons.png") no-repeat;
|
79
|
+
}
|
80
|
+
.duo-viewer-footer__toolbar li.duo-viewer-footer__zoom-in::after {
|
81
|
+
background-position: 4px 3px;
|
82
|
+
}
|
83
|
+
.duo-viewer-footer__toolbar li.duo-viewer-footer__zoom-out::after {
|
84
|
+
background-position: -16px 3px;
|
85
|
+
}
|
86
|
+
.duo-viewer-footer__toolbar li.duo-viewer-footer__one-to-one::after {
|
87
|
+
background-position: -35px 3px;
|
88
|
+
}
|
89
|
+
.duo-viewer-footer__toolbar li.duo-viewer-footer__reset::after {
|
90
|
+
background-position: -56px 3px;
|
91
|
+
}
|
92
|
+
.duo-viewer-footer__toolbar li.duo-viewer-footer__prev::after {
|
93
|
+
background-position: -77px 3px;
|
94
|
+
}
|
95
|
+
.duo-viewer-footer__toolbar li.duo-viewer-footer__play {
|
96
|
+
width: 34px;
|
97
|
+
height: 34px;
|
98
|
+
margin-top: -2px;
|
99
|
+
}
|
100
|
+
.duo-viewer-footer__toolbar li.duo-viewer-footer__play::after {
|
101
|
+
background-position: -93px 6px;
|
102
|
+
}
|
103
|
+
.duo-viewer-footer__toolbar li.duo-viewer-footer__next::after {
|
104
|
+
background-position: -116px 3px;
|
105
|
+
}
|
106
|
+
.duo-viewer-footer__toolbar li.duo-viewer-footer__rotate-left::after {
|
107
|
+
background-position: -136px 3px;
|
108
|
+
}
|
109
|
+
.duo-viewer-footer__toolbar li.duo-viewer-footer__rotate-right::after {
|
110
|
+
background-position: -156px 3px;
|
111
|
+
}
|
112
|
+
.duo-viewer-footer__navbar {
|
113
|
+
width: 100%;
|
114
|
+
height: 50px;
|
115
|
+
background: rgba(0, 0, 0, 0.9);
|
116
|
+
overflow: hidden;
|
117
|
+
}
|
118
|
+
.duo-viewer-footer__navbar-thumbnail-image {
|
119
|
+
height: 100%;
|
120
|
+
width: 80px;
|
121
|
+
-o-object-fit: fill;
|
122
|
+
object-fit: fill;
|
123
|
+
transform: translateX(-30px);
|
124
|
+
}
|
125
|
+
.duo-viewer-footer__navbar-thumbnail-item {
|
126
|
+
margin: 0 2px;
|
127
|
+
color: transparent;
|
128
|
+
cursor: pointer;
|
129
|
+
float: left;
|
130
|
+
font-size: 0;
|
131
|
+
width: 30px;
|
132
|
+
opacity: 0.2;
|
133
|
+
overflow: hidden;
|
134
|
+
-webkit-transition: opacity 0.15s;
|
135
|
+
transition: opacity 0.15s;
|
136
|
+
}
|
137
|
+
.duo-viewer-footer__navbar-thumbnail-item.viewer-current {
|
138
|
+
opacity: 0.9;
|
139
|
+
}
|
140
|
+
.duo-viewer-footer__navbar-thumbnail-wrap {
|
141
|
+
position: relative;
|
142
|
+
overflow: hidden;
|
143
|
+
width: 660px;
|
144
|
+
height: inherit;
|
145
|
+
margin: 0 auto;
|
146
|
+
}
|
147
|
+
.duo-viewer-footer__navbar-thumbnail-list {
|
148
|
+
padding: 10px 0;
|
149
|
+
width: auto;
|
150
|
+
box-sizing: border-box;
|
151
|
+
position: absolute;
|
152
|
+
top: 0;
|
153
|
+
left: 50%;
|
154
|
+
transition: all 0.3s;
|
155
|
+
}
|
156
|
+
.duo-viewer-close {
|
157
|
+
background-color: rgba(0, 0, 0, 0.9);
|
158
|
+
border-radius: 0% 0% 0% 100%;
|
159
|
+
cursor: pointer;
|
160
|
+
height: 50px;
|
161
|
+
overflow: hidden;
|
162
|
+
position: absolute;
|
163
|
+
right: 0;
|
164
|
+
top: 0;
|
165
|
+
transition: background-color 0.15s;
|
166
|
+
width: 50px;
|
167
|
+
z-index: 10;
|
168
|
+
line-height: 50px;
|
169
|
+
text-align: center;
|
170
|
+
}
|
171
|
+
.duo-viewer-close__off {
|
172
|
+
margin: 18px 12px;
|
173
|
+
position: relative;
|
174
|
+
width: 2em;
|
175
|
+
height: 0.3em;
|
176
|
+
background-color: #fff;
|
177
|
+
transform: rotate(45deg);
|
178
|
+
border-radius: 0.15em;
|
179
|
+
}
|
180
|
+
.duo-viewer-close__off:after {
|
181
|
+
content: "";
|
182
|
+
position: absolute;
|
183
|
+
width: 2em;
|
184
|
+
height: 0.3em;
|
185
|
+
top: 0;
|
186
|
+
left: 0;
|
187
|
+
background-color: #fff;
|
188
|
+
transform: rotate(90deg);
|
189
|
+
border-radius: 0.15em;
|
190
|
+
}
|
@@ -0,0 +1,212 @@
|
|
1
|
+
.duo-viewer {
|
2
|
+
position: fixed;
|
3
|
+
top: 0;
|
4
|
+
left: 0;
|
5
|
+
z-index: 10000;
|
6
|
+
width: 100%;
|
7
|
+
height: 100vh;
|
8
|
+
|
9
|
+
&-mask {
|
10
|
+
position: absolute;
|
11
|
+
top: 0;
|
12
|
+
left: 0;
|
13
|
+
width: 100%;
|
14
|
+
height: 100%;
|
15
|
+
background: rgba(0, 0, 0, 0.6);
|
16
|
+
z-index: 9;
|
17
|
+
|
18
|
+
&__image {
|
19
|
+
cursor: grab;
|
20
|
+
height: 750px;
|
21
|
+
position: absolute;
|
22
|
+
top: 50%;
|
23
|
+
left: 50%;
|
24
|
+
transform: translate(-50%, -50%);
|
25
|
+
z-index: 8;
|
26
|
+
transition-property: transform, height, width;
|
27
|
+
transition-duration: .3s, .3s, .3s;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
&-footer {
|
32
|
+
position: absolute;
|
33
|
+
text-align: center;
|
34
|
+
bottom: 0;
|
35
|
+
left: 0;
|
36
|
+
width: 100%;
|
37
|
+
z-index: 10;
|
38
|
+
|
39
|
+
&__title {
|
40
|
+
color: #cfcfcf;
|
41
|
+
position: absolute;
|
42
|
+
bottom: 95px;
|
43
|
+
left: 50%;
|
44
|
+
transform: translate(-50%, 0%);
|
45
|
+
z-index: 10;
|
46
|
+
width: 100%;
|
47
|
+
}
|
48
|
+
|
49
|
+
&__toolbar {
|
50
|
+
position: absolute;
|
51
|
+
bottom: 60px;
|
52
|
+
left: 50%;
|
53
|
+
transform: translate(-50%, 0%);
|
54
|
+
z-index: 10;
|
55
|
+
|
56
|
+
li {
|
57
|
+
margin: 2px;
|
58
|
+
background-color: rgba(0, 0, 0, 0.5);
|
59
|
+
border-radius: 50%;
|
60
|
+
cursor: pointer;
|
61
|
+
float: left;
|
62
|
+
height: 28px;
|
63
|
+
overflow: hidden;
|
64
|
+
-webkit-transition: background-color 0.15s;
|
65
|
+
transition: background-color 0.15s;
|
66
|
+
width: 28px;
|
67
|
+
position: relative;
|
68
|
+
|
69
|
+
&::after {
|
70
|
+
position: absolute;
|
71
|
+
top: 0;
|
72
|
+
left: 0;
|
73
|
+
width: 100%;
|
74
|
+
height: 100%;
|
75
|
+
content: "";
|
76
|
+
display: inline-block;
|
77
|
+
background: url("../images/icons.png") no-repeat;
|
78
|
+
}
|
79
|
+
|
80
|
+
&.duo-viewer-footer__zoom-in::after {
|
81
|
+
background-position: 4px 3px;
|
82
|
+
}
|
83
|
+
|
84
|
+
&.duo-viewer-footer__zoom-out::after {
|
85
|
+
background-position: -16px 3px;
|
86
|
+
}
|
87
|
+
|
88
|
+
&.duo-viewer-footer__one-to-one::after {
|
89
|
+
background-position: -35px 3px;
|
90
|
+
}
|
91
|
+
|
92
|
+
&.duo-viewer-footer__reset::after {
|
93
|
+
background-position: -56px 3px;
|
94
|
+
}
|
95
|
+
|
96
|
+
&.duo-viewer-footer__prev::after {
|
97
|
+
background-position: -77px 3px;
|
98
|
+
}
|
99
|
+
|
100
|
+
&.duo-viewer-footer__play {
|
101
|
+
width: 34px;
|
102
|
+
height: 34px;
|
103
|
+
margin-top: -2px;
|
104
|
+
}
|
105
|
+
|
106
|
+
&.duo-viewer-footer__play::after {
|
107
|
+
background-position: -93px 6px;
|
108
|
+
}
|
109
|
+
|
110
|
+
&.duo-viewer-footer__next::after {
|
111
|
+
background-position: -116px 3px;
|
112
|
+
}
|
113
|
+
|
114
|
+
&.duo-viewer-footer__rotate-left::after {
|
115
|
+
background-position: -136px 3px;
|
116
|
+
}
|
117
|
+
|
118
|
+
&.duo-viewer-footer__rotate-right::after {
|
119
|
+
background-position: -156px 3px;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
&__navbar {
|
125
|
+
width: 100%;
|
126
|
+
height: 50px;
|
127
|
+
background: rgba(0, 0, 0, 0.9);
|
128
|
+
overflow: hidden;
|
129
|
+
|
130
|
+
&-thumbnail-image {
|
131
|
+
height: 100%;
|
132
|
+
width: 80px;
|
133
|
+
-o-object-fit: fill;
|
134
|
+
object-fit: fill;
|
135
|
+
transform: translateX(-30px);
|
136
|
+
}
|
137
|
+
|
138
|
+
&-thumbnail-item {
|
139
|
+
margin: 0 2px;
|
140
|
+
color: transparent;
|
141
|
+
cursor: pointer;
|
142
|
+
float: left;
|
143
|
+
font-size: 0;
|
144
|
+
width: 30px;
|
145
|
+
opacity: 0.2;
|
146
|
+
overflow: hidden;
|
147
|
+
-webkit-transition: opacity 0.15s;
|
148
|
+
transition: opacity 0.15s;
|
149
|
+
|
150
|
+
&.viewer-current {
|
151
|
+
opacity: 0.9;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
|
155
|
+
&-thumbnail-wrap {
|
156
|
+
position: relative;
|
157
|
+
overflow: hidden;
|
158
|
+
width: 660px;
|
159
|
+
height: inherit;
|
160
|
+
margin: 0 auto;
|
161
|
+
}
|
162
|
+
|
163
|
+
&-thumbnail-list {
|
164
|
+
padding: 10px 0;
|
165
|
+
width: auto;
|
166
|
+
box-sizing: border-box;
|
167
|
+
position: absolute;
|
168
|
+
top: 0;
|
169
|
+
left: 50%;
|
170
|
+
transition: all .3s;
|
171
|
+
}
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
&-close {
|
176
|
+
background-color: rgba(0, 0, 0, 0.9);
|
177
|
+
border-radius: 0% 0% 0% 100%;
|
178
|
+
cursor: pointer;
|
179
|
+
height: 50px;
|
180
|
+
overflow: hidden;
|
181
|
+
position: absolute;
|
182
|
+
right: 0;
|
183
|
+
top: 0;
|
184
|
+
transition: background-color 0.15s;
|
185
|
+
width: 50px;
|
186
|
+
z-index: 10;
|
187
|
+
line-height: 50px;
|
188
|
+
text-align: center;
|
189
|
+
|
190
|
+
&__off {
|
191
|
+
margin: 18px 12px;
|
192
|
+
position: relative;
|
193
|
+
width: 2em;
|
194
|
+
height: .3em;
|
195
|
+
background-color: #fff;
|
196
|
+
transform: rotate(45deg);
|
197
|
+
border-radius: .15em;
|
198
|
+
|
199
|
+
&:after {
|
200
|
+
content: "";
|
201
|
+
position: absolute;
|
202
|
+
width: 2em;
|
203
|
+
height: .3em;
|
204
|
+
top: 0;
|
205
|
+
left: 0;
|
206
|
+
background-color: #fff;
|
207
|
+
transform: rotate(90deg);
|
208
|
+
border-radius: .15em;
|
209
|
+
}
|
210
|
+
}
|
211
|
+
}
|
212
|
+
}
|
Binary file
|