@archbase/components 4.0.17 → 4.0.19
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/dist/archbase-components-4.0.19.tgz +0 -0
- package/dist/editors/ArchbaseImageEdit.d.ts +21 -1
- package/dist/image/editor/functions/crop-image.d.ts +32 -0
- package/dist/image/editor/index.d.ts +0 -30
- package/dist/image/editor/models/index.models.d.ts +16 -0
- package/dist/index.css +1 -1
- package/dist/index.js +8139 -7944
- package/package.json +5 -6
- package/src/editors/ArchbaseImageEdit.tsx +57 -2
- package/src/image/editor/functions/crop-image.ts +172 -0
- package/src/image/editor/index.tsx +411 -413
- package/src/image/editor/models/index.models.ts +16 -0
- package/dist/archbase-components-4.0.17.tgz +0 -0
|
@@ -18,6 +18,22 @@ export interface ArchbaseImagePickerConf {
|
|
|
18
18
|
maxHeight?: number;
|
|
19
19
|
/** Tamanho máximo da imagem em KB (recomprime se exceder) */
|
|
20
20
|
maxSizeKb?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Preserva a transparência (canal alfa) da imagem enviada.
|
|
23
|
+
* Quando true:
|
|
24
|
+
* - desabilita a compressão automática (compressInitial é forçado para null),
|
|
25
|
+
* impedindo que a biblioteca subjacente reencodifique PNG/WebP como JPEG.
|
|
26
|
+
* - força o mime de saída para PNG (ou WebP, se a origem já for WebP) ao
|
|
27
|
+
* redimensionar via maxWidth/maxHeight/maxSizeKb.
|
|
28
|
+
* Default: false.
|
|
29
|
+
*/
|
|
30
|
+
preserveTransparency?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Habilita logs de diagnóstico no console (formato detectado, mime de saída,
|
|
33
|
+
* tamanhos, decisões de compressão/redimensionamento).
|
|
34
|
+
* Default: false.
|
|
35
|
+
*/
|
|
36
|
+
debug?: boolean;
|
|
21
37
|
}
|
|
22
38
|
|
|
23
39
|
export interface IState {
|
|
Binary file
|