File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import './lib/joint.scss';
22import './lib/layout.scss' ;
33import './lib/material.scss' ;
44import 'jquery' ;
5- import 'lodash' ;
5+ import _ from 'lodash' ;
66import 'backbone' ;
77import * as joint from 'jointjs/dist/joint.min' ;
88// TODO replace with a lighter math library
@@ -95,7 +95,7 @@ class JointGraph {
9595 } ) ;
9696
9797 const graphResizeObserver = new ResizeObserver ( ( _ ) => {
98- this . _resizeGraph ( ) ;
98+ this . _resizeGraph ( dom ) ;
9999 } ) ;
100100 graphResizeObserver . observe ( dom ) ;
101101
@@ -147,8 +147,8 @@ class JointGraph {
147147
148148 }
149149
150- _resizeGraph ( ) {
151- this . _paper . setDimensions ( this . _dom . offsetWidth , this . _dom . offsetHeight ) ;
150+ _resizeGraph ( dom ) {
151+ this . _paper . setDimensions ( dom . offsetWidth , dom . offsetHeight ) ;
152152 }
153153
154154 _scaleToPoint ( nextScale , x , y ) {
You can’t perform that action at this time.
0 commit comments