Skip to content

Commit

Permalink
fix: fixed a bug that caused scale to be shared between ng-draw-flow …
Browse files Browse the repository at this point in the history
…instances
  • Loading branch information
a1rat91 committed Oct 23, 2024
1 parent 98fb4d9 commit e00b9f7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export const DF_PAN_ZOOM_INITIAL_SCALE = 1;
export const DF_PAN_ZOOM_INITIAL_MODEL = {x: 0, y: 0, offsetX: 0, offsetY: 0, zoom: 1};
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import {Injectable} from '@angular/core';

import {DF_PAN_ZOOM_INITIAL_MODEL} from './pan-zoom.const';
import type {DfPanzoomModel} from './pan-zoom.interfaces';

@Injectable()
export class PanZoomService {
public panzoomModel: DfPanzoomModel = DF_PAN_ZOOM_INITIAL_MODEL;
public panzoomModel: DfPanzoomModel = {x: 0, y: 0, offsetX: 0, offsetY: 0, zoom: 1};
public panzoomDisabled = false;
}

0 comments on commit e00b9f7

Please sign in to comment.