whole_func_string: function create(props) {
      var shouldUseTouch = _utilities2.default.getMode() === 'touch';
  
      _domWidget2.default.create.call(this);
  
      Object.assign(this, CanvasWidget.defaults);
  
      /**
       * Store a reference to the canvas 2D context.
       * @memberof CanvasWidget
       * @instance
       * @type {CanvasRenderingContext2D}
       */
      this.ctx = this.element.getContext('2d');
  
      this.applyHandlers(shouldUseTouch);
    }
func_code_string: function create(props) {
      var shouldUseTouch = _utilities2.default.getMode() === 'touch';
  
      _domWidget2.default.create.call(this);
  
      Object.assign(this, CanvasWidget.defaults);
  
      /**
       * Store a reference to the canvas 2D context.
       * @memberof CanvasWidget
       * @instance
       * @type {CanvasRenderingContext2D}
       */
      this.ctx = this.element.getContext('2d');
  
      this.applyHandlers(shouldUseTouch);
    }
func_documentation_string: Create a new CanvasWidget instance
  @memberof CanvasWidget
  @constructs
  @static