123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: irot
- // (C) Copyright IBM Corp. 2003, 2022.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- function _7i6(_sf9, _xg8, _gv8, _848, _ep5){this._9c8=_xg8;this._sq8=_gv8;this._oc8=document.createElement('canvas');this._oc8.height=_xg8;this._oc8.width=_gv8;this._oc8.id=_sf9;this._8c7=8;if(_848){this._oc8.setAttribute('onmousedown', _848);}if(_ep5){this._oc8.setAttribute('onMouseOver', _ep5);}};_7i6._kr4=1;_7i6._fq=2;_7i6._8m=3;_7i6._8w1=4;_7i6.prototype._k88=function(_3t6, _3g7, _793, _zb4, _ve8, _ey6, _8u8){if(_ve8){this._va8(_3t6, _3g7,(_ey6||6), true, _793, _zb4);}else{var _v39=this._8c7;if(_793==_7i6._8m){var _a29=[];_a29.push(new _oq7(_3t6[0].left, _3t6[0].top-_v39/2));_a29.push(new _oq7(_v39, _v39));this._wa8(_a29, _3g7);}if(!_ey6){_ey6=_3g7?3:1;}this._va8(_3t6, _3g7, _ey6, true, _793, _zb4);var _o39=_3t6.length-1;if(_zb4==_7i6._8m){var _a29=[];_a29.push(new _oq7(_3t6[_o39].left-_v39, _3t6[_o39].top-_v39/2));_a29.push(new _oq7(_v39, _v39));this._wa8(_a29, _3g7);}else if(_zb4==_7i6._fq){var _hs8=[];_hs8.push(new _oq7(_3t6[_o39].left-_v39, _3t6[_o39].top));_hs8.push(new _oq7(_3t6[_o39].left-_v39, _3t6[_o39].top-_v39/2));_hs8.push(new _oq7(_3t6[_o39].left, _3t6[_o39].top));_hs8.push(new _oq7(_3t6[_o39].left-_v39, _3t6[_o39].top+_v39/2));_hs8.push(new _oq7(_3t6[_o39].left-_v39, _3t6[_o39].top));this._gt7(_hs8, _3g7);}else if(_zb4==_7i6._8w1){var _hs8=[];var _v96=_v39*2;_hs8.push(new _oq7(0, 0-_v96/2));_hs8.push(new _oq7(_v39, 0));_hs8.push(new _oq7(0, _v96/2));_hs8.push(new _oq7(0, 0-_v96/2));var _2m7=new _oq7(_3t6[_o39].left, _3t6[_o39].top);this._gt7(_hs8, _3g7, _2m7, _8u8);}}};_7i6.prototype._va8=function(_3t6,_3g7,_ey6,_ff8,_793,_zb4){var _807=this._oc8.getContext('2d');var _o69=_807.strokeStyle;_807.strokeStyle=_3z2._fx2(_3g7?"--primary1":"--B");_807.beginPath();var _379=_3t6[0].left+',' + _3t6[0].top;_807.moveTo(_3t6[0].left, _3t6[0].top);for(var i=1; i<_3t6.length; i++){_807.lineTo(_3t6[i].left, _3t6[i].top);_379=_379+':' + _3t6[i].left + ',' + _3t6[i].top;}_807.lineWidth=_ey6;if(_ff8){_807.stroke();}_807.strokeStyle=_o69;};_7i6.prototype._gt7=function(_1a9,_3g7,_c35,_8u8){var _807=this._oc8.getContext('2d');if(_8u8||_c35){_807.save();if(_c35){_807.translate(_c35.left, _c35.top);}if(_8u8){_807.rotate((360-_8u8)*Math.PI/180);} }var _o69=_807.fillStyle;_807.fillStyle=_3z2._fx2(_3g7?"--primary1":"--B");_807.beginPath();_807.moveTo(_1a9[0].left, _1a9[0].top);for(var i=1; i<_1a9.length; i++){_807.lineTo(_1a9[i].left, _1a9[i].top);}_807.fill();_807.fillStyle=_o69;if(_8u8||_c35){_807.restore();}};_7i6.prototype._wa8=function(_3t6,_3g7){var _807=this._oc8.getContext('2d');var _o69=_807.fillStyle;_807.fillStyle=_3z2._fx2(_3g7?"--primary1":"--B");_807.fillRect(_3t6[0].left, _3t6[0].top, _3t6[1].left, _3t6[1].top);_807.fillStyle=_o69;};_7i6.prototype._wn8=function(_sj8){return _sj8.appendChild(this._oc8);};_7i6.prototype._ur7=function(_qg9,_rg9){_qg9=Math.round(_qg9);_rg9=Math.round(_rg9);var _807=this._oc8.getContext('2d');var delta=10;for(var x=_qg9-delta; x<=_qg9+delta; x++){for(var y=_rg9-delta; y<=_rg9+delta; y++){if(_807.isPointInPath(x, y)){return true;}}}return false;};_7i6.prototype._az8=function(){var _807=this._oc8.getContext('2d');_807.clearRect(0, 0, this._sq8, this._9c8);};_7i6.prototype._1o8=function(){if(this._oc8){delete this._oc8;}};
|