tui-image-editor-angular3 14.0.2
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 +155 -0
- package/esm2020/lib/consts.mjs +170 -0
- package/esm2020/lib/i18n/en.mjs +129 -0
- package/esm2020/lib/i18n/nl.mjs +128 -0
- package/esm2020/lib/i18n/translation.service.mjs +40 -0
- package/esm2020/lib/interfaces/command.mjs +2 -0
- package/esm2020/lib/interfaces/history-item.mjs +343 -0
- package/esm2020/lib/interfaces/image-size.mjs +2 -0
- package/esm2020/lib/interfaces/tools-config.mjs +2 -0
- package/esm2020/lib/menus/buttons/crop/crop.component.mjs +22 -0
- package/esm2020/lib/menus/buttons/delete/delete.component.mjs +40 -0
- package/esm2020/lib/menus/buttons/delete-all/delete-all.component.mjs +27 -0
- package/esm2020/lib/menus/buttons/download/download.component.mjs +40 -0
- package/esm2020/lib/menus/buttons/drag/drag.component.mjs +41 -0
- package/esm2020/lib/menus/buttons/draw/draw.component.mjs +22 -0
- package/esm2020/lib/menus/buttons/filter/filter.component.mjs +22 -0
- package/esm2020/lib/menus/buttons/flip/flip.component.mjs +22 -0
- package/esm2020/lib/menus/buttons/history/history.component.mjs +41 -0
- package/esm2020/lib/menus/buttons/icon/icon.component.mjs +22 -0
- package/esm2020/lib/menus/buttons/load/load.component.mjs +23 -0
- package/esm2020/lib/menus/buttons/mask/mask.component.mjs +22 -0
- package/esm2020/lib/menus/buttons/redo/redo.component.mjs +36 -0
- package/esm2020/lib/menus/buttons/reset/reset.component.mjs +28 -0
- package/esm2020/lib/menus/buttons/rotate/rotate.component.mjs +22 -0
- package/esm2020/lib/menus/buttons/shape/shape.component.mjs +22 -0
- package/esm2020/lib/menus/buttons/text/text.component.mjs +22 -0
- package/esm2020/lib/menus/buttons/undo/undo.component.mjs +36 -0
- package/esm2020/lib/menus/buttons/zoom-in/zoom-in.component.mjs +45 -0
- package/esm2020/lib/menus/buttons/zoom-out/zoom-out.component.mjs +20 -0
- package/esm2020/lib/services/history.service.mjs +86 -0
- package/esm2020/lib/services/tools.config-manager.service.mjs +45 -0
- package/esm2020/lib/submenus/crop/crop.component.mjs +76 -0
- package/esm2020/lib/submenus/draw/draw.component.mjs +149 -0
- package/esm2020/lib/submenus/filter/filter.component.mjs +345 -0
- package/esm2020/lib/submenus/flip/flip.component.mjs +39 -0
- package/esm2020/lib/submenus/icon/icon.component.mjs +119 -0
- package/esm2020/lib/submenus/mask/mask.component.mjs +69 -0
- package/esm2020/lib/submenus/rotate/rotate.component.mjs +57 -0
- package/esm2020/lib/submenus/shape/shape.component.mjs +163 -0
- package/esm2020/lib/submenus/text/text.component.mjs +175 -0
- package/esm2020/lib/svg-definitions/svg-definitions.component.mjs +12 -0
- package/esm2020/lib/tui-image-editor.component.mjs +294 -0
- package/esm2020/lib/tui-image-editor.module.mjs +136 -0
- package/esm2020/lib/utils.mjs +173 -0
- package/esm2020/public-api.mjs +8 -0
- package/esm2020/tui-image-editor-angular2.mjs +5 -0
- package/esm2020/tui-image-editor-angular3.mjs +5 -0
- package/fesm2015/tui-image-editor-angular2.mjs +3166 -0
- package/fesm2015/tui-image-editor-angular2.mjs.map +1 -0
- package/fesm2015/tui-image-editor-angular3.mjs +3166 -0
- package/fesm2015/tui-image-editor-angular3.mjs.map +1 -0
- package/fesm2020/tui-image-editor-angular2.mjs +3126 -0
- package/fesm2020/tui-image-editor-angular2.mjs.map +1 -0
- package/fesm2020/tui-image-editor-angular3.mjs +3126 -0
- package/fesm2020/tui-image-editor-angular3.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/consts.d.ts +144 -0
- package/lib/consts.d.ts.map +1 -0
- package/lib/i18n/en.d.ts +128 -0
- package/lib/i18n/en.d.ts.map +1 -0
- package/lib/i18n/nl.d.ts +127 -0
- package/lib/i18n/nl.d.ts.map +1 -0
- package/lib/i18n/translation.service.d.ts +14 -0
- package/lib/i18n/translation.service.d.ts.map +1 -0
- package/lib/interfaces/command.d.ts +4 -0
- package/lib/interfaces/command.d.ts.map +1 -0
- package/lib/interfaces/history-item.d.ts +26 -0
- package/lib/interfaces/history-item.d.ts.map +1 -0
- package/lib/interfaces/image-size.d.ts +6 -0
- package/lib/interfaces/image-size.d.ts.map +1 -0
- package/lib/interfaces/tools-config.d.ts +14 -0
- package/lib/interfaces/tools-config.d.ts.map +1 -0
- package/lib/menus/buttons/crop/crop.component.d.ts +10 -0
- package/lib/menus/buttons/crop/crop.component.d.ts.map +1 -0
- package/lib/menus/buttons/delete/delete.component.d.ts +13 -0
- package/lib/menus/buttons/delete/delete.component.d.ts.map +1 -0
- package/lib/menus/buttons/delete-all/delete-all.component.d.ts +11 -0
- package/lib/menus/buttons/delete-all/delete-all.component.d.ts.map +1 -0
- package/lib/menus/buttons/download/download.component.d.ts +9 -0
- package/lib/menus/buttons/download/download.component.d.ts.map +1 -0
- package/lib/menus/buttons/drag/drag.component.d.ts +11 -0
- package/lib/menus/buttons/drag/drag.component.d.ts.map +1 -0
- package/lib/menus/buttons/draw/draw.component.d.ts +10 -0
- package/lib/menus/buttons/draw/draw.component.d.ts.map +1 -0
- package/lib/menus/buttons/filter/filter.component.d.ts +10 -0
- package/lib/menus/buttons/filter/filter.component.d.ts.map +1 -0
- package/lib/menus/buttons/flip/flip.component.d.ts +10 -0
- package/lib/menus/buttons/flip/flip.component.d.ts.map +1 -0
- package/lib/menus/buttons/history/history.component.d.ts +13 -0
- package/lib/menus/buttons/history/history.component.d.ts.map +1 -0
- package/lib/menus/buttons/icon/icon.component.d.ts +10 -0
- package/lib/menus/buttons/icon/icon.component.d.ts.map +1 -0
- package/lib/menus/buttons/load/load.component.d.ts +9 -0
- package/lib/menus/buttons/load/load.component.d.ts.map +1 -0
- package/lib/menus/buttons/mask/mask.component.d.ts +10 -0
- package/lib/menus/buttons/mask/mask.component.d.ts.map +1 -0
- package/lib/menus/buttons/redo/redo.component.d.ts +12 -0
- package/lib/menus/buttons/redo/redo.component.d.ts.map +1 -0
- package/lib/menus/buttons/reset/reset.component.d.ts +12 -0
- package/lib/menus/buttons/reset/reset.component.d.ts.map +1 -0
- package/lib/menus/buttons/rotate/rotate.component.d.ts +10 -0
- package/lib/menus/buttons/rotate/rotate.component.d.ts.map +1 -0
- package/lib/menus/buttons/shape/shape.component.d.ts +10 -0
- package/lib/menus/buttons/shape/shape.component.d.ts.map +1 -0
- package/lib/menus/buttons/text/text.component.d.ts +10 -0
- package/lib/menus/buttons/text/text.component.d.ts.map +1 -0
- package/lib/menus/buttons/undo/undo.component.d.ts +12 -0
- package/lib/menus/buttons/undo/undo.component.d.ts.map +1 -0
- package/lib/menus/buttons/zoom-in/zoom-in.component.d.ts +12 -0
- package/lib/menus/buttons/zoom-in/zoom-in.component.d.ts.map +1 -0
- package/lib/menus/buttons/zoom-out/zoom-out.component.d.ts +9 -0
- package/lib/menus/buttons/zoom-out/zoom-out.component.d.ts.map +1 -0
- package/lib/services/history.service.d.ts +45 -0
- package/lib/services/history.service.d.ts.map +1 -0
- package/lib/services/tools.config-manager.service.d.ts +12 -0
- package/lib/services/tools.config-manager.service.d.ts.map +1 -0
- package/lib/submenus/crop/crop.component.d.ts +23 -0
- package/lib/submenus/crop/crop.component.d.ts.map +1 -0
- package/lib/submenus/draw/draw.component.d.ts +32 -0
- package/lib/submenus/draw/draw.component.d.ts.map +1 -0
- package/lib/submenus/filter/filter.component.d.ts +70 -0
- package/lib/submenus/filter/filter.component.d.ts.map +1 -0
- package/lib/submenus/flip/flip.component.d.ts +10 -0
- package/lib/submenus/flip/flip.component.d.ts.map +1 -0
- package/lib/submenus/icon/icon.component.d.ts +24 -0
- package/lib/submenus/icon/icon.component.d.ts.map +1 -0
- package/lib/submenus/mask/mask.component.d.ts +16 -0
- package/lib/submenus/mask/mask.component.d.ts.map +1 -0
- package/lib/submenus/rotate/rotate.component.d.ts +12 -0
- package/lib/submenus/rotate/rotate.component.d.ts.map +1 -0
- package/lib/submenus/shape/shape.component.d.ts +31 -0
- package/lib/submenus/shape/shape.component.d.ts.map +1 -0
- package/lib/submenus/text/text.component.d.ts +31 -0
- package/lib/submenus/text/text.component.d.ts.map +1 -0
- package/lib/svg-definitions/svg-definitions.component.d.ts +6 -0
- package/lib/svg-definitions/svg-definitions.component.d.ts.map +1 -0
- package/lib/tui-image-editor.component.d.ts +71 -0
- package/lib/tui-image-editor.component.d.ts.map +1 -0
- package/lib/tui-image-editor.module.d.ts +48 -0
- package/lib/tui-image-editor.module.d.ts.map +1 -0
- package/lib/utils.d.ts +45 -0
- package/lib/utils.d.ts.map +1 -0
- package/package.json +43 -0
- package/public-api.d.ts +4 -0
- package/public-api.d.ts.map +1 -0
- package/src/checkboxes.scss +95 -0
- package/src/theme.scss +936 -0
- package/tui-image-editor-angular2.d.ts.map +1 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { HistoryItem } from './interfaces/history-item';
|
|
3
|
+
import { HistoryService } from './services/history.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TuiImageEditorComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy {
|
|
6
|
+
private historyService;
|
|
7
|
+
imageContainer: ElementRef;
|
|
8
|
+
loadBtn: ElementRef;
|
|
9
|
+
onInitialization: EventEmitter<any>;
|
|
10
|
+
options: {
|
|
11
|
+
usageStatistics: boolean;
|
|
12
|
+
selectionStyle?: {
|
|
13
|
+
cornerStyle: string;
|
|
14
|
+
cornerSize: number;
|
|
15
|
+
cornerColor: string;
|
|
16
|
+
cornerStrokeColor: string;
|
|
17
|
+
transparentCorners: boolean;
|
|
18
|
+
lineWidth: number;
|
|
19
|
+
borderColor: string;
|
|
20
|
+
rotatingPointOffset: number;
|
|
21
|
+
};
|
|
22
|
+
applyCropSelectionStyle: boolean;
|
|
23
|
+
applyGroupSelectionStyle: boolean;
|
|
24
|
+
};
|
|
25
|
+
initialImage: string | File;
|
|
26
|
+
template: string;
|
|
27
|
+
imageEditor: any;
|
|
28
|
+
imageLoaded: boolean;
|
|
29
|
+
initializeImgUrl: string;
|
|
30
|
+
imageChosen: boolean;
|
|
31
|
+
activeObjectId: number;
|
|
32
|
+
submenu: 'crop' | 'flip' | 'rotate' | 'filter' | 'text' | 'icon' | 'shape' | 'draw' | 'mask' | null;
|
|
33
|
+
showSubmenu: boolean;
|
|
34
|
+
isMenuExpanded: boolean;
|
|
35
|
+
rotation: number;
|
|
36
|
+
onObjectActivatedEventListener: any;
|
|
37
|
+
onExecuteCommandEventListener: any;
|
|
38
|
+
onAfterUndoEventListener: any;
|
|
39
|
+
onAfterRedoEventListener: any;
|
|
40
|
+
private historyServiceSubscription;
|
|
41
|
+
constructor(historyService: HistoryService);
|
|
42
|
+
ngOnInit(): void;
|
|
43
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
44
|
+
initializeImageEditor(): void;
|
|
45
|
+
destroyImageEditor(): void;
|
|
46
|
+
ngAfterViewInit(): void;
|
|
47
|
+
ngOnDestroy(): void;
|
|
48
|
+
private onObjectActivated;
|
|
49
|
+
private onExecuteCommand;
|
|
50
|
+
private onAfterUndo;
|
|
51
|
+
private onAfterRedo;
|
|
52
|
+
onLoad(event: any): void;
|
|
53
|
+
loadImage(file: string | File | Blob): void;
|
|
54
|
+
uploadIMage(file: string | File | Blob): void;
|
|
55
|
+
resetImage(): void;
|
|
56
|
+
getImage(options?: {
|
|
57
|
+
format: 'jpeg' | 'png';
|
|
58
|
+
quality: number;
|
|
59
|
+
multiplier: number;
|
|
60
|
+
left?: number;
|
|
61
|
+
top?: number;
|
|
62
|
+
width?: number;
|
|
63
|
+
height?: number;
|
|
64
|
+
}): string;
|
|
65
|
+
exitCropOnAction(): void;
|
|
66
|
+
hideMenu(menuName: 'crop' | 'flip' | 'rotate' | 'filter' | 'text' | 'icon' | 'shape' | 'draw' | 'mask' | null): void;
|
|
67
|
+
onActiveHistoryElementChanged(items: HistoryItem[]): void;
|
|
68
|
+
showMenu(menuName: 'crop' | 'flip' | 'rotate' | 'filter' | 'text' | 'icon' | 'shape' | 'draw' | 'mask' | null, discardSelection?: boolean): void;
|
|
69
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiImageEditorComponent, never>;
|
|
70
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TuiImageEditorComponent, "tui-image-editor", never, { "options": "options"; "initialImage": "initialImage"; "template": "template"; }, { "onInitialization": "onInitialization"; }, never, never, false>;
|
|
71
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tui-image-editor.component.d.ts","sourceRoot":"","sources":["../../../projects/tui-image-editor-angular2/src/lib/tui-image-editor.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,UAAU,EACV,YAAY,EAEZ,SAAS,EACT,SAAS,EACT,MAAM,EAEN,aAAa,EAEd,MAAM,eAAe,CAAC;AAYvB,OAAO,EAAE,WAAW,EAAmB,MAAM,2BAA2B,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;;AAY5D,qBAMa,uBACX,YAAW,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS;IA6D1C,OAAO,CAAC,cAAc;IA3DL,cAAc,EAAE,UAAU,CAAC;IAClC,OAAO,EAAE,UAAU,CAAC;IAChC,gBAAgB,EAAE,YAAY,CAAC,GAAG,CAAC,CAAsB;IAC1D,OAAO,EAAE;QAChB,eAAe,EAAE,OAAO,CAAC;QACzB,cAAc,CAAC,EAAE;YACf,WAAW,EAAE,MAAM,CAAC;YACpB,UAAU,EAAE,MAAM,CAAC;YACnB,WAAW,EAAE,MAAM,CAAC;YACpB,iBAAiB,EAAE,MAAM,CAAC;YAC1B,kBAAkB,EAAE,OAAO,CAAC;YAC5B,SAAS,EAAE,MAAM,CAAC;YAClB,WAAW,EAAE,MAAM,CAAC;YACpB,mBAAmB,EAAE,MAAM,CAAC;SAC7B,CAAC;QACF,uBAAuB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AAI,CAAC,EAAE,MAAM,CAAC;QACd,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;KAKjB,GACA,MAAM;IAOT,gBAAgB;IAIhB,QAAQ,CACN,QAAQ,EACJ,MAAM,GACN,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,IAAI;IAUV,6BAA6B,CAAC,KAAK,EAAE,WAAW,EAAE;IAUlD,QAAQ,CACN,QAAQ,EACJ,MAAM,GACN,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,IAAI,EACR,gBAAgB,GAAE,OAAc;yCA7VvB,uBAAuB;2CAAvB,uBAAuB;CA+WnC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./tui-image-editor.component";
|
|
4
|
+
import * as i2 from "./menus/buttons/load/load.component";
|
|
5
|
+
import * as i3 from "./menus/buttons/history/history.component";
|
|
6
|
+
import * as i4 from "./svg-definitions/svg-definitions.component";
|
|
7
|
+
import * as i5 from "./menus/buttons/download/download.component";
|
|
8
|
+
import * as i6 from "./menus/buttons/zoom-in/zoom-in.component";
|
|
9
|
+
import * as i7 from "./menus/buttons/zoom-out/zoom-out.component";
|
|
10
|
+
import * as i8 from "./menus/buttons/drag/drag.component";
|
|
11
|
+
import * as i9 from "./menus/buttons/undo/undo.component";
|
|
12
|
+
import * as i10 from "./menus/buttons/redo/redo.component";
|
|
13
|
+
import * as i11 from "./menus/buttons/reset/reset.component";
|
|
14
|
+
import * as i12 from "./menus/buttons/delete/delete.component";
|
|
15
|
+
import * as i13 from "./menus/buttons/delete-all/delete-all.component";
|
|
16
|
+
import * as i14 from "./menus/buttons/crop/crop.component";
|
|
17
|
+
import * as i15 from "./submenus/crop/crop.component";
|
|
18
|
+
import * as i16 from "./menus/buttons/flip/flip.component";
|
|
19
|
+
import * as i17 from "./submenus/flip/flip.component";
|
|
20
|
+
import * as i18 from "./menus/buttons/rotate/rotate.component";
|
|
21
|
+
import * as i19 from "./submenus/rotate/rotate.component";
|
|
22
|
+
import * as i20 from "./menus/buttons/draw/draw.component";
|
|
23
|
+
import * as i21 from "./submenus/draw/draw.component";
|
|
24
|
+
import * as i22 from "./menus/buttons/shape/shape.component";
|
|
25
|
+
import * as i23 from "./submenus/shape/shape.component";
|
|
26
|
+
import * as i24 from "./menus/buttons/icon/icon.component";
|
|
27
|
+
import * as i25 from "./submenus/icon/icon.component";
|
|
28
|
+
import * as i26 from "./menus/buttons/text/text.component";
|
|
29
|
+
import * as i27 from "./submenus/text/text.component";
|
|
30
|
+
import * as i28 from "./menus/buttons/mask/mask.component";
|
|
31
|
+
import * as i29 from "./submenus/mask/mask.component";
|
|
32
|
+
import * as i30 from "./menus/buttons/filter/filter.component";
|
|
33
|
+
import * as i31 from "./submenus/filter/filter.component";
|
|
34
|
+
import * as i32 from "@angular/common";
|
|
35
|
+
import * as i33 from "@angular/forms";
|
|
36
|
+
import * as i34 from "@ngx-translate/core";
|
|
37
|
+
import * as i35 from "ngx-color-picker";
|
|
38
|
+
import * as i36 from "@ng-bootstrap/ng-bootstrap";
|
|
39
|
+
export declare const translateModule: import("@angular/core").ModuleWithProviders<TranslateModule>;
|
|
40
|
+
export declare class TuiImageEditorModule {
|
|
41
|
+
static forRoot(): {
|
|
42
|
+
ngModule: typeof TuiImageEditorModule;
|
|
43
|
+
providers: any[];
|
|
44
|
+
};
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiImageEditorModule, never>;
|
|
46
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiImageEditorModule, [typeof i1.TuiImageEditorComponent, typeof i2.LoadComponent, typeof i3.HistoryComponent, typeof i4.SvgDefinitionsComponent, typeof i5.DownloadComponent, typeof i6.ZoomInComponent, typeof i7.ZoomOutComponent, typeof i8.DragComponent, typeof i9.UndoComponent, typeof i10.RedoComponent, typeof i11.ResetComponent, typeof i12.DeleteComponent, typeof i13.DeleteAllComponent, typeof i14.CropComponent, typeof i15.CropComponent, typeof i16.FlipComponent, typeof i17.FlipComponent, typeof i18.RotateComponent, typeof i19.RotateComponent, typeof i20.DrawComponent, typeof i21.DrawComponent, typeof i22.ShapeComponent, typeof i23.ShapeComponent, typeof i24.IconComponent, typeof i25.IconComponent, typeof i26.TextComponent, typeof i27.TextComponent, typeof i28.MaskComponent, typeof i29.MaskComponent, typeof i30.FilterComponent, typeof i31.FilterComponent], [typeof i32.CommonModule, typeof i33.FormsModule, typeof i34.TranslateModule, typeof i35.ColorPickerModule, typeof i36.NgbPopoverModule], [typeof i1.TuiImageEditorComponent, typeof i4.SvgDefinitionsComponent]>;
|
|
47
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TuiImageEditorModule>;
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tui-image-editor.module.d.ts","sourceRoot":"","sources":["../../../projects/tui-image-editor-angular2/src/lib/tui-image-editor.module.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCtD,eAAO,MAAM,eAAe,8DAA4B,CAAC;AAEzD,qBA4Ca,oBAAoB;IAC/B,MAAM,CAAC,OAAO;;;;yCADH,oBAAoB;0CAApB,oBAAoB;0CAApB,oBAAoB;CAOhC"}
|
package/lib/utils.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Command } from './interfaces/command';
|
|
2
|
+
export declare function isFileApiSupported(): boolean;
|
|
3
|
+
export declare function isSilentCommand(command: string | Command): boolean;
|
|
4
|
+
export declare function getHistoryTitle(command: any): {
|
|
5
|
+
name: string;
|
|
6
|
+
detail: any;
|
|
7
|
+
};
|
|
8
|
+
export declare function getFilterType(type: string, { useAlpha, mode }?: {
|
|
9
|
+
useAlpha?: boolean;
|
|
10
|
+
mode?: any;
|
|
11
|
+
}): string;
|
|
12
|
+
export declare function dataUrlToBlob(dataUrl: string): Blob;
|
|
13
|
+
export declare const emptyCropRectValues: {
|
|
14
|
+
LEFT: number;
|
|
15
|
+
TOP: number;
|
|
16
|
+
WIDTH: number;
|
|
17
|
+
HEIGHT: number;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Check if cropRect is Empty.
|
|
21
|
+
* @param {Object} cropRect - cropRect object
|
|
22
|
+
* @param {Number} cropRect.left - cropRect left position value
|
|
23
|
+
* @param {Number} cropRect.top - cropRect top position value
|
|
24
|
+
* @param {Number} cropRect.width - cropRect width value
|
|
25
|
+
* @param {Number} cropRect.height - cropRect height value
|
|
26
|
+
* @returns {boolean}
|
|
27
|
+
*/
|
|
28
|
+
export declare function isEmptyCropzone(cropRect: any): boolean;
|
|
29
|
+
export declare function clearSelection(imageEditor: any, fire_event?: boolean): void;
|
|
30
|
+
export declare function getActiveObjectId(imageEditor: any): number | null;
|
|
31
|
+
export declare function removeFilter(imageEditor: any, type: string, isSilent: boolean): Promise<void>;
|
|
32
|
+
export declare function rgbaToObject(rgba: string): {
|
|
33
|
+
r: number;
|
|
34
|
+
g: number;
|
|
35
|
+
b: number;
|
|
36
|
+
hexString: string;
|
|
37
|
+
alpha: number;
|
|
38
|
+
};
|
|
39
|
+
export declare function rgbToObject(rgb: string): {
|
|
40
|
+
r: number;
|
|
41
|
+
g: number;
|
|
42
|
+
b: number;
|
|
43
|
+
hexString: string;
|
|
44
|
+
alpha: number;
|
|
45
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../projects/tui-image-editor-angular2/src/lib/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,O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|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tui-image-editor-angular3",
|
|
3
|
+
"version": "14.0.2",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^14.0.0",
|
|
6
|
+
"@angular/core": "^14.0.0",
|
|
7
|
+
"@angular/forms": "^14.0.0"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@ng-bootstrap/ng-bootstrap": "^13.0.0",
|
|
11
|
+
"@ngx-translate/core": "^14.0.0",
|
|
12
|
+
"@popperjs/core": "^2.10.2",
|
|
13
|
+
"fabric": "^5.2.4",
|
|
14
|
+
"ngx-color-picker": "^12.0.1",
|
|
15
|
+
"heic2any": "^0.0.4",
|
|
16
|
+
"tslib": "^2.3.0",
|
|
17
|
+
"tui-image-editor": "3.14.3"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/aldrashan/angular-tui.git"
|
|
22
|
+
},
|
|
23
|
+
"module": "fesm2015/tui-image-editor-angular3.mjs",
|
|
24
|
+
"es2020": "fesm2020/tui-image-editor-angular3.mjs",
|
|
25
|
+
"esm2020": "esm2020/tui-image-editor-angular3.mjs",
|
|
26
|
+
"fesm2020": "fesm2020/tui-image-editor-angular3.mjs",
|
|
27
|
+
"fesm2015": "fesm2015/tui-image-editor-angular3.mjs",
|
|
28
|
+
"typings": "index.d.ts",
|
|
29
|
+
"exports": {
|
|
30
|
+
"./package.json": {
|
|
31
|
+
"default": "./package.json"
|
|
32
|
+
},
|
|
33
|
+
".": {
|
|
34
|
+
"types": "./index.d.ts",
|
|
35
|
+
"esm2020": "./esm2020/tui-image-editor-angular3.mjs",
|
|
36
|
+
"es2020": "./fesm2020/tui-image-editor-angular3.mjs",
|
|
37
|
+
"es2015": "./fesm2015/tui-image-editor-angular3.mjs",
|
|
38
|
+
"node": "./fesm2015/tui-image-editor-angular3.mjs",
|
|
39
|
+
"default": "./fesm2020/tui-image-editor-angular3.mjs"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"sideEffects": false
|
|
43
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../projects/tui-image-editor-angular2/src/public-api.ts"],"names":[],"mappings":"AAIA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,iDAAiD,CAAC;AAChE,cAAc,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
@supports (-webkit-appearance: none) or (-moz-appearance: none) {
|
|
2
|
+
.tui-image-editor-container {
|
|
3
|
+
input[type="checkbox"] {
|
|
4
|
+
--active: #275efe;
|
|
5
|
+
--active-inner: #fff;
|
|
6
|
+
--focus: 2px rgba(39, 94, 254, 0.3);
|
|
7
|
+
--border: #bbc1e1;
|
|
8
|
+
--border-hover: #275efe;
|
|
9
|
+
--background: #fff;
|
|
10
|
+
--disabled: #f6f8ff;
|
|
11
|
+
--disabled-inner: #e1e6f9;
|
|
12
|
+
-webkit-appearance: none;
|
|
13
|
+
-moz-appearance: none;
|
|
14
|
+
height: 21px;
|
|
15
|
+
outline: none;
|
|
16
|
+
display: inline-block;
|
|
17
|
+
vertical-align: top;
|
|
18
|
+
position: relative;
|
|
19
|
+
margin: 0;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
border: 1px solid var(--bc, var(--border));
|
|
22
|
+
background: var(--b, var(--background));
|
|
23
|
+
transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
|
|
24
|
+
&:after {
|
|
25
|
+
content: "";
|
|
26
|
+
display: block;
|
|
27
|
+
left: 0;
|
|
28
|
+
top: 0;
|
|
29
|
+
position: absolute;
|
|
30
|
+
transition: transform var(--d-t, 0.3s) var(--d-t-e, ease),
|
|
31
|
+
opacity var(--d-o, 0.2s);
|
|
32
|
+
}
|
|
33
|
+
&:checked {
|
|
34
|
+
--b: var(--active);
|
|
35
|
+
--bc: var(--active);
|
|
36
|
+
--d-o: 0.3s;
|
|
37
|
+
--d-t: 0.6s;
|
|
38
|
+
--d-t-e: cubic-bezier(0.2, 0.85, 0.32, 1.2);
|
|
39
|
+
}
|
|
40
|
+
&:disabled {
|
|
41
|
+
--b: var(--disabled);
|
|
42
|
+
cursor: not-allowed;
|
|
43
|
+
opacity: 0.9;
|
|
44
|
+
&:checked {
|
|
45
|
+
--b: var(--disabled-inner);
|
|
46
|
+
--bc: var(--border);
|
|
47
|
+
}
|
|
48
|
+
& + span {
|
|
49
|
+
cursor: not-allowed;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
&:hover {
|
|
53
|
+
&:not(:checked) {
|
|
54
|
+
&:not(:disabled) {
|
|
55
|
+
--bc: var(--border-hover);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
&:focus {
|
|
60
|
+
box-shadow: 0 0 0 var(--focus);
|
|
61
|
+
}
|
|
62
|
+
width: 21px;
|
|
63
|
+
&:after {
|
|
64
|
+
opacity: var(--o, 0);
|
|
65
|
+
}
|
|
66
|
+
&:checked {
|
|
67
|
+
--o: 1;
|
|
68
|
+
}
|
|
69
|
+
& + span {
|
|
70
|
+
font-size: 14px;
|
|
71
|
+
line-height: 21px;
|
|
72
|
+
display: inline-block;
|
|
73
|
+
vertical-align: top;
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
margin-left: 4px;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
input[type="checkbox"] {
|
|
79
|
+
border-radius: 7px;
|
|
80
|
+
&:after {
|
|
81
|
+
width: 5px;
|
|
82
|
+
height: 9px;
|
|
83
|
+
border: 2px solid var(--active-inner);
|
|
84
|
+
border-top: 0;
|
|
85
|
+
border-left: 0;
|
|
86
|
+
left: 7px;
|
|
87
|
+
top: 4px;
|
|
88
|
+
transform: rotate(var(--r, 20deg));
|
|
89
|
+
}
|
|
90
|
+
&:checked {
|
|
91
|
+
--r: 43deg;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|