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 +1 -1
- package/README.md +14 -1
- package/dist/ci360.constants.js +10 -12
- package/dist/ci360.service.js +759 -1190
- package/dist/ci360.utils.js +22 -201
- package/dist/index.js +7 -11
- package/package.json +13 -10
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<img
|
|
10
10
|
height="175"
|
|
11
11
|
alt="The Lounge"
|
|
12
|
-
src="https://
|
|
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_
|
package/dist/ci360.constants.js
CHANGED
|
@@ -1,36 +1,34 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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;
|