Lines Matching refs:upperCanvasEl

1810   function getPointer(event, upperCanvasEl) {  argument
1816 scroll = fabric.util.getScrollLeftTop(element, upperCanvasEl);
2033 function getScrollLeftTop(element, upperCanvasEl) { argument
2056 origElement !== upperCanvasEl &&
6214 if (this.upperCanvasEl) {
6215 this.upperCanvasEl[prop] = value;
6238 if (this.upperCanvasEl) {
6239 this.upperCanvasEl.style[prop] = value;
8611 this.upperCanvasEl.style.cursor = value;
8778 getPointer: function (e, ignoreZoom, upperCanvasEl) { argument
8779 if (!upperCanvasEl) {
8780 upperCanvasEl = this.upperCanvasEl;
8782 var pointer = getPointer(e, upperCanvasEl),
8783 bounds = upperCanvasEl.getBoundingClientRect(),
8814 width: upperCanvasEl.width / boundsWidth,
8815 height: upperCanvasEl.height / boundsHeight
8832 this.upperCanvasEl = this._createCanvasElement();
8833 fabric.util.addClass(this.upperCanvasEl, 'upper-canvas ' + lowerCanvasClass);
8835 this.wrapperEl.appendChild(this.upperCanvasEl);
8837 this._copyCanvasStyle(this.lowerCanvasEl, this.upperCanvasEl);
8838 this._applyCanvasStyle(this.upperCanvasEl);
8839 this.contextTop = this.upperCanvasEl.getContext('2d');
8910 return this.upperCanvasEl;
9158 addListener(this.upperCanvasEl, 'mousedown', this._onMouseDown);
9159 addListener(this.upperCanvasEl, 'mousemove', this._onMouseMove);
9160 addListener(this.upperCanvasEl, 'mousewheel', this._onMouseWheel);
9163 addListener(this.upperCanvasEl, 'touchstart', this._onMouseDown);
9164 addListener(this.upperCanvasEl, 'touchmove', this._onMouseMove);
9167 eventjs.add(this.upperCanvasEl, 'gesture', this._onGesture);
9168 eventjs.add(this.upperCanvasEl, 'drag', this._onDrag);
9169 eventjs.add(this.upperCanvasEl, 'orientation', this._onOrientationChange);
9170 eventjs.add(this.upperCanvasEl, 'shake', this._onShake);
9171 eventjs.add(this.upperCanvasEl, 'longpress', this._onLongPress);
9197 removeListener(this.upperCanvasEl, 'mousedown', this._onMouseDown);
9198 removeListener(this.upperCanvasEl, 'mousemove', this._onMouseMove);
9199 removeListener(this.upperCanvasEl, 'mousewheel', this._onMouseWheel);
9201 removeListener(this.upperCanvasEl, 'touchstart', this._onMouseDown);
9202 removeListener(this.upperCanvasEl, 'touchmove', this._onMouseMove);
9205 eventjs.remove(this.upperCanvasEl, 'gesture', this._onGesture);
9206 eventjs.remove(this.upperCanvasEl, 'drag', this._onDrag);
9207 eventjs.remove(this.upperCanvasEl, 'orientation', this._onOrientationChange);
9208 eventjs.remove(this.upperCanvasEl, 'shake', this._onShake);
9209 eventjs.remove(this.upperCanvasEl, 'longpress', this._onLongPress);
9276 removeListener(this.upperCanvasEl, 'mousemove', this._onMouseMove);
9277 removeListener(this.upperCanvasEl, 'touchmove', this._onMouseMove);
9281 removeListener(this.upperCanvasEl, 'mousedown', this._onMouseDown);
9302 addListener(this.upperCanvasEl, 'mousemove', this._onMouseMove);
9303 addListener(this.upperCanvasEl, 'touchmove', this._onMouseMove);
9310 addListener(_this.upperCanvasEl, 'mousedown', _this._onMouseDown);
10111 var canvasEl = this.upperCanvasEl || this.lowerCanvasEl,
22524 fabric.util.addListener(this.canvas.upperCanvasEl, 'click', this.onClick.bind(this));