Giter Club home page Giter Club logo

angular-resize-element's People

Contributors

michaelkravchuk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

angular-resize-element's Issues

Input click not working of resized element child element.

I have an input element inside resized element. When i clicked on input it's not working.
When i removed "(resize)" functionality it's working perfectly fine.

I added a click function for that input it's working but input not getting focus .

I'm using "Angular 7.3.7" version.

Is there any solution ??

Cannot assign to 'targetElement' because it is a read-only property.

This is easy:

image

export declare class AngularResizeElementDirective {
private readonly elementRef;
private readonly renderer2;
private mouseUpListener;
private mouseMoveListener;
private targetElementWidthValue;
private targetElementHeightValue;
private targetElementTopValue;
private targetElementLeftValue;
private originalEvent;
targetElement: HTMLElement | ElementRef;
direction: AngularResizeElementDirection;
proportionalResize: boolean;
rect: Position;
readonly applyClass = "resizing";
resizeStart: EventEmitter;
resize: EventEmitter;
resizeEnd: EventEmitter;
constructor(elementRef: ElementRef, renderer2: Renderer2);
onMouseDown(evt: MouseEvent): void;
private onMouseUp;
private onMouseMove;
private setOriginalData;
private readonly targetNativeElement;
private generateValuesForEvent;
static ɵfac: ɵngcc0.ɵɵFactoryDef<AngularResizeElementDirective, never>;
static ɵdir: ɵngcc0.ɵɵDirectiveDefWithMeta<AngularResizeElementDirective, "[resize], [resizeStart], [resizeEnd]", never, { "applyClass": "applyClass"; "targetElement": "targetElement"; "direction": "direction"; "proportionalResize": "proportionalResize"; "rect": "rect"; }, { "resizeStart": "resizeStart"; "resize": "resize"; "resizeEnd": "resizeEnd"; }, never>;
}

Migrating to Angular 13

Hey, I again

Could you update the project to be compatible with Angular 13 / 14 ?

I had to force the update but I had a warning with this library.

DeprecationWarning

After compiling an Angular 13 project I had this warning

angular-resize-element [es2015/esm2015] (https://github.com/MichaelKravchuk/angular-resize-element.git) (node:12436) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead (Use node --trace-deprecation ... to show where the warning was created)

How to set minimum width and minimum height while resizing?

Hi

I'm working on Angular 8, i have used this plugin for resizing the table. But i need to set minimum width as well as height for table within minimum width and height the resizing has to limit there itself.
Screenshot from 2021-05-06 15-46-58

In the above picture the table is too long so i have to scroll that table over a limit of height, I want to set minimum resize width and height constraints.

Help me out soon.

Thank you.

Not compatible with Angular 9+

ERROR in node_modules/angular-resize-element/lib/angular-resize-element.module.d.ts:1:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.

This likely means that the library (angular-resize-element) which declares AngularResizeElementModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

    1| export declare class AngularResizeElementModule {

Migrating from Angular 9.1 to 10

Hi, I was trying to update my project but these two errors appeared.

Any idea?

I am using angular-resize-element 1.1.8

Package "angular-resize-element" has an incompatible peer dependency to "@angular/common" (requires "^8.2.6" (extended), would install "10.2.5").

Package "angular-resize-element" has an incompatible peer dependency to "@angular/core" (requires "^8.2.6" (extended), would install "10.2.5").

What can I do to solve it?

Add few blocks resize logic

Issue type

  • bug report
  • feature request

Issue description

  • In the demo example, we have two blocks, when I resize, one of them should change the width of another one. What I mean: If you have 2 blocks in 1 line and you resize it to 50% and then try to resize one of them should be 70% and the second one 30%.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.