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

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 (101) hide show
  1. package/.prettierrc +9 -0
  2. package/README.md +318 -721
  3. package/dist/assets/index-49ZK8EAw.js +9 -0
  4. package/dist/assets/index-CgRAm56E.css +1 -0
  5. package/dist/index.html +697 -0
  6. package/js-cloudimage-360-view-4.0.0-beta.1.tgz +0 -0
  7. package/package.json +22 -12
  8. package/.env +0 -3
  9. package/CHANGELOG.md +0 -175
  10. package/bin/deploy-bundle.js +0 -63
  11. package/dist/ci360.service.js +0 -1270
  12. package/dist/ci360.utils.js +0 -78
  13. package/dist/constants/auto-play-behavior.js +0 -13
  14. package/dist/constants/falsy-values.js +0 -8
  15. package/dist/constants/index.js +0 -39
  16. package/dist/constants/orientations.js +0 -12
  17. package/dist/constants/props-require-reload.js +0 -33
  18. package/dist/constants/regex.js +0 -10
  19. package/dist/index.js +0 -102
  20. package/dist/static/css/hotspots.css +0 -222
  21. package/dist/static/css/style.css +0 -230
  22. package/dist/utils/auto-play/get-speed-factor.js +0 -12
  23. package/dist/utils/auto-play/is-completed-one-cycle.js +0 -27
  24. package/dist/utils/auto-play/loop.js +0 -56
  25. package/dist/utils/class-names/add-class.js +0 -15
  26. package/dist/utils/class-names/remove-class.js +0 -14
  27. package/dist/utils/container-elements/apply-styles-to-container.js +0 -14
  28. package/dist/utils/container-elements/create-360-view-circle-icon.js +0 -14
  29. package/dist/utils/container-elements/create-360-view-icon.js +0 -13
  30. package/dist/utils/container-elements/create-box-shadow.js +0 -14
  31. package/dist/utils/container-elements/create-canvas.js +0 -14
  32. package/dist/utils/container-elements/create-close-fullscreen-icon.js +0 -12
  33. package/dist/utils/container-elements/create-fullscreen-icon.js +0 -12
  34. package/dist/utils/container-elements/create-fullscreen-modal.js +0 -18
  35. package/dist/utils/container-elements/create-icons-container.js +0 -13
  36. package/dist/utils/container-elements/create-inner-box.js +0 -13
  37. package/dist/utils/container-elements/create-loader.js +0 -13
  38. package/dist/utils/container-elements/create-magnifier-icon.js +0 -12
  39. package/dist/utils/container-elements/index.js +0 -96
  40. package/dist/utils/container-elements/remove-child-from-parent.js +0 -14
  41. package/dist/utils/controls/get-item-skipped.js +0 -11
  42. package/dist/utils/controls/init-controls.js +0 -68
  43. package/dist/utils/hotspots/attach-events/hide-popup.js +0 -13
  44. package/dist/utils/hotspots/attach-events/show-popup.js +0 -12
  45. package/dist/utils/hotspots/configs-error-handler.js +0 -23
  46. package/dist/utils/hotspots/create-popper-instace.js +0 -29
  47. package/dist/utils/hotspots/elements/create-carousel-dot.js +0 -20
  48. package/dist/utils/hotspots/elements/create-carousel-image.js +0 -18
  49. package/dist/utils/hotspots/elements/create-hotspot-icon.js +0 -55
  50. package/dist/utils/hotspots/elements/create-hotspot-popup-link.js +0 -19
  51. package/dist/utils/hotspots/elements/create-hotspots.js +0 -20
  52. package/dist/utils/hotspots/elements/create-images-carousel.js +0 -23
  53. package/dist/utils/hotspots/elements/create-modal-description.js +0 -13
  54. package/dist/utils/hotspots/elements/create-modal-title.js +0 -13
  55. package/dist/utils/hotspots/elements/create-model-elements.js +0 -49
  56. package/dist/utils/hotspots/elements/create-popup-arrow.js +0 -14
  57. package/dist/utils/hotspots/elements/create-popup.js +0 -55
  58. package/dist/utils/hotspots/elements/create-read-more-btn.js +0 -15
  59. package/dist/utils/hotspots/fill-empty-coord-with-previous.js +0 -21
  60. package/dist/utils/hotspots/generate-hotspots-configs.js +0 -48
  61. package/dist/utils/hotspots/generate-popup-config.js +0 -27
  62. package/dist/utils/hotspots/get-hotspot-icon.js +0 -12
  63. package/dist/utils/hotspots/get-hotspot-orientation.js +0 -17
  64. package/dist/utils/hotspots/get-hotspot-popup-node.js +0 -12
  65. package/dist/utils/hotspots/get-popup-node.js +0 -12
  66. package/dist/utils/hotspots/hide-hotspot-icon.js +0 -11
  67. package/dist/utils/hotspots/hide-hotspots-icons.js +0 -15
  68. package/dist/utils/hotspots/is-mouse-on-hotspot.js +0 -12
  69. package/dist/utils/hotspots/prepare-hotspots-positions.js +0 -22
  70. package/dist/utils/hotspots/set-current-slide.js +0 -21
  71. package/dist/utils/hotspots/toggle-popup-events.js +0 -19
  72. package/dist/utils/hotspots/update-hotspot-icon-position.js +0 -19
  73. package/dist/utils/hotspots/update-hotspots.js +0 -40
  74. package/dist/utils/image-src/generate-images-path.js +0 -33
  75. package/dist/utils/image-src/is-props-change-require-reload.js +0 -18
  76. package/dist/utils/index.js +0 -211
  77. package/dist/utils/load-images/images-from-folder/prepare-images-from-folder.js +0 -25
  78. package/dist/utils/load-images/images-from-list/prepare-images-from-list.js +0 -21
  79. package/dist/utils/load-images/lazyload/init-lazyload.js +0 -41
  80. package/dist/utils/load-images/lazyload/prepare-first-image/prepare-first-image-from-folder.js +0 -14
  81. package/dist/utils/load-images/lazyload/prepare-first-image/prepare-first-image-from-list.js +0 -20
  82. package/dist/utils/load-images/load-image-as-promise.js +0 -16
  83. package/dist/utils/load-images/load-images-relative-to-container-size.js +0 -19
  84. package/dist/utils/load-images/load-original-images.js +0 -44
  85. package/dist/utils/load-images/pad.js +0 -12
  86. package/dist/utils/load-images/preload-images.js +0 -28
  87. package/dist/utils/load-images/preload-original-images.js +0 -28
  88. package/dist/utils/magnify/get-current-original-image.js +0 -23
  89. package/dist/utils/magnify/get-cursor-position.js +0 -22
  90. package/dist/utils/magnify/magnify.js +0 -47
  91. package/dist/utils/magnify/move-magnifier.js +0 -39
  92. package/dist/utils/responsive/contain.js +0 -9
  93. package/dist/utils/responsive/fit.js +0 -29
  94. package/dist/utils/responsive/get-image-aspect-ratio.js +0 -31
  95. package/dist/utils/responsive/get-responsive-width-of-container.js +0 -11
  96. package/dist/utils/responsive/get-size-according-to-pixel-ratio.js +0 -15
  97. package/dist/utils/responsive/get-size-limit.js +0 -12
  98. package/dist/utils/spin-y/get-moving-direction.js +0 -18
  99. package/dist/utils/zoom/generate-zoom-in-steps.js +0 -18
  100. package/dist/utils/zoom/generate-zoom-out-steps.js +0 -18
  101. package/yarn-error.log +0 -101
@@ -1,78 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.setView360Icon = exports.isTrue = exports.get360ViewProps = exports.debounce = exports.attr = void 0;
7
- var _constants = require("./constants");
8
- var _this = void 0;
9
- //TODO [deprecated]: remove filename, amount in the upcoming versions
10
- var get360ViewProps = function get360ViewProps(image) {
11
- return {
12
- folder: attr(image, 'folder') || attr(image, 'data-folder') || '/',
13
- apiVersion: attr(image, 'api-version') || attr(image, 'data-api-version') || attr(image, 'apiVersion') || attr(image, 'data-apiVersion') || "v7",
14
- filenameX: attr(image, 'filename') || attr(image, 'data-filename') || attr(image, 'filename-x') || attr(image, 'data-filename-x') || 'image-{index}.jpg',
15
- filenameY: attr(image, 'filename-y') || attr(image, 'data-filename-y') || 'image-y-{index}.jpg',
16
- imageListX: attr(image, 'image-list-x') || attr(image, 'data-image-list-x') || null,
17
- imageListY: attr(image, 'image-list-y') || attr(image, 'data-image-list-y') || null,
18
- indexZeroBase: parseInt(attr(image, 'index-zero-base') || attr(image, 'data-index-zero-base') || 0, 10),
19
- amountX: parseInt(attr(image, 'amount') || attr(image, 'data-amount') || attr(image, 'amount-x') || attr(image, 'data-amount-x') || 36, 10),
20
- amountY: parseInt(attr(image, 'amount-y') || attr(image, 'data-amount-y') || 0, 10),
21
- speed: parseInt(attr(image, 'speed') || attr(image, 'data-speed') || 80, 10),
22
- dragSpeed: parseInt(attr(image, 'drag-speed') || attr(image, 'data-drag-speed') || 150, 10),
23
- keys: isTrue(image, 'keys'),
24
- keysReverse: isTrue(image, 'keys-reverse'),
25
- boxShadow: attr(image, 'box-shadow') || attr(image, 'data-box-shadow'),
26
- autoplay: isTrue(image, 'autoplay'),
27
- autoplayBehavior: attr(image, 'autoplay-behavior') || attr(image, 'data-autoplay-behavior') || _constants.AUTOPLAY_BEHAVIOR.SPIN_X,
28
- playOnce: isTrue(image, 'play-once'),
29
- autoplayReverse: isTrue(image, 'autoplay-reverse'),
30
- pointerZoom: parseFloat(attr(image, 'pointer-zoom') || attr(image, 'data-pointer-zoom') || 0, 10),
31
- bottomCircle: isTrue(image, 'bottom-circle'),
32
- disableDrag: isTrue(image, 'disable-drag'),
33
- fullscreen: isTrue(image, 'fullscreen') || isTrue(image, 'full-screen'),
34
- magnifier: (attr(image, 'magnifier') !== null || attr(image, 'data-magnifier') !== null) && parseFloat(attr(image, 'magnifier') || attr(image, 'data-magnifier'), 10),
35
- bottomCircleOffset: parseInt(attr(image, 'bottom-circle-offset') || attr(image, 'data-bottom-circle-offset') || 5, 10),
36
- ciToken: attr(image, 'responsive') || attr(image, 'data-responsive'),
37
- ciFilters: attr(image, 'filters') || attr(image, 'data-filters'),
38
- ciTransformation: attr(image, 'transformation') || attr(image, 'data-transformation'),
39
- lazyload: isTrue(image, 'lazyload'),
40
- lazySelector: attr(image, 'lazyload-selector') || attr(image, 'data-lazyload-selector') || 'lazyload',
41
- spinReverse: isTrue(image, 'spin-reverse'),
42
- controlReverse: isTrue(image, 'control-reverse'),
43
- stopAtEdges: isTrue(image, 'stop-at-edges'),
44
- hide360Logo: isTrue(image, 'hide-360-logo'),
45
- logoSrc: attr(image, 'logo-src') || 'https://scaleflex.cloudimg.io/v7/filerobot/js-cloudimage-360-view/360_view.svg',
46
- ratio: attr(image, 'ratio') || attr(image, 'data-ratio'),
47
- imageInfo: attr(image, 'info') || attr(image, 'data-info') || isTrue(image, 'info'),
48
- requestResponsiveImages: isTrue(image, 'request-responsive-images')
49
- };
50
- };
51
- exports.get360ViewProps = get360ViewProps;
52
- var isTrue = function isTrue(image, type) {
53
- var imgProp = attr(image, type);
54
- var imgDataProp = attr(image, "data-".concat(type));
55
- return imgProp !== null && imgProp !== 'false' || imgDataProp !== null && imgDataProp !== 'false';
56
- };
57
- exports.isTrue = isTrue;
58
- var attr = function attr(element, attribute) {
59
- return element.getAttribute(attribute);
60
- };
61
- exports.attr = attr;
62
- var setView360Icon = function setView360Icon(view360Icon, logoSrc) {
63
- view360Icon.style.background = "rgba(255,255,255,0.8) url('".concat(logoSrc, "') 50% 50% / contain no-repeat");
64
- };
65
- exports.setView360Icon = setView360Icon;
66
- var debounce = function debounce(func, timeout) {
67
- var timer;
68
- return function () {
69
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
70
- args[_key] = arguments[_key];
71
- }
72
- clearTimeout(timer);
73
- timer = setTimeout(function () {
74
- func.apply(_this, args);
75
- }, timeout);
76
- };
77
- };
78
- exports.debounce = debounce;
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.AUTOPLAY_BEHAVIOR = void 0;
7
- var AUTOPLAY_BEHAVIOR = {
8
- SPIN_X: 'spin-x',
9
- SPIN_Y: 'spin-y',
10
- SPIN_XY: 'spin-xy',
11
- SPIN_YX: 'spin-yx'
12
- };
13
- exports.AUTOPLAY_BEHAVIOR = AUTOPLAY_BEHAVIOR;
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.FALSY_VALUES = void 0;
7
- var FALSY_VALUES = [false, 0, null, undefined, 'false', '0', 'null', 'undefined'];
8
- exports.FALSY_VALUES = FALSY_VALUES;
@@ -1,39 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "AND_SYMBOL_REGEX", {
7
- enumerable: true,
8
- get: function get() {
9
- return _regex.AND_SYMBOL_REGEX;
10
- }
11
- });
12
- Object.defineProperty(exports, "AUTOPLAY_BEHAVIOR", {
13
- enumerable: true,
14
- get: function get() {
15
- return _autoPlayBehavior.AUTOPLAY_BEHAVIOR;
16
- }
17
- });
18
- Object.defineProperty(exports, "FALSY_VALUES", {
19
- enumerable: true,
20
- get: function get() {
21
- return _falsyValues.FALSY_VALUES;
22
- }
23
- });
24
- Object.defineProperty(exports, "ORGINAL_SIZE_REGEX", {
25
- enumerable: true,
26
- get: function get() {
27
- return _regex.ORGINAL_SIZE_REGEX;
28
- }
29
- });
30
- Object.defineProperty(exports, "ORIENTATIONS", {
31
- enumerable: true,
32
- get: function get() {
33
- return _orientations.ORIENTATIONS;
34
- }
35
- });
36
- var _autoPlayBehavior = require("./auto-play-behavior");
37
- var _falsyValues = require("./falsy-values");
38
- var _orientations = require("./orientations");
39
- var _regex = require("./regex");
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ORIENTATIONS = void 0;
7
- var ORIENTATIONS = {
8
- X: 'x-axis',
9
- Y: 'y-axis',
10
- CENTER: 'center'
11
- };
12
- exports.ORIENTATIONS = ORIENTATIONS;
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.PROPS_REQUIRE_RELOAD = void 0;
7
- var PROPS_REQUIRE_RELOAD = ['folder',
8
- //images source
9
- 'filenameX',
10
- //images source
11
- 'filenameY',
12
- //images source
13
- 'apiVersion',
14
- //images source
15
- 'imageListX',
16
- //images source
17
- 'imageListY',
18
- //images source
19
- 'indexZeroBase',
20
- //images source
21
- 'lazySelector',
22
- //images source
23
- 'keys',
24
- // events
25
- 'stopAtEdges',
26
- // events
27
- 'disableDrag',
28
- // events
29
- 'controlReverse',
30
- // events
31
- 'disableDrag' // events
32
- ];
33
- exports.PROPS_REQUIRE_RELOAD = PROPS_REQUIRE_RELOAD;
@@ -1,10 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ORGINAL_SIZE_REGEX = exports.AND_SYMBOL_REGEX = void 0;
7
- var ORGINAL_SIZE_REGEX = /width=\d+|w=\d+|h=\d+|&width=\d+|&w=\d+|&h=\d+|func=\w+|\?$/g;
8
- exports.ORGINAL_SIZE_REGEX = ORGINAL_SIZE_REGEX;
9
- var AND_SYMBOL_REGEX = /\?&/g;
10
- exports.AND_SYMBOL_REGEX = AND_SYMBOL_REGEX;
package/dist/index.js DELETED
@@ -1,102 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- require("core-js/features/array/for-each");
5
- require("core-js/features/array/filter");
6
- require("core-js/features/array/includes");
7
- var _ci = _interopRequireDefault(require("./ci360.service"));
8
- var _ci2 = require("./ci360.utils");
9
- function getContainerWithId(container) {
10
- var containerId = container.id;
11
- if (!containerId) {
12
- var uniqueId = Math.floor(Math.random() * 10000);
13
- var generatedContainerId = "cloudimage-360-view-".concat(uniqueId);
14
- container.id = generatedContainerId;
15
- }
16
- return container;
17
- }
18
- function init() {
19
- var viewers = [];
20
- var view360Array = document.querySelectorAll('.cloudimage-360:not(.initialized)');
21
- [].slice.call(view360Array).forEach(function (_container) {
22
- var container = getContainerWithId(_container);
23
- var isHotspotsEnabled = (0, _ci2.isTrue)(container, 'hotspots');
24
- if (!isHotspotsEnabled) {
25
- viewers.push(new _ci.default(container));
26
- }
27
- });
28
- window.CI360._viewers = viewers;
29
- }
30
- function destroy() {
31
- if (isNoViewers()) return;
32
- window.CI360._viewers.forEach(function (viewer) {
33
- viewer.destroy();
34
- });
35
- window.CI360._viewers = [];
36
- }
37
- function getActiveIndexByID(id, oriantation) {
38
- if (isNoViewers()) return;
39
- var currentViewer = window.CI360._viewers.filter(function (viewer) {
40
- return viewer.id === id;
41
- })[0];
42
- if (oriantation === 'y') {
43
- return currentViewer && currentViewer.activeImageY - 1;
44
- }
45
- return currentViewer && currentViewer.activeImageX - 1;
46
- }
47
- function add(id) {
48
- var view360Array = Array.from(document.querySelectorAll('.cloudimage-360:not(.initialized)'));
49
- if (view360Array.length && id) {
50
- var newViewContainer = view360Array.filter(function (viewer) {
51
- return viewer.id === id;
52
- })[0];
53
- newViewContainer && window.CI360._viewers.push(new _ci.default(newViewContainer));
54
- }
55
- }
56
- function update() {
57
- var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
58
- var forceUpdate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
59
- var hotspotConfigs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
60
- if (id) {
61
- var view = window.CI360._viewers.filter(function (viewer) {
62
- return viewer.id === id;
63
- })[0];
64
- if (hotspotConfigs) {
65
- var view360Array = document.querySelectorAll('.cloudimage-360');
66
- var _container2 = Array.from(view360Array).find(function (view) {
67
- return view.id === id;
68
- });
69
- _container2.setAttribute('data-hotspots', true);
70
- }
71
- view.updateView(forceUpdate, window.CI360._viewers, hotspotConfigs);
72
- } else {
73
- window.CI360._viewers.forEach(function (viewer) {
74
- viewer.updateView(forceUpdate, window.CI360._viewers);
75
- });
76
- }
77
- }
78
- function isNoViewers() {
79
- return !(window.CI360._viewers && window.CI360._viewers.length > 0);
80
- }
81
- function addHotspots(instanceId, config) {
82
- var view360Array = document.querySelectorAll('.cloudimage-360:not(.initialized)');
83
- var notInitializedContainer = Array.from(view360Array).find(function (view) {
84
- return view.id === instanceId;
85
- });
86
- if (notInitializedContainer) {
87
- container.setAttribute('data-hotspots', true);
88
- return window.CI360._viewers.push(new _ci.default(container, false, config));
89
- } else {
90
- update(instanceId, false, config);
91
- }
92
- }
93
- window.CI360 = window.CI360 || {};
94
- window.CI360.init = init;
95
- window.CI360.destroy = destroy;
96
- window.CI360.getActiveIndexByID = getActiveIndexByID;
97
- window.CI360.update = update;
98
- window.CI360.add = add;
99
- window.CI360.addHotspots = addHotspots;
100
- if (!window.CI360.notInitOnLoad) {
101
- init();
102
- }
@@ -1,222 +0,0 @@
1
- .cloudimage-360-hotspot-link-icon {
2
- width: 42px;
3
- height: 42px;
4
- background: rgba(12, 109, 199, 0.2);
5
- border: 1px solid rgba(255, 255, 255, 0.2);
6
- border-radius: 50%;
7
- box-sizing: border-box;
8
- transition: opacity 600ms ease-in-out;
9
- cursor: auto;
10
- }
11
-
12
- .cloudimage-360-hotspot-link-icon::before {
13
- content: '';
14
- position: absolute;
15
- width: 16px;
16
- height: 16px;
17
- background-image: url('https://scaleflex.cloudimg.io/v7/plugins/js-cloudimage-360-view/assets/img/link-hotspot.svg');
18
- background-color: #0C6DC7;
19
- background-repeat: no-repeat;
20
- background-size: 9px;
21
- background-position: center;
22
- left: 50%;
23
- top: 50%;
24
- transform: translate(-50%, -50%);
25
- box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.25);
26
- border-radius: 50%;
27
- animation: pulse 2s infinite;
28
- cursor: auto;
29
- }
30
-
31
- .cloudimage-360-hotspot-custom-icon {
32
- width: 42px;
33
- height: 42px;
34
- background: #76AD0133;
35
- border: 1px solid #FFFFFF33;
36
- border-radius: 50%;
37
- box-sizing: border-box;
38
- transition: opacity 300ms ease-in-out;
39
- cursor: auto;
40
- }
41
-
42
- .cloudimage-360-hotspot-custom-icon::before {
43
- content: '';
44
- position: absolute;
45
- width: 16px;
46
- height: 16px;
47
- background-image: url('https://scaleflex.cloudimg.io/v7/plugins/js-cloudimage-360-view/assets/img/plus.svg');
48
- background-color: #76AD01;
49
- background-repeat: no-repeat;
50
- background-size: 9px;
51
- background-position: center;
52
- left: 50%;
53
- top: 50%;
54
- transform: translate(-50%, -50%);
55
- box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.25);
56
- border-radius: 50%;
57
- animation: pulse 2s infinite;
58
- cursor: auto;
59
- }
60
-
61
- .cloudimage-360-hotspot-popup {
62
- visibility: hidden;
63
- opacity: 0;
64
- background-color: #FFFFFF;
65
- padding: 6px;
66
- border-radius: 2px;
67
- box-shadow: 0px 4px 4px 0px #00000040;
68
- z-index: 999;
69
- }
70
-
71
- .cloudimage-360-hotspot-popup[data-show] {
72
- visibility: visible;
73
- opacity: 1;
74
- }
75
-
76
- .cloudimage-360-popup-arrow,
77
- .cloudimage-360-popup-arrow::before {
78
- position: absolute;
79
- width: 8px;
80
- height: 8px;
81
- background: inherit;
82
- cursor: 'auto';
83
- }
84
-
85
- .cloudimage-360-popup-arrow {
86
- visibility: hidden;
87
- }
88
-
89
- .cloudimage-360-popup-arrow::before {
90
- visibility: visible;
91
- content: '';
92
- transform: rotate(45deg);
93
- }
94
-
95
- .cloudimage-360-hotspot-popup[data-popper-placement^='top']
96
- > .cloudimage-360-popup-arrow {
97
- bottom: -4px;
98
- }
99
-
100
- .cloudimage-360-hotspot-popup[data-popper-placement^='bottom']
101
- > .cloudimage-360-popup-arrow {
102
- top: -4px;
103
- }
104
-
105
- .cloudimage-360-hotspot-popup[data-popper-placement^='left']
106
- > .cloudimage-360-popup-arrow {
107
- right: -4px;
108
- }
109
-
110
- .cloudimage-360-hotspot-popup[data-popper-placement^='right']
111
- > .cloudimage-360-popup-arrow {
112
- left: -4px;
113
- }
114
-
115
- .cloudimage-360-modal-wrapper {
116
- max-width: 222px;
117
- }
118
-
119
- .cloudimage-360-images-carousel-wrapper {
120
- margin: 0 auto;
121
- }
122
-
123
- .cloudimage-360-images-carousel {
124
- background-color: #f5f4f4;
125
- border-radius: 2px;
126
- }
127
-
128
- .cloudimage-360-images-carousel .cloudimage-360-carousel-image {
129
- display: none;
130
- object-fit: contain;
131
- min-height: 187px;
132
- max-width: 100%;
133
- max-height: 100%;
134
- }
135
-
136
- .cloudimage-360-images-carousel .cloudimage-360-carousel-image.active-image {
137
- display: block;
138
- animation-name: fade-active-image;
139
- animation-duration: 1.5s;
140
- }
141
-
142
- .cloudimage-360-carousel-dots {
143
- display: flex;
144
- column-gap: 6px;
145
- justify-content: center;
146
- flex-wrap: wrap;
147
- margin: 5px auto;
148
- row-gap: 3px;
149
- padding: 0 6px;
150
- width: 50%;
151
- }
152
-
153
- .cloudimage-360-carousel-dot {
154
- width: 6px;
155
- height: 6px;
156
- background-color: #C9D0DE;
157
- border-radius: 50%;
158
- cursor: pointer;
159
- transition: background-color 0.6s ease;
160
- border: 0;
161
- padding: 0;
162
- }
163
-
164
- .cloudimage-360-carousel-dot.active-dot {
165
- background-color: #76AD01;
166
- }
167
-
168
- .cloudimage-360-carousel-dot:focus,
169
- .cloudimage-360-carousel-dot:focus-visible {
170
- border: 0;
171
- outline: 0;
172
- }
173
-
174
- .cloudimage-360-modal-title {
175
- font-size: 12px;
176
- font-weight: 700;
177
- line-height: 16px;
178
- margin: 4px 0;
179
- }
180
-
181
- .cloudimage-360-modal-description {
182
- font-size: 10px;
183
- font-weight: 400;
184
- line-height: 16px;
185
- margin: 4px 0;
186
- }
187
-
188
- .cloudimage-360-modal-more-details {
189
- color: #76AD01;
190
- background-color: #ECFAE6;
191
- font-size: 10px;
192
- line-height: 16px;
193
- font-weight: 400;
194
- padding: 4px 8px;
195
- transition: background-color 200ms ease-in-out;
196
- border-radius: 2px;
197
- text-decoration: none;
198
- }
199
-
200
- .cloudimage-360-modal-more-details:hover {
201
- color: #76AD01;
202
- background-color: #e1f5d8;
203
- }
204
-
205
- @keyframes pulse {
206
- 0% {
207
- box-shadow: 0 0 0 0 rgba(99, 99, 99, 0.7);
208
- }
209
-
210
- 70% {
211
- box-shadow: 0 0 0 10px rgba(99, 99, 99, 0);
212
- }
213
-
214
- 100% {
215
- box-shadow: 0 0 0 0 rgba(99, 99, 99, 0);
216
- }
217
- }
218
-
219
- @keyframes fade-active-image {
220
- from { opacity: 0.7 }
221
- to { opacity: 1 }
222
- }