viewerjs 1.11.6 → 1.11.8

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.
@@ -13,7 +13,7 @@
13
13
  .viewer-fullscreen-exit,
14
14
  .viewer-close {
15
15
  &::before {
16
- background-image: url('../images/icons.png');
16
+ background-image: url('../images/icons.svg');
17
17
  background-repeat: no-repeat;
18
18
  background-size: 280px;
19
19
  color: transparent;
@@ -14,7 +14,7 @@
14
14
  &-fullscreen-exit,
15
15
  &-close {
16
16
  &::before {
17
- background-image: url('../images/icons.png');
17
+ background-image: url('../images/icons.svg');
18
18
  background-repeat: no-repeat;
19
19
  background-size: 280px;
20
20
  color: transparent;
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 560 40"><path fill="#fff" d="M49.6 17.9h20.2v3.9H49.6zm123.1 2 10.9-11 2.7 2.8-8.2 8.2 8.2 8.2-2.7 2.7-10.9-10.9zm94 0-10.8-11-2.7 2.8 8.1 8.2-8.1 8.2 2.7 2.7 10.8-10.9zM212 9.3l20.1 10.6L212 30.5V9.3zm161.5 4.6-7.2 6 7.2 5.9v-4h12.4v4l7.3-5.9-7.3-6v4h-12.4v-4zm40.2 12.3 5.9 7.2 5.9-7.2h-4V13.6h4l-5.9-7.3-5.9 7.3h4v12.6h-4zm35.9-16.5h6.3v2h-4.3V16h-2V9.7Zm14 0h6.2V16h-2v-4.3h-4.2v-2Zm6.2 14V30h-6.2v-2h4.2v-4.3h2Zm-14 6.3h-6.2v-6.3h2v4.4h4.3v2Zm-438 .1v-8.3H9.6v-3.9h8.2V9.7h3.9v8.2h8.1v3.9h-8.1v8.3h-3.9zM93.6 9.7h-5.8v3.9h2V30h3.8V9.7zm16.1 0h-5.8v3.9h1.9V30h3.9V9.7zm-11.9 4.1h3.9v3.9h-3.9zm0 8.2h3.9v3.9h-3.9zm244.6-11.7 7.2 5.9-7.2 6v-3.6c-5.4-.4-7.8.8-8.7 2.8-.8 1.7-1.8 4.9 2.8 8.2-6.3-2-7.5-6.9-6-11.3 1.6-4.4 8-5 11.9-4.9v-3.1Zm147.2 13.4h6.3V30h-2v-4.3h-4.3v-2zm14 6.3v-6.3h6.2v2h-4.3V30h-1.9zm6.2-14h-6.2V9.7h1.9V14h4.3v2zm-13.9 0h-6.3v-2h4.3V9.7h2V16zm33.3 12.5 8.6-8.6-8.6-8.7 1.9-1.9 8.6 8.7 8.6-8.7 1.9 1.9-8.6 8.7 8.6 8.6-1.9 2-8.6-8.7-8.6 8.7-1.9-2zM297 10.3l-7.1 5.9 7.2 6v-3.6c5.3-.4 7.7.8 8.7 2.8.8 1.7 1.7 4.9-2.9 8.2 6.3-2 7.5-6.9 6-11.3-1.6-4.4-7.9-5-11.8-4.9v-3.1Zm-157.3-.6c2.3 0 4.4.7 6 2l2.5-3 1.9 9.2h-9.3l2.6-3.1a6.2 6.2 0 0 0-9.9 5.1c0 3.4 2.8 6.3 6.2 6.3 2.8 0 5.1-1.9 6-4.4h4c-1 4.7-5 8.3-10 8.3a10 10 0 0 1-10-10.2 10 10 0 0 1 10-10.2Z"/></svg>
package/src/js/others.js CHANGED
@@ -118,7 +118,7 @@ export default {
118
118
  hidden() {
119
119
  const { element, options, viewer } = this;
120
120
 
121
- if (options.fucus) {
121
+ if (options.focus) {
122
122
  this.clearEnforceFocus();
123
123
  }
124
124
 
package/src/js/render.js CHANGED
@@ -187,9 +187,11 @@ export default {
187
187
 
188
188
  list.innerHTML = '';
189
189
  removeClass(list, CLASS_TRANSITION);
190
- setStyle(list, getTransforms({
190
+ setStyle(list, assign({
191
+ width: 0,
192
+ }, getTransforms({
191
193
  translateX: 0,
192
- }));
194
+ })));
193
195
  },
194
196
 
195
197
  initImage(done) {
Binary file
Binary file