Skip to content

Commit d53e439

Browse files
committed
1.1.1 - docs update
1 parent 5169e81 commit d53e439

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

README.md

+14-8
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,17 @@ Use the `ng-magnizoom` component with the `imageSrc` input to render the image w
4040

4141
## Options
4242

43-
Name | Type | Default | Description
44-
--- | --- | --- | ---
45-
imageSrc | string | (required) | Image source (url)
46-
zoomMode | 'LENS', 'COVER' | 'COVER' | Mode
47-
minZoomFactor | number | 1.2 | Minimum zooming factor
48-
maxZoomFactor | number | 3 | Maximum zooming factor
49-
imageStyle | { [x: string]: any; } | - | ngSytle for image canvas element
50-
imageClass | any | - | ngClass for image canvas element
43+
Name | Type | Default | Two-way binding | Description
44+
--- | --- | --- | --- | ---
45+
imageSrc | string | (required) | - | Image source (url)
46+
zoomMode | 'LENS', 'COVER' | 'COVER' | - | Mode
47+
minZoomFactor | number | 1.2 | - | Minimum zooming factor
48+
maxZoomFactor | number | 3 | - | Maximum zooming factor
49+
imageStyle | { [x: string]: any; } | - | - | ngSytle for image canvas element
50+
imageClass | any | - | | ngClass for image canvas element
51+
zoomFactor | number | 2 | x | current zoom level (between minZoomFactor and maxZoomFactor)
52+
lensSizeUnit | 'NORMALIZED', 'PIXEL' | 'NORMALIZED' | - | 'NORMALIZED' - between 0 and 1, 'PIXEL' - pixel value
53+
lensSize | { width: number, height: number } | { width: 0.5, height: 0.5 } | - | The size of the lens in `lensSizeUnit`
54+
zoomCenterUnit | 'NORMALIZED', 'PIXEL' | 'NORMALIZED' | - | 'NORMALIZED' - between 0 and 1, 'PIXEL' - pixel value
55+
zoomCenter | { x: number, y: number } or undefined | undefined | x | The center of the zoom, `undefined` if not in zoom mode
56+
updateOnMouseEvents | boolean | true | - | Whether or not the magnifier uses the mouse events

projects/ng-magnizoom/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ng-magnizoom",
3-
"version": "1.1.0",
4-
"description": "Angular 10 image magnifier (based on HTML canvas)",
3+
"version": "1.1.1",
4+
"description": "Angular image magnifier (based on HTML canvas)",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/henczi/ng-magnizoom.git"

0 commit comments

Comments
 (0)