static/kelmu.editor.js
function() {
      container.find('.kelmu-annotation').resizable({
        start: function() {
          var elem = $(this);
          var data = window.kelmu.data[id];
          data.selectedElementNumber = parseInt(elem.attr('data-annotation'), 10);
          if (elem.css('background-color') === 'transparent' || elem.css('background-color') === 'rgba(0, 0, 0, 0)') {
            elem.css('background-color', 'rgba(0, 0, 0, 0.1)');
          }
        },
        stop: function() {
          restoreRotation.call(this);
          updatePosition.call(this);
          notifyModifications();
          updateView(false, true);
        }
      });
    }
function() {
      container.find('.kelmu-annotation').resizable({
        start: function() {
          var elem = $(this);
          var data = window.kelmu.data[id];
          data.selectedElementNumber = parseInt(elem.attr('data-annotation'), 10);
          if (elem.css('background-color') === 'transparent' || elem.css('background-color') === 'rgba(0, 0, 0, 0)') {
            elem.css('background-color', 'rgba(0, 0, 0, 0.1)');
          }
        },
        stop: function() {
          restoreRotation.call(this);
          updatePosition.call(this);
          notifyModifications();
          updateView(false, true);
        }
      });
    }
function ( ) { container . find ( '.kelmu-annotation' ) . resizable ( { start : function ( ) { var elem = $ ( this ) ; var data = window . kelmu . data [ id ] ; data . selectedElementNumber = parseInt ( elem . attr ( 'data-annotation' ) , 10 ) ; if ( elem . css ( 'background-color' ) === 'transparent' || elem . css ( 'background-color' ) === 'rgba(0, 0, 0, 0)' ) { elem . css ( 'background-color' , 'rgba(0, 0, 0, 0.1)' ) ; } } , stop : function ( ) { restoreRotation . call ( this ) ; updatePosition . call ( this ) ; notifyModifications ( ) ; updateView ( false , true ) ; } } ) ; }
Makes the annotations to be resizable in the editor.
Makes the annotations to be resizable in the editor .