js-cloudimage-360-view 3.0.0-beta.2 → 3.0.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 (95) hide show
  1. package/CHANGELOG.md +104 -0
  2. package/LICENSE +13 -1
  3. package/README.md +404 -145
  4. package/dist/ci360.service.js +878 -1163
  5. package/dist/ci360.utils.js +28 -204
  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 +116 -7
  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 -8
  95. package/dist/ci360.constants.js +0 -36
package/CHANGELOG.md CHANGED
@@ -25,6 +25,110 @@ Types of changes:
25
25
  - ...
26
26
 
27
27
  -------------
28
+ ## 3.0.2 - 2022-04-05
29
+ ### Changed
30
+ - documentation
31
+
32
+ ## 3.0.1 - 2022-03-28
33
+ ### Changed
34
+ - hotspots icons
35
+
36
+ ### Fixed
37
+ - loader is hidden if hide-360-logo is active
38
+
39
+ ## 3.0.0 - 2022-03-25
40
+ ### Added
41
+ - possibility to add makers or hotspots to each image
42
+ - possibility add views after init the plugin
43
+ - possibility to update views
44
+ ### Fixed
45
+ - hide 360 logo after play once
46
+
47
+ ## 2.7.12 - 2022-03-19
48
+ ### Changed
49
+ - hotspots init method
50
+
51
+ ## 2.7.11 - 2022-03-17
52
+ ### Fixed
53
+ - canvas aspect ratio
54
+ - initialization of lazyloading
55
+
56
+ ## 2.7.10 - 2022-03-01
57
+ ### Fixed
58
+ - image quality in fullscreen
59
+ - resized image loading
60
+
61
+ ## 2.7.9 - 2022-02-27
62
+ ### Fixed
63
+ - typo in documentation
64
+
65
+ ## 2.7.8 - 2022-02-27
66
+ ### Added
67
+ - possibility to add new view to CI360 views
68
+ ### Fixed
69
+ - re-render method
70
+
71
+ ## 2.7.7 - 2022-02-24
72
+ ### Fixed
73
+ - container width on mobile
74
+ - re-render method
75
+
76
+ ## 2.7.6 - 2022-02-20
77
+ ### Fixed
78
+ - drag speed
79
+ - responsive canvas width and height
80
+
81
+ ## 2.7.5 - 2022-02-08
82
+ ### Added
83
+ - update method to re-render or re-init the plugin
84
+ ### Fixed
85
+ - drag speed on mobile
86
+ - error when drag speed is too high
87
+ - error in dependencies
88
+
89
+ ## 2.7.4 - 2022-01-26
90
+ ### Fixed
91
+ - typo in documentation file
92
+ ## 2.7.3 - 2022-01-26
93
+ ### Fixed
94
+ - typo in documentation file
95
+
96
+ ## 2.7.2 - 2022-01-26
97
+ ### Added
98
+ - possibility to fit container relative to its width or height and maintain the aspect ratio
99
+ - possibility to reverse the directions of the keys on the keyboard
100
+ ### Fixed
101
+ - pointer zoom behavior
102
+ - error while loading images from lists
103
+ - get the active image index
104
+
105
+ ## 2.7.1 - 2021-11-06
106
+ ### Added
107
+ - click to reset mouse zoom
108
+ - show 360 logo after play once
109
+ ### Fixed
110
+ - set click as default value to start zoom
111
+ - Sass error
112
+ ### Changed
113
+ - pointer zoom behavior
114
+
115
+ ## 2.7.0 - 2021-11-04
116
+ ### Added
117
+ - play once then stop auto-play
118
+ - spin in the y-direction
119
+ - zoom with mouse wheel
120
+ - zoom with fingers on mobile
121
+ - possibility to change icons styles
122
+
123
+ ### Fixed
124
+ - hide scrollbar in fullscreen mode
125
+ - auto-play not working on mobile
126
+ - error on init the plugin inside a modal
127
+ - removed chrome warning about non-passive events
128
+ - images are not resized when window size changes
129
+
130
+ ### Changed
131
+ - migrate CDN URL to V7
28
132
 
29
133
  ## 2.6.0 - 2020-09-03
30
134
 
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2019 scaleflex
3
+ Copyright (c) 2022 SCALEFLEX SAS
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -19,3 +19,15 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
+
23
+ ---------------------------------------------------------------------------------
24
+
25
+ Publicity
26
+
27
+ You agree that Scaleflex may reference and use Your name, logos and trademarks in Scaleflex
28
+ marketing and promotional materials, including, but not limited to the Scaleflex Websites, solely for
29
+ purposes of identifying You as a customer of Scaleflex. Otherwise, neither party may use the trade
30
+ names, trademarks, service marks, or logos of the other party without the express written consent of
31
+ the other party.
32
+
33
+