Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "idcrop", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Embed for cropping images and returning a base64 of the cropped area.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,2 +15,6 @@ # IdCrop | ||
``` | ||
npm install idcrop | ||
``` | ||
###### Javascript | ||
@@ -21,3 +25,3 @@ | ||
const idcrop = require("idcrop"); | ||
idcrop.IdCrop.init("toolbarContainer", "displayContainer", "previewContainer"); | ||
idcrop.init("toolbarContainer", "displayContainer", "previewContainer"); | ||
@@ -31,20 +35,5 @@ ``` | ||
``` | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>IdCrop</title> | ||
<link rel="stylesheet" type="text/css" href="./dist/css/main.min.css"> | ||
</head> | ||
<body> | ||
<div id="displayContainer"></div> | ||
<div id="toolbarContainer"></div> | ||
<div id="previewContainer"></div> | ||
<script type="text/javascript" src="./dist/js/bundle.min.js"></script> | ||
</body> | ||
</html> | ||
<div id="displayContainer"></div> | ||
<div id="toolbarContainer"></div> | ||
<div id="previewContainer"></div> | ||
``` |
@@ -5,2 +5,3 @@ // Import SCSS files. | ||
// Import JS. | ||
import "./idcrop.js"; | ||
import "./main.js"; |
@@ -1,2 +0,3 @@ | ||
const Widget = require("./widget.js"); | ||
Widget.Widget.init("toolbarContainer", "displayContainer", "previewContainer"); | ||
const idcrop = require("./idcrop.js"); | ||
idcrop.init("toolbarContainer", "displayContainer", "previewContainer"); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
476
23722
36
1