react-zoom-pan-pinch 3.0.7 → 3.0.8

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.
@@ -3,5 +3,6 @@ export type MiniMapProps = {
3
3
  children: React.ReactNode;
4
4
  width?: number;
5
5
  height?: number;
6
+ borderColor?: string;
6
7
  } & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
7
8
  export declare const MiniMap: React.FC<MiniMapProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-zoom-pan-pinch",
3
- "version": "3.0.7",
3
+ "version": "3.0.8",
4
4
  "description": "Zoom and pan html elements in easy way",
5
5
  "author": "prc5",
6
6
  "license": "MIT",
@@ -19,6 +19,7 @@ export type MiniMapProps = {
19
19
  children: React.ReactNode;
20
20
  width?: number;
21
21
  height?: number;
22
+ borderColor?: string;
22
23
  } & React.DetailedHTMLProps<
23
24
  React.HTMLAttributes<HTMLDivElement>,
24
25
  HTMLDivElement
@@ -38,6 +39,7 @@ const previewStyles = {
38
39
  export const MiniMap: React.FC<MiniMapProps> = ({
39
40
  width = 200,
40
41
  height = 200,
42
+ borderColor = "red",
41
43
  children,
42
44
  ...rest
43
45
  }) => {
@@ -176,7 +178,11 @@ export const MiniMap: React.FC<MiniMapProps> = ({
176
178
  <div {...rest} ref={wrapperRef} className="rzpp-wrapper">
177
179
  {children}
178
180
  </div>
179
- <div className="rzpp-preview" ref={previewRef} style={previewStyles} />
181
+ <div
182
+ className="rzpp-preview"
183
+ ref={previewRef}
184
+ style={{ ...previewStyles, borderColor }}
185
+ />
180
186
  </div>
181
187
  );
182
188
  };
package/tsconfig.json CHANGED
@@ -14,6 +14,7 @@
14
14
  "noImplicitAny": true,
15
15
  "strictNullChecks": true,
16
16
  "suppressImplicitAnyIndexErrors": true,
17
+ "ignoreDeprecations": "5.0",
17
18
  "noUnusedLocals": true,
18
19
  "noUnusedParameters": true,
19
20
  "allowSyntheticDefaultImports": true,