js-cloudimage-360-view 3.0.0-beta.2 → 3.0.0
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.
- package/CHANGELOG.md +93 -0
- package/LICENSE +13 -1
- package/README.md +361 -127
- package/dist/ci360.service.js +882 -1157
- package/dist/ci360.utils.js +28 -204
- package/dist/constants/auto-play-behavior.js +13 -0
- package/dist/constants/falsy-values.js +8 -0
- package/dist/constants/index.js +43 -0
- package/dist/constants/orientations.js +12 -0
- package/dist/constants/props-require-reload.js +21 -0
- package/dist/constants/regex.js +10 -0
- package/dist/index.js +73 -12
- package/dist/static/css/hotspots.css +229 -0
- package/dist/static/css/style.css +113 -4
- package/dist/utils/auto-play/get-speed-factor.js +14 -0
- package/dist/utils/auto-play/is-completed-one-cycle.js +32 -0
- package/dist/utils/auto-play/loop.js +67 -0
- package/dist/utils/class-names/add-class.js +18 -0
- package/dist/utils/class-names/remove-class.js +16 -0
- package/dist/utils/container-elements/apply-styles-to-container.js +16 -0
- package/dist/utils/container-elements/create-360-view-circle-icon.js +16 -0
- package/dist/utils/container-elements/create-360-view-icon.js +15 -0
- package/dist/utils/container-elements/create-box-shadow.js +16 -0
- package/dist/utils/container-elements/create-canvas.js +16 -0
- package/dist/utils/container-elements/create-close-fullscreen-icon.js +14 -0
- package/dist/utils/container-elements/create-fullscreen-icon.js +14 -0
- package/dist/utils/container-elements/create-fullscreen-modal.js +20 -0
- package/dist/utils/container-elements/create-icons-container.js +15 -0
- package/dist/utils/container-elements/create-inner-box.js +15 -0
- package/dist/utils/container-elements/create-loader.js +15 -0
- package/dist/utils/container-elements/create-magnifier-icon.js +14 -0
- package/dist/utils/container-elements/index.js +109 -0
- package/dist/utils/container-elements/remove-child-from-parent.js +16 -0
- package/dist/utils/controls/get-item-skipped.js +13 -0
- package/dist/utils/controls/init-controls.js +77 -0
- package/dist/utils/hotspots/attach-events/hide-popup.js +15 -0
- package/dist/utils/hotspots/attach-events/show-popup.js +14 -0
- package/dist/utils/hotspots/configs-error-handler.js +27 -0
- package/dist/utils/hotspots/create-popper-instace.js +32 -0
- package/dist/utils/hotspots/elements/create-carousel-dot.js +26 -0
- package/dist/utils/hotspots/elements/create-carousel-image.js +22 -0
- package/dist/utils/hotspots/elements/create-hotspot-icon.js +66 -0
- package/dist/utils/hotspots/elements/create-hotspot-popup-link.js +23 -0
- package/dist/utils/hotspots/elements/create-hotspots.js +25 -0
- package/dist/utils/hotspots/elements/create-images-carousel.js +27 -0
- package/dist/utils/hotspots/elements/create-modal-description.js +15 -0
- package/dist/utils/hotspots/elements/create-modal-title.js +15 -0
- package/dist/utils/hotspots/elements/create-model-elements.js +66 -0
- package/dist/utils/hotspots/elements/create-popup-arrow.js +16 -0
- package/dist/utils/hotspots/elements/create-popup.js +67 -0
- package/dist/utils/hotspots/elements/create-read-more-btn.js +17 -0
- package/dist/utils/hotspots/fill-empty-coord-with-previous.js +26 -0
- package/dist/utils/hotspots/generate-hotspots-configs.js +58 -0
- package/dist/utils/hotspots/generate-popup-config.js +29 -0
- package/dist/utils/hotspots/get-hotspot-icon.js +14 -0
- package/dist/utils/hotspots/get-hotspot-orientation.js +21 -0
- package/dist/utils/hotspots/get-hotspot-popup-node.js +14 -0
- package/dist/utils/hotspots/get-popup-node.js +14 -0
- package/dist/utils/hotspots/hide-hotspot-icon.js +13 -0
- package/dist/utils/hotspots/hide-hotspots-icons.js +18 -0
- package/dist/utils/hotspots/is-mouse-on-hotspot.js +14 -0
- package/dist/utils/hotspots/prepare-hotspots-positions.js +28 -0
- package/dist/utils/hotspots/set-current-slide.js +23 -0
- package/dist/utils/hotspots/toggle-popup-events.js +23 -0
- package/dist/utils/hotspots/update-hotspot-icon-position.js +21 -0
- package/dist/utils/hotspots/update-hotspots.js +48 -0
- package/dist/utils/image-src/generate-images-path.js +40 -0
- package/dist/utils/image-src/is-props-change-require-reload.js +23 -0
- package/dist/utils/index.js +237 -0
- package/dist/utils/load-images/images-from-folder/prepare-images-from-folder.js +34 -0
- package/dist/utils/load-images/images-from-list/prepare-images-from-list.js +35 -0
- package/dist/utils/load-images/lazyload/init-lazyload.js +49 -0
- package/dist/utils/load-images/lazyload/prepare-first-image/prepare-first-image-from-folder.js +18 -0
- package/dist/utils/load-images/lazyload/prepare-first-image/prepare-first-image-from-list.js +29 -0
- package/dist/utils/load-images/load-image-as-promise.js +54 -0
- package/dist/utils/load-images/load-images-relative-to-container-size.js +58 -0
- package/dist/utils/load-images/load-original-images.js +58 -0
- package/dist/utils/load-images/pad.js +14 -0
- package/dist/utils/load-images/preload-images.js +35 -0
- package/dist/utils/load-images/preload-original-images.js +35 -0
- package/dist/utils/magnify/get-current-original-image.js +29 -0
- package/dist/utils/magnify/get-cursor-position.js +24 -0
- package/dist/utils/magnify/magnify.js +54 -0
- package/dist/utils/magnify/move-magnifier.js +47 -0
- package/dist/utils/responsive/contain.js +11 -0
- package/dist/utils/responsive/fit.js +33 -0
- package/dist/utils/responsive/get-image-aspect-ratio.js +39 -0
- package/dist/utils/responsive/get-responsive-width-of-container.js +14 -0
- package/dist/utils/responsive/get-size-according-to-pixel-ratio.js +17 -0
- package/dist/utils/responsive/get-size-limit.js +14 -0
- package/dist/utils/spin-y/get-moving-direction.js +21 -0
- package/dist/utils/zoom/generate-zoom-in-steps.js +20 -0
- package/dist/utils/zoom/generate-zoom-out-steps.js +20 -0
- package/package.json +13 -8
- package/dist/ci360.constants.js +0 -36
package/CHANGELOG.md
CHANGED
|
@@ -25,6 +25,99 @@ Types of changes:
|
|
|
25
25
|
- ...
|
|
26
26
|
|
|
27
27
|
-------------
|
|
28
|
+
## 3.0.0 - 2022-03-25
|
|
29
|
+
### Added
|
|
30
|
+
- possiblity to add makers or hotspots to each image
|
|
31
|
+
- possiblity add views after init the plugin
|
|
32
|
+
- possiblity to update views
|
|
33
|
+
### Fixed
|
|
34
|
+
- hide 360 logo after play once
|
|
35
|
+
|
|
36
|
+
## 2.7.12 - 2022-03-19
|
|
37
|
+
### Changed
|
|
38
|
+
- hotspots init method
|
|
39
|
+
|
|
40
|
+
## 2.7.11 - 2022-03-17
|
|
41
|
+
### Fixed
|
|
42
|
+
- canvas aspect ratio
|
|
43
|
+
- initialization of lazyloading
|
|
44
|
+
|
|
45
|
+
## 2.7.10 - 2022-03-01
|
|
46
|
+
### Fixed
|
|
47
|
+
- image quality in fullscreen
|
|
48
|
+
- resized image loading
|
|
49
|
+
|
|
50
|
+
## 2.7.9 - 2022-02-27
|
|
51
|
+
### Fixed
|
|
52
|
+
- typo in documentation
|
|
53
|
+
|
|
54
|
+
## 2.7.8 - 2022-02-27
|
|
55
|
+
### Added
|
|
56
|
+
- possibility to add new view to CI360 views
|
|
57
|
+
### Fixed
|
|
58
|
+
- re-render method
|
|
59
|
+
|
|
60
|
+
## 2.7.7 - 2022-02-24
|
|
61
|
+
### Fixed
|
|
62
|
+
- container width on mobile
|
|
63
|
+
- re-render method
|
|
64
|
+
|
|
65
|
+
## 2.7.6 - 2022-02-20
|
|
66
|
+
### Fixed
|
|
67
|
+
- drag speed
|
|
68
|
+
- responsive canvas width and height
|
|
69
|
+
|
|
70
|
+
## 2.7.5 - 2022-02-08
|
|
71
|
+
### Added
|
|
72
|
+
- update method to re-render or re-init the plugin
|
|
73
|
+
### Fixed
|
|
74
|
+
- drag speed on mobile
|
|
75
|
+
- error when drag speed is too high
|
|
76
|
+
- error in dependencies
|
|
77
|
+
|
|
78
|
+
## 2.7.4 - 2022-01-26
|
|
79
|
+
### Fixed
|
|
80
|
+
- typo in documentation file
|
|
81
|
+
## 2.7.3 - 2022-01-26
|
|
82
|
+
### Fixed
|
|
83
|
+
- typo in documentation file
|
|
84
|
+
|
|
85
|
+
## 2.7.2 - 2022-01-26
|
|
86
|
+
### Added
|
|
87
|
+
- possibility to fit container relative to its width or height and maintain the aspect ratio
|
|
88
|
+
- possibility to reverse the directions of the keys on the keyboard
|
|
89
|
+
### Fixed
|
|
90
|
+
- pointer zoom behavior
|
|
91
|
+
- error while loading images from lists
|
|
92
|
+
- get the active image index
|
|
93
|
+
|
|
94
|
+
## 2.7.1 - 2021-11-06
|
|
95
|
+
### Added
|
|
96
|
+
- click to reset mouse zoom
|
|
97
|
+
- show 360 logo after play once
|
|
98
|
+
### Fixed
|
|
99
|
+
- set click as default value to start zoom
|
|
100
|
+
- Sass error
|
|
101
|
+
### Changed
|
|
102
|
+
- pointer zoom behavior
|
|
103
|
+
|
|
104
|
+
## 2.7.0 - 2021-11-04
|
|
105
|
+
### Added
|
|
106
|
+
- play once then stop auto-play
|
|
107
|
+
- spin in the y-direction
|
|
108
|
+
- zoom with mouse wheel
|
|
109
|
+
- zoom with fingers on mobile
|
|
110
|
+
- possibility to change icons styles
|
|
111
|
+
|
|
112
|
+
### Fixed
|
|
113
|
+
- hide scrollbar in fullscreen mode
|
|
114
|
+
- auto-play not working on mobile
|
|
115
|
+
- error on init the plugin inside a modal
|
|
116
|
+
- removed chrome warning about non-passive events
|
|
117
|
+
- images are not resized when window size changes
|
|
118
|
+
|
|
119
|
+
### Changed
|
|
120
|
+
- migrate CDN URL to V7
|
|
28
121
|
|
|
29
122
|
## 2.6.0 - 2020-09-03
|
|
30
123
|
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
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
|
+
|