How to use moveable - 4 common examples

To help you get started, we’ve selected a few moveable examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github daybrush / moveable / packages / ngx-moveable / projects / ngx-moveable / src / ngx-moveable.component.ts View on Github external
constructor() {
    EVENTS.forEach(name => {
      this[name] = new EventEmitter();
    });
  }
  ngOnInit(): void {
github daybrush / moveable / packages / ngx-moveable / projects / ngx-moveable / src / ngx-moveable.component.ts View on Github external
ngOnInit(): void {
    const options: MoveableOptions = {};
    const events: IObject = {};

    PROPERTIES.forEach(name => {
      (options as any)[name] = this[name];
    });
    EVENTS.forEach(name => {
      events[name] = e => {
        this[name].emit(e);
      };
    });

    this.moveable = new Moveable(this.container || document.body, options);
    this.moveable.on(events);
  }
  ngOnChanges(changes: SimpleChanges): void {
github daybrush / moveable / packages / ngx-moveable / projects / ngx-moveable / src / ngx-moveable.component.ts View on Github external
ngOnInit(): void {
    const options: MoveableOptions = {};
    const events: IObject = {};

    PROPERTIES.forEach(name => {
      (options as any)[name] = this[name];
    });
    EVENTS.forEach(name => {
      events[name] = e => {
        this[name].emit(e);
      };
    });

    this.moveable = new Moveable(this.container || document.body, options);
    this.moveable.on(events);
  }
  ngOnChanges(changes: SimpleChanges): void {
github daybrush / moveable / packages / ngx-moveable / projects / ngx-moveable / src / ngx-moveable.component.ts View on Github external
ngOnInit(): void {
    const options: MoveableOptions = {};
    const events: IObject = {};

    PROPERTIES.forEach(name => {
      (options as any)[name] = this[name];
    });
    EVENTS.forEach(name => {
      events[name] = e => {
        this[name].emit(e);
      };
    });

    this.moveable = new Moveable(this.container || document.body, options);
    this.moveable.on(events);
  }
  ngOnChanges(changes: SimpleChanges): void {

moveable

Moveable is Draggable, Resizable, Scalable, Rotatable, Warpable, Pinchable, Groupable, Snappable.

MIT
Latest version published 12 months ago

Package Health Score

63 / 100
Full package analysis