@syncfusion/ej2-angular-image-editor
Version:
Essential JS 2 ImageEditor for Angular
1 lines • 9.02 kB
Source Map (JSON)
{"version":3,"file":"syncfusion-ej2-angular-image-editor.mjs","sources":["../../src/image-editor/imageeditor.component.ts","../../src/image-editor/imageeditor.module.ts","../../src/image-editor/imageeditor-all.module.ts","../../syncfusion-ej2-angular-image-editor.ts"],"sourcesContent":["import { Component, ElementRef, ViewContainerRef, ChangeDetectionStrategy, QueryList, Renderer2, Injector, ValueProvider, ContentChild } from '@angular/core';\nimport { ComponentBase, IComponentBase, applyMixins, ComponentMixins, PropertyCollectionInfo, setValue } from '@syncfusion/ej2-angular-base';\nimport { ImageEditor } from '@syncfusion/ej2-image-editor';\nimport { Template } from '@syncfusion/ej2-angular-base';\n\n\nexport const inputs: string[] = ['allowUndoRedo','cssClass','disabled','enablePersistence','enableRtl','finetuneSettings','fontFamily','height','imageSmoothingEnabled','isReadOnly','locale','quickAccessToolbarTemplate','selectionSettings','showQuickAccessToolbar','theme','toolbar','toolbarTemplate','uploadSettings','width','zoomSettings'];\nexport const outputs: string[] = ['beforeSave','click','created','cropping','destroyed','editComplete','fileOpened','finetuneValueChanging','flipping','frameChange','imageFiltering','panning','quickAccessToolbarItemClick','quickAccessToolbarOpen','resizing','rotating','saved','selectionChanging','shapeChange','shapeChanging','toolbarCreated','toolbarItemClicked','toolbarUpdating','zooming'];\nexport const twoWays: string[] = [''];\n\n/**\n * Represents the EJ2 Angular ImageEditor Component.\n * ```html\n * <ejs-imageeditor></ejs-imageeditor>\n * ```\n */\n@Component({\n selector: 'ejs-imageeditor',\n inputs: inputs,\n outputs: outputs,\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n queries: {\n\n }\n})\n@ComponentMixins([ComponentBase])\nexport class ImageEditorComponent extends ImageEditor implements IComponentBase {\n public context : any;\n public tagObjects: any;\n\tbeforeSave: any;\n\tclick: any;\n\tcreated: any;\n\tcropping: any;\n\tdestroyed: any;\n\teditComplete: any;\n\tfileOpened: any;\n\tfinetuneValueChanging: any;\n\tflipping: any;\n\tframeChange: any;\n\timageFiltering: any;\n\tpanning: any;\n\tquickAccessToolbarItemClick: any;\n\tquickAccessToolbarOpen: any;\n\tresizing: any;\n\trotating: any;\n\tsaved: any;\n\tselectionChanging: any;\n\tshapeChange: any;\n\tshapeChanging: any;\n\ttoolbarCreated: any;\n\ttoolbarItemClicked: any;\n\ttoolbarUpdating: any;\n\tpublic zooming: any;\n\n\n /** \n * Specifies a custom template for the toolbar of an image editor control. \n * A string that specifies a custom template for the toolbar of the image editor. If this property is defined, the 'toolbar' property will not have any effect.\n * \n * {% codeBlock src='image-editor/toolbarTemplate/index.md' %}{% endcodeBlock %}\n * \n * @remarks Use this property if you want to customize the entire toolbar in your own way. The template should be a string that contains the HTML markup for the custom toolbar.\n\n * @default null\n * @asptype string\n\n\n */\n @ContentChild('toolbarTemplate')\n @Template()\n public toolbarTemplate: any;\n\n constructor(private ngEle: ElementRef, private srenderer: Renderer2, private viewContainerRef:ViewContainerRef, private injector: Injector) {\n super();\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n\n this.registerEvents(outputs);\n this.addTwoWay.call(this, twoWays);\n setValue('currentInstance', this, this.viewContainerRef);\n this.context = new ComponentBase();\n }\n\n public ngOnInit() {\n this.context.ngOnInit(this);\n }\n\n public ngAfterViewInit(): void {\n this.context.ngAfterViewInit(this);\n }\n\n public ngOnDestroy(): void {\n this.context.ngOnDestroy(this);\n }\n\n public ngAfterContentChecked(): void {\n \n this.context.ngAfterContentChecked(this);\n }\n\n public registerEvents: (eventList: string[]) => void;\n public addTwoWay: (propList: string[]) => void;\n}\n\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ImageEditorComponent } from './imageeditor.component';\n\n/**\n * NgModule definition for the ImageEditor component.\n */\n@NgModule({\n imports: [CommonModule],\n declarations: [\n ImageEditorComponent\n ],\n exports: [\n ImageEditorComponent\n ]\n})\nexport class ImageEditorModule { }","import { NgModule, ValueProvider } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ImageEditorComponent } from './imageeditor.component';\nimport { ImageEditorModule } from './imageeditor.module';\n\n\n\n\n\n/**\n * NgModule definition for the ImageEditor component with providers.\n */\n@NgModule({\n imports: [CommonModule, ImageEditorModule],\n exports: [\n ImageEditorModule\n ],\n providers:[\n \n ]\n})\nexport class ImageEditorAllModule { }","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;AAMO,MAAM,MAAM,GAAa,CAAC,eAAe,EAAC,UAAU,EAAC,UAAU,EAAC,mBAAmB,EAAC,WAAW,EAAC,kBAAkB,EAAC,YAAY,EAAC,QAAQ,EAAC,uBAAuB,EAAC,YAAY,EAAC,QAAQ,EAAC,4BAA4B,EAAC,mBAAmB,EAAC,wBAAwB,EAAC,OAAO,EAAC,SAAS,EAAC,iBAAiB,EAAC,gBAAgB,EAAC,OAAO,EAAC,cAAc,CAAC,CAAC;AAC9U,MAAM,OAAO,GAAa,CAAC,YAAY,EAAC,OAAO,EAAC,SAAS,EAAC,UAAU,EAAC,WAAW,EAAC,cAAc,EAAC,YAAY,EAAC,uBAAuB,EAAC,UAAU,EAAC,aAAa,EAAC,gBAAgB,EAAC,SAAS,EAAC,6BAA6B,EAAC,wBAAwB,EAAC,UAAU,EAAC,UAAU,EAAC,OAAO,EAAC,mBAAmB,EAAC,aAAa,EAAC,eAAe,EAAC,gBAAgB,EAAC,oBAAoB,EAAC,iBAAiB,EAAC,SAAS,CAAC,CAAC;AACnY,MAAM,OAAO,GAAa,CAAC,EAAE,CAAC,CAAC;AAEtC;;;;;AAKG;IAYU,oBAAoB,GAAA,MAApB,oBAAqB,SAAQ,WAAW,CAAA;AA8CjD,IAAA,WAAA,CAAoB,KAAiB,EAAU,SAAoB,EAAU,gBAAiC,EAAU,QAAkB,EAAA;AACtI,QAAA,KAAK,EAAE,CAAC;QADQ,IAAK,CAAA,KAAA,GAAL,KAAK,C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