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
package/CHANGELOG.md CHANGED
@@ -25,6 +25,106 @@ Types of changes:
25
25
  - ...
26
26
 
27
27
  -------------
28
+ ## 3.0.1 - 2022-03-28
29
+ ### Changed
30
+ - hotspots icons
31
+
32
+ ### Fixed
33
+ - loader is hidden if hide-360-logo is active
34
+
35
+ ## 3.0.0 - 2022-03-25
36
+ ### Added
37
+ - possibility to add makers or hotspots to each image
38
+ - possibility add views after init the plugin
39
+ - possibility to update views
40
+ ### Fixed
41
+ - hide 360 logo after play once
42
+
43
+ ## 2.7.12 - 2022-03-19
44
+ ### Changed
45
+ - hotspots init method
46
+
47
+ ## 2.7.11 - 2022-03-17
48
+ ### Fixed
49
+ - canvas aspect ratio
50
+ - initialization of lazyloading
51
+
52
+ ## 2.7.10 - 2022-03-01
53
+ ### Fixed
54
+ - image quality in fullscreen
55
+ - resized image loading
56
+
57
+ ## 2.7.9 - 2022-02-27
58
+ ### Fixed
59
+ - typo in documentation
60
+
61
+ ## 2.7.8 - 2022-02-27
62
+ ### Added
63
+ - possibility to add new view to CI360 views
64
+ ### Fixed
65
+ - re-render method
66
+
67
+ ## 2.7.7 - 2022-02-24
68
+ ### Fixed
69
+ - container width on mobile
70
+ - re-render method
71
+
72
+ ## 2.7.6 - 2022-02-20
73
+ ### Fixed
74
+ - drag speed
75
+ - responsive canvas width and height
76
+
77
+ ## 2.7.5 - 2022-02-08
78
+ ### Added
79
+ - update method to re-render or re-init the plugin
80
+ ### Fixed
81
+ - drag speed on mobile
82
+ - error when drag speed is too high
83
+ - error in dependencies
84
+
85
+ ## 2.7.4 - 2022-01-26
86
+ ### Fixed
87
+ - typo in documentation file
88
+ ## 2.7.3 - 2022-01-26
89
+ ### Fixed
90
+ - typo in documentation file
91
+
92
+ ## 2.7.2 - 2022-01-26
93
+ ### Added
94
+ - possibility to fit container relative to its width or height and maintain the aspect ratio
95
+ - possibility to reverse the directions of the keys on the keyboard
96
+ ### Fixed
97
+ - pointer zoom behavior
98
+ - error while loading images from lists
99
+ - get the active image index
100
+
101
+ ## 2.7.1 - 2021-11-06
102
+ ### Added
103
+ - click to reset mouse zoom
104
+ - show 360 logo after play once
105
+ ### Fixed
106
+ - set click as default value to start zoom
107
+ - Sass error
108
+ ### Changed
109
+ - pointer zoom behavior
110
+
111
+ ## 2.7.0 - 2021-11-04
112
+ ### Added
113
+ - play once then stop auto-play
114
+ - spin in the y-direction
115
+ - zoom with mouse wheel
116
+ - zoom with fingers on mobile
117
+ - possibility to change icons styles
118
+
119
+ ### Fixed
120
+ - hide scrollbar in fullscreen mode
121
+ - auto-play not working on mobile
122
+ - error on init the plugin inside a modal
123
+ - removed chrome warning about non-passive events
124
+ - images are not resized when window size changes
125
+
126
+ ### Changed
127
+ - migrate CDN URL to V7
28
128
 
29
129
  ## 2.6.0 - 2020-09-03
30
130
 
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
+