@guajiritos/image-picker 0.0.1 → 0.0.3
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.
- package/README.md +5 -5
- package/esm2020/guajiritos-image-picker.mjs +4 -4
- package/esm2020/lib/guachos-image-picker.component.mjs +540 -542
- package/esm2020/public-api.mjs +5 -6
- package/esm2020/utils/calculate-size.module.mjs +16 -0
- package/esm2020/utils/calculate-size.pipe.mjs +24 -24
- package/fesm2015/guajiritos-image-picker.mjs +592 -632
- package/fesm2015/guajiritos-image-picker.mjs.map +1 -1
- package/fesm2020/guajiritos-image-picker.mjs +571 -617
- package/fesm2020/guajiritos-image-picker.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/guachos-image-picker.component.d.ts +81 -79
- package/package.json +5 -5
- package/public-api.d.ts +1 -2
- package/utils/calculate-size.module.d.ts +7 -0
- package/utils/calculate-size.pipe.d.ts +7 -7
- package/esm2020/lib/guachos-image-picker.module.mjs +0 -60
- package/lib/guachos-image-picker.module.d.ts +0 -18
package/README.md
CHANGED
|
@@ -49,13 +49,13 @@ yarn add resize-observer
|
|
|
49
49
|
Debes importar el módulo `Guajiritos Image Picker` donde lo usarás y usar el componente.
|
|
50
50
|
|
|
51
51
|
```ts
|
|
52
|
-
import {
|
|
52
|
+
import { GuajiritosImagePicker } from '@guajiritos/image-picker';
|
|
53
53
|
|
|
54
54
|
@NgModule({
|
|
55
55
|
...
|
|
56
56
|
imports: [
|
|
57
57
|
...
|
|
58
|
-
|
|
58
|
+
GuajiritosImagePicker,
|
|
59
59
|
...
|
|
60
60
|
]
|
|
61
61
|
})
|
|
@@ -132,9 +132,9 @@ export interface ImagePickerConf {
|
|
|
132
132
|
Una vez que haya seleccionado una imagen, se habilitarán tres botones debajo de la imagen:
|
|
133
133
|
|
|
134
134
|
```text
|
|
135
|
-
1-
|
|
136
|
-
2-
|
|
137
|
-
3-
|
|
135
|
+
1- Cargar una nueva imagen.
|
|
136
|
+
2- Abrir el panel de edición.
|
|
137
|
+
3- Descargar la imagen.
|
|
138
138
|
```
|
|
139
139
|
|
|
140
140
|
En el panel de edición, puede cambiar la relación de calidad para comprimir el tamaño del archivo (en kb). También se puede seleccionar el cambio de ancho y alto en px manteniendo la relación de aspecto o no. Puede cambiar el formato de la imagen como desee, las opciones son 'png', 'webp', 'jpeg'. El formato 'Png' no se ve afectado por cambiar la relación de calidad.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
5
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3VhamlyaXRvcy1pbWFnZS1waWNrZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9ndWFjaG9zLWltYWdlLXBpY2tlci9zcmMvZ3VhamlyaXRvcy1pbWFnZS1waWNrZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|