Skip to content

Refactor fix bugs #171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
4a589c0
Refactored existing code to enhance readability, maintainability, and…
Oct 16, 2024
98e28f8
feat: Add refactored Pointer zoom, Magnifier and fullScreen
Oct 17, 2024
ed17c6c
feat: Add offscreen canvas
Oct 24, 2024
0f35944
fix: SpinY images
Oct 24, 2024
f97e212
feat: load images from list
Oct 24, 2024
82ad8bf
refactor: Remove unused files
Oct 25, 2024
5d678db
feat: Init instance in a lazy mode
Oct 25, 2024
cf70bb3
feat: new hotspot implementation
Oct 27, 2024
ff77664
fix: Hotspots instance
Oct 28, 2024
b35a832
improvement: Hide hotspots on pointer zoom
Oct 28, 2024
e2b5a1e
feat: Add onclick for hotspot element
Oct 28, 2024
78fd01b
fix: Demo
Oct 28, 2024
58a9031
feat: Request higher quality image on magnifier open
Oct 28, 2024
6239bf8
improvements: Icons fullscreen, magnifier and closeFullscreen
Oct 28, 2024
b9a1409
improvement: Demo styles
Oct 28, 2024
7eabfbd
fix: Lazy loading and deprecate lazy selector
Oct 28, 2024
0aa9fce
fix: Hide hotspots in fullscreen view
Oct 28, 2024
aacc737
improvement: Hotspot position on resize
Oct 28, 2024
4e05400
improvement: lazy loading and image placeholder
Oct 28, 2024
9cad8c5
improvement: demo page
Oct 28, 2024
42e4f1a
improvement: demo page
Oct 28, 2024
ad6eb8c
improvement: Remove deprecated properties
Oct 29, 2024
0a784c0
chore: Update docs and README.md
Oct 29, 2024
59cb7b8
fix Types and declaration
Oct 29, 2024
5c2d406
fix: Build and demo
Oct 29, 2024
645fbc2
chore: Added changelog
Oct 29, 2024
92a57a7
chore: Added changelog
Oct 29, 2024
30bba2c
chore: Update docs and release v4.0.0-beta
Oct 29, 2024
0ee760e
fix: Demo page and control by keys
Oct 30, 2024
f85dc12
chore: Fix build
Oct 30, 2024
a5b56f0
chore: Release v4.0.0
Oct 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,15 @@
"@babel/preset-env",
{
"targets": {
"browsers": [
"last 2 versions",
"ie 11"
]
"browsers": ["last 2 versions", "ie 11"]
}
}
]
],
"plugins": [
"array-includes",
"@babel/plugin-transform-runtime"
],
"plugins": ["array-includes"],
"env": {
"production": {
"presets": [
"minify"
]
"presets": ["minify"]
}
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
.idea
/.idea
dist
demo-dist
build
npm-debug.log*
yarn-debug.log*
Expand Down
49 changes: 42 additions & 7 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,43 @@
# .npmignore
src
examples
config
build
.babelrc
.gitignore
.idea

# Ignore source files
/src
/demo

# Ignore configuration files and build artifacts
/config
/bin
/build
/.babelrc
/.gitignore
/eslint.config.mjs
/vite-demo.config.js
/vite.config.js

# Ignore local environment files
/.env
/.env.local
/.env.development
/.env.production

# Ignore test files and directories
/tests
/test-results
/coverage

# Ignore documentation
/docs
/*.md

# Ignore IDE-specific files
/.idea
/.vscode

# Ignore npm-debug and other log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Ignore any other files you don't want to publish
.DS_Store
Thumbs.db
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"tabWidth": 2,
"useTabs": false,
"printWidth": 110,
"arrowParens": "always"
}
105 changes: 102 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

Types of changes:

- `Added` for new features.
- `Changed` for changes in existing functionality.
- `Deprecated` for soon-to-be removed features.
Expand All @@ -17,159 +19,256 @@ Types of changes:
> If we have some "Breaking changes" we can mark it in message by `**BREAKING**` preffix, like:
> `- **BREAKING**: Some message`

-------------
---

## TODOs

> Todo list for future

- ...

-------------
---

## 4.0.0 - 2024-10-29

### Breaking Changes

This release introduces several breaking changes, with deprecated properties and improved functionalities for performance and configurability.

### Deprecated

The following properties and functionalities have been deprecated:

- **Configuration Properties**: `boxShadow`, `lazySelector`, `hide360Logo`, `logoSrc`, `ratio`, `imageInfo`, and `requestResponsiveImages`.
- **Hotspot Properties**: `title`, `url`, `newTab`, `description`, `moreDetailsUrl`, `moreDetailsTitle`, `popupSelector`, `open`, `arrow`, `offset`, `placement`.
- **Control Buttons**: Control buttons have been removed from this version.

### Added

- **360 Canvas Offscreen**: The 360 canvas now operates offscreen, significantly improving performance.
- **Configurable Hotspots**: Hotspots now offer greater customization options.
- **Instance Selection by ID**: Instances can now be selected using their IDs.
- **Lazy Initialization**: Instances can be initialized programmatically, allowing for delayed loading as needed.
- **Independent Y-Axis Spin**: The Y-axis can now spin independently of the X-axis.

### Fixed

- **Lazy Loading**: Enhanced lazy loading functionality.
- **Pointer Zoom**: Improved zoom control with pointer interactions.
- **Drag Speed**: Adjusted drag speed for smoother user control.
- **Autoplay Speed**: Optimized autoplay speed settings.
- **Y-Axis Spin Behavior**: Refined Y-axis spin behavior for smoother operation.
- **Image Loading Speed**: Faster image loading, now performed asynchronously.
- **Magnifier**: Improved the quality of the magnified image.


## 3.2.0 - 2023-09-25

### Added

- Possibility to add hotspots dynamically

## 3.1.1 - 2023-04-19

### Fixed

- Remove CVE vulnerabilities

## 3.1.0 - 2023-04-10

### Added

- possibility to enable/disable the request of new image on resize using `data-request-responsive-images`

### Fixed

- Page scroll, even spin-y is not active

## 3.0.4 - 2022-10-19

### Fixed

- Hotspot icons width

## 3.0.3 - 2022-05-04

### Fixed

- Error on loading original images from image list

## 3.0.2 - 2022-05-04

### Changed

- documentation

## 3.0.1 - 2022-03-28

### Changed

- hotspots icons

### Fixed

- loader is hidden if hide-360-logo is active

## 3.0.0 - 2022-03-25

### Added

- possibility to add makers or hotspots to each image
- possibility add views after init the plugin
- possibility to update views

### Fixed

- hide 360 logo after play once

## 2.7.12 - 2022-03-19

### Changed

- hotspots init method

## 2.7.11 - 2022-03-17

### Fixed

- canvas aspect ratio
- initialization of lazyloading

## 2.7.10 - 2022-03-01

### Fixed

- image quality in fullscreen
- resized image loading

## 2.7.9 - 2022-02-27

### Fixed

- typo in documentation

## 2.7.8 - 2022-02-27

### Added

- possibility to add new view to CI360 views

### Fixed

- re-render method

## 2.7.7 - 2022-02-24

### Fixed

- container width on mobile
- re-render method

## 2.7.6 - 2022-02-20

### Fixed

- drag speed
- responsive canvas width and height

## 2.7.5 - 2022-02-08

### Added

- update method to re-render or re-init the plugin

### Fixed

- drag speed on mobile
- error when drag speed is too high
- error in dependencies

## 2.7.4 - 2022-01-26

### Fixed

- typo in documentation file

## 2.7.3 - 2022-01-26

### Fixed

- typo in documentation file

## 2.7.2 - 2022-01-26

### Added

- possibility to fit container relative to its width or height and maintain the aspect ratio
- possibility to reverse the directions of the keys on the keyboard

### Fixed

- pointer zoom behavior
- error while loading images from lists
- get the active image index

## 2.7.1 - 2021-11-06

### Added

- click to reset mouse zoom
- show 360 logo after play once

### Fixed

- set click as default value to start zoom
- Sass error

### Changed

- pointer zoom behavior

## 2.7.0 - 2021-11-04

### Added

- play once then stop auto-play
- spin in the y-direction
- zoom with mouse wheel
- zoom with fingers on mobile
- possibility to change icons styles

### Fixed

- hide scrollbar in fullscreen mode
- auto-play not working on mobile
- error on init the plugin inside a modal
- removed chrome warning about non-passive events
- images are not resized when window size changes

### Changed

- migrate CDN URL to V7

## 2.6.0 - 2020-09-03

### Feat

- add ability to specify custom 360 view logo

## 2.5.0 - 2020-07-05

### Feat

- possibility to hide 360 view icon

## 2.4.1 - 2020-04-11

### Fixed
- initialize first image using data-image-list #33

- initialize first image using data-image-list #33

## 2.4.0 - 2020-04-09

### Fixed

- problem with first preview image is random #28, #29
Loading