js-cloudimage-360-view 3.0.0-beta.0 → 3.0.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.
Files changed (95) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/LICENSE +13 -1
  3. package/README.md +360 -131
  4. package/dist/ci360.service.js +924 -1116
  5. package/dist/ci360.utils.js +36 -196
  6. package/dist/constants/auto-play-behavior.js +13 -0
  7. package/dist/constants/falsy-values.js +8 -0
  8. package/dist/constants/index.js +43 -0
  9. package/dist/constants/orientations.js +12 -0
  10. package/dist/constants/props-require-reload.js +21 -0
  11. package/dist/constants/regex.js +10 -0
  12. package/dist/index.js +73 -12
  13. package/dist/static/css/hotspots.css +222 -0
  14. package/dist/static/css/style.css +113 -4
  15. package/dist/utils/auto-play/get-speed-factor.js +14 -0
  16. package/dist/utils/auto-play/is-completed-one-cycle.js +32 -0
  17. package/dist/utils/auto-play/loop.js +67 -0
  18. package/dist/utils/class-names/add-class.js +18 -0
  19. package/dist/utils/class-names/remove-class.js +16 -0
  20. package/dist/utils/container-elements/apply-styles-to-container.js +16 -0
  21. package/dist/utils/container-elements/create-360-view-circle-icon.js +16 -0
  22. package/dist/utils/container-elements/create-360-view-icon.js +15 -0
  23. package/dist/utils/container-elements/create-box-shadow.js +16 -0
  24. package/dist/utils/container-elements/create-canvas.js +16 -0
  25. package/dist/utils/container-elements/create-close-fullscreen-icon.js +14 -0
  26. package/dist/utils/container-elements/create-fullscreen-icon.js +14 -0
  27. package/dist/utils/container-elements/create-fullscreen-modal.js +20 -0
  28. package/dist/utils/container-elements/create-icons-container.js +15 -0
  29. package/dist/utils/container-elements/create-inner-box.js +15 -0
  30. package/dist/utils/container-elements/create-loader.js +15 -0
  31. package/dist/utils/container-elements/create-magnifier-icon.js +14 -0
  32. package/dist/utils/container-elements/index.js +109 -0
  33. package/dist/utils/container-elements/remove-child-from-parent.js +16 -0
  34. package/dist/utils/controls/get-item-skipped.js +13 -0
  35. package/dist/utils/controls/init-controls.js +77 -0
  36. package/dist/utils/hotspots/attach-events/hide-popup.js +15 -0
  37. package/dist/utils/hotspots/attach-events/show-popup.js +14 -0
  38. package/dist/utils/hotspots/configs-error-handler.js +27 -0
  39. package/dist/utils/hotspots/create-popper-instace.js +32 -0
  40. package/dist/utils/hotspots/elements/create-carousel-dot.js +26 -0
  41. package/dist/utils/hotspots/elements/create-carousel-image.js +22 -0
  42. package/dist/utils/hotspots/elements/create-hotspot-icon.js +66 -0
  43. package/dist/utils/hotspots/elements/create-hotspot-popup-link.js +23 -0
  44. package/dist/utils/hotspots/elements/create-hotspots.js +25 -0
  45. package/dist/utils/hotspots/elements/create-images-carousel.js +27 -0
  46. package/dist/utils/hotspots/elements/create-modal-description.js +15 -0
  47. package/dist/utils/hotspots/elements/create-modal-title.js +15 -0
  48. package/dist/utils/hotspots/elements/create-model-elements.js +66 -0
  49. package/dist/utils/hotspots/elements/create-popup-arrow.js +16 -0
  50. package/dist/utils/hotspots/elements/create-popup.js +67 -0
  51. package/dist/utils/hotspots/elements/create-read-more-btn.js +17 -0
  52. package/dist/utils/hotspots/fill-empty-coord-with-previous.js +26 -0
  53. package/dist/utils/hotspots/generate-hotspots-configs.js +58 -0
  54. package/dist/utils/hotspots/generate-popup-config.js +29 -0
  55. package/dist/utils/hotspots/get-hotspot-icon.js +14 -0
  56. package/dist/utils/hotspots/get-hotspot-orientation.js +21 -0
  57. package/dist/utils/hotspots/get-hotspot-popup-node.js +14 -0
  58. package/dist/utils/hotspots/get-popup-node.js +14 -0
  59. package/dist/utils/hotspots/hide-hotspot-icon.js +13 -0
  60. package/dist/utils/hotspots/hide-hotspots-icons.js +18 -0
  61. package/dist/utils/hotspots/is-mouse-on-hotspot.js +14 -0
  62. package/dist/utils/hotspots/prepare-hotspots-positions.js +28 -0
  63. package/dist/utils/hotspots/set-current-slide.js +23 -0
  64. package/dist/utils/hotspots/toggle-popup-events.js +23 -0
  65. package/dist/utils/hotspots/update-hotspot-icon-position.js +21 -0
  66. package/dist/utils/hotspots/update-hotspots.js +48 -0
  67. package/dist/utils/image-src/generate-images-path.js +42 -0
  68. package/dist/utils/image-src/is-props-change-require-reload.js +23 -0
  69. package/dist/utils/index.js +237 -0
  70. package/dist/utils/load-images/images-from-folder/prepare-images-from-folder.js +34 -0
  71. package/dist/utils/load-images/images-from-list/prepare-images-from-list.js +35 -0
  72. package/dist/utils/load-images/lazyload/init-lazyload.js +49 -0
  73. package/dist/utils/load-images/lazyload/prepare-first-image/prepare-first-image-from-folder.js +18 -0
  74. package/dist/utils/load-images/lazyload/prepare-first-image/prepare-first-image-from-list.js +29 -0
  75. package/dist/utils/load-images/load-image-as-promise.js +54 -0
  76. package/dist/utils/load-images/load-images-relative-to-container-size.js +58 -0
  77. package/dist/utils/load-images/load-original-images.js +58 -0
  78. package/dist/utils/load-images/pad.js +14 -0
  79. package/dist/utils/load-images/preload-images.js +35 -0
  80. package/dist/utils/load-images/preload-original-images.js +35 -0
  81. package/dist/utils/magnify/get-current-original-image.js +29 -0
  82. package/dist/utils/magnify/get-cursor-position.js +24 -0
  83. package/dist/utils/magnify/magnify.js +54 -0
  84. package/dist/utils/magnify/move-magnifier.js +47 -0
  85. package/dist/utils/responsive/contain.js +11 -0
  86. package/dist/utils/responsive/fit.js +33 -0
  87. package/dist/utils/responsive/get-image-aspect-ratio.js +39 -0
  88. package/dist/utils/responsive/get-responsive-width-of-container.js +14 -0
  89. package/dist/utils/responsive/get-size-according-to-pixel-ratio.js +17 -0
  90. package/dist/utils/responsive/get-size-limit.js +14 -0
  91. package/dist/utils/spin-y/get-moving-direction.js +21 -0
  92. package/dist/utils/zoom/generate-zoom-in-steps.js +20 -0
  93. package/dist/utils/zoom/generate-zoom-out-steps.js +20 -0
  94. package/package.json +13 -10
  95. package/dist/ci360.constants.js +0 -31
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getCurrentOriginalImage = void 0;
7
+
8
+ var _orientations = require("../../constants/orientations");
9
+
10
+ var _regex = require("../../constants/regex");
11
+
12
+ var getCurrentOriginalImage = function getCurrentOriginalImage(movingDirection, imagesX, imagesY, activeImageX, activeImageY) {
13
+ var currentImage = new Image();
14
+ var originalImagesXSrcs = imagesX.map(function (image) {
15
+ return image.src.replace(_regex.ORGINAL_SIZE_REGEX, '').replace(_regex.AND_SYMBOL_REGEX, '?');
16
+ });
17
+ var originalImagesYSrcs = imagesY.map(function (image) {
18
+ return image.src.replace(_regex.ORGINAL_SIZE_REGEX, '').replace(_regex.AND_SYMBOL_REGEX, '?');
19
+ });
20
+ currentImage.src = originalImagesXSrcs[activeImageX - 1];
21
+
22
+ if (movingDirection === _orientations.ORIENTATIONS.Y) {
23
+ currentImage.src = originalImagesYSrcs[activeImageY - 1];
24
+ }
25
+
26
+ return currentImage;
27
+ };
28
+
29
+ exports.getCurrentOriginalImage = getCurrentOriginalImage;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getCursorPosition = void 0;
7
+
8
+ var getCursorPosition = function getCursorPosition() {
9
+ var event = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.event;
10
+ var container = arguments.length > 1 ? arguments[1] : undefined;
11
+ var x = 0;
12
+ var y = 0;
13
+ var a = container.getBoundingClientRect();
14
+ x = event.pageX - a.left;
15
+ y = event.pageY - a.top;
16
+ x -= window.pageXOffset;
17
+ y -= window.pageYOffset;
18
+ return {
19
+ x: x,
20
+ y: y
21
+ };
22
+ };
23
+
24
+ exports.getCursorPosition = getCursorPosition;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.magnify = void 0;
7
+
8
+ var _moveMagnifier = require("./move-magnifier");
9
+
10
+ var magnify = function magnify(container, offset, currentImage, glass, zoom) {
11
+ var _ref = offset || {},
12
+ _ref$x = _ref.x,
13
+ offsetX = _ref$x === void 0 ? 0 : _ref$x,
14
+ _ref$y = _ref.y,
15
+ offsetY = _ref$y === void 0 ? 0 : _ref$y;
16
+
17
+ var backgroundSizeX = (container.offsetWidth - offsetX * 2) * zoom;
18
+ var backgroundSizeY = (container.offsetHeight - offsetY * 2) * zoom;
19
+ glass.setAttribute('class', 'cloudimage-360-img-magnifier-glass');
20
+ container.prepend(glass);
21
+ glass.style.backgroundImage = "url('".concat(currentImage.src, "')");
22
+ glass.style.backgroundSize = "".concat(backgroundSizeX, "px ").concat(backgroundSizeY, "px");
23
+ var bw = 3;
24
+ var w = glass.offsetWidth / 2;
25
+ var h = glass.offsetHeight / 2;
26
+ var containerConfig = {
27
+ container: container,
28
+ w: w,
29
+ h: h,
30
+ zoom: zoom,
31
+ bw: bw,
32
+ offsetX: offsetX,
33
+ offsetY: offsetY
34
+ };
35
+
36
+ var MouseMoveHandler = function MouseMoveHandler(event) {
37
+ (0, _moveMagnifier.moveMagnifier)(event, containerConfig, glass);
38
+ };
39
+
40
+ var touchHandler = function touchHandler(event) {
41
+ (0, _moveMagnifier.moveMagnifier)(event, containerConfig, glass);
42
+ };
43
+
44
+ glass.addEventListener('mousemove', MouseMoveHandler);
45
+ container.addEventListener('mousemove', MouseMoveHandler);
46
+ glass.addEventListener('touchmove', touchHandler, {
47
+ passive: true
48
+ });
49
+ container.addEventListener('touchmove', touchHandler, {
50
+ passive: true
51
+ });
52
+ };
53
+
54
+ exports.magnify = magnify;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.moveMagnifier = void 0;
7
+
8
+ var _getCursorPosition = require("./get-cursor-position");
9
+
10
+ var moveMagnifier = function moveMagnifier(e, containerConfig, glass) {
11
+ var container = containerConfig.container,
12
+ w = containerConfig.w,
13
+ h = containerConfig.h,
14
+ zoom = containerConfig.zoom,
15
+ bw = containerConfig.bw,
16
+ offsetX = containerConfig.offsetX,
17
+ offsetY = containerConfig.offsetY;
18
+ var x;
19
+ var y;
20
+ var pos = (0, _getCursorPosition.getCursorPosition)(e, container);
21
+ x = pos.x;
22
+ y = pos.y;
23
+
24
+ if (x > container.offsetWidth - w / zoom) {
25
+ x = container.offsetWidth - w / zoom;
26
+ }
27
+
28
+ if (x < w / zoom) {
29
+ x = w / zoom;
30
+ }
31
+
32
+ if (y > container.offsetHeight - h / zoom) {
33
+ y = container.offsetHeight - h / zoom;
34
+ }
35
+
36
+ if (y < h / zoom) {
37
+ y = h / zoom;
38
+ }
39
+
40
+ glass.style.left = "".concat(x - w, "px");
41
+ glass.style.top = "".concat(y - h, "px");
42
+ var backgroundPosX = (x - offsetX) * zoom - w + bw;
43
+ var backgroundPosY = (y - offsetY) * zoom - h + bw;
44
+ glass.style.backgroundPosition = "-".concat(backgroundPosX, "px -").concat(backgroundPosY, "px");
45
+ };
46
+
47
+ exports.moveMagnifier = moveMagnifier;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.contain = void 0;
7
+
8
+ var _fit = require("./fit");
9
+
10
+ var contain = (0, _fit.fit)(true);
11
+ exports.contain = contain;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.fit = void 0;
7
+
8
+ var fit = function fit(contains) {
9
+ return function (parentWidth, parentHeight, childWidth, childHeight) {
10
+ var scale = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
11
+ var offsetX = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0.5;
12
+ var offsetY = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : 0.5;
13
+ var childRatio = childWidth / childHeight;
14
+ var parentRatio = parentWidth / parentHeight;
15
+ var width = parentWidth * scale;
16
+ var height = parentHeight * scale;
17
+
18
+ if (contains ? childRatio > parentRatio : childRatio < parentRatio) {
19
+ height = width / childRatio;
20
+ } else {
21
+ width = height * childRatio;
22
+ }
23
+
24
+ return {
25
+ width: width,
26
+ height: height,
27
+ offsetX: (parentWidth - width) * offsetX,
28
+ offsetY: (parentHeight - height) * offsetY
29
+ };
30
+ };
31
+ };
32
+
33
+ exports.fit = fit;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.getImageAspectRatio = void 0;
9
+
10
+ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
11
+
12
+ var getImageAspectRatio = function getImageAspectRatio(image, providedRatio) {
13
+ try {
14
+ var imageAspectRatio = image.width / image.height;
15
+
16
+ if (typeof providedRatio === 'number') {
17
+ imageAspectRatio = providedRatio;
18
+ }
19
+
20
+ if (providedRatio && (0, _typeof2.default)(providedRatio) === 'object') {
21
+ var mediaQueries = Object.keys(providedRatio).sort(function (a, b) {
22
+ return a - b;
23
+ });
24
+ var activeMedia = mediaQueries.find(function (mediaQuery) {
25
+ return window.innerWidth <= parseInt(mediaQuery, 10);
26
+ });
27
+
28
+ if (activeMedia) {
29
+ imageAspectRatio = providedRatio[activeMedia];
30
+ }
31
+ }
32
+
33
+ return imageAspectRatio;
34
+ } catch (_unused) {
35
+ return 1;
36
+ }
37
+ };
38
+
39
+ exports.getImageAspectRatio = getImageAspectRatio;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getResponsiveWidthOfContainer = void 0;
7
+
8
+ var _getSizeLimit = require("./get-size-limit");
9
+
10
+ var getResponsiveWidthOfContainer = function getResponsiveWidthOfContainer(width) {
11
+ return (0, _getSizeLimit.getSizeLimit)(width);
12
+ };
13
+
14
+ exports.getResponsiveWidthOfContainer = getResponsiveWidthOfContainer;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getSizeAccordingToPixelRatio = void 0;
7
+
8
+ var getSizeAccordingToPixelRatio = function getSizeAccordingToPixelRatio(size) {
9
+ var splittedSizes = size.toString().split('x');
10
+ var result = [];
11
+ [].forEach.call(splittedSizes, function (splittedSize) {
12
+ result.push(splittedSize * Math.round(window.devicePixelRatio || 1));
13
+ });
14
+ return result.join('x');
15
+ };
16
+
17
+ exports.getSizeAccordingToPixelRatio = getSizeAccordingToPixelRatio;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getSizeLimit = void 0;
7
+
8
+ var getSizeLimit = function getSizeLimit(currentSize) {
9
+ if (currentSize <= 25) return '25';
10
+ if (currentSize <= 50) return '50';
11
+ return (Math.ceil(currentSize / 100) * 100).toString();
12
+ };
13
+
14
+ exports.getSizeLimit = getSizeLimit;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getMovingDirection = void 0;
7
+
8
+ var _orientations = require("../../constants/orientations");
9
+
10
+ var getMovingDirection = function getMovingDirection(isStartSpin, allowSpinY, prevPosition, nextPositions, currentMovingDirection) {
11
+ var movingDirection = _orientations.ORIENTATIONS.CENTER;
12
+ if (isStartSpin) return currentMovingDirection;
13
+ var differenceInPositionX = Math.abs(prevPosition.x - nextPositions.x);
14
+ var differenceInPositionY = Math.abs(prevPosition.y - nextPositions.y);
15
+ var sensitivity = 10;
16
+ if (differenceInPositionX > sensitivity) movingDirection = _orientations.ORIENTATIONS.X;
17
+ if (differenceInPositionY > sensitivity && allowSpinY) movingDirection = _orientations.ORIENTATIONS.Y;
18
+ return movingDirection;
19
+ };
20
+
21
+ exports.getMovingDirection = getMovingDirection;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.generateZoomInSteps = void 0;
7
+
8
+ var generateZoomInSteps = function generateZoomInSteps(zoomIntenisty) {
9
+ var transitionStepsFactor = 20;
10
+ return Array.from(Array(transitionStepsFactor)).reduce(function (acc, _, index) {
11
+ var previousIndex = index - 1;
12
+ var previousValue = previousIndex < 0 ? 1 : acc[index - 1];
13
+ var step = previousValue + (zoomIntenisty - 1) / transitionStepsFactor;
14
+ var stepFixedValue = +step.toFixed(2);
15
+ (acc || []).push(stepFixedValue);
16
+ return acc;
17
+ }, []);
18
+ };
19
+
20
+ exports.generateZoomInSteps = generateZoomInSteps;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.generateZoomOutSteps = void 0;
7
+
8
+ var generateZoomOutSteps = function generateZoomOutSteps(zoomIntenisty) {
9
+ var transitionStepsFactor = 20;
10
+ return Array.from(Array(transitionStepsFactor)).reduce(function (acc, _, index) {
11
+ var previousIndex = index - 1;
12
+ var previousValue = previousIndex < 0 ? zoomIntenisty : acc[index - 1];
13
+ var step = previousValue - (zoomIntenisty - 1) / transitionStepsFactor;
14
+ var stepFixedValue = +step.toFixed(2);
15
+ (acc || []).push(stepFixedValue);
16
+ return acc;
17
+ }, []);
18
+ };
19
+
20
+ exports.generateZoomOutSteps = generateZoomOutSteps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js-cloudimage-360-view",
3
- "version": "3.0.0-beta.0",
3
+ "version": "3.0.1",
4
4
  "main": "dist/index.js",
5
5
  "description": "",
6
6
  "author": "scaleflex",
@@ -23,9 +23,9 @@
23
23
  ],
24
24
  "scripts": {
25
25
  "start-demo": "webpack-dev-server --mode development --config config/webpack-demo.config.js",
26
- "clean-build": "rd /s /q build",
26
+ "clean-build": "rm -rf build",
27
27
  "build": "npm run clean-build && webpack --mode production --config config/webpack-build.config.js",
28
- "clean-dist": "rimraf dist",
28
+ "clean-dist": "rm -rf dist",
29
29
  "dist": "npm run clean-dist && babel src -d dist --copy-files",
30
30
  "clean-demo": "rm -rf examples/dist",
31
31
  "build-demo": "npm run clean-demo && webpack --mode production --config config/webpack-demo.config.js",
@@ -33,26 +33,29 @@
33
33
  "publish-demo": "npm run build-demo && npm run deploy-demo"
34
34
  },
35
35
  "dependencies": {
36
+ "@babel/runtime": "^7.17.0",
37
+ "@popperjs/core": "^2.11.2",
36
38
  "core-js": "^3.0.0"
37
39
  },
38
40
  "devDependencies": {
39
- "babel-cli": "^6.26.0",
40
- "babel-core": "^6.26.3",
41
- "babel-loader": "^7.1.4",
41
+ "@babel/cli": "^7.16.7",
42
+ "@babel/core": "^7.16.7",
43
+ "@babel/plugin-transform-runtime": "^7.16.5",
44
+ "@babel/preset-env": "^7.16.5",
45
+ "babel-loader": "^8.2.3",
42
46
  "babel-plugin-array-includes": "^2.0.3",
43
47
  "babel-preset-env": "^1.7.0",
44
48
  "babel-preset-es2015": "^6.24.1",
45
49
  "babel-preset-minify": "^0.5.0",
46
- "babel-preset-stage-2": "^6.24.1",
50
+ "babel-preset-stage-0": "^6.24.1",
47
51
  "css-loader": "^2.1.1",
48
52
  "gh-pages": "^2.0.1",
49
53
  "highlight.js": "^10.4.1",
50
54
  "html-webpack-plugin": "^3.2.0",
51
- "mkdirp": "^1.0.4",
55
+ "mini-css-extract-plugin": "^0.9.0",
52
56
  "mobile-detect": "^1.4.3",
53
- "rimraf": "^3.0.2",
54
57
  "style-loader": "^0.23.1",
55
- "webpack": "^4.29.6",
58
+ "webpack": "^4.46.0",
56
59
  "webpack-cli": "^3.3.0",
57
60
  "webpack-dev-server": "^3.2.1"
58
61
  }
@@ -1,31 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var TO_START_POINTER_ZOOM = {
7
- SCROLL_TO_START: 'scroll',
8
- CLICK_TO_START: 'click'
9
- };
10
-
11
- var MOUSE_LEAVE_ACTIONS = {
12
- RESET_ZOOM: 'resetZoom'
13
- };
14
-
15
- var ORIENTATIONS = {
16
- X: 'x-axis',
17
- Y: 'y-axis',
18
- CENTER: 'center'
19
- };
20
-
21
- var AUTOPLAY_BEHAVIOR = {
22
- SPIN_X: 'spin-x',
23
- SPIN_Y: 'spin-y',
24
- SPIN_XY: 'spin-xy',
25
- SPIN_YX: 'spin-yx'
26
- };
27
-
28
- exports.TO_START_POINTER_ZOOM = TO_START_POINTER_ZOOM;
29
- exports.MOUSE_LEAVE_ACTIONS = MOUSE_LEAVE_ACTIONS;
30
- exports.ORIENTATIONS = ORIENTATIONS;
31
- exports.AUTOPLAY_BEHAVIOR = AUTOPLAY_BEHAVIOR;