Lines Matching refs:label
117 label,
124 label = styles.label.margin;
131 label[i] = label[i] === undefined ? defaultMargins[i] : label[i];
210 label: {
351 labelStyles = styles.label,
363 label,
423 label = this.getLabel(tickPoint, labelStyles);
424 this._labels.push(label);
426 this.get("appendLabelFunction")(label, labelFunction.apply(labelFunctionScope, [this.getLabelByIndex(i, len), labelFormat]));
427 labelWidth = Math.round(label.offsetWidth);
428 labelHeight = Math.round(label.offsetHeight);
596 * Creates or updates an axis label.
599 * @param {Object} pt x and y coordinates for the label
600 * @param {Object} styles styles applied to label
607 label,
616 label = labelCache.shift();
620 label = DOCUMENT.createElement("span");
621 label.className = Y.Lang.trim([label.className, "axisLabel"].join(' '));
622 this.get("contentBox").append(label);
626 if(label.style.filter)
628 label.style.filter = null;
631 label.style.display = "block";
632 label.style.whiteSpace = "nowrap";
633 label.style.position = "absolute";
638 label.style[i] = styles[i];
641 return label;
667 * Removes axis labels from the dom and clears the label cache.
678 label;
681 label = this._labelCache[i];
682 this._removeChildren(label);
683 Y.Event.purgeElement(label, true);
684 label.parentNode.removeChild(label);
848 * @param {HTMLElement} label text field to rotate and position
852 _rotate: function(label, props)
866 label.style.MozTransformOrigin = (transformOrigin[0] * 100) + "% " + (transformOrigin[1] * 100) + "%";
867 label.style.MozTransform = matrix.toCSSText();
868 label.style.webkitTransformOrigin = (transformOrigin[0] * 100) + "% " + (transformOrigin[1] * 100) + "%";
869 label.style.webkitTransform = matrix.toCSSText();
870 label.style.msTransformOrigin = (transformOrigin[0] * 100) + "% " + (transformOrigin[1] * 100) + "%";
871 label.style.msTransform = matrix.toCSSText();
872 label.style.OTransformOrigin = (transformOrigin[0] * 100) + "% " + (transformOrigin[1] * 100) + "%";
873 label.style.OTransform = matrix.toCSSText();
901 label.style.left = matrix.dx + "px";
902 label.style.top = matrix.dy + "px";
906 label.style.left = x + "px";
907 label.style.top = y + "px";
911 label.style.filter = filterString;
940 * Returns the coordinates (top, right, bottom, left) for the bounding box of the last label.
951 * Returns the coordinates (top, right, bottom, left) for the bounding box of the first label.
962 * Returns the coordinates (top, right, bottom, left) for the bounding box of a label.
965 * @param {String} Value of the label
972 labelStyles = this.get("styles").label,
974 label,
977 label = this.getLabel({x: 0, y: 0}, labelStyles);
978 this.get("appendLabelFunction")(label, this.get("labelFunction").apply(this, [val, this.get("labelFormat")]));
979 props.labelWidth = label.offsetWidth;
980 props.labelHeight = label.offsetHeight;
981 this._removeChildren(label);
982 Y.Event.purgeElement(label, true);
983 label.parentNode.removeChild(label);
1024 label,
1030 label = labels.shift();
1031 this._removeChildren(label);
1032 cb.removeChild(label);
1033 label = null;
1056 * @param label {HTMLElement} label to be updated
1057 * @param val {String} value with which to update the label
1406 * Method used for formatting a label. This attribute allows for the default label formatting method to overridden. The method use would need
1410 * <dt>format</dt><dd>Template for formatting label. (optional)</dd>
1424 * Function used to append an axis value to an axis label. This function has the following signature:
1426 * <dt>textField</dt><dd>The axis label to be appended. (`HTMLElement`)</dd>
1494 * <dt>label</dt><dd>Properties and styles applied to the axis labels.
1500 * <dt>margin</dt><dd>The distance between the label and the axis/tick. Depending on the position of the `Axis`, only one of the properties used.