src/canvas/view/FrameView.js
/**
   * Update dimensions of the frame
   * @private
   */
Update dimensions of the frame
@private
Update dimensions of the frame @private
updateDim() {
    const { em, el, $el } = this;
    const { style } = el;
    const device = em.getDeviceModel();
    const currW = style.width || '';
    const currH = style.height || '';
    const newW = device ? device.get('width') : '';
    const newH = device ? device.get('height') : '';
    const noChanges = currW == newW && currH == newH;
    style.width = newW;
    style.height = newH;
    this.updateOffset();
    em.stopDefault({ preserveSelected: 1 });
    noChanges ? this.updateOffset() : $el.on(motionsEv, this.updateOffset);
  }
updateDim ( ) { const { em , el , $el } = this ; const { style } = el ; const device = em . getDeviceModel ( ) ; const currW = style . width || '' ; const currH = style . height || '' ; const newW = device ? device . get ( 'width' ) : '' ; const newH = device ? device . get ( 'height' ) : '' ; const noChanges = currW == newW && currH == newH ; style . width = newW ; style . height = newH ; this . updateOffset ( ) ; em . stopDefault ( { preserveSelected : 1 } ) ; noChanges ? this . updateOffset ( ) : $el . on ( motionsEv , this . updateOffset ) ; }
Update dimensions of the frame
 @private
Update dimensions of the frame @private
// Prevent fixed highlighting box which appears when on // component hover during the animation