this.viewerApplicationList = function( file ){
var data = FileAPI.getFileData( file ),
type = data !== null ? data.type : null;
this.viewerApplicationList = function( file ){
var data = FileAPI.getFileData( file ),
type = data !== null ? data.type : null;
var ImageGroupIconClass = function( index, data ){
var elmIconWrap = elmIconOrigin.cloneNode( true ),
elmIconTitle = Util.getElementsByClassName( elmIconWrap, 'image-group-item-title' )[ 0 ],
var ImageGroupIconClass = function( index, data ){
var elmIconWrap = elmIconOrigin.cloneNode( true ),
elmIconTitle = Util.getElementsByClassName( elmIconWrap, 'image-group-item-title' )[ 0 ],
SRC = [ BASE_PATH, data.id, '.', data.ext ].join( ''),
SRC = [ BASE_PATH, data.id, '.', data.ext ].join( ''),
- LOW_SRC = originalPicture.filesize && originalPicture.filesize > LIMIT_FILESIZE ? [ THUMB_PATH, data.id, '.', originalPicture.ext ].join( '') : null,
+ LOW_SRC = originalPicture.filesize && originalPicture.filesize > LIMIT_FILESIZE ? [ THUMB_PATH, data.id, '.', data.ext ].join( '' ) : null,
elmBody = this.elmBody = Util.getElementsByClassName( this.elm, 'window-body' )[ 0 ],
elmClose = Util.getElementsByClassName( this.elm, 'window-close-button' )[ 0 ],
elmFoot = Util.getElementsByClassName( this.elm, 'window-footer' )[ 0 ],
elmBody = this.elmBody = Util.getElementsByClassName( this.elm, 'window-body' )[ 0 ],
elmClose = Util.getElementsByClassName( this.elm, 'window-close-button' )[ 0 ],
elmFoot = Util.getElementsByClassName( this.elm, 'window-footer' )[ 0 ],
{ x: 1, w: -1, y: 0, h: 1}, //bottom-left
{ x: 0, w: 1, y: 0, h: 1} //bottom-right
],
{ x: 1, w: -1, y: 0, h: 1}, //bottom-left
{ x: 0, w: 1, y: 0, h: 1} //bottom-right
],
- startX, startY, startW, startH, startFilpV, startFilpH, startAspect,
+ startX, startY, startW, startH,
+ flipV, flipH, startFilpV, startFilpH, startAspect,
baseX, baseY, baseW, baseH,
currentX, currentY, currentW, currentH,
offsetX, offsetY,
baseX, baseY, baseW, baseH,
currentX, currentY, currentW, currentH,
offsetX, offsetY,
- ui, inputX, inputY, inputZ, inputA, inputW, inputH, inputAspectRatio,
+ ui, inputX, inputY, inputZ, inputA, inputW, inputH, inputPercentW, inputPercentH, inputAspectRatio,
buttonBack, buttonForward, buttonDel, buttonEdit, butonChange;
function layerBack(){
buttonBack, buttonForward, buttonDel, buttonEdit, butonChange;
function layerBack(){
this.flipV = data.height < 0 ? -1 : 1;
this.flipH = data.width < 0 ? -1 : 1;
this.rPicture = data.picture;
this.flipV = data.height < 0 ? -1 : 1;
this.flipH = data.width < 0 ? -1 : 1;
this.rPicture = data.picture;
this.flipV = updateV === true ? -this.flipV : this.flipV;
this.reversibleImage.resize( this.flipH * this.w, this.flipV * this.h );
},
this.flipV = updateV === true ? -this.flipV : this.flipV;
this.reversibleImage.resize( this.flipH * this.w, this.flipV * this.h );
},
if( _rPicture && _rPicture !== this.rPicture ){
HISTORY_CONTROL.saveState( this._updateResourcePicture, this.rPicture, _rPicture, this );
this._updateResourcePicture( _rPicture );
if( _rPicture && _rPicture !== this.rPicture ){
HISTORY_CONTROL.saveState( this._updateResourcePicture, this.rPicture, _rPicture, this );
this._updateResourcePicture( _rPicture );
- [ pettanr.CONST.RESOURCE_PICTURE_PATH, this.rPicture.id, '.', this.rPicture.ext ].join( '' ),
+ [ pettanr.CONST.PICTURE_PATH, this.rPicture.id, '.', this.rPicture.ext ].join( '' ),
this.flipH * this.w, this.flipV * this.h
);
if( this.reversibleImage !== null ){
this.flipH * this.w, this.flipV * this.h
);
if( this.reversibleImage !== null ){
x : Math.floor( panelW / 2 - data.width / 2 ),
y : Math.floor( panelH / 2 - data.height / 2 ),
z : -1,
x : Math.floor( panelW / 2 - data.width / 2 ),
y : Math.floor( panelH / 2 - data.height / 2 ),
z : -1,
function getPanelElementByTiming(){
var i, l = panelElementArray.length;
while( timing < l * 2 ){
function getPanelElementByTiming(){
var i, l = panelElementArray.length;
while( timing < l * 2 ){
if( timing === panelElementArray[ i ].timing ){
// console.log( timing + ' , ' + panelElementArray[ i ].timing );
++timing;
if( timing === panelElementArray[ i ].timing ){
// console.log( timing + ' , ' + panelElementArray[ i ].timing );
++timing;
- url = [ pettanr.CONST.RESOURCE_PICTURE_PATH, _panelElement.resourcePicture().id, '.', _panelElement.resourcePicture().ext ].join( '' );
+ rPic = _panelElement.realPicture();
+ url = [ pettanr.CONST.RESOURCE_PICTURE_PATH, rPic.id, '.', rPic.ext ].join( '' );
return [
'<img ',
'src="', isAbsoluteUrl !== true ? url : Util.getAbsolutePath( url ), '" ',
return [
'<img ',
'src="', isAbsoluteUrl !== true ? url : Util.getAbsolutePath( url ), '" ',
- '"id": ', _imageElement.resourcePicture().id, ',', cr,
- '"ext": ', '"',_imageElement.resourcePicture().ext, '"', cr,
+ '"id": ', rPic.id, ',', cr,
+ '"ext": ', '"', rPic.ext, '"', cr,
'},', cr,
'"x": ', _imageElement.x, ',', cr,
'"y": ', _imageElement.y, ',', cr,
'},', cr,
'"x": ', _imageElement.x, ',', cr,
'"y": ', _imageElement.y, ',', cr,
- '"picture_id": ', _imageElement.resourcePicture().id, ',', cr,
+ '"picture_id": ', _imageElement.realPicture().id, ',', cr,
'"x": ', _imageElement.x, ',', cr,
'"y": ', _imageElement.y, ',', cr,
'"z": ', _imageElement.z + 1, ',', cr,
'"x": ', _imageElement.x, ',', cr,
'"y": ', _imageElement.y, ',', cr,
'"z": ', _imageElement.z + 1, ',', cr,
};
}, true, false, 'Output Console', 'outputConsole', null, '#2D89F0' );
};
}, true, false, 'Output Console', 'outputConsole', null, '#2D89F0' );