initial
This commit is contained in:
13
node_modules/croppie/LICENSE
generated
vendored
Normal file
13
node_modules/croppie/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
Copyright (c) 2015 Foliotek Inc
|
||||
-------------------------------
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
||||
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
|
||||
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
||||
persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
|
||||
Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
||||
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
50
node_modules/croppie/README.md
generated
vendored
Normal file
50
node_modules/croppie/README.md
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
# Croppie - A Javascript Image Cropper
|
||||
|
||||
|
||||
## To Install
|
||||
Bower: `bower install croppie`
|
||||
|
||||
Npm: `npm install croppie`
|
||||
|
||||
Download:
|
||||
[croppie.js](croppie.js) & [croppie.css](croppie.css)
|
||||
|
||||
## Adding croppie to your site
|
||||
```
|
||||
<link rel="stylesheet" href="croppie.css" />
|
||||
<script src="croppie.js"></script>
|
||||
```
|
||||
|
||||
## CDN
|
||||
cdnjs.com provides croppie via cdn https://cdnjs.com/libraries/croppie
|
||||
```
|
||||
https://cdnjs.cloudflare.com/ajax/libs/croppie/{version}/croppie.min.css
|
||||
https://cdnjs.cloudflare.com/ajax/libs/croppie/{version}/croppie.min.js
|
||||
```
|
||||
|
||||
|
||||
## Documentation
|
||||
[Documentation](http://foliotek.github.io/Croppie#documentation)
|
||||
|
||||
## Related Libraries
|
||||
* https://github.com/wem/croppie-dart
|
||||
* https://github.com/allenRoyston/ngCroppie
|
||||
* https://github.com/lpsBetty/angular-croppie
|
||||
|
||||
|
||||
## Contributing
|
||||
#### Static Server
|
||||
`live-server`
|
||||
|
||||
#### Minifying
|
||||
`uglifyjs croppie.js -c -m -r '$,require,exports' -o croppie.min.js`
|
||||
|
||||
#### Releasing a new version
|
||||
1. Bump version in croppie.js
|
||||
2. Minify/Uglify
|
||||
3. Commit
|
||||
4. npm version [new version]
|
||||
5. `git push && git push --tags`
|
||||
6. `npm publish`
|
||||
7. Draft a new release with new tag on https://github.com/Foliotek/Croppie/releases
|
||||
8. Deploy to gh-pages `npm run deploy`
|
||||
250
node_modules/croppie/croppie.css
generated
vendored
Normal file
250
node_modules/croppie/croppie.css
generated
vendored
Normal file
@@ -0,0 +1,250 @@
|
||||
.croppie-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.croppie-container .cr-image {
|
||||
z-index: -1;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
transform-origin: 0 0;
|
||||
max-height: none;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.croppie-container .cr-boundary {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
margin: 0 auto;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.croppie-container .cr-viewport,
|
||||
.croppie-container .cr-resizer {
|
||||
position: absolute;
|
||||
border: 2px solid #fff;
|
||||
margin: auto;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
box-shadow: 0 0 2000px 2000px rgba(0, 0, 0, 0.5);
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.croppie-container .cr-resizer {
|
||||
z-index: 2;
|
||||
box-shadow: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.croppie-container .cr-resizer-vertical,
|
||||
.croppie-container .cr-resizer-horisontal {
|
||||
position: absolute;
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
.croppie-container .cr-resizer-vertical::after,
|
||||
.croppie-container .cr-resizer-horisontal::after {
|
||||
display: block;
|
||||
position: absolute;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid black;
|
||||
background: #fff;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
content: '';
|
||||
}
|
||||
|
||||
.croppie-container .cr-resizer-vertical {
|
||||
bottom: -5px;
|
||||
cursor: row-resize;
|
||||
width: 100%;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
.croppie-container .cr-resizer-vertical::after {
|
||||
left: 50%;
|
||||
margin-left: -5px;
|
||||
}
|
||||
|
||||
.croppie-container .cr-resizer-horisontal {
|
||||
right: -5px;
|
||||
cursor: col-resize;
|
||||
width: 10px;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.croppie-container .cr-resizer-horisontal::after {
|
||||
top: 50%;
|
||||
margin-top: -5px;
|
||||
}
|
||||
|
||||
.croppie-container .cr-original-image {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.croppie-container .cr-vp-circle {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.croppie-container .cr-overlay {
|
||||
z-index: 1;
|
||||
position: absolute;
|
||||
cursor: move;
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
.croppie-container .cr-slider-wrap {
|
||||
width: 75%;
|
||||
margin: 15px auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.croppie-result {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.croppie-result img {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.croppie-container .cr-image,
|
||||
.croppie-container .cr-overlay,
|
||||
.croppie-container .cr-viewport {
|
||||
-webkit-transform: translateZ(0);
|
||||
-moz-transform: translateZ(0);
|
||||
-ms-transform: translateZ(0);
|
||||
transform: translateZ(0);
|
||||
}
|
||||
|
||||
/*************************************/
|
||||
/***** STYLING RANGE INPUT ***********/
|
||||
/*************************************/
|
||||
/*http://brennaobrien.com/blog/2014/05/style-input-type-range-in-every-browser.html */
|
||||
/*************************************/
|
||||
|
||||
.cr-slider {
|
||||
-webkit-appearance: none;
|
||||
/*removes default webkit styles*/
|
||||
/*border: 1px solid white; *//*fix for FF unable to apply focus style bug */
|
||||
width: 300px;
|
||||
/*required for proper track sizing in FF*/
|
||||
max-width: 100%;
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.cr-slider::-webkit-slider-runnable-track {
|
||||
width: 100%;
|
||||
height: 3px;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
border: 0;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.cr-slider::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
border: none;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
border-radius: 50%;
|
||||
background: #ddd;
|
||||
margin-top: -6px;
|
||||
}
|
||||
|
||||
.cr-slider:focus {
|
||||
outline: none;
|
||||
}
|
||||
/*
|
||||
.cr-slider:focus::-webkit-slider-runnable-track {
|
||||
background: #ccc;
|
||||
}
|
||||
*/
|
||||
|
||||
.cr-slider::-moz-range-track {
|
||||
width: 100%;
|
||||
height: 3px;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
border: 0;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.cr-slider::-moz-range-thumb {
|
||||
border: none;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
border-radius: 50%;
|
||||
background: #ddd;
|
||||
margin-top: -6px;
|
||||
}
|
||||
|
||||
/*hide the outline behind the border*/
|
||||
.cr-slider:-moz-focusring {
|
||||
outline: 1px solid white;
|
||||
outline-offset: -1px;
|
||||
}
|
||||
|
||||
.cr-slider::-ms-track {
|
||||
width: 100%;
|
||||
height: 5px;
|
||||
background: transparent;
|
||||
/*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
|
||||
border-color: transparent;/*leave room for the larger thumb to overflow with a transparent border */
|
||||
border-width: 6px 0;
|
||||
color: transparent;/*remove default tick marks*/
|
||||
}
|
||||
.cr-slider::-ms-fill-lower {
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 10px;
|
||||
}
|
||||
.cr-slider::-ms-fill-upper {
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 10px;
|
||||
}
|
||||
.cr-slider::-ms-thumb {
|
||||
border: none;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
border-radius: 50%;
|
||||
background: #ddd;
|
||||
margin-top:1px;
|
||||
}
|
||||
.cr-slider:focus::-ms-fill-lower {
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
.cr-slider:focus::-ms-fill-upper {
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
/*******************************************/
|
||||
|
||||
/***********************************/
|
||||
/* Rotation Tools */
|
||||
/***********************************/
|
||||
.cr-rotate-controls {
|
||||
position: absolute;
|
||||
bottom: 5px;
|
||||
left: 5px;
|
||||
z-index: 1;
|
||||
}
|
||||
.cr-rotate-controls button {
|
||||
border: 0;
|
||||
background: none;
|
||||
}
|
||||
.cr-rotate-controls i:before {
|
||||
display: inline-block;
|
||||
font-style: normal;
|
||||
font-weight: 900;
|
||||
font-size: 22px;
|
||||
}
|
||||
.cr-rotate-l i:before {
|
||||
content: '↺';
|
||||
}
|
||||
.cr-rotate-r i:before {
|
||||
content: '↻';
|
||||
}
|
||||
1588
node_modules/croppie/croppie.js
generated
vendored
Normal file
1588
node_modules/croppie/croppie.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
node_modules/croppie/croppie.min.js
generated
vendored
Normal file
1
node_modules/croppie/croppie.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
64
node_modules/croppie/package.json
generated
vendored
Normal file
64
node_modules/croppie/package.json
generated
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"_from": "croppie",
|
||||
"_id": "croppie@2.5.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-8QsuDg2/vGlNutBH2hcnxm4rZUpMe50HQFpU1q0MDetD1uT4qHHkS485e+u7wvCQflJjfBxBsWlQ9grGMOsmxg==",
|
||||
"_location": "/croppie",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "tag",
|
||||
"registry": true,
|
||||
"raw": "croppie",
|
||||
"name": "croppie",
|
||||
"escapedName": "croppie",
|
||||
"rawSpec": "",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "latest"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"#USER",
|
||||
"/"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/croppie/-/croppie-2.5.1.tgz",
|
||||
"_shasum": "87896bb4fb219350106558791730ed275730f38e",
|
||||
"_spec": "croppie",
|
||||
"_where": "C:\\Users\\Tom\\Documents\\Development\\bitsy-image-to-room",
|
||||
"authors": [
|
||||
"Dustin Smith <thedustinsmith@gmail.com>",
|
||||
"Ethan Calvert <calvert1591@gmail.com>"
|
||||
],
|
||||
"bugs": {
|
||||
"url": "https://github.com/Foliotek/Croppie/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "A simple javascript image cropper",
|
||||
"devDependencies": {
|
||||
"gh-pages": "^0.11.0",
|
||||
"mocha": "2.4.5"
|
||||
},
|
||||
"files": [
|
||||
"croppie.css",
|
||||
"croppie.js",
|
||||
"croppie.min.js"
|
||||
],
|
||||
"homepage": "http://foliotek.github.io/Croppie",
|
||||
"keywords": [
|
||||
"crop",
|
||||
"cropper",
|
||||
"image",
|
||||
"cropping"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "croppie.js",
|
||||
"name": "croppie",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Foliotek/Croppie.git"
|
||||
},
|
||||
"scripts": {
|
||||
"deploy": "node deploy.js",
|
||||
"test": "mocha test/unit"
|
||||
},
|
||||
"version": "2.5.1"
|
||||
}
|
||||
Reference in New Issue
Block a user