Skip to content

Commit

Permalink
Fix issues with the zoomfactor being passed to svg components (#313)
Browse files Browse the repository at this point in the history
Co-authored-by: Eugene Ghanizadeh Khoub <ghanizadeh.eugene@gmail.com>
  • Loading branch information
matthiaslehnertum and loreanvictor authored Oct 20, 2023
1 parent e32aeeb commit 3a9c5f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/main/apollon-editor.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// tslint:disable: no-console

import 'pepjs';
import { createElement } from 'react';
import { createRoot, Root } from 'react-dom/client';
Expand Down Expand Up @@ -387,7 +385,6 @@ export class ApollonEditor {
this.store.getState().lastAction.endsWith('DELETE')
) {
const lastModel = ModelState.toModel(this.store.getState());
console.log(lastModel);
Object.values(this.discreteModelSubscribers).forEach((subscriber) => subscriber(lastModel));
}
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/components/uml-element/movable/movable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const movable = (
}

render() {
const { movable: _, start, move, end, ...props } = this.props;
const { movable: _movable, zoomFactor: _zoomFactor, start, move, end, ...props } = this.props;
return <WrappedComponent {...props} />;
}

Expand Down

0 comments on commit 3a9c5f2

Please sign in to comment.