Lines Matching defs:elem

128 function createWave(elem) {
129 var elementStyle = window.getComputedStyle(elem);
159 function setUpPaper(elem) {
162 var elementStyle = window.getComputedStyle(elem);
165 elem.width = elem.clientWidth;
166 elem.setAttribute('width', elem.clientWidth * pixelDensity + "px");
167 elem.setAttribute('height', elem.clientHeight * pixelDensity + "px");
169 var isButton = elem.classList.contains( 'button' ) || elem.classList.contains( 'button_floating' ) | elem.classList.contains( 'button_menu' );
170 var isToolbarButton = elem.classList.contains( 'button_toolbar' );
172 elem.getContext('2d').scale(pixelDensity, pixelDensity)
176 element: elem,
182 scope.label = elem.getAttribute('value') || elementStyle.content;
185 drawLabel(elem, scope.label, scope.labelFontSize, fgColor, elem.style.textAlign);
195 var ctx = elem.getContext('2d');
196 ctx.clearRect(0, 0, elem.width, elem.height);
222 var radius = waveRadiusFn(tDown, tUp, elem.width, elem.height);
251 drawRipple(elem, x, y, radius, waveColor, bgFillColor);
266 var ctx = elem.getContext('2d');
267 ctx.clearRect(0, 0, elem.width, elem.height);
271 drawLabel(elem, scope.label, scope.labelFontSize, fgColor, elem.style.textAlign);
283 elem.addEventListener('mousedown', function(e) {
285 var elem = scope.element;
299 if (elem.classList.contains("recenteringTouch")) {
305 elem.classList.add("activated");
315 elem.addEventListener('mouseup', function(e) {
316 elem.classList.remove("activated");
332 elem.addEventListener('mouseout', function(e) {
333 elem.classList.remove("activated");