Searched refs:offset (Results 1 - 25 of 37) sorted by relevance

12

/yui3/src/graphics/js/
H A DCanvasPath.js81 var offset = this._stroke && this._strokeWeight ? (this._strokeWeight * 2) : 0;
82 return this._width - offset;
101 var offset = this._stroke && this._strokeWeight ? (this._strokeWeight * 2) : 0;
102 return this._height - offset;
H A DCanvasDrawing.js534 offset,
573 offset = stop.offset;
583 offset = stop.offset || i/(len - 1);
584 gradient.addColorStop(offset, color);
615 offset,
660 offset = stop.offset;
670 offset
[all...]
H A DSVGShape.js349 var offset,
446 offset = stop.offset || i/(len - 1);
447 offset = Math.round(offset * 100) + "%";
451 stopNode.setAttribute("offset", offset);
945 * <dt>offset</dt><dd>Number between 0 and 1 indicating where the color stop is positioned.</dd>
/yui3/src/slider/js/
H A Dvalue-range.js122 this.set(VALUE, this._offsetToValue(e.offset));
128 * thumb offset from the leading edge of the rail multiplied by the
135 * @param offset { Number } X or Y pixel offset
136 * @return { mixed } Value corresponding to the provided pixel offset
139 _offsetToValue: function ( offset ) {
141 var value = round( offset * this._factor ) + this.get( MIN );
143 Y.log("Offset: " + offset + " => Value: " + value, "info", "slider");
148 * Converts a value into a pixel offset for use in positioning
154 * @return { Number } The pixel offset
[all...]
H A Dslider-base.js70 * pixel offset from the top/left edge of the rail, and if triggered by
77 * <dt>offset</dt>
78 * <dd>Pixel offset from top/left of the slider to the new
419 * Moves the thumb to pixel offset position along the rail.
422 * @param offset {Number} the pixel offset to set as left or top style
426 _uiMoveThumb: function ( offset, options ) {
428 this.thumb.setStyle( this._key.minEdge, offset + 'px' );
430 Y.log("Setting thumb " + this._key.minEdge + " to " + offset + "px","info","slider");
433 options.offset
[all...]
/yui3/build/slider-value-range/
H A Dslider-value-range-debug.js124 this.set(VALUE, this._offsetToValue(e.offset));
130 * thumb offset from the leading edge of the rail multiplied by the
137 * @param offset { Number } X or Y pixel offset
138 * @return { mixed } Value corresponding to the provided pixel offset
141 _offsetToValue: function ( offset ) {
143 var value = round( offset * this._factor ) + this.get( MIN );
145 Y.log("Offset: " + offset + " => Value: " + value, "info", "slider");
150 * Converts a value into a pixel offset for use in positioning
156 * @return { Number } The pixel offset
[all...]
/yui3/src/charts/js/
H A DBarSeries.js20 * @param {Number} offset Distance of position offset dictated by other marker series in the same graph.
24 _getMarkerDimensions: function(xcoord, ycoord, calculatedSize, offset)
27 top: ycoord + offset
66 offset = 0,
75 config = this._getMarkerDimensions(xcoords[i], ycoords[i], styles.height, offset);
86 offset = seriesSize;
88 offset -= seriesSize/2;
H A DColumnSeries.js20 * @param {Number} offset Distance of position offset dictated by other marker series in the same graph.
24 _getMarkerDimensions: function(xcoord, ycoord, calculatedSize, offset)
27 left: xcoord + offset
66 offset = 0,
75 config = this._getMarkerDimensions(xcoords[i], ycoords[i], styles.width, offset);
86 offset = seriesSize;
88 offset -= seriesSize/2;
H A DHistogram.js37 offset = 0,
89 offset = seriesSize;
98 offset *= ratio;
103 offset -= seriesSize/2;
117 config = this._getMarkerDimensions(xcoords[i], ycoords[i], calculatedSize, offset);
H A DStackedColumnSeries.js206 offset = 0,
210 offset = styles.width * 0.5;
213 markerStyles.x = (xcoords[i] - offset);
H A DRightAxisLayout.js340 offset = 0 - tickOffset;
341 cb.setStyle("left", offset);
/yui3/src/graphics/docs/assets/js/
H A Dradial-tool.js35 {color: centerColor, opacity:1, offset:0},
36 {color: outerColor, opacity:1, offset:1}
159 {color: centerColor, opacity:1, offset:0},
160 {color: outerColor, opacity:1, offset:1}
168 {color: centerColor, opacity:1, offset:0},
169 {color: outerColor, opacity:1, offset:1}
/yui3/build/slider-base/
H A Dslider-base-debug.js72 * pixel offset from the top/left edge of the rail, and if triggered by
79 * <dt>offset</dt>
80 * <dd>Pixel offset from top/left of the slider to the new
421 * Moves the thumb to pixel offset position along the rail.
424 * @param offset {Number} the pixel offset to set as left or top style
428 _uiMoveThumb: function ( offset, options ) {
430 this.thumb.setStyle( this._key.minEdge, offset + 'px' );
432 Y.log("Setting thumb " + this._key.minEdge + " to " + offset + "px","info","slider");
435 options.offset
[all...]
/yui3/build/scrollview-paginator/
H A Dscrollview-paginator-debug.js176 * Return the offset value where scrollview should scroll to.
192 offset, currentPageLocation;
217 offset = pageOffsets[currentPageLocation]
218 return offset;
/yui3/build/resize-constrain/
H A Dresize-constrain-debug.js205 * @param {String} offset 'offsetHeight' or 'offsetWidth'
208 _checkConstrain: function(axis, axisConstrain, offset) {
220 point1 = info[axis] + info[offset];
224 info[offset] -= (point1 - point1Constrain);
232 info[offset] -= (point2Constrain - point2);
/yui3/src/resize/js/
H A Dresize-constrain.js203 * @param {String} offset 'offsetHeight' or 'offsetWidth'
206 _checkConstrain: function(axis, axisConstrain, offset) {
218 point1 = info[axis] + info[offset];
222 info[offset] -= (point1 - point1Constrain);
230 info[offset] -= (point2Constrain - point2);
/yui3/src/dom/js/
H A Ddom-style.js187 offset;
195 offset = node[GET_BOUNDING_CLIENT_RECT]()[attr];
197 val = offset - parentOffset;
220 if ( isNaN(xy[0]) ) { // default to offset value
227 if ( isNaN(xy[1]) ) { // default to offset value
/yui3/src/scrollview/js/
H A Dpaginator-plugin.js174 * Return the offset value where scrollview should scroll to.
190 offset, currentPageLocation;
215 offset = pageOffsets[currentPageLocation]
216 return offset;
/yui3/build/dom-style/
H A Ddom-style-debug.js189 offset;
197 offset = node[GET_BOUNDING_CLIENT_RECT]()[attr];
199 val = offset - parentOffset;
222 if ( isNaN(xy[0]) ) { // default to offset value
229 if ( isNaN(xy[1]) ) { // default to offset value
/yui3/build/graphics-canvas/
H A Dgraphics-canvas-debug.js536 offset,
575 offset = stop.offset;
585 offset = stop.offset || i/(len - 1);
586 gradient.addColorStop(offset, color);
617 offset,
662 offset = stop.offset;
672 offset
[all...]
/yui3/src/editor/js/
H A Deditor-selection.js600 * The offset from the range object
618 * The offset from the range object
698 * Insert HTML at the current cursor position, this method gives you control over the text node to insert into and the offset where to put it.
702 * @param {Number} offset The left offset of the text node to break and insert the new content.
706 insertAtCursor: function(html, node, offset, collapse) {
718 if (offset === 0 && node && !node.previous() && node.get('nodeType') === 3) {
721 * the offset is 0. (The cursor is at the beginning of the line)
762 //txt = Y.one(Y.Node.create(inHTML.substr(0, offset)));
763 //txt2 = Y.one(Y.Node.create(inHTML.substr(offset)));
[all...]
/yui3/build/editor-selection/
H A Deditor-selection-debug.js602 * The offset from the range object
620 * The offset from the range object
700 * Insert HTML at the current cursor position, this method gives you control over the text node to insert into and the offset where to put it.
704 * @param {Number} offset The left offset of the text node to break and insert the new content.
708 insertAtCursor: function(html, node, offset, collapse) {
720 if (offset === 0 && node && !node.previous() && node.get('nodeType') === 3) {
723 * the offset is 0. (The cursor is at the beginning of the line)
764 //txt = Y.one(Y.Node.create(inHTML.substr(0, offset)));
765 //txt2 = Y.one(Y.Node.create(inHTML.substr(offset)));
[all...]
/yui3/src/dial/js/
H A DDial.js336 '<v:shadow on="True" color="#000" opacity="10%" offset="2px, 2px"/>'+
858 offset, offsetResetX, offsetResetY,
879 offset = (this._ringNodeRadius - this._centerButtonNodeRadius);
880 this._centerButtonNode.setStyle('left', offset + 'px');
881 this._centerButtonNode.setStyle('top', offset + 'px');
/yui3/build/dial/
H A Ddial-debug.js338 '<v:shadow on="True" color="#000" opacity="10%" offset="2px, 2px"/>'+
860 offset, offsetResetX, offsetResetY,
881 offset = (this._ringNodeRadius - this._centerButtonNodeRadius);
882 this._centerButtonNode.setStyle('left', offset + 'px');
883 this._centerButtonNode.setStyle('top', offset + 'px');
/yui3/build/resize-base/
H A Dresize-base-debug.js918 * @param {String} offset 'offsetHeight' or 'offsetWidth'
919 * @param {number} size Size to restrict the offset
922 _checkSize: function(offset, size) {
926 axis = (offset == OFFSET_HEIGHT) ? TOP : LEFT;
929 info[offset] = size;
936 info[axis] = originalInfo[axis] + originalInfo[offset] - size;

Completed in 362 milliseconds

12