js-cloudimage-360-view 2.7.1 → 2.7.2-beta.4

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/CHANGELOG.md CHANGED
@@ -25,7 +25,7 @@ Types of changes:
25
25
  - ...
26
26
 
27
27
  -------------
28
- ## 2.7.1 - 2020-11-05
28
+ ## 2.7.1 - 2020-11-06
29
29
  ### Added
30
30
  - click to reset mouse zoom
31
31
  - show 360 logo after play once
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  <img
10
10
  height="175"
11
11
  alt="The Lounge"
12
- src="https://demo.cloudimg.io/v7/https://scaleflex.airstore.io/filerobot/filerobot-cloudimage.png?sanitize=true">
12
+ src="https://assets.scaleflex.com/Marketing/Logos/Cloudimage+Logos/Logotype+with+Scaleflex/LOGO+WITH+SCALEFLEX-01.png?vh=f6080d&force_format=jpg">
13
13
  </p>
14
14
 
15
15
  <h1 align="center">
@@ -161,7 +161,20 @@ The selector for js-cloudimage-360-view lib.
161
161
  ###### Type: **String(url)** | _required_
162
162
 
163
163
  Your images folder on server.
164
+ ### data-api-version (or api-version)
164
165
 
166
+ ###### Type: **String** |Default: **'v7'** | _optional_
167
+
168
+ Allow to use a specific version of API.
169
+
170
+ - set a specific version of API
171
+ ```javascript
172
+ data-api-version="v7"
173
+ ```
174
+ - disable API version
175
+ ```javascript
176
+ data-api-version="null"
177
+ ```
165
178
  ### data-filename (or filename)
166
179
 
167
180
  ###### Type: **String** | Default: **image-{index}.jpg** | _optional_
@@ -1,36 +1,34 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.falsyValues = exports.TO_START_POINTER_ZOOM = exports.ORIENTATIONS = exports.ORGINAL_SIZE_REGEX = exports.MOUSE_LEAVE_ACTIONS = exports.AUTOPLAY_BEHAVIOR = exports.AND_SYMBOL_REGEX = void 0;
6
7
  var TO_START_POINTER_ZOOM = {
7
8
  SCROLL_TO_START: 'scroll',
8
9
  CLICK_TO_START: 'click'
9
10
  };
10
-
11
+ exports.TO_START_POINTER_ZOOM = TO_START_POINTER_ZOOM;
11
12
  var MOUSE_LEAVE_ACTIONS = {
12
13
  RESET_ZOOM: 'resetZoom'
13
14
  };
14
-
15
+ exports.MOUSE_LEAVE_ACTIONS = MOUSE_LEAVE_ACTIONS;
15
16
  var ORIENTATIONS = {
16
17
  X: 'x-axis',
17
18
  Y: 'y-axis',
18
19
  CENTER: 'center'
19
20
  };
20
-
21
+ exports.ORIENTATIONS = ORIENTATIONS;
21
22
  var AUTOPLAY_BEHAVIOR = {
22
23
  SPIN_X: 'spin-x',
23
24
  SPIN_Y: 'spin-y',
24
25
  SPIN_XY: 'spin-xy',
25
26
  SPIN_YX: 'spin-yx'
26
27
  };
27
-
28
- var ORGINAL_SIZE_REGEX = /width=\d+|w=\d+|h=\d+|&width=\d+|&w=\d+|&h=\d+|func=\w+|\?$/g;
29
- var AND_SYMBOL_REGEX = /\?&/g;
30
-
31
- exports.TO_START_POINTER_ZOOM = TO_START_POINTER_ZOOM;
32
- exports.MOUSE_LEAVE_ACTIONS = MOUSE_LEAVE_ACTIONS;
33
- exports.ORIENTATIONS = ORIENTATIONS;
34
28
  exports.AUTOPLAY_BEHAVIOR = AUTOPLAY_BEHAVIOR;
29
+ var ORGINAL_SIZE_REGEX = /width=\d+|w=\d+|h=\d+|&width=\d+|&w=\d+|&h=\d+|func=\w+|\?$/g;
35
30
  exports.ORGINAL_SIZE_REGEX = ORGINAL_SIZE_REGEX;
36
- exports.AND_SYMBOL_REGEX = AND_SYMBOL_REGEX;
31
+ var AND_SYMBOL_REGEX = /\?&/g;
32
+ exports.AND_SYMBOL_REGEX = AND_SYMBOL_REGEX;
33
+ var falsyValues = [false, 0, null, undefined, 'false', "0", 'null', 'undefined'];
34
+ exports.falsyValues = falsyValues;