js-cloudimage-360-view 3.2.1 → 4.0.0-beta.10

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 (99) hide show
  1. package/.prettierrc +9 -0
  2. package/README.md +318 -721
  3. package/dist/js-cloudimage-360-view.min.css +1 -0
  4. package/dist/js-cloudimage-360-view.min.js +2111 -0
  5. package/package.json +30 -17
  6. package/.env +0 -3
  7. package/CHANGELOG.md +0 -175
  8. package/bin/deploy-bundle.js +0 -63
  9. package/dist/ci360.service.js +0 -1270
  10. package/dist/ci360.utils.js +0 -78
  11. package/dist/constants/auto-play-behavior.js +0 -13
  12. package/dist/constants/falsy-values.js +0 -8
  13. package/dist/constants/index.js +0 -39
  14. package/dist/constants/orientations.js +0 -12
  15. package/dist/constants/props-require-reload.js +0 -33
  16. package/dist/constants/regex.js +0 -10
  17. package/dist/index.js +0 -102
  18. package/dist/static/css/hotspots.css +0 -222
  19. package/dist/static/css/style.css +0 -230
  20. package/dist/utils/auto-play/get-speed-factor.js +0 -12
  21. package/dist/utils/auto-play/is-completed-one-cycle.js +0 -27
  22. package/dist/utils/auto-play/loop.js +0 -56
  23. package/dist/utils/class-names/add-class.js +0 -15
  24. package/dist/utils/class-names/remove-class.js +0 -14
  25. package/dist/utils/container-elements/apply-styles-to-container.js +0 -14
  26. package/dist/utils/container-elements/create-360-view-circle-icon.js +0 -14
  27. package/dist/utils/container-elements/create-360-view-icon.js +0 -13
  28. package/dist/utils/container-elements/create-box-shadow.js +0 -14
  29. package/dist/utils/container-elements/create-canvas.js +0 -14
  30. package/dist/utils/container-elements/create-close-fullscreen-icon.js +0 -12
  31. package/dist/utils/container-elements/create-fullscreen-icon.js +0 -12
  32. package/dist/utils/container-elements/create-fullscreen-modal.js +0 -18
  33. package/dist/utils/container-elements/create-icons-container.js +0 -13
  34. package/dist/utils/container-elements/create-inner-box.js +0 -13
  35. package/dist/utils/container-elements/create-loader.js +0 -13
  36. package/dist/utils/container-elements/create-magnifier-icon.js +0 -12
  37. package/dist/utils/container-elements/index.js +0 -96
  38. package/dist/utils/container-elements/remove-child-from-parent.js +0 -14
  39. package/dist/utils/controls/get-item-skipped.js +0 -11
  40. package/dist/utils/controls/init-controls.js +0 -68
  41. package/dist/utils/hotspots/attach-events/hide-popup.js +0 -13
  42. package/dist/utils/hotspots/attach-events/show-popup.js +0 -12
  43. package/dist/utils/hotspots/configs-error-handler.js +0 -23
  44. package/dist/utils/hotspots/create-popper-instace.js +0 -29
  45. package/dist/utils/hotspots/elements/create-carousel-dot.js +0 -20
  46. package/dist/utils/hotspots/elements/create-carousel-image.js +0 -18
  47. package/dist/utils/hotspots/elements/create-hotspot-icon.js +0 -55
  48. package/dist/utils/hotspots/elements/create-hotspot-popup-link.js +0 -19
  49. package/dist/utils/hotspots/elements/create-hotspots.js +0 -20
  50. package/dist/utils/hotspots/elements/create-images-carousel.js +0 -23
  51. package/dist/utils/hotspots/elements/create-modal-description.js +0 -13
  52. package/dist/utils/hotspots/elements/create-modal-title.js +0 -13
  53. package/dist/utils/hotspots/elements/create-model-elements.js +0 -49
  54. package/dist/utils/hotspots/elements/create-popup-arrow.js +0 -14
  55. package/dist/utils/hotspots/elements/create-popup.js +0 -55
  56. package/dist/utils/hotspots/elements/create-read-more-btn.js +0 -15
  57. package/dist/utils/hotspots/fill-empty-coord-with-previous.js +0 -21
  58. package/dist/utils/hotspots/generate-hotspots-configs.js +0 -48
  59. package/dist/utils/hotspots/generate-popup-config.js +0 -27
  60. package/dist/utils/hotspots/get-hotspot-icon.js +0 -12
  61. package/dist/utils/hotspots/get-hotspot-orientation.js +0 -17
  62. package/dist/utils/hotspots/get-hotspot-popup-node.js +0 -12
  63. package/dist/utils/hotspots/get-popup-node.js +0 -12
  64. package/dist/utils/hotspots/hide-hotspot-icon.js +0 -11
  65. package/dist/utils/hotspots/hide-hotspots-icons.js +0 -15
  66. package/dist/utils/hotspots/is-mouse-on-hotspot.js +0 -12
  67. package/dist/utils/hotspots/prepare-hotspots-positions.js +0 -22
  68. package/dist/utils/hotspots/set-current-slide.js +0 -21
  69. package/dist/utils/hotspots/toggle-popup-events.js +0 -19
  70. package/dist/utils/hotspots/update-hotspot-icon-position.js +0 -19
  71. package/dist/utils/hotspots/update-hotspots.js +0 -40
  72. package/dist/utils/image-src/generate-images-path.js +0 -33
  73. package/dist/utils/image-src/is-props-change-require-reload.js +0 -18
  74. package/dist/utils/index.js +0 -211
  75. package/dist/utils/load-images/images-from-folder/prepare-images-from-folder.js +0 -25
  76. package/dist/utils/load-images/images-from-list/prepare-images-from-list.js +0 -21
  77. package/dist/utils/load-images/lazyload/init-lazyload.js +0 -41
  78. package/dist/utils/load-images/lazyload/prepare-first-image/prepare-first-image-from-folder.js +0 -14
  79. package/dist/utils/load-images/lazyload/prepare-first-image/prepare-first-image-from-list.js +0 -20
  80. package/dist/utils/load-images/load-image-as-promise.js +0 -16
  81. package/dist/utils/load-images/load-images-relative-to-container-size.js +0 -19
  82. package/dist/utils/load-images/load-original-images.js +0 -44
  83. package/dist/utils/load-images/pad.js +0 -12
  84. package/dist/utils/load-images/preload-images.js +0 -28
  85. package/dist/utils/load-images/preload-original-images.js +0 -28
  86. package/dist/utils/magnify/get-current-original-image.js +0 -23
  87. package/dist/utils/magnify/get-cursor-position.js +0 -22
  88. package/dist/utils/magnify/magnify.js +0 -47
  89. package/dist/utils/magnify/move-magnifier.js +0 -39
  90. package/dist/utils/responsive/contain.js +0 -9
  91. package/dist/utils/responsive/fit.js +0 -29
  92. package/dist/utils/responsive/get-image-aspect-ratio.js +0 -31
  93. package/dist/utils/responsive/get-responsive-width-of-container.js +0 -11
  94. package/dist/utils/responsive/get-size-according-to-pixel-ratio.js +0 -15
  95. package/dist/utils/responsive/get-size-limit.js +0 -12
  96. package/dist/utils/spin-y/get-moving-direction.js +0 -18
  97. package/dist/utils/zoom/generate-zoom-in-steps.js +0 -18
  98. package/dist/utils/zoom/generate-zoom-out-steps.js +0 -18
  99. package/yarn-error.log +0 -101
@@ -1,28 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.preloadImages = void 0;
7
- var _loadImagesRelativeToContainerSize = require("./load-images-relative-to-container-size");
8
- var _prepareImagesFromFolder = require("./images-from-folder/prepare-images-from-folder");
9
- var _prepareImagesFromList = require("./images-from-list/prepare-images-from-list");
10
- /* eslint-disable no-console */
11
-
12
- var preloadImages = function preloadImages(srcConfig, imagesSrc, cb) {
13
- var _ref = srcConfig || {},
14
- imageList = _ref.imageList;
15
- var imagesSrcs = [];
16
- if (imageList) {
17
- try {
18
- var images = JSON.parse(imageList);
19
- imagesSrcs = (0, _prepareImagesFromList.prepareImagesFromList)(images, srcConfig);
20
- } catch (error) {
21
- console.error("Wrong format in image-list attribute: ".concat(error.message));
22
- }
23
- } else {
24
- imagesSrcs = (0, _prepareImagesFromFolder.prepareImagesFromFolder)(imagesSrc, srcConfig);
25
- }
26
- (0, _loadImagesRelativeToContainerSize.loadImagesRelativeToContainerSize)(imagesSrcs, cb);
27
- };
28
- exports.preloadImages = preloadImages;
@@ -1,28 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.preloadOriginalImages = void 0;
7
- var _prepareImagesFromFolder = require("./images-from-folder/prepare-images-from-folder");
8
- var _prepareImagesFromList = require("./images-from-list/prepare-images-from-list");
9
- var _loadOriginalImages = require("./load-original-images");
10
- /* eslint-disable no-console */
11
-
12
- var preloadOriginalImages = function preloadOriginalImages(srcConfig, imagesSrc, cb) {
13
- var _ref = srcConfig || {},
14
- imageList = _ref.imageList;
15
- var imagesSrcs = [];
16
- if (imageList) {
17
- try {
18
- var images = JSON.parse(imageList);
19
- imagesSrcs = (0, _prepareImagesFromList.prepareImagesFromList)(images, srcConfig, true);
20
- } catch (error) {
21
- console.error("Wrong format in image-list attribute: ".concat(error.message));
22
- }
23
- } else {
24
- imagesSrcs = (0, _prepareImagesFromFolder.prepareImagesFromFolder)(imagesSrc, srcConfig, true);
25
- }
26
- (0, _loadOriginalImages.loadOriginalImages)(imagesSrcs, cb);
27
- };
28
- exports.preloadOriginalImages = preloadOriginalImages;
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getCurrentOriginalImage = void 0;
7
- var _orientations = require("../../constants/orientations");
8
- var _regex = require("../../constants/regex");
9
- var getCurrentOriginalImage = function getCurrentOriginalImage(movingDirection, imagesX, imagesY, activeImageX, activeImageY) {
10
- var currentImage = new Image();
11
- var originalImagesXSrcs = imagesX.map(function (image) {
12
- return image.src.replace(_regex.ORGINAL_SIZE_REGEX, '').replace(_regex.AND_SYMBOL_REGEX, '?');
13
- });
14
- var originalImagesYSrcs = imagesY.map(function (image) {
15
- return image.src.replace(_regex.ORGINAL_SIZE_REGEX, '').replace(_regex.AND_SYMBOL_REGEX, '?');
16
- });
17
- currentImage.src = originalImagesXSrcs[activeImageX - 1];
18
- if (movingDirection === _orientations.ORIENTATIONS.Y) {
19
- currentImage.src = originalImagesYSrcs[activeImageY - 1];
20
- }
21
- return currentImage;
22
- };
23
- exports.getCurrentOriginalImage = getCurrentOriginalImage;
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getCursorPosition = void 0;
7
- var getCursorPosition = function getCursorPosition() {
8
- var event = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.event;
9
- var container = arguments.length > 1 ? arguments[1] : undefined;
10
- var x = 0;
11
- var y = 0;
12
- var a = container.getBoundingClientRect();
13
- x = event.pageX - a.left;
14
- y = event.pageY - a.top;
15
- x -= window.pageXOffset;
16
- y -= window.pageYOffset;
17
- return {
18
- x: x,
19
- y: y
20
- };
21
- };
22
- exports.getCursorPosition = getCursorPosition;
@@ -1,47 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.magnify = void 0;
7
- var _moveMagnifier = require("./move-magnifier");
8
- var magnify = function magnify(container, offset, currentImage, glass, zoom) {
9
- var _ref = offset || {},
10
- _ref$x = _ref.x,
11
- offsetX = _ref$x === void 0 ? 0 : _ref$x,
12
- _ref$y = _ref.y,
13
- offsetY = _ref$y === void 0 ? 0 : _ref$y;
14
- var backgroundSizeX = (container.offsetWidth - offsetX * 2) * zoom;
15
- var backgroundSizeY = (container.offsetHeight - offsetY * 2) * zoom;
16
- glass.setAttribute('class', 'cloudimage-360-img-magnifier-glass');
17
- container.prepend(glass);
18
- glass.style.backgroundImage = "url('".concat(currentImage.src, "')");
19
- glass.style.backgroundSize = "".concat(backgroundSizeX, "px ").concat(backgroundSizeY, "px");
20
- var bw = 3;
21
- var w = glass.offsetWidth / 2;
22
- var h = glass.offsetHeight / 2;
23
- var containerConfig = {
24
- container: container,
25
- w: w,
26
- h: h,
27
- zoom: zoom,
28
- bw: bw,
29
- offsetX: offsetX,
30
- offsetY: offsetY
31
- };
32
- var MouseMoveHandler = function MouseMoveHandler(event) {
33
- (0, _moveMagnifier.moveMagnifier)(event, containerConfig, glass);
34
- };
35
- var touchHandler = function touchHandler(event) {
36
- (0, _moveMagnifier.moveMagnifier)(event, containerConfig, glass);
37
- };
38
- glass.addEventListener('mousemove', MouseMoveHandler);
39
- container.addEventListener('mousemove', MouseMoveHandler);
40
- glass.addEventListener('touchmove', touchHandler, {
41
- passive: true
42
- });
43
- container.addEventListener('touchmove', touchHandler, {
44
- passive: true
45
- });
46
- };
47
- exports.magnify = magnify;
@@ -1,39 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.moveMagnifier = void 0;
7
- var _getCursorPosition = require("./get-cursor-position");
8
- var moveMagnifier = function moveMagnifier(e, containerConfig, glass) {
9
- var container = containerConfig.container,
10
- w = containerConfig.w,
11
- h = containerConfig.h,
12
- zoom = containerConfig.zoom,
13
- bw = containerConfig.bw,
14
- offsetX = containerConfig.offsetX,
15
- offsetY = containerConfig.offsetY;
16
- var x;
17
- var y;
18
- var pos = (0, _getCursorPosition.getCursorPosition)(e, container);
19
- x = pos.x;
20
- y = pos.y;
21
- if (x > container.offsetWidth - w / zoom) {
22
- x = container.offsetWidth - w / zoom;
23
- }
24
- if (x < w / zoom) {
25
- x = w / zoom;
26
- }
27
- if (y > container.offsetHeight - h / zoom) {
28
- y = container.offsetHeight - h / zoom;
29
- }
30
- if (y < h / zoom) {
31
- y = h / zoom;
32
- }
33
- glass.style.left = "".concat(x - w, "px");
34
- glass.style.top = "".concat(y - h, "px");
35
- var backgroundPosX = (x - offsetX) * zoom - w + bw;
36
- var backgroundPosY = (y - offsetY) * zoom - h + bw;
37
- glass.style.backgroundPosition = "-".concat(backgroundPosX, "px -").concat(backgroundPosY, "px");
38
- };
39
- exports.moveMagnifier = moveMagnifier;
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.contain = void 0;
7
- var _fit = require("./fit");
8
- var contain = (0, _fit.fit)(true);
9
- exports.contain = contain;
@@ -1,29 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.fit = void 0;
7
- var fit = function fit(contains) {
8
- return function (parentWidth, parentHeight, childWidth, childHeight) {
9
- var scale = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
10
- var offsetX = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0.5;
11
- var offsetY = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : 0.5;
12
- var childRatio = childWidth / childHeight;
13
- var parentRatio = parentWidth / parentHeight;
14
- var width = parentWidth * scale;
15
- var height = parentHeight * scale;
16
- if (contains ? childRatio > parentRatio : childRatio < parentRatio) {
17
- height = width / childRatio;
18
- } else {
19
- width = height * childRatio;
20
- }
21
- return {
22
- width: width,
23
- height: height,
24
- offsetX: (parentWidth - width) * offsetX,
25
- offsetY: (parentHeight - height) * offsetY
26
- };
27
- };
28
- };
29
- exports.fit = fit;
@@ -1,31 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.getImageAspectRatio = void 0;
8
- var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
- var getImageAspectRatio = function getImageAspectRatio(image, providedRatio) {
10
- try {
11
- var imageAspectRatio = image.width / image.height;
12
- if (typeof providedRatio === 'number') {
13
- imageAspectRatio = providedRatio;
14
- }
15
- if (providedRatio && (0, _typeof2.default)(providedRatio) === 'object') {
16
- var mediaQueries = Object.keys(providedRatio).sort(function (a, b) {
17
- return a - b;
18
- });
19
- var activeMedia = mediaQueries.find(function (mediaQuery) {
20
- return window.innerWidth <= parseInt(mediaQuery, 10);
21
- });
22
- if (activeMedia) {
23
- imageAspectRatio = providedRatio[activeMedia];
24
- }
25
- }
26
- return imageAspectRatio;
27
- } catch (_unused) {
28
- return 1;
29
- }
30
- };
31
- exports.getImageAspectRatio = getImageAspectRatio;
@@ -1,11 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getResponsiveWidthOfContainer = void 0;
7
- var _getSizeLimit = require("./get-size-limit");
8
- var getResponsiveWidthOfContainer = function getResponsiveWidthOfContainer(width) {
9
- return (0, _getSizeLimit.getSizeLimit)(width);
10
- };
11
- exports.getResponsiveWidthOfContainer = getResponsiveWidthOfContainer;
@@ -1,15 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getSizeAccordingToPixelRatio = void 0;
7
- var getSizeAccordingToPixelRatio = function getSizeAccordingToPixelRatio(size) {
8
- var splittedSizes = size.toString().split('x');
9
- var result = [];
10
- [].forEach.call(splittedSizes, function (splittedSize) {
11
- result.push(splittedSize * Math.round(window.devicePixelRatio || 1));
12
- });
13
- return result.join('x');
14
- };
15
- exports.getSizeAccordingToPixelRatio = getSizeAccordingToPixelRatio;
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getSizeLimit = void 0;
7
- var getSizeLimit = function getSizeLimit(currentSize) {
8
- if (currentSize <= 25) return '25';
9
- if (currentSize <= 50) return '50';
10
- return (Math.ceil(currentSize / 100) * 100).toString();
11
- };
12
- exports.getSizeLimit = getSizeLimit;
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getMovingDirection = void 0;
7
- var _orientations = require("../../constants/orientations");
8
- var getMovingDirection = function getMovingDirection(isStartSpin, allowSpinY, prevPosition, nextPositions, currentMovingDirection) {
9
- var movingDirection = _orientations.ORIENTATIONS.CENTER;
10
- if (isStartSpin) return currentMovingDirection;
11
- var differenceInPositionX = Math.abs(prevPosition.x - nextPositions.x);
12
- var differenceInPositionY = Math.abs(prevPosition.y - nextPositions.y);
13
- var sensitivity = 10;
14
- if (differenceInPositionX > sensitivity) movingDirection = _orientations.ORIENTATIONS.X;
15
- if (differenceInPositionY > sensitivity && allowSpinY) movingDirection = _orientations.ORIENTATIONS.Y;
16
- return movingDirection;
17
- };
18
- exports.getMovingDirection = getMovingDirection;
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.generateZoomInSteps = void 0;
7
- var generateZoomInSteps = function generateZoomInSteps(zoomIntenisty) {
8
- var transitionStepsFactor = 20;
9
- return Array.from(Array(transitionStepsFactor)).reduce(function (acc, _, index) {
10
- var previousIndex = index - 1;
11
- var previousValue = previousIndex < 0 ? 1 : acc[index - 1];
12
- var step = previousValue + (zoomIntenisty - 1) / transitionStepsFactor;
13
- var stepFixedValue = +step.toFixed(2);
14
- (acc || []).push(stepFixedValue);
15
- return acc;
16
- }, []);
17
- };
18
- exports.generateZoomInSteps = generateZoomInSteps;
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.generateZoomOutSteps = void 0;
7
- var generateZoomOutSteps = function generateZoomOutSteps(zoomIntenisty) {
8
- var transitionStepsFactor = 20;
9
- return Array.from(Array(transitionStepsFactor)).reduce(function (acc, _, index) {
10
- var previousIndex = index - 1;
11
- var previousValue = previousIndex < 0 ? zoomIntenisty : acc[index - 1];
12
- var step = previousValue - (zoomIntenisty - 1) / transitionStepsFactor;
13
- var stepFixedValue = +step.toFixed(2);
14
- (acc || []).push(stepFixedValue);
15
- return acc;
16
- }, []);
17
- };
18
- exports.generateZoomOutSteps = generateZoomOutSteps;
package/yarn-error.log DELETED
@@ -1,101 +0,0 @@
1
- Arguments:
2
- /usr/local/bin/node /opt/homebrew/Cellar/yarn/1.22.19/libexec/bin/yarn.js
3
-
4
- PATH:
5
- .npm-globa/bin/.yalc:.npm-global/bin/.yalc:/opt/homebrew/opt/python@3.9/libexec/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.npm-globa/bin/.yalc:.npm-global/bin/.yalc:/opt/homebrew/opt/python@3.9/libexec/bin:/opt/homebrew/bin:/opt/homebrew/sbin
6
-
7
- Yarn version:
8
- 1.22.19
9
-
10
- Node version:
11
- 16.15.1
12
-
13
- Platform:
14
- darwin arm64
15
-
16
- Trace:
17
- Error: https://registry.yarnpkg.com/highlight.js: ESOCKETTIMEDOUT
18
- at ClientRequest.<anonymous> (/opt/homebrew/Cellar/yarn/1.22.19/libexec/lib/cli.js:141517:19)
19
- at Object.onceWrapper (node:events:641:28)
20
- at ClientRequest.emit (node:events:527:28)
21
- at TLSSocket.emitRequestTimeout (node:_http_client:771:9)
22
- at Object.onceWrapper (node:events:641:28)
23
- at TLSSocket.emit (node:events:539:35)
24
- at TLSSocket.Socket._onTimeout (node:net:516:8)
25
- at listOnTimeout (node:internal/timers:559:17)
26
- at processTimers (node:internal/timers:502:7)
27
-
28
- npm manifest:
29
- {
30
- "name": "js-cloudimage-360-view",
31
- "version": "3.0.4",
32
- "main": "dist/index.js",
33
- "description": "",
34
- "author": "scaleflex",
35
- "license": "MIT",
36
- "repository": {
37
- "type": "git",
38
- "url": "https://github.com/scaleflex/js-cloudimage-360-view"
39
- },
40
- "homepage": "#readme",
41
- "keywords": [
42
- "image",
43
- "images",
44
- "cloudimage",
45
- "360",
46
- "photo",
47
- "product",
48
- "view",
49
- "viewer",
50
- "360 product view"
51
- ],
52
- "scripts": {
53
- "start-demo": "webpack-dev-server --mode development --config config/webpack-demo.config.js",
54
- "clean:build": "rm -rf build",
55
- "build:bundle": "npm run clean:build && webpack --mode production --config config/webpack-build.config.js",
56
- "deploy:bundle": "npm run build:bundle && node bin/deploy-bundle",
57
- "clean:dist": "rm -rf dist",
58
- "dist": "npm run clean:dist && babel src -d dist --copy-files",
59
- "clean:demo": "rm -rf examples/dist",
60
- "build:demo": "npm run clean:demo && webpack --mode production --config config/webpack-demo.config.js",
61
- "deploy:demo": "gh-pages -d examples/dist",
62
- "publish:demo": "npm run build:demo && npm run deploy:demo"
63
- },
64
- "dependencies": {
65
- "@babel/runtime": "^7.17.0",
66
- "@popperjs/core": "^2.11.2",
67
- "core-js": "^3.0.0"
68
- },
69
- "devDependencies": {
70
- "@babel/cli": "^7.16.7",
71
- "@babel/core": "^7.16.7",
72
- "@babel/plugin-transform-runtime": "^7.16.5",
73
- "@babel/preset-env": "^7.16.5",
74
- "babel-loader": "^8.2.3",
75
- "babel-plugin-array-includes": "^2.0.3",
76
- "babel-preset-env": "^1.7.0",
77
- "babel-preset-es2015": "^6.24.1",
78
- "babel-preset-minify": "^0.5.0",
79
- "babel-preset-stage-0": "^6.24.1",
80
- "css-loader": "^2.1.1",
81
- "dotenv": "^16.0.3",
82
- "form-data": "^4.0.0",
83
- "fs": "^0.0.1-security",
84
- "gh-pages": "^2.0.1",
85
- "highlight.js": "^10.4.1",
86
- "html-webpack-plugin": "^3.2.0",
87
- "isomorphic-fetch": "^3.0.0",
88
- "mini-css-extract-plugin": "^0.9.0",
89
- "mobile-detect": "^1.4.3",
90
- "style-loader": "^0.23.1",
91
- "webpack": "^4.46.0",
92
- "webpack-cli": "^3.3.0",
93
- "webpack-dev-server": "^3.2.1"
94
- }
95
- }
96
-
97
- yarn manifest:
98
- No manifest
99
-
100
- Lockfile:
101
- No lockfile