Skip to content

Commit

Permalink
Gallery Build Tag: gallery-2011.05.18-19-11
Browse files Browse the repository at this point in the history
  • Loading branch information
YUI Builder committed May 18, 2011
1 parent 0f3ff5e commit 4d76a7f
Show file tree
Hide file tree
Showing 12 changed files with 213 additions and 104 deletions.
7 changes: 5 additions & 2 deletions build/gallery-carousel-anim/gallery-carousel-anim-debug.js
Expand Up @@ -117,7 +117,10 @@ Y.CarouselAnimPlugin = Y.extend(CarouselAnimPlugin, Y.Plugin.Base, {
CarouselAnimPlugin.NAME);
animation = self.get("animation");
if (carousel && animation.speed > 0) {
index = carousel._getCorrectedIndex(index); // sanitize the value
index = carousel._getCorrectedIndex(index);
if (isNaN(index)) {
return;
}
cb = carousel.get("contentBox");
isVertical = carousel.get("isVertical");
if (isVertical) {
Expand Down Expand Up @@ -191,4 +194,4 @@ Y.CarouselAnimPlugin = Y.extend(CarouselAnimPlugin, Y.Plugin.Base, {
});


}, 'gallery-2011.05.04-20-03' ,{requires:['gallery-carousel', 'anim', 'plugin', 'pluginhost']});
}, 'gallery-2011.05.18-19-11' ,{requires:['gallery-carousel', 'anim', 'plugin', 'pluginhost']});
2 changes: 1 addition & 1 deletion build/gallery-carousel-anim/gallery-carousel-anim-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions build/gallery-carousel-anim/gallery-carousel-anim.js
Expand Up @@ -115,7 +115,10 @@ Y.CarouselAnimPlugin = Y.extend(CarouselAnimPlugin, Y.Plugin.Base, {
if (carousel.get("rendered")) {
animation = self.get("animation");
if (carousel && animation.speed > 0) {
index = carousel._getCorrectedIndex(index); // sanitize the value
index = carousel._getCorrectedIndex(index);
if (isNaN(index)) {
return;
}
cb = carousel.get("contentBox");
isVertical = carousel.get("isVertical");
if (isVertical) {
Expand Down Expand Up @@ -187,4 +190,4 @@ Y.CarouselAnimPlugin = Y.extend(CarouselAnimPlugin, Y.Plugin.Base, {
});


}, 'gallery-2011.05.04-20-03' ,{requires:['gallery-carousel', 'anim', 'plugin', 'pluginhost']});
}, 'gallery-2011.05.18-19-11' ,{requires:['gallery-carousel', 'anim', 'plugin', 'pluginhost']});
7 changes: 5 additions & 2 deletions build/gallery-carousel/gallery-carousel-debug.js
Expand Up @@ -612,6 +612,9 @@ Y.Carousel = Y.extend(Carousel, Y.Widget, {
attr, cb, first, offset;

index = self._getCorrectedIndex(index); // sanitize the value
if (isNaN(index)) {
return;
}
offset = self._getOffsetForIndex(index);
cb = self.get("contentBox");
attr = self.get("isVertical") ? "top" : "left";
Expand Down Expand Up @@ -797,7 +800,7 @@ Y.Carousel = Y.extend(Carousel, Y.Widget, {
numItems = self.get("numItems"),
numVisible = self.get("numVisible"),
sentinel = numItems - 1,
firstOfLastPage;
firstOfLastPage = 0;

// Fix for Issues #2 and #11 - thanks <http://github.com/amasad>
if (isCircular) {
Expand Down Expand Up @@ -1464,4 +1467,4 @@ Y.Carousel = Y.extend(Carousel, Y.Widget, {
});


}, 'gallery-2011.05.04-20-03' ,{skinnable:true, requires:['widget']});
}, 'gallery-2011.05.18-19-11' ,{skinnable:true, requires:['widget']});
4 changes: 2 additions & 2 deletions build/gallery-carousel/gallery-carousel-min.js

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions build/gallery-carousel/gallery-carousel.js
Expand Up @@ -605,6 +605,9 @@ Y.Carousel = Y.extend(Carousel, Y.Widget, {
attr, cb, first, offset;

index = self._getCorrectedIndex(index); // sanitize the value
if (isNaN(index)) {
return;
}
offset = self._getOffsetForIndex(index);
cb = self.get("contentBox");
attr = self.get("isVertical") ? "top" : "left";
Expand Down Expand Up @@ -787,7 +790,7 @@ Y.Carousel = Y.extend(Carousel, Y.Widget, {
numItems = self.get("numItems"),
numVisible = self.get("numVisible"),
sentinel = numItems - 1,
firstOfLastPage;
firstOfLastPage = 0;

// Fix for Issues #2 and #11 - thanks <http://github.com/amasad>
if (isCircular) {
Expand Down Expand Up @@ -1441,4 +1444,4 @@ Y.Carousel = Y.extend(Carousel, Y.Widget, {
});


}, 'gallery-2011.05.04-20-03' ,{skinnable:true, requires:['widget']});
}, 'gallery-2011.05.18-19-11' ,{skinnable:true, requires:['widget']});
92 changes: 46 additions & 46 deletions build/gallery-split-desktop/gallery-split-desktop-debug.js
Expand Up @@ -18,10 +18,10 @@ var PX = 'px',
E_INIT = 'init',
E_START = 'start',
E_END = 'end',
E_CROWN = 'Crown',
E_NE = 'NE',
E_NW = 'NW',
E_CROWN = 'Crown',
E_CROWN = 'Crown',
E_NE = 'NE',
E_NW = 'NW',
E_CROWN = 'Crown',
PAGE_DEF_WIDTH = 960,
NW_MIN_WIDTH = 150,
DEF_MAIN_HEIGHT = 700,
Expand Down Expand Up @@ -57,9 +57,9 @@ var PX = 'px',
BORDERS_COLOR_CONF = 'bordersColor',
DRAG_HERE_IMG_CONF = 'dragHereImg',
PATH_TO_IMAGES_CONF = 'pathToImages',
BORDER_PIX_CONF = 'borderPixImg',
HANDLE_IMG_CONF = 'handleImg',
DRAG_HERE_LEFT_CONF = 'dragHereLeft',
BORDER_PIX_CONF = 'borderPixImg',
HANDLE_IMG_CONF = 'handleImg',
DRAG_HERE_LEFT_CONF = 'dragHereLeft',
DRAG_HERE_TOP_CONF = 'dragHereTop',
MAIN_HEIGHT_CONF = 'mainHeight',
CROWN_HEIGHT_CONF = 'crownHeight',
Expand All @@ -72,9 +72,9 @@ var PX = 'px',
IS_CLOSE_NW_CONF = 'isCloseNW',
IS_CLOSE_NE_CONF = 'isCloseNE',
/*
default provided here, updated if PREFIX is customized.
Corresponding nodes are fetched after configuration based on updated selector
*/
default provided here, updated if PREFIX is customized.
Corresponding nodes are fetched after configuration based on updated selector
*/
RESIZER_SELECTOR = POUND + DEF_PREFIX + FULL_DESKTOP.ne,
SECONDARY_SELECTOR = POUND + DEF_PREFIX + FULL_DESKTOP.nwbody,
MAIN_SELECTOR = POUND + DEF_PREFIX + FULL_DESKTOP.main,
Expand Down Expand Up @@ -193,13 +193,13 @@ var PX = 'px',
closeNEWidth: {
value: 30,
validator: '_validateCloseNeWidth'
},
},
isCloseCrown: {
value: false
},
},
isCloseNW: {
value: false
},
},
isCloseNE: {
value: false
}
Expand All @@ -223,8 +223,8 @@ var PX = 'px',
switch (i) {
case PAGE_WIDTH_CONF:
PAGE_DEF_WIDTH = this.get(i);
var ne = PAGE_DEF_WIDTH - NW_MIN_WIDTH;/* */
var m = PAGE_DEF_WIDTH + 21;
var ne = PAGE_DEF_WIDTH - NW_MIN_WIDTH;/* */
var m = PAGE_DEF_WIDTH + 21;
/* nw div is always 150 and comes auto from page_wrapper - ne */
Y.log('initializer is updating ' + i + ' with: ' + config[i] + PX, 'info', SplitDesktop.NAME);
Y.one(POUND + DEF_PREFIX + FULL_DESKTOP.wrapper).setStyle('width', PAGE_DEF_WIDTH);
Expand All @@ -244,10 +244,10 @@ var PX = 'px',
case BORDER_PIX_CONF:
case HANDLE_IMG_CONF:
/**
If base url is on CDN we will either have inside Y.config a property of 'gallery' or alternatively fullpath.
In case we have gallery => assume CDN (Y.Env.cdn is the base url)
In case we have fullpath => assume js file is inside root of package basedir (Y.config.fullpath ) is the baseurl
*/
If base url is on CDN we will either have inside Y.config a property of 'gallery' or alternatively fullpath.
In case we have gallery => assume CDN (Y.Env.cdn is the base url)
In case we have fullpath => assume js file is inside root of package basedir (Y.config.fullpath ) is the baseurl
*/
Y.log('initializer is updating ' + i + ' with: ' + config[i], 'info', SplitDesktop.NAME);
DRAG_HERE_IMG_URL = this.get(PATH_TO_IMAGES_CONF) + this.get(DRAG_HERE_IMG_CONF);
Y.one(POUND + DEF_PREFIX + FULL_DESKTOP.main).setStyle(BACKGROUNDIMAGE, 'url("' + DRAG_HERE_IMG_URL + '")');
Expand Down Expand Up @@ -344,28 +344,28 @@ var PX = 'px',
switch (POUND + e.currentTarget.get('id')){
case SECONDARY_SELECTOR:
if(!this.get("isDragging")){
this.fire(E_ENTER + E_NW);
}
this.fire(E_ENTER + E_NW);
}
break;
case RESIZER_SELECTOR:
if(!this.get("isDragging")){
this.fire(E_ENTER + E_NE);
this.fire(E_ENTER + E_NE);
}
break;
case MAIN_SELECTOR:
if(!this.get("isDragging")){
this.fire(E_ENTER + E_MAIN);
this.fire(E_ENTER + E_MAIN);
}
break;
break;
}
};

this._out = function (e) {
return;
};

Y.one(WRAPPER_SELECTOR).delegate("hover", this._over, this._out, ".sdt-active", this);
},
Y.one(WRAPPER_SELECTOR).delegate("hover", this._over, this._out, ".sdt-active", this);
},

renderUI : function () {

Expand Down Expand Up @@ -393,9 +393,9 @@ var PX = 'px',
},

/**
* @protected
*
*/
* @protected
*
*/

_onDragStart : function (e) {
/* remove background from main */
Expand Down Expand Up @@ -424,7 +424,7 @@ var PX = 'px',
deltaH = parseInt(e.info.offset[1], 10);

totW = w - deltaW;
totH = h + deltaH;
totH = h + deltaH;

/* ne closed when resizer width is page width - padding - close value */
if(!cutOffNwClosed){
Expand All @@ -437,9 +437,9 @@ var PX = 'px',
cutOffCrownClosed = this.get(CLOSE_CROWN_CONF);
}

this._isPaneClosed(IS_CLOSE_NW_CONF, E_NW, cutOffNwClosed, totW, true);
this._isPaneClosed(IS_CLOSE_NE_CONF, E_NE, cutOffNeClosed, totW, false);
this._isPaneClosed(IS_CLOSE_CROWN_CONF, E_CROWN, cutOffCrownClosed, totH, false);
this._isPaneClosed(IS_CLOSE_NW_CONF, E_NW, cutOffNwClosed, totW, true);
this._isPaneClosed(IS_CLOSE_NE_CONF, E_NE, cutOffNeClosed, totW, false);
this._isPaneClosed(IS_CLOSE_CROWN_CONF, E_CROWN, cutOffCrownClosed, totH, false);
resizerNode.setStyle(WIDTH, totW);
resizerNode.setStyle(HEIGHT, totH);

Expand All @@ -448,11 +448,11 @@ var PX = 'px',
},

_onDragEnd : function (e) {
/*
reposition to 00 pos in resizer window
the window width might have changed from the drag:start due to scrollbars,
hence the current x y is not necessarily at the bottom left corner of the window
*/
/*
reposition to 00 pos in resizer window
the window width might have changed from the drag:start due to scrollbars,
hence the current x y is not necessarily at the bottom left corner of the window
*/
this.fire(E_DRAG + E_END);
this.set(ISDRAGGING_CONF, false);
this._repositionHandle();
Expand All @@ -467,7 +467,7 @@ var PX = 'px',
if(Y.config.modules[GALLERYSPLITDESKTOP].gallery){
/* source is on CDN */
Y.log("Baseurl is on CDN for this module");
return Y.Env.base + Y.config.modules[GALLERYSPLITDESKTOP].gallery + '/build/';
return Y.Env.base + Y.config.modules[GALLERYSPLITDESKTOP].gallery + '/build/gallery-split-desktop/';

}else if(Y.config.modules[GALLERYSPLITDESKTOP].fullpath){
//extract root, assets relative to root
Expand All @@ -483,7 +483,7 @@ var PX = 'px',
}else if(Y.config.gallery){
/* source is general gallery url */
Y.log("Baseurl is on CDN", 'info', SplitDesktop.NAME);
return Y.Env.base + Y.config.gallery + '/build/';
return Y.Env.base + Y.config.gallery + '/build/gallery-split-desktop/';

}else if(Y.config.fullpath){
//extract root, assets relative to root
Expand Down Expand Up @@ -514,14 +514,14 @@ var PX = 'px',
},

_validateCloseNWWidth : function (val) {
return (val >= 0 && val <= parseInt(this.get(PAGE_WIDTH_CONF).replace(PX, ''), 10) / 4);
return (val >= 0 && val <= parseInt(this.get(PAGE_WIDTH_CONF).replace(PX, ''), 10) / 4);
},

_validateCloseNEWidth : function (val) {
return (val >= 0 && val <= parseInt(this.get(PAGE_WIDTH_CONF).replace(PX, ''), 10) / 4);
return (val >= 0 && val <= parseInt(this.get(PAGE_WIDTH_CONF).replace(PX, ''), 10) / 4);
},

_isPaneClosed : function (confName, eventType, cutOffVal, actualVal, direction) {
_isPaneClosed : function (confName, eventType, cutOffVal, actualVal, direction) {
/* close/open events for NW */
/* NW behaves in opposite direction: use false */
if(!this.get(confName)){
Expand All @@ -534,8 +534,8 @@ var PX = 'px',
if(this._evalLimits(cutOffVal > actualVal, direction)){
this.set(confName, false);
this.fire(E_OPEN + eventType);
Y.log('Firing ' + E_OPEN + eventType, 'info', SplitDesktop.NAME);
}
Y.log('Firing ' + E_OPEN + eventType, 'info', SplitDesktop.NAME);
}
}
},
_evalLimits : function (operation, bit){
Expand Down Expand Up @@ -563,4 +563,4 @@ var PX = 'px',
Y.namespace('Widget').SplitDesktop = SplitDesktop;


}, 'gallery-2011.05.04-20-03' ,{requires:['widget','dd-constrain','event-hover']});
}, 'gallery-2011.05.18-19-11' ,{requires:['widget','dd-constrain','event-hover']});

0 comments on commit 4d76a7f

Please sign in to comment.