Skip to content

Commit

Permalink
ready for npm
Browse files Browse the repository at this point in the history
  • Loading branch information
NishargShah committed Jan 9, 2021
1 parent e667f42 commit 0294584
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions lib/styles.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
const absPos = {
position: "absolute",
top: 0,
left: 0
};

const styles = props => {
return {
container: {
position: "relative"
},
canvas: { ...absPos,
pointerEvents: "none",
zIndex: 2
},
img: { ...absPos,
zIndex: 1,
userSelect: "none"
},
map: (props === null || props === void 0 ? void 0 : props.onClick) && {
cursor: "pointer"
} || undefined
};
};

var _default = styles;
exports.default = _default;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-img-mapper",
"version": "0.1.6",
"version": "0.2.0",
"description": "React Component to highlight interactive zones in images",
"main": "lib/ImageMapper.js",
"author": "Nisharg Shah",
Expand Down

0 comments on commit 0294584

Please sign in to comment.