Skip to content

Commit

Permalink
docs: fix demo for zoom image hover 💞 (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
willnguyen1312 authored Mar 27, 2024
1 parent e226e32 commit a067c9b
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 18 deletions.
3 changes: 2 additions & 1 deletion packages/angular/projects/angular/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

### Patch Changes

- Updated dependencies [[`ec4a37b`](https://github.com/willnguyen1312/zoom-image/commit/ec4a37b2e83e19a7bca3f2cde747bafd71d9d046)]:
- Updated dependencies
[[`ec4a37b`](https://github.com/willnguyen1312/zoom-image/commit/ec4a37b2e83e19a7bca3f2cde747bafd71d9d046)]:
- @zoom-image/core@0.33.2

## 0.2.7
Expand Down
5 changes: 4 additions & 1 deletion packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

### Patch Changes

- [#274](https://github.com/willnguyen1312/zoom-image/pull/274) [`ec4a37b`](https://github.com/willnguyen1312/zoom-image/commit/ec4a37b2e83e19a7bca3f2cde747bafd71d9d046) Thanks [@willnguyen1312](https://github.com/willnguyen1312)! - fix: zoomed image click cause extra border display on first render 💞
- [#274](https://github.com/willnguyen1312/zoom-image/pull/274)
[`ec4a37b`](https://github.com/willnguyen1312/zoom-image/commit/ec4a37b2e83e19a7bca3f2cde747bafd71d9d046) Thanks
[@willnguyen1312](https://github.com/willnguyen1312)! - fix: zoomed image click cause extra border display on first
render 💞

## 0.33.1

Expand Down
3 changes: 1 addition & 2 deletions packages/docs/src/components/HomePageShow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,9 @@ watch(
await nextTick()
if (zoomType.value === "hover") {
const isMobile = window.innerWidth < 768
createZoomImageHover(imageHoverContainerRef.value as HTMLDivElement, {
zoomImageSource: imageURL,
customZoom: isMobile ? { width: 100, height: 150 } : { width: 300, height: 450 },
customZoom: { width: 300, height: 400 },
zoomTarget: zoomTargetRef.value as HTMLDivElement,
scale: 2,
})
Expand Down
3 changes: 2 additions & 1 deletion packages/preact/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

### Patch Changes

- Updated dependencies [[`ec4a37b`](https://github.com/willnguyen1312/zoom-image/commit/ec4a37b2e83e19a7bca3f2cde747bafd71d9d046)]:
- Updated dependencies
[[`ec4a37b`](https://github.com/willnguyen1312/zoom-image/commit/ec4a37b2e83e19a7bca3f2cde747bafd71d9d046)]:
- @zoom-image/core@0.33.2

## 0.3.7
Expand Down
3 changes: 2 additions & 1 deletion packages/qwik/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

### Patch Changes

- Updated dependencies [[`ec4a37b`](https://github.com/willnguyen1312/zoom-image/commit/ec4a37b2e83e19a7bca3f2cde747bafd71d9d046)]:
- Updated dependencies
[[`ec4a37b`](https://github.com/willnguyen1312/zoom-image/commit/ec4a37b2e83e19a7bca3f2cde747bafd71d9d046)]:
- @zoom-image/core@0.33.2

## 0.2.7
Expand Down
3 changes: 2 additions & 1 deletion packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

### Patch Changes

- Updated dependencies [[`ec4a37b`](https://github.com/willnguyen1312/zoom-image/commit/ec4a37b2e83e19a7bca3f2cde747bafd71d9d046)]:
- Updated dependencies
[[`ec4a37b`](https://github.com/willnguyen1312/zoom-image/commit/ec4a37b2e83e19a7bca3f2cde747bafd71d9d046)]:
- @zoom-image/core@0.33.2

## 0.4.7
Expand Down
3 changes: 2 additions & 1 deletion packages/solid/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

### Patch Changes

- Updated dependencies [[`ec4a37b`](https://github.com/willnguyen1312/zoom-image/commit/ec4a37b2e83e19a7bca3f2cde747bafd71d9d046)]:
- Updated dependencies
[[`ec4a37b`](https://github.com/willnguyen1312/zoom-image/commit/ec4a37b2e83e19a7bca3f2cde747bafd71d9d046)]:
- @zoom-image/core@0.33.2

## 0.2.7
Expand Down
3 changes: 2 additions & 1 deletion packages/svelte/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

### Patch Changes

- Updated dependencies [[`ec4a37b`](https://github.com/willnguyen1312/zoom-image/commit/ec4a37b2e83e19a7bca3f2cde747bafd71d9d046)]:
- Updated dependencies
[[`ec4a37b`](https://github.com/willnguyen1312/zoom-image/commit/ec4a37b2e83e19a7bca3f2cde747bafd71d9d046)]:
- @zoom-image/core@0.33.2

## 0.2.7
Expand Down
3 changes: 2 additions & 1 deletion packages/vue/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

### Patch Changes

- Updated dependencies [[`ec4a37b`](https://github.com/willnguyen1312/zoom-image/commit/ec4a37b2e83e19a7bca3f2cde747bafd71d9d046)]:
- Updated dependencies
[[`ec4a37b`](https://github.com/willnguyen1312/zoom-image/commit/ec4a37b2e83e19a7bca3f2cde747bafd71d9d046)]:
- @zoom-image/core@0.33.2

## 0.2.7
Expand Down
16 changes: 8 additions & 8 deletions size.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"@zoom-image/core": {
"createZoomImageWheel": "1.76 KB",
"createZoomImageHover": "1.2 KB",
"createZoomImageClick": "861 B",
"createZoomImageClick": "864 B",
"createZoomImageMove": "853 B",
"cropImage": "367 B",
"makeCalculateZoom": "97 B",
Expand All @@ -11,8 +11,8 @@
"@zoom-image/react": {
"useZoomImageWheel": "2.04 KB",
"useZoomImageHover": "1.47 KB",
"useZoomImageClick": "1.09 KB",
"useZoomImageMove": "1.09 KB"
"useZoomImageMove": "1.09 KB",
"useZoomImageClick": "1.09 KB"
},
"@zoom-image/preact": {
"useZoomImageWheel": "2.94 KB",
Expand All @@ -23,8 +23,8 @@
"@zoom-image/qwik": {
"useZoomImageWheel": "2.19 KB",
"useZoomImageHover": "1.59 KB",
"useZoomImageMove": "1.21 KB",
"useZoomImageClick": "1.21 KB"
"useZoomImageClick": "1.21 KB",
"useZoomImageMove": "1.21 KB"
},
"@zoom-image/solid": {
"useZoomImageWheel": "3.25 KB",
Expand All @@ -46,8 +46,8 @@
},
"@zoom-image/angular": {
"ZoomImageClickService": "3.48 KB",
"ZoomImageHoverService": "3.48 KB",
"ZoomImageWheelService": "3.48 KB",
"ZoomImageMoveService": "3.47 KB"
"ZoomImageHoverService": "3.47 KB",
"ZoomImageMoveService": "3.47 KB",
"ZoomImageWheelService": "3.47 KB"
}
}

0 comments on commit a067c9b

Please sign in to comment.