@bnsights/bbsf-controls 1.2.28 → 1.2.29
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 +74 -59
- package/fesm2022/bnsights-bbsf-controls.mjs +86 -3
- package/fesm2022/bnsights-bbsf-controls.mjs.map +1 -1
- package/lib/Shared/Models/FileUploadCropperOptions.d.ts +4 -0
- package/lib/controls/LogoCropper/LogoCropper.component.d.ts +18 -1
- package/package.json +1 -1
- package/bnsights-bbsf-controls-1.2.27.tgz +0 -0
- package/bnsights-bbsf-controls-1.2.28.tgz +0 -0
|
@@ -12,6 +12,10 @@ export declare class FileUploadCropperOptions {
|
|
|
12
12
|
backdrop: boolean | 'static';
|
|
13
13
|
maintainAspectRatio: boolean;
|
|
14
14
|
onlyScaleDown: boolean;
|
|
15
|
+
allowMoveImage: boolean;
|
|
16
|
+
containWithinAspectRatio: boolean;
|
|
17
|
+
maxDisplayWidth: number;
|
|
18
|
+
maxDisplayHeight: number;
|
|
15
19
|
cancelBehavior: 'clear' | 'keep';
|
|
16
20
|
horizontal: FileUploadCropperPreset;
|
|
17
21
|
vertical: FileUploadCropperPreset;
|
|
@@ -13,21 +13,38 @@ export declare class LogoCropperComponent implements OnInit {
|
|
|
13
13
|
cropperStaticWidth: number;
|
|
14
14
|
cropperStaticHeight: number;
|
|
15
15
|
onlyScaleDown: boolean;
|
|
16
|
+
allowMoveImage: boolean;
|
|
17
|
+
containWithinAspectRatio: boolean;
|
|
18
|
+
maxDisplayWidth: number;
|
|
19
|
+
maxDisplayHeight: number;
|
|
16
20
|
transform: ImageTransform;
|
|
21
|
+
canvasRotation: number;
|
|
17
22
|
croppedBlob: Blob | null;
|
|
18
23
|
private readonly minScale;
|
|
19
24
|
private readonly maxScale;
|
|
20
25
|
private readonly scaleStep;
|
|
21
26
|
constructor(activeModal: NgbActiveModal, utilityService: UtilityService);
|
|
22
27
|
ngOnInit(): void;
|
|
28
|
+
get displayScalingEnabled(): boolean;
|
|
29
|
+
get displayScale(): number;
|
|
30
|
+
get displayWidth(): number;
|
|
31
|
+
get displayHeight(): number;
|
|
32
|
+
get effectiveAspectRatio(): number;
|
|
33
|
+
get sourceMaxHeight(): string | null;
|
|
34
|
+
get sourceMaxWidth(): string | null;
|
|
23
35
|
translate(key: string): string;
|
|
24
36
|
imageCropped(event: ImageCroppedEvent): void;
|
|
37
|
+
imageLoadFailed(error?: unknown): void;
|
|
38
|
+
onWheel(event: WheelEvent): void;
|
|
25
39
|
zoomIn(): void;
|
|
26
40
|
zoomOut(): void;
|
|
41
|
+
rotateLeft(): void;
|
|
42
|
+
rotateRight(): void;
|
|
27
43
|
resetZoom(): void;
|
|
44
|
+
reset(): void;
|
|
28
45
|
confirm(): void;
|
|
29
46
|
dismiss(): void;
|
|
30
47
|
private setScale;
|
|
31
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<LogoCropperComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LogoCropperComponent, "BBSF-LogoCropper", never, { "imageFile": { "alias": "imageFile"; "required": false; }; "isHorizontal": { "alias": "isHorizontal"; "required": false; }; "aspectRatio": { "alias": "aspectRatio"; "required": false; }; "maintainAspectRatio": { "alias": "maintainAspectRatio"; "required": false; }; "cropperStaticWidth": { "alias": "cropperStaticWidth"; "required": false; }; "cropperStaticHeight": { "alias": "cropperStaticHeight"; "required": false; }; "onlyScaleDown": { "alias": "onlyScaleDown"; "required": false; }; }, {}, never, never, true, never>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LogoCropperComponent, "BBSF-LogoCropper", never, { "imageFile": { "alias": "imageFile"; "required": false; }; "isHorizontal": { "alias": "isHorizontal"; "required": false; }; "aspectRatio": { "alias": "aspectRatio"; "required": false; }; "maintainAspectRatio": { "alias": "maintainAspectRatio"; "required": false; }; "cropperStaticWidth": { "alias": "cropperStaticWidth"; "required": false; }; "cropperStaticHeight": { "alias": "cropperStaticHeight"; "required": false; }; "onlyScaleDown": { "alias": "onlyScaleDown"; "required": false; }; "allowMoveImage": { "alias": "allowMoveImage"; "required": false; }; "containWithinAspectRatio": { "alias": "containWithinAspectRatio"; "required": false; }; "maxDisplayWidth": { "alias": "maxDisplayWidth"; "required": false; }; "maxDisplayHeight": { "alias": "maxDisplayHeight"; "required": false; }; }, {}, never, never, true, never>;
|
|
33
50
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|