Lines Matching refs:el

1980     var el = fabric.document.createElement(tagName);
1983 el.className = attributes[prop];
1986 el.htmlFor = attributes[prop];
1989 el.setAttribute(prop, attributes[prop]);
1992 return el;
3182 var el = nodelist[0],
3183 xlink = el.getAttribute('xlink:href').substr(1),
3184 x = el.getAttribute('x') || 0,
3185 y = el.getAttribute('y') || 0,
3190 for (var j = 0, attrs = el.attributes, l = attrs.length; j < l; j++) {
3207 parentNode = el.parentNode;
3208 parentNode.replaceChild(el2, el);
3233 viewBoxWidth, viewBoxHeight, matrix, el;
3266 el = element.ownerDocument.createElement('g');
3268 el.appendChild(element.firstChild);
3270 element.appendChild(el);
3273 el = element;
3274 matrix = el.getAttribute('transform') + matrix;
3277 el.setAttribute('transform', matrix);
3347 var elements = descendants.filter(function(el) { argument
3348 reViewBoxTagNames.test(el.tagName) && addVBTransform(el, 0, 0);
3349 return reAllowedSVGTagNames.test(el.tagName) &&
3350 …!hasAncestorWithNodeName(el, /^(?:pattern|defs|symbol)$/); // http://www.w3.org/TR/SVG/struct.html…
3491 el, i, j = 0, id, xlink, elList = [ ],
3505 el = elList[j];
3506 xlink = el.getAttribute('xlink:href');
3507 id = el.getAttribute('id');
3511 gradientDefs[id] = el;
3516 el = gradientDefs[id];
3518 el.appendChild(el2.firstChild);
3856 fabric.ElementsParser.prototype.createObject = function(el, index) { argument
3857 var klass = fabric[fabric.util.string.capitalize(el.tagName)];
3860 this._createObject(klass, el, index);
3871 fabric.ElementsParser.prototype._createObject = function(klass, el, index) { argument
3873 klass.fromElement(el, this.createCallback(index, el), this.options);
3876 var obj = klass.fromElement(el, this.options);
3879 this.reviver && this.reviver(el, obj);
3885 fabric.ElementsParser.prototype.createCallback = function(index, el) { argument
3890 _this.reviver && _this.reviver(el, obj);
3911 this.instances = this.instances.filter(function(el) { argument
3912 return el != null;
4861 function getColorStop(el) { argument
4862 var style = el.getAttribute('style'),
4863 offset = el.getAttribute('offset'),
4892 color = el.getAttribute('stop-color') || 'rgb(0,0,0)';
4895 opacity = el.getAttribute('stop-opacity');
4910 function getLinearCoords(el) { argument
4912 x1: el.getAttribute('x1') || 0,
4913 y1: el.getAttribute('y1') || 0,
4914 x2: el.getAttribute('x2') || '100%',
4915 y2: el.getAttribute('y2') || 0
4919 function getRadialCoords(el) { argument
4921 x1: el.getAttribute('fx') || el.getAttribute('cx') || '50%',
4922 y1: el.getAttribute('fy') || el.getAttribute('cy') || '50%',
4924 x2: el.getAttribute('cx') || '50%',
4925 y2: el.getAttribute('cy') || '50%',
4926 r2: el.getAttribute('r') || '50%'
5166 fromElement: function(el, instance) { argument
5201 var colorStopEls = el.getElementsByTagName('stop'),
5202 type = (el.nodeName === 'linearGradient' ? 'linear' : 'radial'),
5203 gradientUnits = el.getAttribute('gradientUnits') || 'objectBoundingBox',
5204 gradientTransform = el.getAttribute('gradientTransform'),
5209 coords = getLinearCoords(el);
5212 coords = getRadialCoords(el);
5678 initialize: function(el, options) { argument
5681 this._initStatic(el, options);
5802 _initStatic: function(el, options) { argument
5805 this._createLowerCanvas(el);
7182 var el = fabric.util.createCanvasElement();
7184 if (!el || !el.getContext) {
7188 var ctx = el.getContext('2d');
7202 return typeof el.toDataURL !== 'undefined';
7206 el.toDataURL('image/jpeg', 0);
7994 initialize: function(el, options) { argument
7997 this._initStatic(el, options);
10472 var el = fabric.document.createElement('canvas');
10474 el.width = this.getWidth();
10475 el.height = this.getHeight();
10477 var clone = new fabric.Canvas(el);
11677 var el = fabric.util.createCanvasElement(),
11680 el.width = boundingRect.width;
11681 el.height = boundingRect.height;
11683 fabric.util.wrapElement(el, 'div');
11684 var canvas = new fabric.StaticCanvas(el);
11702 this.setPositionByOrigin(new fabric.Point(el.width / 2, el.height / 2), 'center', 'center');